Tests for module 'sh-quote'.
[gnulib.git] / ChangeLog
1 2012-05-06  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'sh-quote'.
4         * modules/sh-quote-tests: New file.
5         * tests/test-sh-quote.c: New file.
6
7 2012-05-06  Bruno Haible  <bruno@clisp.org>
8
9         sh-quote: Improve shell_quote_argv's signature.
10         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
11         * lib/sh-quote.c (shell_quote_argv): Likewise.
12
13 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14
15         stdint: document issues with int_fast8_t etc.
16         * doc/posix-headers/stdint.texi (stdint.h): Say that other
17         stdint.h substitutes may define these types differently.  See
18         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
19
20 2012-05-05  Bruno Haible  <bruno@clisp.org>
21
22         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
24         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
25         or 'guessing no (mishandles large arguments)'.
26
27 2012-05-05  Bruno Haible  <bruno@clisp.org>
28
29         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
30         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
31         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
32         set gl_cv_func_link_follows_symlink to "guessing no".
33
34 2012-05-05  Bruno Haible  <bruno@clisp.org>
35
36         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
37         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39         "guessing no".
40         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
41
42 2012-05-05  Bruno Haible  <bruno@clisp.org>
43
44         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
45         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
46         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
47         set gl_cv_struct_dirent_d_ino to "guessing yes".
48
49 2012-05-05  Bruno Haible  <bruno@clisp.org>
50
51         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
52         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
53         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
54         "guessing yes".
55
56 2012-05-05  Bruno Haible  <bruno@clisp.org>
57
58         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
59         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
60         compiling to a glibc system, set gl_cv_func_signbit and
61         gl_cv_func_signbit_gcc to "guessing yes".
62
63 2012-05-05  Bruno Haible  <bruno@clisp.org>
64
65         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
66         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
67         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
68         to "guessing yes".
69         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
70         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
71
72 2012-05-05  Bruno Haible  <bruno@clisp.org>
73
74         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
75         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
76         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
77         gl_cv_func_realpath_works to "guessing yes".
78
79 2012-05-05  Bruno Haible  <bruno@clisp.org>
80
81         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
82         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
83         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
84
85 2012-05-04  Bruno Haible  <bruno@clisp.org>
86
87         Tweak last commit.
88         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
89         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
90
91 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
92
93         unistd_h: make it easier to avoid sys_types_h
94         This is useful for Emacs, which has its own method of porting to
95         Windows, and which therefore does not need the sys_types_h module.
96         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
97         code moved here from gl_SYS_TYPES_H.
98         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
99         using the code directly.
100         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
101         gl_SYS_TYPES_H.
102         * modules/sys_types (Files):
103         * modules/unistd (Files): Add m4/off_t.m4.
104
105 2012-05-03  Bruno Haible  <bruno@clisp.org>
106
107         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
108         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
109         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
110         "guessing yes" or "guessing no".
111         (gl_FUNC_LSTAT): Update.
112         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
113         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
114         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
115
116 2012-05-03  Bruno Haible  <bruno@clisp.org>
117
118         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
119         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
120         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
121         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
122         cross-compiling, choose the first alternative on glibc systems.
123         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
124
125 2012-05-03  Bruno Haible  <bruno@clisp.org>
126
127         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
128         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
129         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
130
131 2012-05-03  Bruno Haible  <bruno@clisp.org>
132
133         chown: Avoid "guessing no" when cross-compiling to glibc systems.
134         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
135
136 2012-05-03  Bruno Haible  <bruno@clisp.org>
137
138         Avoid "guessing no" guesses when cross-compiling to glibc systems.
139         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
140         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
141         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
142         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
143         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
144         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
145         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
146         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
147         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
148         compiling to glibc systems, set gl_cv_func_chown_slash_works,
149         gl_cv_func_chown_ctime_works to "guessing yes".
150         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
151         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
152         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
153         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
154         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
155         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
156         compiling to glibc systems, set gl_cv_func_open_directory_works to
157         "guessing yes".
158         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
159         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
160         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
161         "guessing yes".
162         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
163         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
164         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
165         compiling to glibc systems, set gl_cv_func_floorf_ieee to
166         "guessing yes".
167         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
168         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
169         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
170         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
171         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
172         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
173         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
174         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
175         "guessing yes".
176         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
177         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
178         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
179         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
180         "guessing yes".
181         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
182         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
183         "guessing yes".
184         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
185         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
186         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
187         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
188         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
189         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
190         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
191         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
192         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
193         compiling to glibc systems, set gl_cv_func_log10f_ieee to
194         "guessing yes".
195         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
196         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
197         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
198         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
199         "guessing yes".
200         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
201         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
202         "guessing yes".
203         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
204         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
205         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
206         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
207         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
208         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
209         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
210         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
211         compiling to glibc systems, set gl_cv_func_mkfifo_works to
212         "guessing yes".
213         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
214         compiling to glibc systems, set gl_cv_func_mknod_works to
215         "guessing yes".
216         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
217         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
218         "guessing yes".
219         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
220         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
221         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
222         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
223         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
224         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
225         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
226         compiling to glibc systems, set gl_cv_func_svid_putenv to
227         "guessing yes".
228         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
229         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
230         "guessing yes".
231         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
232         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
233         "guessing yes".
234         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
235         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
236         to "guessing yes".
237         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
238         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
239         to "guessing yes".
240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
241         compiling to glibc systems, set gl_cv_func_rmdir_works to
242         "guessing yes".
243         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
244         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
245         gl_cv_func_unlink_parent_fails to "guessing yes".
246         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
247         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
248         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
249         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
250         gl_cv_func_rename_dest_works to "guessing yes".
251         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
252         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
253         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
254         compiling to glibc systems, set gl_cv_func_roundf_ieee to
255         "guessing yes".
256         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
257         compiling to glibc systems, set gl_cv_func_roundl_ieee to
258         "guessing yes".
259         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
260         compiling to glibc systems, set gl_cv_func_setenv_works to
261         "guessing yes".
262         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
263         compiling to glibc systems, set gl_cv_func_unsetenv_works to
264         "guessing yes".
265         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
266         compiling to glibc systems, set gl_cv_func_sleep_works to
267         "guessing yes".
268         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
269         compiling to glibc systems, set gl_cv_func_stat_file_slash to
270         "guessing yes".
271         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
272         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
273         "guessing yes".
274         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
275         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
276         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
277         compiling to glibc systems, set gl_cv_func_truncf_ieee to
278         "guessing yes".
279         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
280         compiling to glibc systems, set gl_cv_func_truncl_ieee to
281         "guessing yes".
282         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
283         compiling to glibc systems, set gl_cv_func_usleep_works to
284         "guessing yes".
285         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
286         compiling to glibc systems, set gl_cv_func_futimesat_works to
287         "guessing yes".
288
289 2012-05-03  Bruno Haible  <bruno@clisp.org>
290
291         Say "guessing yes" or "guessing no" when cross-compiling.
292         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
293         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
294         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
295         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
296         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
297         am_cv_func_working_getline to "guessing yes" or "guessing no".
298         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
299         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
300         (gl_FUNC_MEMMEM): When cross-compiling, set
301         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
303         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
304         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
305         set gl_cv_func_strcasestr_works_always to "guessing yes" or
306         "guessing no".
307         (gl_FUNC_STRCASESTR): When cross-compiling, set
308         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
309         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
310         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
311         (gl_FUNC_STRSTR): When cross-compiling, set
312         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
313         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
314         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
315         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
316         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
317
318 2012-05-01  Bruno Haible  <bruno@clisp.org>
319
320         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
321         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
322         * build-aux/reloc-ldflags: Likewise.
323         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
324
325 2012-05-01  Bruno Haible  <bruno@clisp.org>
326
327         gnulib-tool: Remove transitional code.
328         * gnulib-tool: Don't warn about --import with 0 arguments any more.
329         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
330
331 2012-05-01  Bruno Haible  <bruno@clisp.org>
332
333         getcwd: Fix misindentation.
334         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
335
336 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
337
338         exclude: process exclude and include directives in order
339         This restores the pre-2009 behavior, and is part of a fix of a
340         grep bug reported by Quentin Arce in
341         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
342         * lib/exclude.c (struct exclude): Remove 'tail' member.
343         (new_exclude_segment): Prepend the new segment instead of appending.
344         Return void, since that's now more convenient.
345         (file_pattern_matches): Renamed from excluded_file_pattern_p.
346         (file_name_matches): Renamed from excluded_file_name_p.
347         (file_pattern_matches, file_name_matches):
348         Return true if the pattern matches, not if it excludes.
349         All callers changed.
350         (excluded_file_name): Process the list in reverse order;
351         since the list is now reversed this restores the pre-2009 behavior.
352         (add_exclude): Adjust to new reversed-order list.  Use local var
353         rather than macro, for clarity.
354         * tests/test-exclude7.sh: Adjust to corrected behavior.
355
356         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
357         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
358         it's not possible here.  Handle the case of \ at end of pattern
359         without dumping core.
360         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
361
362         _Noreturn: future-proof non-GNU and non-MSVC compilers
363         * build-aux/snippet/_Noreturn.h (_Noreturn):
364         * m4/gnulib-common.m4 (gl_COMMON_BODY):
365         Do not define _Noreturn if __STDC_VERSION__ indicates this is
366         C11 or later.  This is more likely to work with random future C
367         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
369
370         exclude: handle wildcards with FNM_EXTMATCH
371         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
372         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
373         comment that "has wildcards" really means "has or may have
374         wildcards".  Simplify by avoiding the need to call strcspn.
375
376 2012-04-29  Bruno Haible  <bruno@clisp.org>
377
378         gnulib-tool: Fix list of authors.
379         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
380
381 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
382
383         bootstrap: support Automake-NG in $buildreq
384         * bootstrap (check_versions): Handle automake and aclocal from
385         Automake-NG specially.  They can be specified as respectively
386         the "automake-ng" and "aclocal-ng" requirements.
387
388 2012-04-25  Eric Blake  <eblake@redhat.com>
389
390         bootstrap: only force latest Makefile.in.in for gettext module
391         * build-aux/bootstrap (with_gettext): Only install latest
392         Makefile.in.in for projects requesting bleeding edge gettext.
393
394 2012-04-22  Bruno Haible  <bruno@clisp.org>
395
396         doc: Mention reason for replacement on glibc/Linux systems.
397         * doc/posix-functions/dprintf.texi: Mention the problem with special
398         'long double' values.
399         * doc/posix-functions/fprintf.texi: Likewise.
400         * doc/posix-functions/printf.texi: Likewise.
401         * doc/posix-functions/snprintf.texi: Likewise.
402         * doc/posix-functions/sprintf.texi: Likewise.
403         * doc/posix-functions/vdprintf.texi: Likewise.
404         * doc/posix-functions/vfprintf.texi: Likewise.
405         * doc/posix-functions/vprintf.texi: Likewise.
406         * doc/posix-functions/vsnprintf.texi: Likewise.
407         * doc/posix-functions/vsprintf.texi: Likewise.
408         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
409         platforms with F_DUPFD_CLOEXEC problems.
410         * doc/posix-functions/glob.texi: Mention which platforms are affected
411         by the problem with symbolic links.
412         * doc/posix-functions/linkat.texi: Mention the problem with
413         AT_SYMLINK_FOLLOW on Linux.
414
415 2012-04-22  Bruno Haible  <bruno@clisp.org>
416
417         pwrite: Don't replace on all platforms.
418         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
419
420 2012-04-22  Bruno Haible  <bruno@clisp.org>
421
422         rint* tests: Avoid gcc warnings.
423         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
424         * tests/test-rintf.c (INFINITY, NAN): Likewise.
425         * tests/test-rintl.c (INFINITY, NAN): Likewise.
426
427 2012-04-21  Bruno Haible  <bruno@clisp.org>
428
429         users.txt: Update.
430         * users.txt: Add freedink, wdiff. Update URLs for projects that have
431         switched from CVS to git, bzr, or svn.
432
433 2012-04-21  Bruno Haible  <bruno@clisp.org>
434
435         Large File Support for native Windows platforms.
436
437         * m4/largefile.m4 (gl_LARGEFILE): New macro.
438         * modules/largefile (configure.ac): Require gl_LARGEFILE.
439
440         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
441         type.
442         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
443         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
444         * doc/posix-headers/sys_types.texi: Mention the effect of the
445         'largefile' module.
446
447         * lib/fcntl.in.h: Add comments about off_t.
448         * modules/fcntl-h (Depends-on): Add sys_types.
449
450         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
451         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
452         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
453         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
454         * modules/unistd (Depends-on): Add sys_types.
455         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
456
457         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
458         instead of lseek.
459         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
460         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
461         * modules/lseek (Depends-on): Add sys_types.
462
463         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
464         msvc-nothrow.h.
465         (SetFileSize): New function.
466         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
467         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
468         if Large File Support is requested.
469         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
470         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
471
472         * lib/stdio.in.h: Add comments about off_t.
473         * modules/stdio (Depends-on): Add sys_types.
474
475         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
476         instead of ftello.
477         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
478         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
479         (gl_PREREQ_FTELLO): New macro.
480         * modules/ftello (Depends-on): Add sys_types.
481         (configure.ac): Incoke gl_PREREQ_FTELLO.
482
483         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
484         instead of fseeko.
485         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
486         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
487         (gl_PREREQ_FSEEKO): New macro.
488         * modules/fseeko (Depends-on): Add sys_types.
489         (configure.ac): Invoke gl_PREREQ_FSEEKO.
490
491         * lib/sys_stat.in.h: Add comments about off_t.
492         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
493         64-bit integer for st_size in 'struct stat'.
494         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
495         Define _GL_WINDOWS_64_BIT_ST_SIZE.
496         * modules/sys_stat (Depends-on): Add sys_types.
497         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
498
499         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
500         instead of stat or _stat.
501
502         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
503         'struct _stati64' instead of fstat and 'struct stat'.
504         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
505         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
506
507         Reported by Ray Satiro <raysatiro@yahoo.com>.
508
509 2012-04-19  Eric Blake  <eblake@redhat.com>
510
511         bootstrap: accommodate older libtool
512         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
513         Reported by Daniel P. Berrange.
514
515 2012-04-19  Jim Meyering  <meyering@redhat.com>
516
517         announce-gen: avoid failure due to lack of Digest::SHA1
518         Even with the preferred Digest::SHA available, this script
519         would fail when the backup module, Digest::SHA1, was not installed.
520         * build-aux/announce-gen: Quote the conditional use of "use".
521         Reported by Reuben Thomas in:
522         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
523
524         bootstrap: don't let a user's CDPATH setting affect this script
525         When CDPATH is set, cd will sometimes generate output.
526         When "cd" is run in a subshell whose output matters, that
527         surprising-to-some output can cause malfunction.
528         Unsetting CDPATH turns off this shell "feature."
529         * build-aux/bootstrap (CDPATH): Unset.
530         Reported by Reuben Thomas in:
531         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
532         and inspired by his patch here:
533         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
534
535 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
536         and Jim Meyering  <meyering@redhat.com>
537
538         maint.mk: catch "see @xref{}" and similar
539         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
540         prohibit "See also @xref{", "Also see @pxref{", and similar.
541
542 2012-04-16  Jim Meyering  <meyering@redhat.com>
543
544         bootstrap: really use gnulib's po/Makefile.in.in
545         * build-aux/bootstrap: Correct the source file name in previous change.
546         Reported by Akim Demaille.
547
548         configmake: correct minor inconsistency in Makefile rule
549         * modules/configmake (Makefile.am): All other rules like this one
550         run the final "mv -f ..." in the same backslash-continued command
551         as the one that does everything else.  This one put the mv -f ...
552         command on a separate, non-backslash-continued line.
553         Make it like the others.
554
555         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
556         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
557         the one from gettext.  Reported by Akim Demaille.
558
559 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
560
561         Fix recursion of install-* into po directories.
562         Bison's install-pdf bug reported by Hans Aberg at
563         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
564         * build-aux/po/Makefile.in.in (install-dvi, install-html)
565         (install-info, install-pdf, install-ps): New targets.
566
567 2012-04-16  Jim Meyering  <meyering@redhat.com>
568
569         maint: avoid spurious "make sc_maint" failure
570         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
571         exempt all *.class file names, for lib/javaversion.class.
572
573 2012-04-15  Bruno Haible  <bruno@clisp.org>
574
575         lseek: Make configure test independent of environment.
576         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
577         Windows, we know that lseek() on pipes is broken; skip the runtime
578         test.
579
580 2012-04-14  Bruno Haible  <bruno@clisp.org>
581
582         stat: Bypass buggy override in mingw64.
583         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
584         * lib/stat.c (stat) [mingw64]: Define to _stat.
585         * doc/posix-functions/stat.texi: Mention mingw64 bug.
586
587 2012-04-14  Bruno Haible  <bruno@clisp.org>
588
589         pathmax: Fix compilation error on MSVC 9.
590         * modules/pathmax (Depends-on): Add unistd.
591
592 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
593
594         README: document pointer comparison assumption
595         * README (Portability guidelines): Document assumption about
596         pointer comparisons, in response to a recent bug-gnulib comment by
597         Jeffrey Kegler.
598
599 2012-04-12  Bruno Haible  <bruno@clisp.org>
600
601         Tests for module 'getrusage'.
602         * modules/getrusage-tests: New file.
603         * tests/test-getrusage.c: New file.
604
605         New module 'getrusage'.
606         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
607         warn-on-use.h.
608         (getrusage): New declaration.
609         * lib/getrusage.c: New file.
610         * m4/getrusage.m4: New file.
611         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
612         is declared.
613         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
614         HAVE_GETRUSAGE.
615         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
616         snippet/c++defs, snippet/warn-on-use.
617         (Makefile.am): Update generation of sys/resource.h. Substitute
618         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
619         * modules/getrusage: New file.
620         * doc/posix-functions/getrusage.texi: Mention the new module.
621
622 2012-04-12  Bruno Haible  <bruno@clisp.org>
623
624         Tests for module 'sys_resource'.
625         * modules/sys_resource-tests: New file.
626         * tests/test-sys_resource.c: New file.
627
628         New module 'sys_resource'.
629         * lib/sys_resource.in.h: New file.
630         * m4/sys_resource_h.m4: New file.
631         * modules/sys_resource: New file.
632         * doc/posix-headers/sys_resource.texi: Mention the new module.
633
634 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
635
636         ioctl: Fix compilation error on mingw.
637         * lib/ioctl.c: Include <windows.h>.
638         Also reported by Ray Satiro <raysatiro@yahoo.com>.
639
640 2012-04-04  Jim Meyering  <meyering@redhat.com>
641
642         regex: correct #pragma guard expression
643         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
644         not 4.3.  Correct its cpp guard expression.
645
646 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
647
648         regex: remove unnecessary type punning
649         Problem reported by Vladimir Serbinenko in
650         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
651         * lib/regex.h (struct re_pattern_buffer): Change the type of
652         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
653         Fix comment to match code.
654         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
655         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
656         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
657         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
658         (set_regs):
659         Omit no-longer-necessary casts.
660
661 2012-04-03  Bruno Haible  <bruno@clisp.org>
662
663         Tests for module 'ilogbl'.
664         * modules/ilogbl-tests: New file.
665         * tests/test-ilogbl.c: New file.
666
667         New module 'ilogbl'.
668         * lib/math.in.h (ilogbl): New declaration.
669         * lib/ilogbl.c: New file.
670         * m4/ilogbl.m4: New file.
671         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
673         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
674         Split sed invocation, to avoid the limit of 100 substitutions of
675         HP-UX 'sed'.
676         * modules/ilogbl: New file.
677         * tests/test-math-c++.cc: Check the declaration of ilogbl.
678         * doc/posix-functions/ilogbl.texi: Mention the new module.
679
680 2012-04-03  Bruno Haible  <bruno@clisp.org>
681
682         Tests for module 'ilogbf'.
683         * modules/ilogbf-tests: New file.
684         * tests/test-ilogbf.c: New file.
685
686         New module 'ilogbf'.
687         * lib/math.in.h (ilogbf): New declaration.
688         * lib/ilogbf.c: New file.
689         * m4/ilogbf.m4: New file.
690         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
692         REPLACE_ILOGBF.
693         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
694         REPLACE_ILOGBF.
695         * modules/ilogbf: New file.
696         * tests/test-math-c++.cc: Check the declaration of ilogbf.
697         * doc/posix-functions/ilogbf.texi: Mention the new module.
698
699 2012-04-03  Bruno Haible  <bruno@clisp.org>
700
701         Tests for module 'ilogb'.
702         * modules/ilogb-tests: New file.
703         * tests/test-ilogb.c: New file.
704         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
705         tests/test-logb-ieee.h.
706
707         New module 'ilogb'.
708         * lib/math.in.h (ilogb): New declaration.
709         * lib/ilogb.c: New file.
710         * m4/ilogb.m4: New file.
711         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
712         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
713         REPLACE_ILOGB.
714         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
715         REPLACE_ILOGB.
716         * modules/ilogb: New file.
717         * tests/test-math-c++.cc: Check the declaration of ilogb.
718         * doc/posix-functions/ilogb.texi: Mention the new module.
719
720 2012-04-03  Bruno Haible  <bruno@clisp.org>
721
722         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
723         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
724         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
725         (main): Check their values.
726         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
727         problem.
728
729 2012-04-03  Bruno Haible  <bruno@clisp.org>
730
731         Tests for module 'logbl-ieee'.
732         * modules/logbl-ieee-tests: New file.
733         * tests/test-logbl-ieee.c: New file.
734
735         New module 'logbl-ieee'.
736         * modules/logbl-ieee: New file.
737
738         Tests for module 'logb-ieee'.
739         * modules/logb-ieee-tests: New file.
740         * tests/test-logb-ieee.c: New file.
741
742         New module 'logb-ieee'.
743         * modules/logb-ieee: New file.
744
745         Tests for module 'logbf-ieee'.
746         * modules/logbf-ieee-tests: New file.
747         * tests/test-logbf-ieee.c: New file.
748         * tests/test-logb-ieee.h: New file.
749
750         New module 'logbf-ieee'.
751         * modules/logbf-ieee: New file.
752
753 2012-04-03  Bruno Haible  <bruno@clisp.org>
754
755         Tests for module 'logbl'.
756         * modules/logbl-tests: New file.
757         * tests/test-logbl.c: New file.
758
759         New module 'logbl'.
760         * lib/math.in.h (logbl): New declaration.
761         * lib/logbl.c: New file.
762         * m4/logbl.m4: New file.
763         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
765         REPLACE_LOGBL.
766         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
767         REPLACE_LOGBL.
768         * modules/logbl: New file.
769         * tests/test-math-c++.cc: Check the declaration of logbl.
770         * doc/posix-functions/logbl.texi: Mention the new module.
771
772 2012-04-02  Bruno Haible  <bruno@clisp.org>
773
774         Tests for module 'logbf'.
775         * modules/logbf-tests: New file.
776         * tests/test-logbf.c: New file.
777
778         New module 'logbf'.
779         * lib/math.in.h (logbf): New declaration.
780         * lib/logbf.c: New file.
781         * m4/logbf.m4: New file.
782         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
783         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
784         REPLACE_LOGBF.
785         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
786         REPLACE_LOGBF.
787         * modules/logbf: New file.
788         * tests/test-math-c++.cc: Check the declaration of logbf.
789         * doc/posix-functions/logbf.texi: Mention the new module.
790
791 2012-04-02  Bruno Haible  <bruno@clisp.org>
792
793         logb tests: More tests.
794         * tests/test-logb.h: New file, based on tests/test-logb.c and
795         tests/test-frexp.h.
796         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
797         (main): Just invoke test_function.
798         * modules/logb-tests (Files): Add tests/test-logb.h,
799         tests/minus-zero.h, tests/randomd.c.
800         (Makefile.am): Add randomd.c to test_logb_SOURCES.
801
802         logb: Provide replacement and workarounds.
803         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
804         is 1.
805         * lib/logb.c: New file.
806         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
807         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
809         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
810         * modules/logb (Files): Add lib/logb.c.
811         (Depends-on): Add isfinite, frexp, isnand.
812         (configure.ac): Compile the replacement code logb.c if needed.
813         * tests/test-math-c++.cc: Check the declaration of logb.
814         * doc/posix-functions/logb.texi: Mention the replacement and the bug
815         with subnormal numbers.
816
817 2012-04-02  Bruno Haible  <bruno@clisp.org>
818
819         log10* tests: Speed up.
820         * tests/test-log10.h (test_function): Reduce amount of random numbers
821         to test.
822
823 2012-04-01  Bruno Haible  <bruno@clisp.org>
824
825         logf-ieee: Fix test whether logf works.
826         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
827
828 2012-04-01  Bruno Haible  <bruno@clisp.org>
829
830         log10l: Work around log10l-ieee test failure on IRIX 6.5.
831         * lib/log10l.c: Include <float.h>
832         (log10l): On IRIX, normalize the +Infinity value.
833         * modules/log10l (Depends-on): Add 'float'.
834         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
835         +Infinity.
836
837         log10f-ieee: Work around test failure on NetBSD 5.1.
838         * m4/log10f-ieee.m4: New file.
839         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
840         test whether log10f works with a negative argument. Replace it if not.
841         * lib/log10f.c (log10f): For negative arguments, return NaN.
842         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
843         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
844         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
845
846         log10f-ieee: Work around test failure on Solaris 9.
847         * modules/log10f-ieee (Depends-on): Add log10-ieee.
848         (configure.ac): Require gl_FUNC_LOG10F.
849
850         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
851         * m4/log10-ieee.m4: New file.
852         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
853         whether log10 works with a negative argument. Replace it if not.
854         * lib/log10.c (log10): For negative arguments, return NaN.
855         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
856         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
857         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
858
859         Tests for module 'log10l-ieee'.
860         * modules/log10l-ieee-tests: New file.
861         * tests/test-log10l-ieee.c: New file.
862
863         New module 'log10l-ieee'.
864         * modules/log10l-ieee: New file.
865
866         Tests for module 'log10-ieee'.
867         * modules/log10-ieee-tests: New file.
868         * tests/test-log10-ieee.c: New file.
869
870         New module 'log10-ieee'.
871         * modules/log10-ieee: New file.
872
873         Tests for module 'log10f-ieee'.
874         * modules/log10f-ieee-tests: New file.
875         * tests/test-log10f-ieee.c: New file.
876         * tests/test-log10-ieee.h: New file.
877
878         New module 'log10f-ieee'.
879         * modules/log10f-ieee: New file.
880
881 2012-04-01  Bruno Haible  <bruno@clisp.org>
882
883         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
884         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
885         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
886         workaround.
887         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
888         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
890         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
891         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
892         (Depends-on): Update conditions.
893         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
894         IRIX 6.5, OSF/1 5.1 problems.
895
896 2012-04-01  Bruno Haible  <bruno@clisp.org>
897
898         log10f: Work around OSF/1 5.1 bug.
899         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
900         * lib/log10f.c (log10f): If logf exists, use it and provide just the
901         workaround.
902         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
903         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
904         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
905         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
906         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
907         (Depends-on): Update conditions.
908         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
909
910 2012-04-01  Bruno Haible  <bruno@clisp.org>
911
912         log10: Work around OSF/1 5.1 bug.
913         * lib/math.in.h (log10): New declaration.
914         * lib/log10.c: New file.
915         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
916         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
917         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
919         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
920         * modules/log10 (Files): Add lib/log10.c.
921         (Depends-on): Add math.
922         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
923         * tests/test-math-c++.cc: Check the declaration of log10.
924         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
925
926 2012-03-31  Bruno Haible  <bruno@clisp.org>
927
928         log10l tests: More tests.
929         * modules/log10l-tests (Files): Add tests/test-log10l.h,
930         tests/minus-zero.h, tests/randoml.c.
931         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
932         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
933         (main): Invoke test_function.
934
935         log10f tests: More tests.
936         * modules/log10f-tests (Files): Add tests/test-log10.h,
937         tests/minus-zero.h, tests/randomf.c.
938         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
939         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
940         (main): Invoke test_function.
941
942         log10 tests: More tests.
943         * tests/test-log10.h: New file.
944         * modules/log10-tests (Files): Add tests/test-log10.h,
945         tests/minus-zero.h, tests/randomd.c.
946         (Makefile.am): Add randomd.c to test_log10_SOURCES.
947         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
948         (main): Invoke test_function.
949
950 2012-03-31  Simon Josefsson  <simon@josefsson.org>
951
952         fflush: Fix syntax error.
953         * lib/fflush.c: Include unused-parameter.h, needed for
954         _GL_UNUSED_PARAMETER.
955         * modules/fflush (Depends-on): Add snippet/unused-parameter.
956
957 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
958
959         regex: pacify GCC when compiling GRUB
960         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
961         a diagnostic.  Reported by Vladimir Serbinenko in
962         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
963
964 2012-03-29  Eric Blake  <eblake@redhat.com>
965
966         stdio: don't assume gets any more
967         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
968         support.
969         * modules/stdio (Makefile.am): Likewise.
970         * lib/stdio-read.c (gets): Likewise.
971         * tests/test-stdio-c++.cc: Likewise.
972         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
973         * lib/stdio.in.h (gets): Make warning occur in more places.
974         * doc/posix-functions/gets.texi (gets): Update documentation.
975         Reported by Christer Solskogen.
976
977         maint.mk: fix syntax checks without exclusions
978         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
979         Reported by Daniel P. Berrange.
980
981         strerror_r: avoid compiler warning
982         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
983         level.
984
985         fflush: avoid compiler warning
986         * lib/fflush.c (update_fpos_cache): Mark variables that are
987         potentially unused.
988
989 2012-03-25  Bruno Haible  <bruno@clisp.org>
990
991         Tests for module 'localeconv'.
992         * modules/localeconv-tests: New file.
993         * tests/test-localeconv.c: New file.
994
995         New module 'localeconv'.
996         * lib/locale.in.h (localeconv): New declaration.
997         * lib/localeconv.c: New file.
998         * m4/localeconv.m4: New file.
999         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1000         REPLACE_LOCALECONV.
1001         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1002         REPLACE_LOCALECONV.
1003         * modules/localeconv: New file.
1004         * modules/nl_langinfo (Depends-on): Add localeconv.
1005         * modules/human (Depends-on): Likewise.
1006         * doc/posix-functions/localeconv.texi: Mention the new module.
1007
1008 2012-03-25  Bruno Haible  <bruno@clisp.org>
1009
1010         locale: Provide a complete 'struct lconv'.
1011         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1012         'struct lconv' does not contain int_p_cs_precedes.
1013         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1014         * doc/posix-headers/locale.texi: Update.
1015
1016         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1017         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1018         * doc/posix-headers/locale.texi: Update.
1019
1020         locale: Provide a working 'struct lconv'.
1021         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1022         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1023         'struct lconv' does not even contain decimal_point.
1024         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1025         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1026         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1027         * doc/posix-headers/locale.texi: Mention the problems with
1028         'struct lconv'.
1029         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1030
1031 2012-03-24  Bruno Haible  <bruno@clisp.org>
1032
1033         Enable common subexpression optimization in GCC.
1034         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1035         macros.
1036         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1037         GCC attribute 'const'.
1038         (uc_locale_language): Declare with GCC attribute 'pure'.
1039         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1040         with GCC attribute 'const'.
1041         * lib/unictype.in.h (uc_is_general_category_withtable,
1042         uc_combining_class, uc_combining_class_name,
1043         uc_combining_class_long_name, uc_bidi_class_name,
1044         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1045         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1046         uc_decimal_value, uc_digit_value, uc_numeric_value,
1047         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1048         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1049         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1050         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1051         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1052         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1053         Declare with GCC attribute 'const'.
1054         (uc_general_category_name, uc_general_category_long_name,
1055         uc_general_category_byname, uc_general_category,
1056         uc_is_general_category, uc_combining_class_byname,
1057         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1058         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1059         Declare with GCC attribute 'pure'.
1060         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1061         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1062         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1063         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1064         with GCC attribute 'pure'.
1065         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1066         'const'.
1067         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1068         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1069         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1070         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1071         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1072         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1073         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1074         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1075         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1076         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1077         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1078         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1079         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1080         GCC attribute 'pure'.
1081         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1082         'const'.
1083         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1084         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1085         u32_strwidth): Declare with GCC attribute 'pure'.
1086
1087         Enable common subexpression optimization in GCC.
1088         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1089         (alphasort): Declare with GCC attribute 'pure'.
1090         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1091         (atoll): Declare with GCC attribute 'pure'.
1092         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1093         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1094         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1095         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1096         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1097         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1098         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1099
1100 2012-03-24  Bruno Haible  <bruno@clisp.org>
1101
1102         gnulib-tool: Avoid unintended error output from 'cmp'.
1103         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1104         "cmp -s", not "cmp > /dev/null".
1105
1106 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1107
1108         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1109
1110         It's not just Automake versions < 1.9b that creates an empty
1111         pkgdatadir at installation time if pkgdata_DATA is specified
1112         to empty; modern automake versions do this as well, at least
1113         until automake 1.11.4 (not yet released at the moment of writing,
1114         but soon to appear).  That behaviour was generally considered a
1115         feature rather than a bug, at least until this discussion:
1116         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1117
1118         See also automake bugs #10997 and #11030.
1119
1120         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1121         reference to relevant automake bug numbers.
1122         (func_emit_tests_Makefile_am): Likewise.
1123
1124 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1125
1126         announce-gen: use Digest::SHA when possible
1127         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1128         back to Digest::SHA1 if necessary.
1129
1130 2012-03-20  Jim Meyering  <meyering@redhat.com>
1131
1132         tests: avoid gcc warnings about argv vs. const initializers
1133         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1134         warnings about discarding 'const' qualifier from pointer target type.
1135         * tests/test-posix_spawn2.c (main): Likewise.
1136
1137 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1138
1139         README-release: simplify slightly
1140         * top/README-release: Run "git checkout master" only once.
1141
1142 2012-03-15  Mark Wielaard  <mark@klomp.org>
1143
1144         git-merge-changelog: add specific example on how to use with hg.
1145         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1146
1147 2012-03-18  Mark Wielaard  <mark@klomp.org>
1148
1149         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1150
1151 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1152
1153         git-version-gen: don't let "prefix" envvar cause trouble
1154         * build-aux/git-version-gen (prefix): Initialize properly,
1155         so as not to use a value specified via the environment.
1156         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1157
1158 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1159
1160         regex: diagnose too-large repeat counts in EREs
1161         Previously, the code did not diagnose the too-large repeat count
1162         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1163         as if it were 'b\{1000000000}', which is unexpected.
1164         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1165         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1166         is a reasonable one for this problem.  Another option would be to
1167         create a new REG_OVERFLOW error for repeat counts that are too large.
1168         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1169         count is too large, so that the caller can distinguish the two cases.
1170         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1171         "Too large" return code, and that repeat counts are one example of this.
1172
1173 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1174
1175         doc: some glibc x32 integer width issues
1176         * doc/posix-headers/sys_types.texi (sys/types.h):
1177         * doc/posix-headers/time.texi (time.h):
1178         Mention that glibc x32 does not conform to POSIX in a couple of
1179         areas related to integer widths.
1180
1181 2012-03-15  Bruno Haible  <bruno@clisp.org>
1182
1183         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1184         * lib/fma.c (VOLATILE): New macro.
1185         (FUNC): Use it to work around a GCC compiler bug.
1186
1187 2012-03-13  Bruno Haible  <bruno@clisp.org>
1188
1189         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1190         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1191         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1192         REPLACE_HYPOTL to 1.
1193         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1194
1195 2012-03-13  Bruno Haible  <bruno@clisp.org>
1196
1197         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1198         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1199         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1200         REPLACE_REMAINDERL to 1.
1201         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1202         bug.
1203
1204 2012-03-13  Bruno Haible  <bruno@clisp.org>
1205
1206         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1207         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1208         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1209         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1210         too big rounding errors.
1211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1212         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1213         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1214         (Depends-on): Update conditions.
1215         * tests/test-sqrtl.c (my_ldexpl): New function.
1216         (main): Add test of a particular value.
1217         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1218
1219 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1220
1221         doc: Update timer_* platform portability notes.
1222         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1223         that always return ENOSYS.
1224         * doc/posix-functions/timer_delete.texi: Likewise.
1225         * doc/posix-functions/timer_gettime.texi: Likewise.
1226         * doc/posix-functions/timer_settime.texi: Likewise.
1227
1228 2012-03-13  Bruno Haible  <bruno@clisp.org>
1229
1230         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1231         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1232         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1233         REPLACE_CBRTL to 1.
1234         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1235
1236 2012-03-13  Bruno Haible  <bruno@clisp.org>
1237
1238         remainderl: Avoid compilation error on AIX >= 5.2.
1239         * lib/math.in.h (remainderl): Undefine macro from the system header.
1240
1241 2012-03-13  Bruno Haible  <bruno@clisp.org>
1242
1243         Avoid compilation errors with MSVC option -fp:strict.
1244         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1245         * lib/cbrtf.c: Likewise.
1246         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1247
1248 2012-03-12  Bruno Haible  <bruno@clisp.org>
1249
1250         uninorm: Don't crash in out-of-memory conditions.
1251         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1252         gracefully.
1253         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1254         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1255
1256 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1257
1258         quote: fix syntax-check
1259         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1260         also exports quote_quoting_options.
1261
1262 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1263
1264         Collapse list of copyright years to ranges.  See
1265         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1266         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1267         build-aux/csharpexec.sh.in, build-aux/gnupload,
1268         build-aux/install-reloc, build-aux/javacomp.sh.in,
1269         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1270         build-aux/move-if-change, build-aux/reloc-ldflags,
1271         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1272
1273 2012-03-11  Bruno Haible  <bruno@clisp.org>
1274
1275         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1276         * m4/log2f-ieee.m4: New file.
1277         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1278         whether log2f works with a minus zero argument. Replace it if not.
1279         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1280         (Depends-on): Add log2-ieee.
1281         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1282         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1283
1284         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1285         * m4/log2-ieee.m4: New file.
1286         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1287         whether log2 works with a minus zero argument. Replace it if not.
1288         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1289         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1290         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1291
1292         Tests for module 'log2l-ieee'.
1293         * modules/log2l-ieee-tests: New file.
1294         * tests/test-log2l-ieee.c: New file.
1295
1296         New module 'log2l-ieee'.
1297         * modules/log2l-ieee: New file.
1298
1299         Tests for module 'log2-ieee'.
1300         * modules/log2-ieee-tests: New file.
1301         * tests/test-log2-ieee.c: New file.
1302
1303         New module 'log2-ieee'.
1304         * modules/log2-ieee: New file.
1305
1306         Tests for module 'log2f-ieee'.
1307         * modules/log2f-ieee-tests: New file.
1308         * tests/test-log2f-ieee.c: New file.
1309         * tests/test-log2-ieee.h: New file.
1310
1311         New module 'log2f-ieee'.
1312         * modules/log2f-ieee: New file.
1313
1314 2012-03-11  Bruno Haible  <bruno@clisp.org>
1315
1316         Tests for module 'log2l'.
1317         * modules/log2l-tests: New file.
1318         * tests/test-log2l.c: New file.
1319
1320         New module 'log2l'.
1321         * lib/math.in.h (log2l): New declaration.
1322         * lib/log2l.c: New file.
1323         * m4/log2l.m4: New file.
1324         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1326         REPLACE_LOG2L.
1327         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1328         REPLACE_LOG2L.
1329         * modules/log2l: New file.
1330         * tests/test-math-c++.cc: Check the declaration of log2l.
1331         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1332         and OSF/1 problems.
1333
1334 2012-03-11  Bruno Haible  <bruno@clisp.org>
1335
1336         Tests for module 'log2f'.
1337         * modules/log2f-tests: New file.
1338         * tests/test-log2f.c: New file.
1339
1340         New module 'log2f'.
1341         * lib/math.in.h (log2f): New declaration.
1342         * lib/log2f.c: New file.
1343         * m4/log2f.m4: New file.
1344         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1346         REPLACE_LOG2F.
1347         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1348         REPLACE_LOG2F.
1349         * modules/log2f: New file.
1350         * tests/test-math-c++.cc: Check the declaration of log2f.
1351         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1352         and OSF/1 and Cygwin problems.
1353
1354 2012-03-11  Bruno Haible  <bruno@clisp.org>
1355
1356         Tests for module 'log2'.
1357         * modules/log2-tests: New file.
1358         * tests/test-log2.c: New file.
1359         * tests/test-log2.h: New file.
1360
1361         New module 'log2'.
1362         * lib/math.in.h (log2): New declaration.
1363         * lib/log2.c: New file.
1364         * m4/log2.m4: New file.
1365         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1366         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1367         REPLACE_LOG2.
1368         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1369         REPLACE_LOG2.
1370         * modules/log2: New file.
1371         * tests/test-math-c++.cc: Check the declaration of log2.
1372         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1373         and OSF/1 and Cygwin problems.
1374
1375 2012-03-11  Bruno Haible  <bruno@clisp.org>
1376
1377         exp2* tests: More tests.
1378         * tests/test-exp2.h (test_function): Test all integral arguments that
1379         don't need to overflow or denormalized numbers.
1380         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1381         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1382         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1383
1384 2012-03-10  Bruno Haible  <bruno@clisp.org>
1385
1386         log1pl-ieee: Work around test failure on AIX 7.1.
1387         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1388
1389         log1pl-ieee: Work around test failure on IRIX 6.5.
1390         * m4/log1pl-ieee.m4: New file.
1391         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1392         test whether log1pl works with a minus zero argument. Replace it if
1393         not.
1394         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1396         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1397         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1398         (Depends-on): Update conditions.
1399         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1400         m4/signbit.m4.
1401         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1402         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1403
1404         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1405         * m4/log1pf-ieee.m4: New file.
1406         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1407         test whether log1pf works with a minus zero argument. Replace it if
1408         not.
1409         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1410         m4/signbit.m4.
1411         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1412         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1413
1414         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1415         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1416         (configure.ac): Require gl_FUNC_LOG1PF.
1417
1418         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1419         * m4/log1p-ieee.m4: New file.
1420         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1421         whether log1p works with a minus zero argument. Replace it if not.
1422         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1424         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1425         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1426         (Depends-on): Update conditions.
1427         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1428         m4/signbit.m4.
1429         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1430         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1431
1432         Tests for module 'log1pl-ieee'.
1433         * modules/log1pl-ieee-tests: New file.
1434         * tests/test-log1pl-ieee.c: New file.
1435
1436         New module 'log1pl-ieee'.
1437         * modules/log1pl-ieee: New file.
1438
1439         Tests for module 'log1p-ieee'.
1440         * modules/log1p-ieee-tests: New file.
1441         * tests/test-log1p-ieee.c: New file.
1442
1443         New module 'log1p-ieee'.
1444         * modules/log1p-ieee: New file.
1445
1446         Tests for module 'log1pf-ieee'.
1447         * modules/log1pf-ieee-tests: New file.
1448         * tests/test-log1pf-ieee.c: New file.
1449         * tests/test-log1p-ieee.h: New file.
1450
1451         New module 'log1pf-ieee'.
1452         * modules/log1pf-ieee: New file.
1453
1454 2012-03-10  Bruno Haible  <bruno@clisp.org>
1455
1456         Tests for module 'log1pl'.
1457         * modules/log1pl-tests: New file.
1458         * tests/test-log1pl.c: New file.
1459
1460         New module 'log1pl'.
1461         * lib/math.in.h (log1pl): New declaration.
1462         * lib/log1pl.c: New file.
1463         * m4/log1pl.m4: New file.
1464         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1465         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1466         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1467         * modules/log1pl: New file.
1468         * tests/test-math-c++.cc: Check the declaration of log1pl.
1469         * doc/posix-functions/log1pl.texi: Mention the new module.
1470
1471 2012-03-10  Bruno Haible  <bruno@clisp.org>
1472
1473         Tests for module 'log1pf'.
1474         * modules/log1pf-tests: New file.
1475         * tests/test-log1pf.c: New file.
1476
1477         New module 'log1pf'.
1478         * lib/math.in.h (log1pf): New declaration.
1479         * lib/log1pf.c: New file.
1480         * m4/log1pf.m4: New file.
1481         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1482         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1483         REPLACE_LOG1PF.
1484         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1485         REPLACE_LOG1PF.
1486         * modules/log1pf: New file.
1487         * tests/test-math-c++.cc: Check the declaration of log1pf.
1488         * doc/posix-functions/log1pf.texi: Mention the new module.
1489
1490 2012-03-10  Bruno Haible  <bruno@clisp.org>
1491
1492         log1p tests: More tests.
1493         * tests/test-log1p.h: New file.
1494         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1495         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1496         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1497         (main): Invoke test_function.
1498
1499         log1p: Provide replacement for Minix and MSVC.
1500         * lib/math.in.h (log1p): New declaration.
1501         * lib/log1p.c: New file.
1502         * m4/log1p.m4: New file.
1503         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1505         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1506         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1507         (Depends-on): Add math, isnand, log, round.
1508         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1509         HAVE_LOG1P is 0.
1510         * tests/test-math-c++.cc: Check the declaration of log1p.
1511         * doc/posix-functions/log1p.texi: Mention the replacement.
1512
1513 2012-03-10  Bruno Haible  <bruno@clisp.org>
1514
1515         math tests: Small simplification.
1516         * tests/test-exp.h (test_function): Use the same err_bound for
1517         'double' on platforms with sizeof (long double) == sizeof (double)
1518         than on platforms with sizeof (long double) > sizeof (double).
1519         * tests/test-exp2.h (test_function): Likewise.
1520         * tests/test-expm1.h (test_function): Likewise.
1521         * tests/test-log.h (test_function): Likewise.
1522
1523 2012-03-10  Bruno Haible  <bruno@clisp.org>
1524
1525         Fix some comments.
1526         * lib/expl.c: Fix an ambiguous comment.
1527         * lib/expm1.c: Likewise.
1528         * lib/expm1l.c: Likewise.
1529         * lib/exp2.c: Likewise.
1530         * lib/exp2l.c: Likewise.
1531
1532 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1533
1534         regex: allow inclusion of <regex.h> before <limits.h>
1535         Without this patch, portable programs had to include <limits.h> before
1536         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1537         I ran into this problem with a test version of GNU grep on Solaris 8.
1538         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1539         This is done conditionally so that this change can be merged
1540         back to glibc.
1541         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1542         using the included regex.
1543
1544         fts: depend on fdopendir
1545         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1546         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1547         problem was introduced when fdopendir was split out.
1548
1549 2012-03-10  Bruno Haible  <bruno@clisp.org>
1550
1551         Remove unused variables.
1552         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1553         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1554
1555 2012-03-10  Bruno Haible  <bruno@clisp.org>
1556
1557         isnanf-nolibm: Fix last commit.
1558         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1559
1560         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1561         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1562
1563 2012-03-10  Bruno Haible  <bruno@clisp.org>
1564
1565         logf-ieee: Work around test failure on NetBSD 5.1.
1566         * m4/logf-ieee.m4: New file.
1567         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1568         whether logf works with a negative argument. Replace it if not.
1569         * lib/logf.c (logf): For negative arguments, return NaN.
1570         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1571         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1572         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1573
1574         logf-ieee: Work around test failure on Solaris 9.
1575         * modules/logf-ieee (Depends-on): Add log-ieee.
1576         (configure.ac): Require gl_FUNC_LOGF.
1577
1578         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1579         * m4/log-ieee.m4: New file.
1580         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1581         log works with a negative argument. Replace it if not.
1582         * lib/log.c (log): For negative arguments, return NaN.
1583         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1584         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1585         * doc/posix-functions/log.texi: Mention the log-ieee module.
1586
1587         Tests for module 'logl-ieee'.
1588         * modules/logl-ieee-tests: New file.
1589         * tests/test-logl-ieee.c: New file.
1590
1591         New module 'logl-ieee'.
1592         * modules/logl-ieee: New file.
1593
1594         Tests for module 'log-ieee'.
1595         * modules/log-ieee-tests: New file.
1596         * tests/test-log-ieee.c: New file.
1597
1598         New module 'log-ieee'.
1599         * modules/log-ieee: New file.
1600
1601         Tests for module 'logf-ieee'.
1602         * modules/logf-ieee-tests: New file.
1603         * tests/test-logf-ieee.c: New file.
1604         * tests/test-log-ieee.h: New file.
1605
1606         New module 'logf-ieee'.
1607         * modules/logf-ieee: New file.
1608
1609 2012-03-10  Bruno Haible  <bruno@clisp.org>
1610
1611         log: Fix bug introduced on 2012-03-09.
1612         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1613
1614 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1615
1616         timer-time: link explicitly with pthreads on glibc
1617         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1618         to support static linking, when newer glibc is
1619         detected, as that contains pthread emulation of
1620         POSIX timer functions where required.
1621         * modules/timer-time: Depend on threadlib to
1622         pull in the appropriate library to link.
1623
1624 2012-03-10  Bruno Haible  <bruno@clisp.org>
1625
1626         log* tests: More tests.
1627         * tests/test-log.h: New file.
1628         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1629         (main): Invoke test_function.
1630         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1631         (main): Invoke test_function.
1632         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1633         (main): Invoke test_function.
1634         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1635         tests/randomd.c.
1636         (Makefile.am): Add randomd.c to test_log_SOURCES.
1637         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1638         tests/randomf.c.
1639         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1640         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1641         tests/randoml.c.
1642         (Depends-on): Add 'float'.
1643         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1644
1645 2012-03-09  Bruno Haible  <bruno@clisp.org>
1646
1647         logl: Work around OSF/1 5.1 bug.
1648         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1649         * lib/logl.c (logl): If logl exists, use it and provide just the
1650         workaround.
1651         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1652         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1654         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1655         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1656         (Depends-on): Update conditions.
1657         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1658
1659 2012-03-09  Bruno Haible  <bruno@clisp.org>
1660
1661         logf: Work around OSF/1 5.1 bug.
1662         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1663         * lib/logf.c (logf): If logf exists, use it and provide just the
1664         workaround.
1665         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1666         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1667         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1668         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1669         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1670         (Depends-on): Update conditions.
1671         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1672
1673 2012-03-09  Bruno Haible  <bruno@clisp.org>
1674
1675         log: Work around OSF/1 5.1 bug.
1676         * lib/math.in.h (log): New declaration.
1677         * lib/log.c: New file.
1678         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1679         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1680         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1682         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1683         * modules/log (Files): Add lib/log.c.
1684         (Depends-on): Add math.
1685         (configure.ac): If REPLACE_LOG is 1, compile an override.
1686         * tests/test-math-c++.cc: Check the declaration of log.
1687         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1688
1689 2012-03-09  Jim Meyering  <meyering@redhat.com>
1690
1691         readtokens.c: adjust wording in a comment
1692         * lib/readtokens.c: Insert omitted "that" in a comment.
1693
1694 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1695
1696         modechange: add notations +40, 00440, etc.
1697         * lib/modechange.c (mode_compile): Support new notations
1698         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1699
1700 2012-03-08  Bruno Haible  <bruno@clisp.org>
1701
1702         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1703         * m4/exp2l-ieee.m4: New file.
1704         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1705         test whether exp2l works with a NaN argument and with a negative
1706         infinity argument. Replace it if not.
1707         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1709         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1710         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1711         (Depends-on): Update conditions.
1712         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1713         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1714         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1715
1716         Tests for module 'exp2l-ieee'.
1717         * modules/exp2l-ieee-tests: New file.
1718         * tests/test-exp2l-ieee.c: New file.
1719
1720         New module 'exp2l-ieee'.
1721         * modules/exp2l-ieee: New file.
1722
1723         Tests for module 'exp2-ieee'.
1724         * modules/exp2-ieee-tests: New file.
1725         * tests/test-exp2-ieee.c: New file.
1726
1727         New module 'exp2-ieee'.
1728         * modules/exp2-ieee: New file.
1729
1730         Tests for module 'exp2f-ieee'.
1731         * modules/exp2f-ieee-tests: New file.
1732         * tests/test-exp2f-ieee.c: New file.
1733         * tests/test-exp2-ieee.h: New file.
1734
1735         New module 'exp2f-ieee'.
1736         * modules/exp2f-ieee: New file.
1737
1738 2012-03-08  Bruno Haible  <bruno@clisp.org>
1739
1740         Tests for module 'exp2l'.
1741         * modules/exp2l-tests: New file.
1742         * tests/test-exp2l.c: New file.
1743
1744         New module 'exp2l'.
1745         * lib/math.in.h (exp2l): New declaration.
1746         * lib/exp2l.c: New file.
1747         * lib/expl-table.c: New file, extracted from lib/expl.c.
1748         * lib/expl.c (gl_expl_table): New declaration.
1749         (expl): Remove expl_table. Update reference.
1750         * m4/exp2l.m4: New file.
1751         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1753         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1754         * modules/exp2l: New file.
1755         * modules/expl (Files): Add lib/expl-table.c.
1756         (configure.ac): Compile also expl-table.c.
1757         * tests/test-math-c++.cc: Check the declaration of exp2l.
1758         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1759         problem.
1760
1761 2012-03-08  Bruno Haible  <bruno@clisp.org>
1762
1763         Tests for module 'exp2f'.
1764         * modules/exp2f-tests: New file.
1765         * tests/test-exp2f.c: New file.
1766
1767         New module 'exp2f'.
1768         * lib/math.in.h (exp2f): New declaration.
1769         * lib/exp2f.c: New file.
1770         * m4/exp2f.m4: New file.
1771         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1772         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1773         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1774         * modules/exp2f: New file.
1775         * tests/test-math-c++.cc: Check the declaration of exp2f.
1776         * doc/posix-functions/exp2f.texi: Mention the new module and the
1777         IRIX problem.
1778
1779 2012-03-08  Bruno Haible  <bruno@clisp.org>
1780
1781         Tests for module 'exp2'.
1782         * modules/exp2-tests: New file.
1783         * tests/test-exp2.c: New file.
1784         * tests/test-exp2.h: New file.
1785
1786         New module 'exp2'.
1787         * lib/math.in.h (exp2): New declaration.
1788         * lib/exp2.c: New file.
1789         * m4/exp2.m4: New file.
1790         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1792         REPLACE_EXP2.
1793         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1794         REPLACE_EXP2.
1795         * modules/exp2: New file.
1796         * tests/test-math-c++.cc: Check the declaration of exp2.
1797         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1798         and OpenBSD problems.
1799
1800 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         savedir: fix comment typo
1803         * lib/savedir.c (savedirstream): Fix typo in comment.
1804
1805 2012-03-08  Bruno Haible  <bruno@clisp.org>
1806
1807         test-readtokens.c: use const; remove unwarranted cast
1808         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1809
1810 2012-03-08  Bruno Haible  <bruno@clisp.org>
1811
1812         fmal: Avoid compilation error on AIX.
1813         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1814         AIX 5.2..7.1.
1815
1816 2012-03-08  Bruno Haible  <bruno@clisp.org>
1817
1818         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1819         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1820         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1821         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1822         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1823         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1824         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1825
1826 2012-03-08  Bruno Haible  <bruno@clisp.org>
1827
1828         remainderf: Override buggy system function on IRIX 6.5.
1829         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1830         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1831         when it exists.
1832         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1833
1834 2012-03-08  Jim Meyering  <meyering@redhat.com>
1835
1836         test-readtokens.c: avoid const-related compilation warnings
1837         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1838
1839 2012-03-07  Jim Meyering  <meyering@redhat.com>
1840             Bruno Haible  <bruno@clisp.org>
1841
1842         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1843         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1844         tests/randomd.c.
1845         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1846         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1847         tests/randoml.c.
1848         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1849
1850 2012-03-07  Bruno Haible  <bruno@clisp.org>
1851
1852         expm1l: Avoid compilation error on AIX.
1853         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1854         AIX 5.2..7.1.
1855
1856 2012-03-07  Bruno Haible  <bruno@clisp.org>
1857
1858         expm1l: Don't override undeclared system function on IRIX 6.5.
1859         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1860         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1861         it exists. Set HAVE_DECL_EXPM1L.
1862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1863         HAVE_EXPM1L.
1864         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1865         HAVE_EXPM1L.
1866         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1867
1868 2012-03-07  Bruno Haible  <bruno@clisp.org>
1869
1870         remainderl: Don't override undeclared system function on IRIX 6.5.
1871         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1872         HAVE_REMAINDERL.
1873         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1874         declared when it exists. Set HAVE_DECL_REMAINDERL.
1875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1876         not HAVE_REMAINDERL.
1877         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1878         HAVE_REMAINDERL.
1879         * doc/posix-functions/remainderl.texi: Mention missing declaration
1880         problem.
1881
1882 2012-03-07  Bruno Haible  <bruno@clisp.org>
1883
1884         rintf: Don't override undeclared system function on IRIX 6.5.
1885         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1886         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1887         exists. Set HAVE_DECL_RINTF.
1888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1889         HAVE_RINTF.
1890         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1891         HAVE_RINTF.
1892         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1893
1894 2012-03-07  Bruno Haible  <bruno@clisp.org>
1895
1896         roundl: Avoid compilation error on AIX.
1897         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1898         AIX 5.2..7.1.
1899
1900 2012-03-07  Bruno Haible  <bruno@clisp.org>
1901
1902         roundl: Don't override undeclared system function on IRIX 6.5.
1903         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1904         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1905         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1906         * modules/roundl (configure.ac): For replacement code, test
1907         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1908         (Depends-on): Update conditions.
1909         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1910
1911 2012-03-07  Bruno Haible  <bruno@clisp.org>
1912
1913         roundf: Don't override undeclared system function on IRIX 6.5.
1914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1915         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1916         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1917         * modules/roundf (configure.ac): For replacement code, test
1918         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1919         (Depends-on): Update conditions.
1920         * modules/roundf-ieee (Depends-on): Update conditions.
1921         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1922
1923 2012-03-07  Bruno Haible  <bruno@clisp.org>
1924
1925         round: Don't override undeclared system function on IRIX 6.5.
1926         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1927         argument.
1928         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1929         also when it is not declared. Set HAVE_ROUND. For replacement code,
1930         test HAVE_ROUND, not HAVE_DECL_ROUND.
1931         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1932         not HAVE_DECL_ROUND.
1933         (Depends-on): Update conditions.
1934         * modules/round-ieee (Depends-on): Update conditions.
1935         * doc/posix-functions/round.texi: Mention the IRIX problem.
1936
1937 2012-03-07  Bruno Haible  <bruno@clisp.org>
1938
1939         copysignf: Don't override undeclared system function on IRIX 6.5.
1940         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1941         HAVE_COPYSIGNF.
1942         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1943         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1945         not HAVE_COPYSIGNF.
1946         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1947         HAVE_COPYSIGNF.
1948         * doc/posix-functions/copysignf.texi: Mention missing declaration
1949         problem.
1950
1951 2012-03-07  Jim Meyering  <meyering@redhat.com>
1952
1953         readtokens: add tests
1954         * modules/readtokens-tests: New file.
1955         * tests/test-readtokens.c: New file.
1956
1957 2012-03-07  Jim Meyering  <meyering@redhat.com>
1958
1959         quotearg: the module must now include quote.h
1960         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1961         So must the module.
1962         * modules/quotearg (Files): Add quote.h.
1963
1964 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1965
1966         readtokens: avoid core dumps with unusual calling patterns
1967         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1968         * lib/readtokens.c: Include limits.h.
1969         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1970         (readtoken): Don't cache the delimiters; the cache code was buggy
1971         if !delim && saved_delim, or if the new n_delim differs from the old.
1972         Also, it wasn't thread-safe.
1973
1974 2012-03-07  Bruno Haible  <bruno@clisp.org>
1975
1976         quote: Adhere to common module description layout.
1977         * modules/quote (Makefile.am): Add back empty section.
1978
1979 2012-03-06  Akim Demaille  <demaille@gostai.com>
1980
1981         quote: fuse into quotearg
1982         This patch is made for the benefit of Bison.
1983         quote does not leave the choice of the quoting style to the user.
1984         quoting_style provides poor customizability, yet quoting_options,
1985         which is very rich, is hidden inside quotearg.c.  So in order to
1986         allow quote customization, move its implementation to quotearg.c.
1987         * lib/quote.c: Remove.
1988         * modules/quote: Adjust.
1989         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1990         warning: provide all the members of literal structs.
1991         (quote_quoting_options): New.
1992         (quote, quote_n): Import implementation from quote.c.
1993         * lib/quote.h: Import the comments from quote.c.
1994         (quote_quoting_options): New.
1995
1996 2012-03-06  Bruno Haible  <bruno@clisp.org>
1997
1998         Tests for module 'expm1l-ieee'.
1999         * modules/expm1l-ieee-tests: New file.
2000         * tests/test-expm1l-ieee.c: New file.
2001
2002         New module 'expm1l-ieee'.
2003         * modules/expm1l-ieee: New file.
2004
2005         Tests for module 'expm1f-ieee'.
2006         * modules/expm1f-ieee-tests: New file.
2007         * tests/test-expm1f-ieee.c: New file.
2008
2009         New module 'expm1f-ieee'.
2010         * modules/expm1f-ieee: New file.
2011
2012         Tests for module 'expm1-ieee'.
2013         * modules/expm1-ieee-tests: New file.
2014         * tests/test-expm1-ieee.c: New file.
2015         * tests/test-expm1-ieee.h: New file.
2016
2017         New module 'expm1-ieee'.
2018         * modules/expm1-ieee: New file.
2019         * m4/expm1-ieee.m4: New file.
2020         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2021         whether expm1 works with a minus zero argument. Replace it if not.
2022         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2023         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2024         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2025         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2026         (Depends-on): Update conditions.
2027         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2028         AIX problem.
2029
2030 2012-03-06  Bruno Haible  <bruno@clisp.org>
2031
2032         Work around expm1f bug on IRIX 6.5.
2033         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2034         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2035         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2036         not work.
2037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2038         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2039         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2040         (Depends-on): Update conditions.
2041         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2042
2043 2012-03-06  Bruno Haible  <bruno@clisp.org>
2044
2045         Tests for module 'expm1l'.
2046         * modules/expm1l-tests: New file.
2047         * tests/test-expm1l.c: New file.
2048
2049         New module 'expm1l'.
2050         * lib/math.in.h (expm1l): New declaration.
2051         * lib/expm1l.c: New file.
2052         * m4/expm1l.m4: New file.
2053         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2055         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2056         * modules/expm1l: New file.
2057         * tests/test-math-c++.cc: Check the declaration of expm1l.
2058         * doc/posix-functions/expm1l.texi: Mention the new module.
2059
2060 2012-03-06  Bruno Haible  <bruno@clisp.org>
2061
2062         Tests for module 'expm1f'.
2063         * modules/expm1f-tests: New file.
2064         * tests/test-expm1f.c: New file.
2065
2066         New module 'expm1f'.
2067         * lib/math.in.h (expm1f): New declaration.
2068         * lib/expm1f.c: New file.
2069         * m4/expm1f.m4: New file.
2070         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2071         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2072         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2073         * modules/expm1f: New file.
2074         * tests/test-math-c++.cc: Check the declaration of expm1f.
2075         * doc/posix-functions/expm1f.texi: Mention the new module.
2076
2077 2012-03-06  Bruno Haible  <bruno@clisp.org>
2078
2079         Tests for module 'expm1'.
2080         * modules/expm1-tests: New file.
2081         * tests/test-expm1.c: New file.
2082         * tests/test-expm1.h: New file.
2083
2084         New module 'expm1'.
2085         * lib/math.in.h (expm1): New declaration.
2086         * lib/expm1.c: New file.
2087         * m4/expm1.m4: New file.
2088         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2090         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2091         * modules/expm1: New file.
2092         * tests/test-math-c++.cc: Check the declaration of expm1.
2093         * doc/posix-functions/expm1.texi: Mention the new module.
2094
2095 2012-03-06  Bruno Haible  <bruno@clisp.org>
2096
2097         math: Ensure declarations of math functions.
2098         * modules/acosf (Depends-on): Add 'extensions'.
2099         * modules/asinf (Depends-on): Likewise.
2100         * modules/atan2f (Depends-on): Likewise.
2101         * modules/atanf (Depends-on): Likewise.
2102         * modules/cbrt (Depends-on): Likewise.
2103         * modules/cbrtf (Depends-on): Likewise.
2104         * modules/cbrtl (Depends-on): Likewise.
2105         * modules/copysignf (Depends-on): Likewise.
2106         * modules/copysignl (Depends-on): Likewise.
2107         * modules/cosf (Depends-on): Likewise.
2108         * modules/coshf (Depends-on): Likewise.
2109         * modules/expf (Depends-on): Likewise.
2110         * modules/fabsf (Depends-on): Likewise.
2111         * modules/fabsl (Depends-on): Likewise.
2112         * modules/fmaf (Depends-on): Likewise.
2113         * modules/fmal (Depends-on): Likewise.
2114         * modules/fmodf (Depends-on): Likewise.
2115         * modules/fmodl (Depends-on): Likewise.
2116         * modules/frexpf (Depends-on): Likewise.
2117         * modules/frexpl (Depends-on): Likewise.
2118         * modules/hypot (Depends-on): Likewise.
2119         * modules/hypotf (Depends-on): Likewise.
2120         * modules/hypotl (Depends-on): Likewise.
2121         * modules/ldexpf (Depends-on): Likewise.
2122         * modules/ldexpl (Depends-on): Likewise.
2123         * modules/log10f (Depends-on): Likewise.
2124         * modules/log10l (Depends-on): Likewise.
2125         * modules/log1p (Depends-on): Likewise.
2126         * modules/logb (Depends-on): Likewise.
2127         * modules/logf (Depends-on): Likewise.
2128         * modules/modff (Depends-on): Likewise.
2129         * modules/modfl (Depends-on): Likewise.
2130         * modules/powf (Depends-on): Likewise.
2131         * modules/remainderf (Depends-on): Likewise.
2132         * modules/remainderl (Depends-on): Likewise.
2133         * modules/rintf (Depends-on): Likewise.
2134         * modules/rintl (Depends-on): Likewise.
2135         * modules/sinf (Depends-on): Likewise.
2136         * modules/sinhf (Depends-on): Likewise.
2137         * modules/sqrtf (Depends-on): Likewise.
2138         * modules/tanf (Depends-on): Likewise.
2139         * modules/tanhf (Depends-on): Likewise.
2140         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2141         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2142         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2143         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2144         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2145         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2146         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2147         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2148         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2149         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2150         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2151         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2152         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2153         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2154         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2155         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2156         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2157         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2158         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2159         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2160         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2161         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2162         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2163         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2164         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2165         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2166         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2167         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2168         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2169         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2170         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2171         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2172         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2173         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2174         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2175         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2176         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2177         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2178         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2179         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2180         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2181
2182 2012-03-06  Bruno Haible  <bruno@clisp.org>
2183
2184         math: Update module names in warnings.
2185         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2186         tanl): Use specific module name in warn-on-use warning.
2187
2188 2012-03-06  Bruno Haible  <bruno@clisp.org>
2189
2190         expl: Simplify computation.
2191         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2192
2193 2012-03-05  Bruno Haible  <bruno@clisp.org>
2194
2195         exp* tests: More tests.
2196         * tests/test-exp.h: New file.
2197         * tests/test-exp.c: Include <float.h> and test-exp.h.
2198         (main): Invoke test_function.
2199         * tests/test-expf.c: Include <float.h> and test-exp.h.
2200         (main): Invoke test_function.
2201         * tests/test-expl.c: Include <float.h> and test-exp.h.
2202         (main): Invoke test_function.
2203         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2204         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2205         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2206         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2207         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2208         (Depends-on): Add 'float'.
2209         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2210
2211         expl: Fix precision of computed result.
2212         * lib/expl.c: Completely rewritten.
2213         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2214         (Maintainer): Add me.
2215         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2216
2217 2012-03-05  Bruno Haible  <bruno@clisp.org>
2218
2219         cbrt* tests: More tests.
2220         * tests/test-cbrt.h: New file.
2221         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2222         (main): Invoke test_function.
2223         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2224         (main): Invoke test_function.
2225         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2226         (main): Invoke test_function.
2227         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2228         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2229         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2230         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2231         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2232         (Depends-on): Add 'float'.
2233         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2234
2235 2012-03-05  Bruno Haible  <bruno@clisp.org>
2236
2237         hypot* tests: More tests.
2238         * tests/test-hypot.h: New file, partially extracted from
2239         tests/test-hypotl.c.
2240         * tests/test-hypot.c: Include test-hypot.h.
2241         (main): Invoke test_function.
2242         * tests/test-hypotf.c: Include test-hypot.h.
2243         (main): Invoke test_function.
2244         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2245         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2246         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2247         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2248         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2249         tests/randomf.c.
2250         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2251         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2252         tests/randoml.c.
2253         (Depends-on): Add 'fpucw', 'float'.
2254         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2255
2256 2012-03-05  Bruno Haible  <bruno@clisp.org>
2257
2258         fpucw: Doc about FreeBSD.
2259         * lib/fpucw.h: Mention FreeBSD in comments.
2260
2261 2012-03-04  Bruno Haible  <bruno@clisp.org>
2262
2263         sqrt* tests: More tests.
2264         * tests/test-sqrt.h: New file.
2265         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2266         (main): Invoke test_function.
2267         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2268         (main): Invoke test_function.
2269         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2270         (main): Invoke test_function.
2271         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2272         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2273         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2274         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2275         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2276         (Depends-on): Add 'float'.
2277         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2278
2279 2012-03-04  Bruno Haible  <bruno@clisp.org>
2280
2281         remainder* tests: More tests.
2282         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2283         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2284         (main): Invoke test_function.
2285         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2286         (main): Invoke test_function.
2287         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2288         (main): Invoke test_function.
2289         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2290         tests/randomd.c.
2291         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2292         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2293         tests/randomf.c.
2294         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2295         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2296         tests/randoml.c.
2297         (Depends-on): Add 'float'.
2298         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2299
2300 2012-03-04  Bruno Haible  <bruno@clisp.org>
2301
2302         remainder, remainderf, remainderl: Fix computation for large quotients.
2303         * lib/remainder.c: Completely rewritten.
2304         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2305         USE_FLOAT.
2306         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2307         USE_LONG_DOUBLE.
2308         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2309         isnand, isinf. Remove round, fma.
2310         * modules/remainderf (Files): Add lib/remainder.c.
2311         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2312         Remove roundf, fmaf.
2313         * modules/remainderl (Files): Add lib/remainder.c.
2314         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2315         isinf. Remove roundl, fmal.
2316         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2317         REMAINDER_LIBM.
2318         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2319         REMAINDERF_LIBM.
2320         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2321         REMAINDERL_LIBM.
2322
2323 2012-03-04  Bruno Haible  <bruno@clisp.org>
2324
2325         fmod* tests: More tests.
2326         * tests/test-fmod.h (my_ldexp): New function.
2327         (test_function): Reduce amount of random numbers to test. Add tests
2328         of very large quotients x / y.
2329         * tests/test-fmod.c (MAX_EXP): New macro.
2330         * tests/test-fmodf.c (MAX_EXP): Likewise.
2331         * tests/test-fmodl.c (MAX_EXP): Likewise.
2332
2333 2012-03-04  Bruno Haible  <bruno@clisp.org>
2334
2335         fmod, fmodl: Fix computation for large quotients x / y.
2336         * lib/fmod.c: Completely rewritten.
2337         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2338         USE_LONG_DOUBLE.
2339         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2340         isnand. Remove fma.
2341         * modules/fmodl (Files): Add lib/fmod.c.
2342         (Depends-on): Add float, isfinite, signbit, fabsl,
2343         frexpl, ldexpl, isnanl. Remove fma.
2344         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2345         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2346
2347 2012-03-03  Bruno Haible  <bruno@clisp.org>
2348
2349         fmod* tests: More tests.
2350         * tests/test-fmod.h: New file.
2351         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2352         (main): Invoke test_function.
2353         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2354         (main): Invoke test_function.
2355         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2356         (main): Invoke test_function.
2357         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2358         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2359         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2360         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2361         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2362         (Depends-on): Add 'float'.
2363         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2364
2365 2012-03-03  Bruno Haible  <bruno@clisp.org>
2366
2367         rint* tests: More tests.
2368         * tests/test-rint.h: New file, partially extracted from
2369         tests/test-rintl.c.
2370         * tests/test-rint.c: Include test-rint.h.
2371         (main): Invoke test_function.
2372         * tests/test-rintf.c: Include test-rint.h.
2373         (main): Invoke test_function.
2374         * tests/test-rintl.c: Include test-rint.h.
2375         (main): Invoke test_function.
2376         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2377         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2378         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2379         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2380         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2381         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2382
2383 2012-03-03  Bruno Haible  <bruno@clisp.org>
2384
2385         modf* tests: More tests.
2386         * tests/test-modf.h: New file.
2387         * tests/test-modf.c: Include <float.h> and test-modf.h.
2388         (main): Invoke test_function.
2389         * tests/test-modff.c: Include <float.h> and test-modf.h.
2390         (main): Invoke test_function.
2391         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2392         (main): Invoke test_function.
2393         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2394         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2395         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2396         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2397         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2398         (Depends-on): Add 'float'.
2399         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2400
2401 2012-03-03  Bruno Haible  <bruno@clisp.org>
2402
2403         fabs* tests: More tests.
2404         * tests/test-fabs.h: New file, partially extracted from
2405         tests/test-fabsl.c.
2406         * tests/test-fabs.c (RANDOM): New macro.
2407         * tests/test-fabsf.c (RANDOM): New macro.
2408         * tests/test-fabsl.c (RANDOM): New macro.
2409         * modules/fabs-tests (Files): Add tests/randomd.c.
2410         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2411         * modules/fabsf-tests (Files): Add tests/randomf.c.
2412         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2413         * modules/fabsl-tests (Files): Add tests/randoml.c.
2414         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2415
2416 2012-03-03  Bruno Haible  <bruno@clisp.org>
2417
2418         ldexp* tests: More tests.
2419         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2420         * tests/test-ldexp.c (RANDOM): New macro.
2421         * tests/test-ldexpf.c (RANDOM): New macro.
2422         * tests/test-ldexpl.c (RANDOM): New macro.
2423         * modules/ldexp-tests (Files): Add tests/randomd.c.
2424         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2425         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2426         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2427         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2428         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2429
2430 2012-03-03  Bruno Haible  <bruno@clisp.org>
2431
2432         frexp* tests: More tests.
2433         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2434         * tests/test-frexp.c (RANDOM): New macro.
2435         * tests/test-frexpf.c (RANDOM): New macro.
2436         * tests/test-frexpl.c (RANDOM): New macro.
2437         * modules/frexp-tests (Files): Add tests/randomd.c.
2438         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2439         * modules/frexpf-tests (Files): Add tests/randomf.c.
2440         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2441         * modules/frexpl-tests (Files): Add tests/randoml.c.
2442         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2443
2444 2012-03-03  Bruno Haible  <bruno@clisp.org>
2445
2446         Support for pseudo-random numbers in tests.
2447         * tests/randomf.c: New file.
2448         * tests/randomd.c: New file.
2449         * tests/randoml.c: New file.
2450         * tests/macros.h (randomf, randomd, randoml): New declarations.
2451
2452 2012-03-03  Bruno Haible  <bruno@clisp.org>
2453
2454         frexp* tests: Refactor.
2455         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2456         * tests/test-frexp.c: Include and use it.
2457         * tests/test-frexpf.c: Likewise.
2458         * tests/test-frexpl.c: Likewise.
2459         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2460         * modules/frexpf-tests (Files): Likewise.
2461         * modules/frexpl-tests (Files): Likewise.
2462
2463 2012-03-02  Jim Meyering  <meyering@redhat.com>
2464
2465         maint: don't specify XZ_OPT=-9ev in dist-related rule
2466         Using xz's -9 option is warranted only if you have a very large
2467         tarball (see xz's documentation for the sizes vs. presets), and
2468         requires 64MiB of memory at decompression time.
2469         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2470         Automake's default of just "-e" is fine.  Override on a
2471         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2472
2473 2012-03-01  Eric Blake  <eblake@redhat.com>
2474
2475         maint.mk: allow announcement for non-gnulib project
2476         * maint.mk (announcement): Skip gnulib version if not used.
2477
2478 2012-03-01  Jim Meyering  <meyering@redhat.com>
2479
2480         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2481         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2482         envvar settings cannot interfere.  Otherwise, setting envvars like
2483         prohibit=foo require=bar, etc. would cause spurious test failures.
2484
2485 2012-03-01  Eric Blake  <eblake@redhat.com>
2486
2487         maint.mk: add per-line exclusions to prohibitions
2488         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2489         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2490         (sc_const_long_option): Use it.
2491
2492 2012-03-01  Bruno Haible  <bruno@clisp.org>
2493
2494         Tests for module 'expl-ieee'.
2495         * modules/expl-ieee-tests: New file.
2496         * tests/test-expl-ieee.c: New file.
2497
2498         New module 'expl-ieee'.
2499         * modules/expl-ieee: New file.
2500
2501         Tests for module 'exp-ieee'.
2502         * modules/exp-ieee-tests: New file.
2503         * tests/test-exp-ieee.c: New file.
2504
2505         New module 'exp-ieee'.
2506         * modules/exp-ieee: New file.
2507
2508         Tests for module 'expf-ieee'.
2509         * modules/expf-ieee-tests: New file.
2510         * tests/test-expf-ieee.c: New file.
2511         * tests/test-exp-ieee.h: New file.
2512
2513         New module 'expf-ieee'.
2514         * modules/expf-ieee: New file.
2515
2516 2012-02-29  Bruno Haible  <bruno@clisp.org>
2517
2518         cbrtl-ieee: Work around test failure on IRIX 6.5.
2519         * m4/cbrtl-ieee.m4: New file.
2520         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2521         test whether cbrtl works with a minus zero argument. Replace it if not.
2522         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2524         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2525         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2526         (Depends-on): Update conditions.
2527         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2528         m4/signbit.m4.
2529         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2530         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2531         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2532
2533         Tests for module 'cbrtl-ieee'.
2534         * modules/cbrtl-ieee-tests: New file.
2535         * tests/test-cbrtl-ieee.c: New file.
2536
2537         New module 'cbrtl-ieee'.
2538         * modules/cbrtl-ieee: New file.
2539
2540         Tests for module 'cbrt-ieee'.
2541         * modules/cbrt-ieee-tests: New file.
2542         * tests/test-cbrt-ieee.c: New file.
2543
2544         New module 'cbrt-ieee'.
2545         * modules/cbrt-ieee: New file.
2546
2547         Tests for module 'cbrtf-ieee'.
2548         * modules/cbrtf-ieee-tests: New file.
2549         * tests/test-cbrtf-ieee.c: New file.
2550         * tests/test-cbrt-ieee.h: New file.
2551
2552         New module 'cbrtf-ieee'.
2553         * modules/cbrtf-ieee: New file.
2554
2555 2012-02-29  Bruno Haible  <bruno@clisp.org>
2556
2557         cbrtf: Work around bug in IRIX 6.5 system function.
2558         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2559         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2560         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2561         work.
2562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2563         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2564         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2565         (Depends-on): Update conditions.
2566         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2567
2568 2012-02-29  Bruno Haible  <bruno@clisp.org>
2569
2570         Tests for module 'cbrtl'.
2571         * modules/cbrtl-tests: New file.
2572         * tests/test-cbrtl.c: New file.
2573
2574         New module 'cbrtl'.
2575         * lib/math.in.h (cbrtl): New declaration.
2576         * lib/cbrtl.c: New file.
2577         * m4/cbrtl.m4: New file.
2578         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2579         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2580         HAVE_DECL_CBRTL.
2581         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2582         HAVE_DECL_CBRTL.
2583         * modules/cbrtl: New file.
2584         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2585         * doc/posix-functions/cbrtl.texi: Mention the new module.
2586
2587 2012-02-29  Bruno Haible  <bruno@clisp.org>
2588
2589         Tests for module 'cbrtf'.
2590         * modules/cbrtf-tests: New file.
2591         * tests/test-cbrtf.c: New file.
2592
2593         New module 'cbrtf'.
2594         * lib/math.in.h (cbrtf): New declaration.
2595         * lib/cbrtf.c: New file.
2596         * m4/cbrtf.m4: New file.
2597         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2599         HAVE_DECL_CBRTF.
2600         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2601         HAVE_DECL_CBRTF.
2602         * modules/cbrtf: New file.
2603         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2604         * doc/posix-functions/cbrtf.texi: Mention the new module.
2605
2606 2012-02-29  Bruno Haible  <bruno@clisp.org>
2607
2608         cbrt: Provide replacement on MSVC and Minix.
2609         * lib/math.in.h (cbrt): New declaration.
2610         * lib/cbrt.c: New file.
2611         * m4/cbrt.m4: New file.
2612         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2613         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2614         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2615         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2616         (Depends-on): Add dependencies.
2617         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2618         * tests/test-math-c++.cc: Check the declaration of cbrt.
2619         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2620         replacement.
2621
2622 2012-02-29  Bruno Haible  <bruno@clisp.org>
2623
2624         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2625         * m4/hypotl-ieee.m4: New file.
2626         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2627         test whether hypotl works with mixed NaN and Infinity arguments.
2628         Replace it if not.
2629         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2631         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2632         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2633         (Depends-on): Update conditions.
2634         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2635         (Depends-on): Add hypot-ieee.
2636         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2637         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2638
2639         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2640         * m4/hypotf-ieee.m4: New file.
2641         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2642         test whether hypotf works with mixed NaN and Infinity arguments.
2643         Replace it if not.
2644         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2645         (Depends-on): Add hypot-ieee.
2646         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2647         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2648
2649         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2650         * lib/math.in.h (hypot): New declaration.
2651         * lib/hypot.c: New file.
2652         * m4/hypot-ieee.m4: New file.
2653         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2654         whether hypot works with mixed NaN and Infinity arguments. Replace it
2655         if not.
2656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2657         REPLACE_HYPOT.
2658         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2659         * modules/hypot (Files): Add lib/hypot.c.
2660         (Depends-on): Add dependencies.
2661         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2662         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2663         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2664         * tests/test-math-c++.cc: Check the declaration of hypot.
2665         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2666
2667         Tests for module 'hypotl-ieee'.
2668         * modules/hypotl-ieee-tests: New file.
2669         * tests/test-hypotl-ieee.c: New file.
2670
2671         New module 'hypotl-ieee'.
2672         * modules/hypotl-ieee: New file.
2673
2674         Tests for module 'hypot-ieee'.
2675         * modules/hypot-ieee-tests: New file.
2676         * tests/test-hypot-ieee.c: New file.
2677
2678         New module 'hypot-ieee'.
2679         * modules/hypot-ieee: New file.
2680
2681         Tests for module 'hypotf-ieee'.
2682         * modules/hypotf-ieee-tests: New file.
2683         * tests/test-hypotf-ieee.c: New file.
2684         * tests/test-hypot-ieee.h: New file.
2685
2686         New module 'hypotf-ieee'.
2687         * modules/hypotf-ieee: New file.
2688
2689 2012-02-29  Bruno Haible  <bruno@clisp.org>
2690
2691         Remove unused variables.
2692         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2693         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2694         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2695         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2696
2697 2012-02-29  Eric Blake  <eblake@redhat.com>
2698
2699         termios: fix pid_t always, not just for tcgetsid
2700         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2701         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2702         just when building tcgetsid.
2703
2704 2012-02-29  Bruno Haible  <bruno@clisp.org>
2705
2706         Tests for module 'hypotl'.
2707         * modules/hypotl-tests: New file.
2708         * tests/test-hypotl.c: New file.
2709
2710         New module 'hypotl'.
2711         * lib/math.in.h (hypotl): New declaration.
2712         * lib/hypotl.c: New file.
2713         * m4/hypotl.m4: New file.
2714         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2715         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2716         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2717         * modules/hypotl: New file.
2718         * tests/test-math-c++.cc: Check the hypotl declaration.
2719         * doc/posix-functions/hypotl.texi: Mention the new module.
2720
2721 2012-02-29  Eric Blake  <eblake@redhat.com>
2722
2723         tcgetsid: fix cygwin header bug
2724         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2725
2726         docs: update cygwin progress
2727         * doc/posix-functions/llround.texi (llround): Added in cygwin
2728         1.7.8.
2729         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2730         * doc/glibc-functions/program_invocation_name.texi
2731         (program_invocation_name): Likewise.
2732         * doc/glibc-functions/program_invocation_short_name.texi
2733         (program_invocation_short_name): Likewise.
2734         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2735         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2736         Likewise.
2737         * doc/posix-functions/pthread_spin_destroy.texi
2738         (pthread_spin_destroy): Added in cygwin 1.7.10.
2739         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2740         Likewise.
2741         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2742         Likewise.
2743         * doc/posix-functions/pthread_spin_trylock.texi
2744         (pthread_spin_trylock): Likewise.
2745         * doc/posix-functions/pthread_spin_unlock.texi
2746         (pthread_spin_unlock): Likewise.
2747         * doc/posix-functions/pthread_setschedprio.texi
2748         (pthread_setschedprio): Likewise.
2749         * doc/posix-functions/pthread_attr_getstack.texi
2750         (pthread_attr_getstack): Likewise.
2751         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2752         (pthread_attr_getstackaddr): Likewise.
2753         * doc/glibc-functions/pthread_getattr_np.texi
2754         (pthread_getattr_np): Likewise.
2755         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2756         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2757         * doc/posix-functions/clock_settime.texi (clock_settime):
2758         Likewise.
2759         * doc/posix-functions/pthread_attr_getguardsize.texi
2760         (pthread_attr_getguardsize): Likewise.
2761         * doc/posix-functions/pthread_attr_setguardsize.texi
2762         (pthread_attr_setguardsize): Likewise.
2763         * doc/posix-functions/pthread_attr_setstack.texi
2764         (pthread_attr_setstack): Likewise.
2765         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2766         (pthread_attr_setstackaddr): Likewise.
2767         * doc/posix-functions/clock_getcpuclockid.texi
2768         (clock_getcpuclockid): Likewise.
2769         * doc/posix-functions/pthread_getcpuclockid.texi
2770         (pthread_getcpuclockid): Likewise.
2771         * doc/glibc-functions/error.texi (error): Likewise.
2772         * doc/glibc-functions/error_at_line.texi (error_at_line):
2773         Likewise.
2774         * doc/glibc-functions/error_message_count.texi
2775         (error_message_count): Likewise.
2776         * doc/glibc-functions/error_one_per_line.texi
2777         (error_one_per_line): Likewise.
2778         * doc/glibc-functions/error_print_progname.texi
2779         (error_print_progname): Likewise.
2780         * doc/posix-functions/pthread_condattr_getclock.texi
2781         (pthread_condattr_getclock): Likewise.
2782         * doc/posix-functions/pthread_condattr_setclock.texi
2783         (pthread_condattr_setclock): Likewise.
2784         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2785         Likewise.
2786         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2787         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2788         * doc/glibc-functions/get_current_dir_name.texi
2789         (get_current_dir_name): Likewise.
2790         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2791         Likewise.
2792         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2793         wrong return type.
2794         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2795         1.7.11.
2796
2797 2012-02-29  Bruno Haible  <bruno@clisp.org>
2798
2799         Tests for module 'hypotf'.
2800         * modules/hypotf-tests: New file.
2801         * tests/test-hypotf.c: New file.
2802
2803         New module 'hypotf'.
2804         * lib/math.in.h (hypotf): New declaration.
2805         * lib/hypotf.c: New file.
2806         * m4/hypotf.m4: New file.
2807         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2809         REPLACE_HYPOTF.
2810         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2811         REPLACE_HYPOTF.
2812         * modules/hypotf: New file.
2813         * tests/test-math-c++.cc: Check the hypotf declaration.
2814         * doc/posix-functions/hypotf.texi: Mention the new module.
2815
2816         hypot: Prepare for hypotf module.
2817         * m4/hypot.m4: New file.
2818         * modules/hypot (Files): Add m4/hypot.m4.
2819         (configure.ac): Invoke gl_FUNC_HYPOT.
2820
2821 2012-02-29  Bruno Haible  <bruno@clisp.org>
2822
2823         hypot tests: More tests.
2824         * tests/test-hypot.c: Include <float.h>.
2825         (main): Add tests about overflow and underflow.
2826
2827 2012-02-29  Bruno Haible  <bruno@clisp.org>
2828
2829         math code: Add comments.
2830         * lib/acosl.c: Add comment about related glibc source files.
2831         * lib/asinl.c: Likewise.
2832         * lib/atanl.c: Likewise.
2833         * lib/expl.c: Likewise.
2834         * lib/logl.c: Likewise.
2835         * lib/sincosl.c: Likewise.
2836         * lib/sinl.c: Likewise.
2837         * lib/tanl.c: Likewise.
2838         * lib/trigl.c: Likewise.
2839         * lib/cosl.c: Likewise. Fix comments.
2840
2841 2012-02-28  Bruno Haible  <bruno@clisp.org>
2842
2843         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2844         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2845         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2846         HUGE_VALL are defined.
2847         (numeric_equald): Renamed from numeric_equal.
2848         (numeric_equalf, numeric_equall): New functions.
2849         (main): Check also HUGE_VALF, HUGE_VALL.
2850         * modules/math-tests (Files): Add tests/macros.h.
2851         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2852         HUGE_VALL.
2853
2854 2012-02-28  Bruno Haible  <bruno@clisp.org>
2855
2856         doc: Move ISO C11 feature notes into POSIX chapters.
2857         * doc/posix-functions/aligned_alloc.texi: Renamed from
2858         doc/glibc-functions/aligned_alloc.texi.
2859         * doc/posix-functions/quick_exit.texi: Renamed from
2860         doc/glibc-functions/quick_exit.texi.
2861         * doc/posix-headers/uchar.texi: Renamed from
2862         doc/glibc-headers/uchar.texi.
2863         * doc/posix-functions/c16rtomb.texi: Renamed from
2864         doc/glibc-functions/c16rtomb.texi.
2865         * doc/posix-functions/c32rtomb.texi: Renamed from
2866         doc/glibc-functions/c32rtomb.texi.
2867         * doc/posix-functions/mbrtoc16.texi: Renamed from
2868         doc/glibc-functions/mbrtoc16.texi.
2869         * doc/posix-functions/mbrtoc32.texi: Renamed from
2870         doc/glibc-functions/mbrtoc32.texi.
2871         * doc/gnulib.texi: Update.
2872         (Glibc uchar.h): Remove section.
2873         Suggested by Eric Blake.
2874
2875 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2876
2877         stdnoreturn: port to MSVC better
2878         MSVC standard headers use __declspec(noreturn), so #define noreturn
2879         to empty on that platform.  Reported by Bruno Haible in
2880         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2881         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2882         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2883
2884 2012-02-28  Bruno Haible  <bruno@clisp.org>
2885
2886         doc: Mention new glibc headers and functions.
2887         * doc/glibc-headers/uchar.texi: New file.
2888         * doc/glibc-functions/aligned_alloc.texi: New file.
2889         * doc/glibc-functions/c16rtomb.texi: New file.
2890         * doc/glibc-functions/c32rtomb.texi: New file.
2891         * doc/glibc-functions/clock_adjtime.texi: New file.
2892         * doc/glibc-functions/fanotify_init.texi: New file.
2893         * doc/glibc-functions/fanotify_mark.texi: New file.
2894         * doc/glibc-functions/inet6_opt_append.texi: New file.
2895         * doc/glibc-functions/inet6_opt_find.texi: New file.
2896         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2897         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2898         * doc/glibc-functions/inet6_opt_init.texi: New file.
2899         * doc/glibc-functions/inet6_opt_next.texi: New file.
2900         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2901         * doc/glibc-functions/inet6_rth_add.texi: New file.
2902         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2903         * doc/glibc-functions/inet6_rth_init.texi: New file.
2904         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2905         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2906         * doc/glibc-functions/inet6_rth_space.texi: New file.
2907         * doc/glibc-functions/login.texi: New file.
2908         * doc/glibc-functions/mbrtoc16.texi: New file.
2909         * doc/glibc-functions/mbrtoc32.texi: New file.
2910         * doc/glibc-functions/name_to_handle_at.texi: New file.
2911         * doc/glibc-functions/ntp_gettimex.texi: New file.
2912         * doc/glibc-functions/open_by_handle_at.texi: New file.
2913         * doc/glibc-functions/prlimit.texi: New file.
2914         * doc/glibc-functions/process_vm_readv.texi: New file.
2915         * doc/glibc-functions/process_vm_writev.texi: New file.
2916         * doc/glibc-functions/recvmmsg.texi: New file.
2917         * doc/glibc-functions/scandirat.texi: New file.
2918         * doc/glibc-functions/sendmmsg.texi: New file.
2919         * doc/glibc-functions/setns.texi: New file.
2920         * doc/glibc-functions/timespec_get.texi: New file.
2921         * doc/gnulib.texi: Include them.
2922         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2923         sections.
2924         Reported by Eric Blake.
2925
2926 2012-02-28  Bruno Haible  <bruno@clisp.org>
2927
2928         Avoid compilation errors with MSVC option -fp:strict.
2929         * lib/floor.c: Use MSVC specific pragma fenv_access.
2930         * lib/ceil.c: Likewise.
2931         * lib/trunc.c: Likewise.
2932         * lib/round.c: Likewise.
2933         * lib/rint.c: Likewise.
2934         * lib/fma.c: Likewise.
2935         * lib/integer_length.c: Likewise.
2936         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2938         * tests/test-floor2.c: Likewise.
2939         * tests/test-floorf2.c: Likewise.
2940         * tests/test-ceil2.c: Likewise.
2941         * tests/test-ceilf2.c: Likewise.
2942         * tests/test-trunc2.c: Likewise.
2943         * tests/test-truncf2.c: Likewise.
2944         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2945
2946 2012-02-27  Bruno Haible  <bruno@clisp.org>
2947
2948         Tests for module 'sqrtl-ieee'.
2949         * modules/sqrtl-ieee-tests: New file.
2950         * tests/test-sqrtl-ieee.c: New file.
2951
2952         New module 'sqrtl-ieee'.
2953         * modules/sqrtl-ieee: New file.
2954
2955         Tests for module 'sqrt-ieee'.
2956         * modules/sqrt-ieee-tests: New file.
2957         * tests/test-sqrt-ieee.c: New file.
2958
2959         New module 'sqrt-ieee'.
2960         * modules/sqrt-ieee: New file.
2961
2962         Tests for module 'sqrtf-ieee'.
2963         * modules/sqrtf-ieee-tests: New file.
2964         * tests/test-sqrtf-ieee.c: New file.
2965         * tests/test-sqrt-ieee.h: New file.
2966
2967         New module 'sqrtf-ieee'.
2968         * modules/sqrtf-ieee: New file.
2969
2970 2012-02-27  Bruno Haible  <bruno@clisp.org>
2971
2972         remainderl-ieee: Work around test failure on OSF/1.
2973         * m4/remainderl-ieee.m4: New file.
2974         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2975         present, test whether remainderl works with a zero second argument.
2976         Replace it if not.
2977         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2979         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2980         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2981         (Depends-on): Update conditions.
2982         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2983         (Depends-on): Add remainder-ieee.
2984         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2985         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2986         module.
2987
2988         remainderf-ieee: Work around test failure on OSF/1.
2989         * m4/remainderf-ieee.m4: New file.
2990         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2991         present, test whether remainderf works with a zero second argument.
2992         Replace it if not.
2993         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2994         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2995         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2996         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2997         (Depends-on): Update conditions.
2998         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2999         (Depends-on): Add remainder-ieee.
3000         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3001         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3002         module.
3003
3004         remainder-ieee: Work around test failure on OSF/1.
3005         * m4/remainder-ieee.m4: New file.
3006         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3007         present, test whether remainder works with a zero second argument.
3008         Replace it if not.
3009         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3011         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3012         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3013         (Depends-on): Update dependencies.
3014         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3015         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3016         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3017
3018         Tests for module 'remainderl-ieee'.
3019         * modules/remainderl-ieee-tests: New file.
3020         * tests/test-remainderl-ieee.c: New file.
3021
3022         New module 'remainderl-ieee'.
3023         * modules/remainderl-ieee: New file.
3024
3025         Tests for module 'remainder-ieee'.
3026         * modules/remainder-ieee-tests: New file.
3027         * tests/test-remainder-ieee.c: New file.
3028
3029         New module 'remainder-ieee'.
3030         * modules/remainder-ieee: New file.
3031
3032         Tests for module 'remainderf-ieee'.
3033         * modules/remainderf-ieee-tests: New file.
3034         * tests/test-remainderf-ieee.c: New file.
3035         * tests/test-remainder-ieee.h: New file.
3036
3037         New module 'remainderf-ieee'.
3038         * modules/remainderf-ieee: New file.
3039
3040 2012-02-27  Bruno Haible  <bruno@clisp.org>
3041
3042         modff, modfl: Fix configure syntax error.
3043         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3044         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3045
3046 2012-02-27  Bruno Haible  <bruno@clisp.org>
3047
3048         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3049         * m4/fmodl-ieee.m4: New file.
3050         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3051         whether fmodl works with zero arguments. Replace it if not.
3052         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3053         (Depends-on): Add fmod-ieee.
3054         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3055         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3056
3057         fmodf-ieee: Work around test failure on OSF/1.
3058         * m4/fmodf-ieee.m4: New file.
3059         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3060         whether fmodf works with zero arguments. Replace it if not.
3061         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3062         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3063         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3064         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3065         (Depends-on): Update dependencies.
3066         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3067         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3068         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3069
3070         fmodf-ieee: Work around test failure on MSVC 9.
3071         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3072         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3073
3074         fmod-ieee: Work around test failures on OSF/1, mingw.
3075         * m4/fmod-ieee.m4: New file.
3076         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3077         whether fmod works with zero arguments. Replace it if not.
3078         * lib/math.in.h (fmod): New declaration.
3079         * lib/fmod.c: New file.
3080         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3081         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3082         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3083         * modules/fmod (Files): Add lib/fmod.c.
3084         (Depends-on): Add math, isinf, trunc, fma.
3085         (configure.ac): Arrange to compile lib/fmod.c if needed.
3086         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3087         m4/signbit.m4.
3088         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3089         * tests/test-math-c++.cc: Check the declaration of fmod.
3090         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3091
3092         fmodl-ieee: Fix test failures.
3093         * lib/fmodl.c (fmodl): Treat Inf specially.
3094         * modules/fmodl (Depends-on): Add isinf.
3095
3096         Tests for module 'fmodl-ieee'.
3097         * modules/fmodl-ieee-tests: New file.
3098         * tests/test-fmodl-ieee.c: New file.
3099
3100         New module 'fmodl-ieee'.
3101         * modules/fmodl-ieee: New file.
3102
3103         Tests for module 'fmod-ieee'.
3104         * modules/fmod-ieee-tests: New file.
3105         * tests/test-fmod-ieee.c: New file.
3106
3107         New module 'fmod-ieee'.
3108         * modules/fmod-ieee: New file.
3109
3110         Tests for module 'fmodf-ieee'.
3111         * modules/fmodf-ieee-tests: New file.
3112         * tests/test-fmodf-ieee.c: New file.
3113         * tests/test-fmod-ieee.h: New file.
3114
3115         New module 'fmodf-ieee'.
3116         * modules/fmodf-ieee: New file.
3117
3118 2012-02-27  Bruno Haible  <bruno@clisp.org>
3119
3120         Tests for module 'rintl-ieee'.
3121         * modules/rintl-ieee-tests: New file.
3122         * tests/test-rintl-ieee.c: New file.
3123
3124         New module 'rintl-ieee'.
3125         * modules/rintl-ieee: New file.
3126
3127         Tests for module 'rint-ieee'.
3128         * modules/rint-ieee-tests: New file.
3129         * tests/test-rint-ieee.c: New file.
3130
3131         New module 'rint-ieee'.
3132         * modules/rint-ieee: New file.
3133
3134         Tests for module 'rintf-ieee'.
3135         * modules/rintf-ieee-tests: New file.
3136         * tests/test-rintf-ieee.c: New file.
3137         * tests/test-rint-ieee.h: New file.
3138
3139         New module 'rintf-ieee'.
3140         * modules/rintf-ieee: New file.
3141
3142 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3143
3144         regex: re_search etc. should return -2 when memory exhausted
3145         This bug was uncovered when testing 'grep'.  Without the fix,
3146         re_search and friends return -1 when memory is exhausted, but -1
3147         means no match, and this causes grep to falsely report no-match
3148         instead of memory-exhaustion.  See
3149         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3150         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3151         trouble; this can occur if re_search_internal ran out of memory.
3152
3153 2012-02-26  Bruno Haible  <bruno@clisp.org>
3154
3155         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3156         * m4/modfl-ieee.m4: New file.
3157         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3158         whether modfl works with Inf. Replace it if not.
3159         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3161         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3162         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3163         (Depends-on): Update dependencies.
3164         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3165         m4/signbit.m4.
3166         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3167         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3168
3169         modfl-ieee: Fix dependencies.
3170         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3171
3172         modfl-ieee: Fix test failures.
3173         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3174         * modules/modfl (Depends-on): Add isfinite, isinf.
3175
3176         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3177         * m4/modff-ieee.m4: New file.
3178         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3179         whether modff works with NaN and Inf. Replace it if not.
3180         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3181         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3182         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3183         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3184         (Depends-on): Update dependencies.
3185         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3186         m4/signbit.m4.
3187         (Depends-on): Add modf-ieee.
3188         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3189         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3190
3191         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3192         * m4/modf-ieee.m4: New file.
3193         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3194         whether modf works with NaN and Inf. Replace it if not.
3195         * lib/math.in.h (modf): New declaration.
3196         * lib/modf.c: New file.
3197         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3199         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3200         * modules/modf (Files): Add lib/modf.c.
3201         (Depends-on): Add math, isfinite, trunc, isinf.
3202         (configure.ac): Addrange to compile lib/modf.c if needed.
3203         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3204         m4/signbit.m4.
3205         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3206         * tests/test-math-c++.cc: Check the declaration of modf.
3207         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3208
3209         Tests for module 'modfl-ieee'.
3210         * modules/modfl-ieee-tests: New file.
3211         * tests/test-modfl-ieee.c: New file.
3212
3213         New module 'modfl-ieee'.
3214         * modules/modfl-ieee: New file.
3215
3216         Tests for module 'modf-ieee'.
3217         * modules/modf-ieee-tests: New file.
3218         * tests/test-modf-ieee.c: New file.
3219
3220         New module 'modf-ieee'.
3221         * modules/modf-ieee: New file.
3222
3223         Tests for module 'modff-ieee'.
3224         * modules/modff-ieee-tests: New file.
3225         * tests/test-modff-ieee.c: New file.
3226         * tests/test-modf-ieee.h: New file.
3227
3228         New module 'modff-ieee'.
3229         * modules/modff-ieee: New file.
3230
3231 2012-02-26  Bruno Haible  <bruno@clisp.org>
3232
3233         Tests for module 'fabsl-ieee'.
3234         * modules/fabsl-ieee-tests: New file.
3235         * tests/test-fabsl-ieee.c: New file.
3236
3237         New module 'fabsl-ieee'.
3238         * modules/fabsl-ieee: New file.
3239
3240         Tests for module 'fabs-ieee'.
3241         * modules/fabs-ieee-tests: New file.
3242         * tests/test-fabs-ieee.c: New file.
3243
3244         New module 'fabs-ieee'.
3245         * modules/fabs-ieee: New file.
3246
3247         Tests for module 'fabsf-ieee'.
3248         * modules/fabsf-ieee-tests: New file.
3249         * tests/test-fabsf-ieee.c: New file.
3250         * tests/test-fabs-ieee.h: New file.
3251
3252         New module 'fabsf-ieee'.
3253         * modules/fabsf-ieee: New file.
3254
3255 2012-02-26  Bruno Haible  <bruno@clisp.org>
3256
3257         Tests for module 'fmal-ieee'.
3258         * modules/fmal-ieee-tests: New file.
3259         * tests/test-fmal-ieee.c: New file.
3260
3261         New module 'fmal-ieee'.
3262         * modules/fmal-ieee: New file.
3263
3264         Tests for module 'fma-ieee'.
3265         * modules/fma-ieee-tests: New file.
3266         * tests/test-fma-ieee.c: New file.
3267
3268         New module 'fma-ieee'.
3269         * modules/fma-ieee: New file.
3270
3271         Tests for module 'fmaf-ieee'.
3272         * modules/fmaf-ieee-tests: New file.
3273         * tests/test-fmaf-ieee.c: New file.
3274         * tests/test-fma-ieee.h: New file.
3275
3276         New module 'fmaf-ieee'.
3277         * modules/fmaf-ieee: New file.
3278
3279 2012-02-26  Bruno Haible  <bruno@clisp.org>
3280
3281         Tests for module 'ldexpl-ieee'.
3282         * modules/ldexpl-ieee-tests: New file.
3283         * tests/test-ldexpl-ieee.c: New file.
3284
3285         New module 'ldexpl-ieee'.
3286         * modules/ldexpl-ieee: New file.
3287
3288         Tests for module 'ldexp-ieee'.
3289         * modules/ldexp-ieee-tests: New file.
3290         * tests/test-ldexp-ieee.c: New file.
3291
3292         New module 'ldexp-ieee'.
3293         * modules/ldexp-ieee: New file.
3294
3295         Tests for module 'ldexpf-ieee'.
3296         * modules/ldexpf-ieee-tests: New file.
3297         * tests/test-ldexpf-ieee.c: New file.
3298         * tests/test-ldexp-ieee.h: New file.
3299
3300         New module 'ldexpf-ieee'.
3301         * modules/ldexpf-ieee: New file.
3302
3303 2012-02-26  Bruno Haible  <bruno@clisp.org>
3304
3305         Refactor frexp*-ieee tests.
3306         * tests/test-frexp-ieee.h: New file.
3307         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3308         (main): Just call test_function.
3309         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3310         (main): Just call test_function.
3311         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3312         (main): Just call test_function.
3313         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3314         * modules/frexp-ieee-tests (Files): Likewise.
3315         * modules/frexpl-ieee-tests (Files): Likewise.
3316
3317         Tests for module 'frexpl-ieee'.
3318         * modules/frexpl-ieee-tests: New file.
3319         * tests/test-frexpl-ieee.c: New file.
3320
3321         New module 'frexpl-ieee'.
3322         * modules/frexpl-ieee: New file.
3323
3324         Tests for module 'frexp-ieee'.
3325         * modules/frexp-ieee-tests: New file.
3326         * tests/test-frexp-ieee.c: New file.
3327
3328         New module 'frexp-ieee'.
3329         * modules/frexp-ieee: New file.
3330
3331         Tests for module 'frexpf-ieee'.
3332         * modules/frexpf-ieee-tests: New file.
3333         * tests/test-frexpf-ieee.c: New file.
3334
3335         New module 'frexpf-ieee'.
3336         * modules/frexpf-ieee: New file.
3337
3338 2012-02-26  Bruno Haible  <bruno@clisp.org>
3339
3340         roundl-ieee tests: More tests.
3341         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3342         (main): Add tests for [MX] shaded specification in POSIX.
3343         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3344         (Depends-on): Add isnanl-nolibm.
3345
3346         round-ieee tests: More tests.
3347         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3348         (main): Add tests for [MX] shaded specification in POSIX.
3349         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3350         (Depends-on): Add isnand-nolibm.
3351
3352         roundf-ieee tests: More tests.
3353         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3354         (main): Add tests for [MX] shaded specification in POSIX.
3355         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3356         (Depends-on): Add isnanf-nolibm.
3357
3358         truncl-ieee tests: More tests.
3359         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3360         (main): Add tests for [MX] shaded specification in POSIX.
3361         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3362         (Depends-on): Add isnanl-nolibm.
3363
3364         trunc-ieee tests: More tests.
3365         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3366         (main): Add tests for [MX] shaded specification in POSIX.
3367         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3368         (Depends-on): Add isnand-nolibm.
3369
3370         truncf-ieee tests: More tests.
3371         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3372         (main): Add tests for [MX] shaded specification in POSIX.
3373         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3374         (Depends-on): Add isnanf-nolibm.
3375
3376         ceill-ieee tests: More tests.
3377         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3378         (main): Add tests for [MX] shaded specification in POSIX.
3379         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3380         (Depends-on): Add isnanl-nolibm.
3381
3382         ceil-ieee tests: More tests.
3383         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3384         (main): Add tests for [MX] shaded specification in POSIX.
3385         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3386         (Depends-on): Add isnand-nolibm.
3387
3388         ceilf-ieee tests: More tests.
3389         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3390         (main): Add tests for [MX] shaded specification in POSIX.
3391         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3392         (Depends-on): Add isnanf-nolibm.
3393
3394         floorl-ieee tests: More tests.
3395         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3396         (main): Add tests for [MX] shaded specification in POSIX.
3397         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3398         (Depends-on): Add isnanl-nolibm.
3399
3400         floor-ieee tests: More tests.
3401         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3402         (main): Add tests for [MX] shaded specification in POSIX.
3403         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3404         (Depends-on): Add isnand-nolibm.
3405
3406         floorf-ieee tests: More tests.
3407         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3408         (main): Add tests for [MX] shaded specification in POSIX.
3409         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3410         (Depends-on): Add isnanf-nolibm.
3411
3412 2012-02-26  Bruno Haible  <bruno@clisp.org>
3413
3414         fpieee: More comments.
3415         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3416
3417 2012-02-25  Bruno Haible  <bruno@clisp.org>
3418
3419         Tests for module 'log10l'.
3420         * modules/log10l-tests: New file.
3421         * tests/test-log10l.c: New file.
3422         * tests/test-math-c++.cc: Check the declaration of log10l.
3423
3424         New module 'log10l'.
3425         * lib/math.in.h (log10l): New declaration.
3426         * lib/log10l.c: New file.
3427         * m4/log10l.m4: New file.
3428         * modules/log10l: New file.
3429         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3431         HAVE_DECL_LOG10L.
3432         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3433         HAVE_DECL_LOG10L.
3434         * doc/posix-functions/log10l.texi: Mention the new module.
3435
3436 2012-02-25  Bruno Haible  <bruno@clisp.org>
3437
3438         fmodl, remainder*: Avoid wrong results due to rounding errors.
3439         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3440         expected bounds.
3441         * lib/remainderf.c (remainderf): Likewise.
3442         * lib/remainder.c (remainder): Likewise.
3443         * lib/remainderl.c (remainderl): Likewise.
3444
3445 2012-02-25  Bruno Haible  <bruno@clisp.org>
3446
3447         Tests for module 'remainderl'.
3448         * modules/remainderl-tests: New file.
3449         * tests/test-remainderl.c: New file.
3450         * tests/test-math-c++.cc: Check the declaration of remainderl.
3451
3452         New module 'remainderl'.
3453         * lib/math.in.h (remainderl): New declaration.
3454         * lib/remainderl.c: New file.
3455         * m4/remainderl.m4: New file.
3456         * modules/remainderl: New file.
3457         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3459         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3460         HAVE_REMAINDERL.
3461         * doc/posix-functions/remainderl.texi: Mention the new module.
3462
3463 2012-02-25  Bruno Haible  <bruno@clisp.org>
3464
3465         Tests for module 'remainderf'.
3466         * modules/remainderf-tests: New file.
3467         * tests/test-remainderf.c: New file.
3468         * tests/test-math-c++.cc: Check the declaration of remainderf.
3469
3470         New module 'remainderf'.
3471         * lib/math.in.h (remainderf): New declaration.
3472         * lib/remainderf.c: New file.
3473         * m4/remainderf.m4: New file.
3474         * modules/remainderf: New file.
3475         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3476         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3477         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3478         HAVE_REMAINDERF.
3479         * doc/posix-functions/remainderf.texi: Mention the new module.
3480
3481 2012-02-25  Bruno Haible  <bruno@clisp.org>
3482
3483         remainder: Support for MSVC.
3484         * lib/math.in.h (remainder): New declaration.
3485         * lib/remainder.c: New file.
3486         * m4/remainder.m4: New file.
3487         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3488         (Depends-on): Add math, round, fma.
3489         (configure.ac): Use results of gl_FUNC_REMAINDER.
3490         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3492         HAVE_DECL_REMAINDER.
3493         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3494         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3495         * tests/test-math-c++.cc: Check the declaration of remainder.
3496         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3497         problems are fixed.
3498
3499 2012-02-25  Bruno Haible  <bruno@clisp.org>
3500
3501         Tests for module 'fmodl'.
3502         * modules/fmodl-tests: New file.
3503         * tests/test-fmodl.c: New file.
3504         * tests/test-math-c++.cc: Check the declaration of fmodl.
3505
3506         New module 'fmodl'.
3507         * lib/math.in.h (fmodl): New declaration.
3508         * lib/fmodl.c: New file.
3509         * m4/fmodl.m4: New file.
3510         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3511         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3512         REPLACE_FMODL.
3513         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3514         REPLACE_FMODL.
3515         * modules/fmodl: New file.
3516         * doc/posix-functions/fmodl.texi: Mention the new module.
3517
3518 2012-02-25  Bruno Haible  <bruno@clisp.org>
3519
3520         Tests for module 'modfl'.
3521         * modules/modfl-tests: New file.
3522         * tests/test-modfl.c: New file.
3523         * tests/test-math-c++.cc: Check the declaration of modfl.
3524
3525         New module 'modfl'.
3526         * lib/math.in.h (modfl): New declaration.
3527         * lib/modfl.c: New file.
3528         * m4/modfl.m4: New file.
3529         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3530         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3531         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3532         * modules/modfl: New file.
3533         * doc/posix-functions/modfl.texi: Mention the new module.
3534
3535 2012-02-25  Bruno Haible  <bruno@clisp.org>
3536
3537         Tests for module 'fabsl'.
3538         * modules/fabsl-tests: New file.
3539         * tests/test-fabsl.c: New file.
3540         * tests/test-math-c++.cc: Check the declaration of fabsl.
3541
3542         New module 'fabsl'.
3543         * lib/math.in.h (fabsl): New declaration.
3544         * lib/fabsl.c: New file.
3545         * m4/fabsl.m4: New file.
3546         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3548         REPLACE_FABSL.
3549         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3550         REPLACE_FABSL.
3551         * modules/fabsl: New file.
3552         * doc/posix-functions/fabsl.texi: Mention the new module.
3553
3554 2012-02-25  Bruno Haible  <bruno@clisp.org>
3555
3556         fabs tests: More tests.
3557         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3558         (zero): New variable.
3559         (main): Add tests for signed zero.
3560         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3561
3562         fabsf tests: More tests.
3563         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3564         (zero): New variable.
3565         (main): Add tests for signed zero.
3566         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3567
3568 2012-02-24  Bruno Haible  <bruno@clisp.org>
3569
3570         atanl: Provide function definition on MSVC.
3571         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3572         function pointer.
3573         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3574
3575 2012-02-24  Bruno Haible  <bruno@clisp.org>
3576
3577         acosl: Provide function definition on MSVC.
3578         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3579         function pointer.
3580         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3581
3582 2012-02-24  Bruno Haible  <bruno@clisp.org>
3583
3584         asinl: Provide function definition on MSVC.
3585         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3586         function pointer.
3587         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3588
3589 2012-02-24  Bruno Haible  <bruno@clisp.org>
3590
3591         tanl: Provide function definition on MSVC.
3592         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3593         function pointer.
3594         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3595
3596 2012-02-24  Bruno Haible  <bruno@clisp.org>
3597
3598         cosl: Provide function definition on MSVC.
3599         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3600         function pointer.
3601         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3602
3603 2012-02-24  Bruno Haible  <bruno@clisp.org>
3604
3605         sinl: Provide function definition on MSVC.
3606         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3607         function pointer.
3608         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3609
3610 2012-02-24  Bruno Haible  <bruno@clisp.org>
3611
3612         logl: Provide function definition on MSVC.
3613         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3614         function pointer.
3615         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3616
3617 2012-02-24  Bruno Haible  <bruno@clisp.org>
3618
3619         expl: Provide function definition on MSVC.
3620         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3621         function pointer.
3622         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3623
3624 2012-02-24  Bruno Haible  <bruno@clisp.org>
3625
3626         sqrtl: Provide function definition on MSVC.
3627         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3628         a function pointer.
3629         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3630
3631 2012-02-24  Bruno Haible  <bruno@clisp.org>
3632
3633         ceill: Provide function definition on MSVC.
3634         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3635         used as a function pointer.
3636         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3637
3638 2012-02-24  Bruno Haible  <bruno@clisp.org>
3639
3640         floorl: Provide function definition on MSVC.
3641         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3642         used as a function pointer.
3643         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3644
3645 2012-02-24  Bruno Haible  <bruno@clisp.org>
3646
3647         ceilf: Provide function definition on MSVC.
3648         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3649         used as a function pointer.
3650         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3651
3652 2012-02-24  Bruno Haible  <bruno@clisp.org>
3653
3654         floorf: Provide function definition on MSVC.
3655         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3656         used as a function pointer.
3657         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3658
3659 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3660
3661         stdnoreturn: new module
3662         This implements a replacement for C11's <stdnoreturn.h>.
3663         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3664         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3665         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3666         * tests/test-stdnoreturn.c: New files.
3667
3668 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3669
3670         regex: fix false multibyte matches in some regular expressions
3671         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3672         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3673         * lib/regex_internal.c (re_string_skip_chars):
3674         Fix miscomputation of remain_len that may cause incomplete
3675         multi-byte character and false match.
3676
3677 2012-02-24  Jim Meyering  <meyering@redhat.com>
3678
3679         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3680         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3681         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3682         Remove now-unnecessary str''cmp obfuscation.
3683         Suggested by Akim Demaille.
3684
3685 2012-02-24  Bruno Haible  <bruno@clisp.org>
3686
3687         streq: Rename macro.
3688         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3689         * NEWS: Mention the change.
3690         * lib/mbrtowc.c (mbrtowc): Update.
3691         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3692         * lib/wcwidth.c (wcwidth): Update.
3693         Suggested by Akim Demaille and Jim Meyering.
3694
3695 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3696
3697         regex: fix typo in definition of MIN
3698         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3699         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3700
3701 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3702             Bruno Haible  <bruno@clisp.org>
3703
3704         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3705         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3706         entries into a stack-allocated buffer directly.
3707         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3708
3709 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3710             Bruno Haible  <bruno@clisp.org>
3711
3712         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3713
3714          - There were several instances of this pattern:
3715
3716              for (;;) {
3717                n = acl (f, GETACLCNT, 0, NULL);
3718                [ allocate an array A of size N ]
3719                if (acl (f, GETACL, n, a) == n)
3720                  break;
3721              }
3722
3723            This loop might never terminate if some other process is constantly
3724            manipulating the file's ACL.  The loop should be rewritten to
3725            terminate.
3726
3727          - The acl (... GETACLNT ...) call is merely an optimization; its value
3728            is merely a hint as to how big to make the array.  A better
3729            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3730            and just guess a reasonably-big size, growing the size and trying
3731            again if it's not large enough.  This guarantees termination, and
3732            saves a system call.
3733
3734         * lib/acl-internal.h: Include <limits.h>.
3735         (MIN, SIZE_MAX): New macros.
3736         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3737         a stack-allocated buffer, and use malloc if it does not fit. Don't
3738         use GETACLCNT.
3739         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3740
3741 2012-02-19  Bruno Haible  <bruno@clisp.org>
3742
3743         acl: Fix endless loop on Solaris with vxfs.
3744         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3745         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3746         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3747         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3748         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3749         Reported by Bill Jones in
3750         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3751
3752 2012-02-19  Bruno Haible  <bruno@clisp.org>
3753
3754         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3755         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3756         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3757         that this function returns 0 in some more cases.
3758
3759 2012-02-19  Bruno Haible  <bruno@clisp.org>
3760
3761         acl: Update doc references.
3762         * doc/acl-resources.txt: Update links to Solaris documentation.
3763
3764 2012-02-19  Bruno Haible  <bruno@clisp.org>
3765
3766         Fix test failure in many locales on Solaris 11.
3767         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3768         'tr' arguments.
3769         * tests/test-pipe-filter-ii1.c (main): Likewise.
3770         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3771         expressions in the C locale.
3772         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3773         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3774
3775 2012-02-19  Bruno Haible  <bruno@clisp.org>
3776
3777         gnulib-tool: Improve usage message.
3778         * gnulib-tool (func_usage): Move doc of --help and --version to the
3779         section "Operation modes".
3780
3781 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3782
3783         README-release: make it easier to execute commands
3784         * top/README-release: break commands out on to separate lines.
3785
3786 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3787
3788         GNUmakefile: simplify detection of unconfigured trees
3789         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3790         whether the tree make is being run from is already configured or
3791         not.  Related simplifications.
3792
3793 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3794
3795         * gnulib-tool (func_usage): Document --help and --version.
3796
3797 2012-02-11  Jim Meyering  <meyering@redhat.com>
3798
3799         bootstrap: don't exit 0 upon gnulib-tool failure
3800         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3801         its exit status, not 0.
3802
3803 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3804
3805         README-release: various improvements
3806         * top/README-release: Give a command to push changes for the
3807         release.  Add "distcheck" to list of other pre-release checks.
3808         Fix instance of "make stable" which should be "make TYPE".
3809
3810 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3811
3812         maint: replace FSF snail-mail addresses with URLs
3813         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3814         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3815         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3816         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3817         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3818         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3819         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3820         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3821         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3822         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3823         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3824         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3825         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3826         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3827         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3828         * lib/glthread/thread.c, lib/glthread/thread.h:
3829         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3830         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3831         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3832         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3833         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3834         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3835         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3836         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3837         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3838         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3839         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3840         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3841         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3842         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3843         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3844         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3845         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3846         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3847         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3848         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3849         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3850         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3851         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3852         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3853         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3854         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3855         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3856         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3857         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3858         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3859         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3860         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3861         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3862         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3863         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3864         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3865         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3866         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3867         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3868         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3869         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3870         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3871         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3872         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3873         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3874         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3875         * tests/test-poll.c, tests/test-quotearg-simple.c:
3876         * tests/test-quotearg.c, tests/test-quotearg.h:
3877         * tests/test-round-ieee.c, tests/test-round1.c:
3878         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3879         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3880         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3881         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3882         * tests/test-strerror.c, tests/test-strerror_r.c:
3883         * tests/test-strsignal.c, tests/test-strverscmp.c:
3884         * tests/test-xmemdup0.c:
3885         Replace FSF snail mail addresses with URLs, as per GNU coding
3886         standards.  See glibc bug
3887         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3888
3889 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3890
3891         README-release: capitalize a word and split a line
3892         * top/README-release: Fix punctuation and spacing.
3893
3894 2012-02-08  Akim Demaille  <demaille@gostai.com>
3895
3896         fatal-signal: use C prototypes (with explicit void).
3897         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3898         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3899
3900 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3901
3902         regex: spelling fix
3903         * lib/regexec.c: spelling fix
3904
3905         regex: rely on stdint.h for SIZE_MAX
3906         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3907
3908 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3909
3910         regex: merge glibc changes
3911
3912         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3913         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3914         (init_word_char): Work even if bitset words are not exactly 32 or
3915         64 bits wide.  Don't assume there are no padding bits.
3916         * lib/regex.c [_LIBC]: Do not include <config.h>.
3917         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3918         and -Wtype-limits.
3919         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3920         needless disagreement with glibc.  All uses changed.  Define it to
3921         1 only if _GNU_SOURCE, to match glibc.
3922         (_REG_RM_NAME): Remove; no longer needed, since the names in
3923         question are now all protected by __USE_GNU.
3924         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3925         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3926         * lib/regex_internal.h (MIN): New macro.
3927
3928         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3929         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3930
3931         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3932         * lib/regex_internal.c (re_string_fetch_byte_case):
3933         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3934         is miscompiled, and it turns out it is because of an incorrect
3935         attribute on re_string_fetch_byte_case.  Unlike
3936         re_string_peek_byte_case, this one is really not pure, it modifies
3937         memory (increments pstr->cur_idx), and with the pure attribute GCC
3938         assumed it doesn't and it cached the presumed value of
3939         regexp->cur_idx in a variable across the
3940          for (;; ++i)
3941            {
3942              if (i >= BRACKET_NAME_BUF_SIZE)
3943                return REG_EBRACK;
3944              if (token->type == OP_OPEN_CHAR_CLASS)
3945                ch = re_string_fetch_byte_case (regexp);
3946              else
3947                ch = re_string_fetch_byte (regexp);
3948              if (re_string_eoi(regexp))
3949                return REG_EBRACK;
3950              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3951                break;
3952              elem->opr.name[i] = ch;
3953            }
3954
3955         2011-11-29 Andreas Schwab <schwab@redhat.com>
3956         * lib/regcomp.c (build_equiv_class):
3957         Fix access after end of search string in regex matcher.
3958
3959         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3960         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3961
3962         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3963         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3964
3965         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3966         * lib/regcomp.c (parse_branch, parse_sub_exp):
3967         More regex memory leak fixes and tests.
3968         (parse_sub_exp, parse_bracket_exp):
3969         Fix memory leak for some invalid regular expressions.
3970
3971         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3972         * lib/regex_internal.c, lib/regexec.c:
3973         Fix unnecessary overallocation due to incomplete character.  When
3974         incomplete characters are found at the end of a string the code
3975         ran amok and allocated lots of memory.  Stricter limits are now in
3976         place.
3977
3978         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3979         * lib/regex.h: Update documentation.
3980
3981         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3982         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3983
3984         2010-05-05 Andreas Schwab <schwab@redhat.com>
3985         * lib/regexec.c (find_collation_sequence_value):
3986         Fix lookup of collation sequence value during regexp matching.
3987
3988         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3989         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3990
3991         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3992         * lib/regex.h: Cleanup namespace.
3993
3994         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3995         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3996
3997         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3998         * lib/regex_internal.h: Prevent some declarations and definitions
3999         to be seen when used in tests.
4000
4001         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4002         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4003         __libc_lock_* macros if not _LIBC.
4004         (struct re_dfa_t): Add lock.
4005
4006 2012-02-07  Eric Blake  <eblake@redhat.com>
4007
4008         maint.mk: also prohibit lower-case @var@
4009         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4010         lower case, like @top_srcdir@.
4011
4012 2012-02-04  Eric Blake  <eblake@redhat.com>
4013
4014         canonicalize: avoid uninitialized memory use
4015         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4016         random '/' left in dest.
4017         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4018
4019 2012-02-04  Bruno Haible  <bruno@clisp.org>
4020
4021         isatty: Fix test failure of ptsname_r on native Windows.
4022         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4023         and don't set errno.
4024         (isatty): Test first whether fd is valid. Set errno when returning 0.
4025
4026 2012-02-04  Bruno Haible  <bruno@clisp.org>
4027
4028         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4029         * tests/test-spawn-pipe-main.c: Include progname.h.
4030         (main): Invoke set_program_name.
4031         * modules/spawn-pipe-tests (Depends-on): Add progname.
4032
4033         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4034         * tests/test-nonblocking-socket-main.c: Include progname.h.
4035         (main): Invoke set_program_name.
4036         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4037
4038         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4039         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4040         (main): Invoke set_program_name.
4041         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4042
4043 2012-02-04  Eric Blake  <eblake@redhat.com>
4044
4045         canonicalize-lgpl: fix // handling
4046         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4047
4048         canonicalize: fix // handling
4049         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4050         /// to //, since only // is special.
4051
4052 2012-02-04  Bruno Haible  <bruno@clisp.org>
4053
4054         ioctl: Fix test failure on native Windows.
4055         * lib/ioctl.c: Include msvc-nothrow.h.
4056         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4057
4058 2012-02-04  Bruno Haible  <bruno@clisp.org>
4059
4060         fsync: Avoid test failure on native Windows.
4061         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4062         read-only.
4063
4064 2012-02-04  Bruno Haible  <bruno@clisp.org>
4065
4066         sys_select: Avoid syntax error on OpenBSD 5.0.
4067         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4068         currently being included, just include the system's <sys/select.h>.
4069
4070 2012-02-04  Bruno Haible  <bruno@clisp.org>
4071
4072         sys_select: Avoid syntax error on OpenBSD 5.0.
4073         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4074         <sys/select.h>, not before.
4075         Reported by Jiri B <jirib@devio.us>.
4076
4077 2012-02-04  Bruno Haible  <bruno@clisp.org>
4078
4079         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4080         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4081         global variables.
4082         * tests/test-get-rusage-data.c (main): Likewise.
4083         Reported by Jim Meyering.
4084
4085 2012-02-04  Bruno Haible  <bruno@clisp.org>
4086
4087         stdioext: Fix last commit.
4088         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4089
4090 2012-02-03  Bruno Haible  <bruno@clisp.org>
4091
4092         stdioext: Add tentative support for Plan9.
4093         * lib/stdio-impl.h: Include <errno.h>.
4094         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4095         * lib/freadable.c (freadable): Likewise.
4096         * lib/fwritable.c (fwritable): Likewise.
4097         * lib/fbufmode.c (fbufmode): Likewise.
4098         * lib/freading.c (freading): Likewise.
4099         * lib/fwriting.c (fwriting): Likewise.
4100         * lib/freadptr.c (freadptr): Likewise.
4101         * lib/freadseek.c (freadptrinc): Likewise.
4102         * lib/freadahead.c (freadahead): Likewise.
4103         * lib/fpurge.c (fpurge): Likewise.
4104         * lib/fseeko.c (rpl_fseeko): Likewise.
4105         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4106         Reported by Jens Staal <staal1978@gmail.com>.
4107
4108 2012-02-02  Jim Meyering  <meyering@redhat.com>
4109
4110         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4111         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4112         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4113         not even to try to add the attribute.  Instead, add a pragma to suppress
4114         the suggestion/warning.
4115
4116 2012-01-31  Karl Berry  <karl@gnu.org>
4117
4118         setstate doc: typo.
4119         * doc/posix-functions/setstate.texi (setstate): { not (.
4120
4121 2012-01-31  Bruno Haible  <bruno@clisp.org>
4122
4123         popen: Make more robust on Windows.
4124         * lib/popen.c: On native Windows, use the _popen based code even if
4125         HAVE_POPEN is set.
4126         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4127         environment variable on native Windows.
4128
4129 2012-01-30  Bruno Haible  <bruno@clisp.org>
4130
4131         pclose: Fix typo.
4132         * lib/stdio.in.h (pclose): Fix typo in warning message.
4133
4134 2012-01-30  Bruno Haible  <bruno@clisp.org>
4135
4136         doc about getlogin_r, setstate.
4137         * doc/posix-functions/getlogin_r.texi: List the incompatible
4138         declaration problem under "not fixed by gnulib".
4139         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4140         problem on Solaris 11 and other platforms.
4141
4142 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4143             Bruno Haible  <bruno@clisp.org>
4144
4145         poll tests: Make test more robust.
4146         * tests/test-poll.c: Include macros.h.
4147         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4148         return value of various I/O operations.
4149         * modules/poll-tests (Files): Add tests/macros.h.
4150
4151 2012-01-30  Bruno Haible  <bruno@clisp.org>
4152
4153         sys_stat: Fix support for mingw64 and MSVC.
4154         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4155         header files already do it.
4156         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4157         stat itself.
4158         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4159
4160 2012-01-30  Bruno Haible  <bruno@clisp.org>
4161
4162         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4164         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4165
4166 2012-01-29  Bruno Haible  <bruno@clisp.org>
4167
4168         quotearg: Fix test failure on MacOS X 10.5.
4169         * tests/test-quotearg-simple.c: Include localcharset.h.
4170         (main): If the locale encoding is not ASCII, bypass the tests of
4171         locale_quoting_style and clocale_quoting_style.
4172         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4173
4174 2012-01-29  Jim Meyering  <meyering@redhat.com>
4175
4176         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4177         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4178         detect uses of canonicalize_file_name.
4179
4180 2012-01-28  Bruno Haible  <bruno@clisp.org>
4181
4182         test-framework-sh: Fix test failure with AIX 7.1 diff.
4183         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4184         in column 1, like 'diff -c' does.
4185         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4186         whether 'diff -u' is used. Instead, test whether the output contains
4187         some '@' character.
4188
4189 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4190
4191         strtoimax: eliminate need for stdint.h, inttypes.h checks
4192         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4193         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4194         the prerequisites for a recently-introduced strtoimax test.
4195         I guess this might cause strtoimax to be replaced when not
4196         strictly necessary on older hosts, but this shouldn't introduce
4197         any bugs and it should make Emacs 'configure' faster on typical
4198         modern hosts.  Problem discovered when importing the latest gnulib
4199         to an Emacs test version.
4200         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4201
4202 2012-01-28  Bruno Haible  <bruno@clisp.org>
4203
4204         sys_time: Override 'struct timeval' on some native Windows platforms.
4205         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4206         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4207         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4208         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4209         needs to be overridden.
4210         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4211         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4212         * tests/test-sys_select.c: Check that the tv_sec member has the same
4213         size as a 'time_t'.
4214         * tests/test-sys_time.c: Likewise.
4215         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4216         is set, set also REPLACE_GETTIMEOFDAY.
4217         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4218         convert the resulting 'struct timeval' before returning.
4219         * lib/select.c: Include <sys/time.h>.
4220         (select, timeval): Undefine at the right place.
4221         * modules/select (Depends-on): Add sys_time.
4222         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4223         some Windows platforms.
4224         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4225
4226 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4227
4228         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4229         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4230         an integer.
4231         * lib/fcntl.c (dupfd): Likewise.
4232         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4233
4234 2012-01-28  Bruno Haible  <bruno@clisp.org>
4235
4236         fcntl: Avoid compilation error on native Windows.
4237         * modules/fcntl (Depends-on): Add 'close'.
4238
4239 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4240
4241         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4242         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4243         pointer to an integer.
4244         * lib/poll.c (IsConsoleHandle): Likewise.
4245         * lib/isatty.c (IsConsoleHandle): Likewise.
4246
4247 2012-01-28  Jim Meyering  <meyering@redhat.com>
4248
4249         doc: clarify README-release
4250         * top/README-release: Clarify: you should make a point to have
4251         the latest stable versions of build tools in your PATH, and the
4252         reference to buildreq is solely for its list of tool names, not
4253         for its minimal-functional version numbers.
4254         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4255
4256         maint.mk: use more readable (yet functionally equivalent) quoting
4257         It is common to quote a single quote in a single quoted string like
4258         this:  '...'\''...'.  Unless you know the idiom, that looks like
4259         gibberish, so prefer to double-quote the string when possible.
4260         Then you can use a more readable, lone single quote: "...'..."
4261         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4262         "don't" is more readable than the equivalent 'don'\''t'.
4263         (sc_cast_of_x_alloc_return_value): Likewise.
4264         (sc_cast_of_alloca_return_value): Likewise.
4265         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4266         rather than '\'':'\''.
4267
4268 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4269
4270         stdalign: relax _Alignof and tighten _Alignas test
4271         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4272         as it was too strict: alignof must divide offsetof, but it need
4273         not equal offsetof.  Inspired by Joseph S. Myers's comment
4274         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4275         Conversely, tighten the _Alignas test a bit, as the resulting
4276         alignment must be exactly 8.
4277
4278 2012-01-27  Bruno Haible  <bruno@clisp.org>
4279
4280         stdalign: Document the last change.
4281         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4282
4283 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4284
4285         stdalign: check that alignof and offsetof are consistent
4286         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4287         Problem reported for gnulib by Richard W.M. Jones in
4288         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4289
4290 2012-01-27  Jim Meyering  <meyering@redhat.com>
4291
4292         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4293         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4294         convert a sequence with gaps to the minimal containing range.
4295         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4296         * tests/test-update-copyright.sh: Test for this.
4297         The FSF confirmed it is ok to do this, assuming there is at
4298         least one significant change per year in the affected range:
4299         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4300
4301 2012-01-26  Bruno Haible  <bruno@clisp.org>
4302
4303         pipe2: refine doc about thread-safety
4304         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4305         multithread-safety problem.
4306         * doc/glibc-functions/accept4.texi: Likewise.
4307
4308 2012-01-26  Bruno Haible  <bruno@clisp.org>
4309
4310         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4311         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4312         In the test program, include <fcntl.h>, for O_RDONLY.
4313
4314 2012-01-26  Eric Blake  <eblake@redhat.com>
4315
4316         pipe2: document lack of thread-safety in replacement
4317         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4318         issue in replacement.
4319         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4320         Based on a report by Eric Wong.
4321
4322 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4323             Bruno Haible  <bruno@clisp.org>
4324
4325         malloca: Avoid warnings on x86_64 mingw64.
4326         * lib/malloca.c: Include <stdint.h>.
4327         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4328         * modules/malloca (Depends-on): Add stdint.
4329         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4330
4331 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4332
4333         obstack: remove __STDC__ conditionals
4334         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4335         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4336         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4337         m4/include_next.m4 as the only gnulib-maintained places that still
4338         refer to __STDC__.
4339
4340 2012-01-24  Bruno Haible  <bruno@clisp.org>
4341
4342         havelib: Modern quoting.
4343         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4344         the recent change to the GNU coding standards.
4345
4346 2012-01-24  Bruno Haible  <bruno@clisp.org>
4347
4348         stdint: Improve support for Android.
4349         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4350         Reported by Simon Josefsson <simon@josefsson.org>.
4351
4352 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4353
4354         doc: omit trailing empty lines from INSTALL etc.
4355         * doc/Makefile (INSTALL): Omit trailing empty lines.
4356         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4357         omit trailing empty lines.  This simplifies the build procedure.
4358
4359 2012-01-23  Jim Meyering  <meyering@redhat.com>
4360
4361         tests: avoid spurious warnings about gl_sockets_startup
4362         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4363         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4364         reporting a "statement with no effect".
4365         * tests/test-accept.c (main): Mark as "(void)".
4366         * tests/test-accept4.c (main): Likewise.
4367         * tests/test-bind.c (main): Likewise.
4368         * tests/test-connect.c (main): Likewise.
4369         * tests/test-getpeername.c (main): Likewise.
4370         * tests/test-getsockname.c (main): Likewise.
4371         * tests/test-getsockopt.c (main): Likewise.
4372         * tests/test-listen.c (main): Likewise.
4373         * tests/test-recv.c (main): Likewise.
4374         * tests/test-recvfrom.c (main): Likewise.
4375         * tests/test-send.c (main): Likewise.
4376         * tests/test-sendto.c (main): Likewise.
4377         * tests/test-setsockopt.c (main): Likewise.
4378         * tests/test-shutdown.c (main): Likewise.
4379
4380 2012-01-21  Bruno Haible  <bruno@clisp.org>
4381
4382         locale-fr.m4: Fix for Android.
4383         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4384         failure of the test program on Bionic libc.
4385
4386 2012-01-21  Jim Meyering  <meyering@redhat.com>
4387
4388         bootstrap: fail when bootstrap_post_import_hook fails
4389         Otherwise, it's far too easy to miss diagnostics emitted
4390         between gnulib-tool's output and that of running configure.
4391         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4392
4393 2012-01-17  Jim Meyering  <meyering@redhat.com>
4394
4395         maint: enable sc_trailing_blank
4396         * build-aux/pmccabe.css: Remove trailing blanks.
4397         * doc/acl-cygwin.txt: Likewise.
4398         * doc/gnu-oids.texi: Likewise
4399         * cfg.mk: Enable sc_trailing_blank.
4400         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4401
4402 2012-01-17  Jim Meyering  <meyering@redhat.com>
4403
4404         maint: enable sc_prohibit_openat_without_use
4405         * cfg.mk: Enable sc_prohibit_openat_without_use.
4406         Exempt lib/selinux-at.c.
4407
4408 2012-01-17  Jim Meyering  <meyering@redhat.com>
4409
4410         maint: enable sc_prohibit_cloexec_without_use
4411         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4412         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4413
4414 2012-01-17  Jim Meyering  <meyering@redhat.com>
4415
4416         maint: enable sc_prohibit_intprops_without_use
4417         * cfg.mk: Enable sc_prohibit_intprops_without_use
4418         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4419
4420 2012-01-17  Jim Meyering  <meyering@redhat.com>
4421
4422         maint: enable sc_prohibit_hash_pjw_without_use
4423         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4424         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4425         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4426         following " (".
4427
4428 2012-01-17  Jim Meyering  <meyering@redhat.com>
4429
4430         maint: enable double-word-prohibiting rule
4431         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4432         Exempt three files.
4433
4434 2012-01-17  Jim Meyering  <meyering@redhat.com>
4435
4436         maint: remove empty lines at EOF, but excluding modules/*
4437         Apply syntax rules at home as well as abroad.  Most changes
4438         were induced by running this:
4439           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4440             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4441             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4442         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4443         Exempt modules/* and two binary files.
4444         Also exempt doc/INSTALL*, per request from Bruno Haible.
4445         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4446         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4447         * doc/Copyright/request-assign.future: Likewise.
4448         * doc/Copyright/request-disclaim.changes: Likewise.
4449         * doc/INSTALL: Likewise.
4450         * doc/INSTALL.ISO: Likewise.
4451         * doc/INSTALL.UTF-8: Likewise.
4452         * doc/acl-cygwin.txt: Likewise.
4453         * doc/acl-resources.txt: Likewise.
4454         * doc/fdl-1.2.texi: Likewise.
4455         * doc/fdl-1.3.texi: Likewise.
4456         * doc/fdl.texi: Likewise.
4457         * lib/argp-pin.c: Likewise.
4458         * lib/round.c: Likewise.
4459         * lib/unicase/u16-totitle.c: Likewise.
4460         * lib/unictype/block_test.c: Likewise.
4461         * lib/uninorm/canonical-decomposition.c: Likewise.
4462         * m4/README: Likewise.
4463         * m4/relocatable-lib.m4: Likewise.
4464         * tests/test-isnand-nolibm.c: Likewise.
4465         * tests/test-isnand.c: Likewise.
4466         * tests/uninorm/NormalizationTest.txt: Likewise.
4467
4468 2012-01-17  Jim Meyering  <meyering@redhat.com>
4469
4470         maint: add framework to run syntax-check rules against gnulib sources
4471         * cfg.mk: New file, to disable all currently-failing tests.
4472         We'll enable them one by one, as they are made to pass.
4473         * Makefile (sc_maint): New rule.
4474
4475 2012-01-21  Bruno Haible  <bruno@clisp.org>
4476
4477         stdint: Add support for Android.
4478         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4479         include the system's <stdint.h>.
4480         Reported by Simon Josefsson <simon@josefsson.org>.
4481
4482 2012-01-19  Jim Meyering  <meyering@redhat.com>
4483
4484         bootstrap: add bootstrap_post_import_hook
4485         Bison does still need something like the gnulib_mk_hook whose
4486         invocation I had to remove along with slurp in commit 767ccd40.
4487         Technically, we could get along without it, but doing so would
4488         have required living with a warning and a mandatory post-bootstrap
4489         automake rerun.
4490         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4491         (bootstrap_post_import_hook): New function.
4492         Invoke it after gnulib-tool --import and before autoreconf.
4493
4494 2012-01-18  Jim Meyering  <meyering@redhat.com>
4495
4496         gitlog-to-changelog: don't use "no_"-prefixed variable name
4497         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4498         to enable both --cluster and --no-cluster.  Change variable name,
4499         s/\$no_cluster/$cluster/, and reverse usage to match.
4500
4501         gitlog-to-changelog: use "||", not "or" in expressions
4502         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4503         expressions.
4504
4505 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4506
4507         gitlog-to-changelog: new option --no-cluster
4508         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4509         clustering of adjacent commit messages.
4510
4511 2012-01-17  Jim Meyering  <meyering@redhat.com>
4512
4513         maint: spell file systems with two words, not one
4514         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4515         two words, not one.
4516
4517 2012-01-16  Jim Meyering  <meyering@redhat.com>
4518
4519         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4520         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4521
4522 2012-01-16  Eric Blake  <eblake@redhat.com>
4523
4524         bootstrap: cater to autoconf 2.59
4525         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4526         is not available.
4527
4528         bootstrap: properly check for libtool
4529         * build-aux/bootstrap (libtoolize): Also run libtool when older
4530         usage is detected.
4531
4532 2012-01-15  Bruno Haible  <bruno@clisp.org>
4533
4534         Improve support for MSVC 9.
4535         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4536         clashes on MSVC.
4537         * lib/fcntl.in.h: Likewise.
4538         * lib/stdlib.in.h: Likewise.
4539         * lib/sys_stat.in.h: Likewise.
4540
4541 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4542
4543         gnupload: we hold the master copy of this script now
4544         For motivation and more information, see:
4545         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4546         * build-aux/gnupload: Make it clear in the heading comments that the
4547         master copy of this file is maintained by gnulib.  Since we are at
4548         it, bump its copyright year and ...
4549         ($scriptversion): ... the date in its version.
4550         ($usage): Patches and bug reports should be sent to the gnulib list,
4551         not the automake one.
4552         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4553         anymore.
4554
4555 2012-01-15  Bruno Haible  <bruno@clisp.org>
4556
4557         Fix module 'random'.
4558         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4559         initstate, setstate are declared.
4560
4561 2012-01-14  Bruno Haible  <bruno@clisp.org>
4562
4563         Tests for module 'random'.
4564         * modules/random-tests: New file.
4565         * tests/test-random.c: New file, based on tests/test-random_r.c.
4566
4567         New module 'random'.
4568         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4569         declarations.
4570         * lib/random.c: New file, based on glibc/stdlib/random.c.
4571         * m4/random.m4: New file.
4572         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4573         HAVE_RANDOM.
4574         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4575         * modules/random: New file.
4576         * config/srclist.txt: Add an entry for random.c.
4577         * doc/posix-functions/random.texi: Mention the 'random' module.
4578         * doc/posix-functions/initstate.texi: Likewise.
4579         * doc/posix-functions/setstate.texi: Likewise.
4580         * doc/posix-functions/srandom.texi: Likewise.
4581
4582 2012-01-12  Bruno Haible  <bruno@clisp.org>
4583
4584         random_r: Use common idioms.
4585         * lib/random_r.c: Include <stdlib.h> first.
4586
4587         random_r: Override incompatible API on AIX, OSF/1.
4588         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4589         Override the system function if REPLACE_RANDOM_R is 1.
4590         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4591         and OSF/1, set REPLACE_RANDOM_R.
4592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4593         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4594         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4595         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4596         * doc/glibc-functions/random_r.texi: Likewise.
4597         * doc/glibc-functions/setstate_r.texi: Likewise.
4598
4599         random_r: Support for MSVC 9.
4600         * lib/random_r.c: Include stdint.h, not inttypes.h.
4601
4602 2012-01-12  Eric Blake  <eblake@redhat.com>
4603
4604         inet_ntop: guard extra work by IF_LINT
4605         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4606         better code generation when not checking for warnings.
4607         Suggested by Paul Eggert and Jim Meyering.
4608
4609         strptime: fix regression on mingw
4610         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4611         Fix regression.  Reported by Bruno Haible.
4612
4613 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4614             Bruno Haible  <bruno@clisp.org>
4615
4616         copy-file: add error-code-returning variant.
4617         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4618         (qcopy_file_preserving): New declaration.
4619         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4620         copy_file_preserving. Change return type to 'int'. Don't emit an error
4621         message here.
4622         (copy_file_preserving): New function.
4623         * tests/test-copy-file.c: Include <stdlib.h>.
4624         (main): Test qcopy_file_preserving if the environment variable
4625         NO_STDERR_OUTPUT is set.
4626         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4627         with NO_STDERR_OUTPUT
4628         * tests/test-copy-file-2.sh: Likewise.
4629
4630 2012-01-10  Bruno Haible  <bruno@clisp.org>
4631
4632         copy-file: Use 'quote' module consistently.
4633         * lib/copy-file.c (copy_file_preserving): Use quote().
4634
4635         copy-file: Refactor.
4636         * lib/copy-file.c: Include quote.h.
4637         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4638         message here.
4639         * modules/copy-file (Depends-on): Add quote.
4640
4641         acl: Export qcopy_acl.
4642         * lib/acl.h (qcopy_acl): New declaration.
4643         * lib/copy-acl.c (qcopy_acl): Make non-static.
4644
4645         acl: Rename a local variable.
4646         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4647
4648         acl: Align return values of copy_acl and qcopy_acl.
4649         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4650         maybe < -1.
4651
4652 2012-01-11  Eric Blake  <eblake@redhat.com>
4653
4654         strptime: silence gcc warnings
4655         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4656         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4657         Reported by Daniel P. Berrange.
4658
4659         inet_ntop: silence gcc warning
4660         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4661         Reported by Daniel P. Berrange.
4662
4663 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4664
4665         getloadavg test: skip the test on GNU/Linux without /proc mounted
4666         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4667         file.  When /proc is not mounted, it always fails with ENOENT.
4668         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4669         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4670
4671 2012-01-10  Bruno Haible  <bruno@clisp.org>
4672
4673         regex: Avoid link error on MSVC 9.
4674         * modules/regex (Depends-on): Add wctype.
4675
4676 2012-01-10  Bruno Haible  <bruno@clisp.org>
4677
4678         doc: Mention --with-tests option.
4679         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4680         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4681         --with-tests.
4682         Reported by Reuben Thomas.
4683
4684 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4685
4686         users.txt: order package names lexicographically.
4687         * users.txt: Order package names lexicographically.
4688
4689 2012-01-10  Jim Meyering  <meyering@redhat.com>
4690
4691         maint.mk: fix description in comment
4692         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4693
4694         ignore-value: remove deprecated ignore_ptr function
4695         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4696         * NEWS: Note this.
4697
4698 2012-01-09  Jim Meyering  <meyering@redhat.com>
4699
4700         test-init.sh: avoid a subshell
4701         * tests/test-init.sh: Remove protective subshell.
4702         Suggested by Bernhard Voelker.  While a subshell is normally
4703         required to protect against older shells (Solaris, FreeBSD) that
4704         warn about a missing program before performing redirection, the
4705         shell-selection tests performed by init.sh probably exclude any
4706         offending shell.
4707
4708 2012-01-08  Bruno Haible  <bruno@clisp.org>
4709
4710         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4711         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4712         variable.
4713
4714 2012-01-08  Bruno Haible  <bruno@clisp.org>
4715
4716         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4717         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4718         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4719         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4720         macro.
4721         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4722         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4723         * lib/spawn_faction_addopen.c: Add workaround implementation if
4724         HAVE_WORKING_POSIX_SPAWN.
4725         * modules/spawn (Makefile): Substitute
4726         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4727         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4728         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4729         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4730         (Depends-on): Update conditions.
4731         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4732         the Solaris 11 bug.
4733
4734 2012-01-08  Bruno Haible  <bruno@clisp.org>
4735
4736         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4737         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4738         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4739         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4740         macro.
4741         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4742         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4743         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4744         HAVE_WORKING_POSIX_SPAWN.
4745         * modules/spawn (Makefile): Substitute
4746         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4747         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4748         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4749         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4750         (Depends-on): Update conditions.
4751         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4752         the Solaris 11 bug.
4753
4754 2012-01-08  Bruno Haible  <bruno@clisp.org>
4755
4756         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4757         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4758         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4759         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4760         HAVE_WORKING_POSIX_SPAWN.
4761         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4762         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4763         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4764         * lib/spawn_faction_addclose.c: Add workaround implementation if
4765         HAVE_WORKING_POSIX_SPAWN.
4766         * modules/spawn (Makefile): Substitute
4767         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4768         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4769         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4770         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4771         (Depends-on): Update conditions.
4772         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4773         the Solaris 11 bug.
4774
4775 2012-01-08  Bruno Haible  <bruno@clisp.org>
4776
4777         doc: Update for Solaris 11 2011-11.
4778         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4779         * m4/printf.m4: Update comments.
4780
4781 2012-01-08  Bruno Haible  <bruno@clisp.org>
4782
4783         mktime: Avoid compilation error on Solaris 11.
4784         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4785
4786 2012-01-08  Bruno Haible  <bruno@clisp.org>
4787
4788         doc: Small fix.
4789         * doc/posix-headers/nl_types.texi: Correct platforms list.
4790
4791 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4792
4793         Add lgpl-3.0 module.
4794         * MODULES.html.sh (Support for building documentation): Add
4795         lgpl-3.0.
4796         * modules/lgpl-3.0: New file.
4797
4798 2012-01-08  Jim Meyering  <meyering@redhat.com>
4799
4800         select.c: indent with spaces, not TABs
4801         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4802
4803 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4804
4805         quotearg: do not use grave accent for left quote
4806         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4807         locale_quoting_style.
4808         (quotearg_buffer_restyled): Fix example.
4809         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4810
4811 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4812
4813         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4814         Most programs do not have translation catalogs for English and much
4815         less separate catalogs for British and American English.  Drop the
4816         suggestion to translators about these two, and provide it
4817         automatically for Unicode locales.  Like most programs, even those
4818         using American English, we use single quotation marks.  This conflicts
4819         with the American typographic convention, but works better when you
4820         cite the entire error message within double quotes.  It also tries not
4821         to clash with established practice and with what non-gnulib programs
4822         will usually do.
4823         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4824         using an UTF-8 or GB-18030 locale.  The list of other locales with
4825         quotes was provided by Bruno Haible.
4826         (quotearg_buffer_restyled): Adjust instructions to translators.
4827         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4828         text, since this would be wrong when using Unicode.
4829         * modules/quotearg: Depend on c-strcaseeq.
4830
4831 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4832
4833         quotearg: fix Wikipedia link
4834         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4835
4836 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4837
4838         Fix for mingw with MSVC9.
4839         * m4/ld-version-script.m4: Check that compiler rejects version
4840         scripts with syntax errors.  Reported by Bruno Haible
4841         <bruno@clisp.org>.
4842
4843 2012-01-06  Bruno Haible  <bruno@clisp.org>
4844
4845         Talk about "native Windows API", not "Woe32".
4846         * lib/accept4.c: Update comments to mention native Windows.
4847         * lib/execute.c: Likewise.
4848         * lib/fatal-signal.c: Likewise.
4849         * lib/localcharset.c: Likewise.
4850         * lib/nanosleep.c: Likewise.
4851         * lib/nl_langinfo.c: Likewise.
4852         * lib/pclose.c: Likewise.
4853         * lib/pipe-filter-gi.c: Likewise.
4854         * lib/pipe-filter-ii.c: Likewise.
4855         * lib/pipe.c: Likewise.
4856         * lib/pipe2.c: Likewise.
4857         * lib/popen.c: Likewise.
4858         * lib/progreloc.c: Likewise.
4859         * lib/relocatable.c: Likewise.
4860         * lib/sigaction.c: Likewise.
4861         * lib/sigprocmask.c: Likewise.
4862         * lib/spawn-pipe.h: Likewise.
4863         * lib/spawn-pipe.c: Likewise.
4864         * lib/spawni.c: Likewise.
4865         * lib/stat-time.h: Likewise.
4866         * lib/w32spawn.h: Likewise.
4867         * tests/test-isatty.c: Likewise.
4868         * lib/config.charset: More comments.
4869         * doc/gnulib-intro.texi: Mention native Windows.
4870         * doc/posix-functions/_Exit_C99.texi: Likewise.
4871         * doc/posix-headers/fcntl.texi: Likewise.
4872
4873 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4874
4875         argp: Avoid crash if translator uses % characters in a translation.
4876         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4877         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4878
4879 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4880
4881         doc: C11 and C++11 are now official
4882         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4883         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4884         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4885         * modules/stdalign:
4886         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4887
4888 2012-01-06  Bruno Haible  <bruno@clisp.org>
4889
4890         uc-is-grapheme-break tests: Tweak.
4891         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4892         message.
4893
4894 2012-01-06  Bruno Haible  <bruno@clisp.org>
4895
4896         test-init.sh: correct the test for diff -u
4897         * tests/test-init.sh: Also redirect stdout to /dev/null.
4898
4899 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4900
4901         Use ', not `, for quoting output.
4902         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4903         (print_changelog_deltas, get_tool_versions, main program):
4904         * build-aux/git-version-gen:
4905         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4906         * build-aux/move-if-change (help):
4907         * build-aux/useless-if-before-free (usage, main program):
4908         * check-module (parse_module_file, usage)
4909         (find_included_lib_files, check_module):
4910         * lib/argmatch.c (main) [TEST]:
4911         * lib/argp-help.c (_help):
4912         * lib/getopt1.c (main) [TEST]:
4913         * lib/git-merge-changelog.c (usage):
4914         * lib/xstrtol-error.c (xstrtol_error):
4915         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4916         * m4/argz.m4 (gl_FUNC_ARGZ):
4917         * m4/bison.m4 (gl_BISON):
4918         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4919         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4920         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4921         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4922         * m4/gc-random.m4 (gl_GC_RANDOM):
4923         * m4/intl.m4 (gt_CHECK_DECL):
4924         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4925         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4926         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4927         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4928         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4929         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4930         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4931         * tests/test-dirname.c (main):
4932         * tests/test-getpass.c (main):
4933         * tests/test-iconvme.c (main):
4934         * tests/test-parse-datetime.c (LOG):
4935         * tests/test-xstrtoimax.sh:
4936         * tests/test-xstrtol.sh:
4937         * tests/test-xstrtoll.sh:
4938         * tests/test-xstrtoumax.sh:
4939         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4940         * top/GNUmakefile (abort-due-to-no-makefile):
4941         Quote 'like this', not `like this', as per the recent change to
4942         the GNU coding standards.
4943
4944 2012-01-05  Bruno Haible  <bruno@clisp.org>
4945
4946         strtoimax: Don't force a replacement on systems where intmax_t is int.
4947         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4948         'intmax_t' is not larger than 'int'.
4949         Reported by Pádraig Brady <P@draigBrady.com>.
4950
4951 2012-01-05  Bruno Haible  <bruno@clisp.org>
4952
4953         doc: Mention NetBSD bugs.
4954         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4955         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4956
4957 2012-01-05  Bruno Haible  <bruno@clisp.org>
4958
4959         strtoumax tests: Enhance tests.
4960         * tests/test-strtoumax.c (main): Add tests for large values.
4961
4962 2012-01-05  Bruno Haible  <bruno@clisp.org>
4963
4964         strtoimax: Work around AIX 5.1 bug.
4965         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4966         definition.
4967         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4968         Set HAVE_STRTOIMAX.
4969         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4970         REPLACE_STRTOIMAX.
4971         * modules/inttypes-incomplete (Makefile.am): Substitute
4972         REPLACE_STRTOIMAX.
4973         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4974         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4975         (Depends-on): Update conditions.
4976         * tests/test-strtoimax.c (main): Add tests for large values.
4977         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4978
4979 2012-01-05  Bruno Haible  <bruno@clisp.org>
4980
4981         inttypes: Modernize.
4982         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4983         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4984         (Makefile.am): Update inttypes.h rule.
4985
4986 2012-01-05  Jim Meyering  <meyering@redhat.com>
4987
4988         init.sh: don't waste a subshell just to redirect stderr
4989         * tests/init.sh: In testing for diff -u and diff -c, use a
4990         stderr-redirecting exec inside `...` rather than a subshell.
4991
4992         test-init.sh: avoid failure on HP-UX 11.00
4993         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4994         resolves to diff -c or cmp.  Reported by Bruno Haible.
4995
4996 2012-01-05  Bruno Haible  <bruno@clisp.org>
4997
4998         Tests for module 'strtoull'.
4999         * modules/strtoull-tests: New file.
5000         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5001
5002 2012-01-05  Bruno Haible  <bruno@clisp.org>
5003
5004         Tests for module 'strtoll'.
5005         * modules/strtoll-tests: New file.
5006         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5007
5008 2012-01-05  Bruno Haible  <bruno@clisp.org>
5009
5010         Tests for module 'strtoul'.
5011         * modules/strtoul-tests: New file.
5012         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5013
5014 2012-01-05  Bruno Haible  <bruno@clisp.org>
5015
5016         Tests for module 'strtol'.
5017         * modules/strtol-tests: New file.
5018         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5019
5020 2012-01-04  Jim Meyering  <meyering@redhat.com>
5021
5022         test-init.sh: accommodate Solaris 5.10's different diff -u output
5023         * tests/test-init.sh: Also exempt @@ lines from the comparison
5024         of diff output, since Solaris 5.10 and GNU diff formats differ.
5025         Reported by Stefano Lattarini.
5026
5027 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5028
5029         test-posixtm: don't assume signed integer wraparound
5030         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5031         after signed integer overflow.  Inspired by (though it may not
5032         fix) Bruno Haible's bug report in
5033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5034
5035         Spell out "Windows 9x" and "Windows XP".
5036         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5037         "Windows 9x" and "WinXP" with "Windows XP".
5038
5039 2012-01-04  Jim Meyering  <meyering@redhat.com>
5040
5041         test-vc-list-files-cvs.sh: remove obsolete comment
5042         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5043         double exit.  Now that's all encapsulated via skip_ and Exit.
5044
5045 2012-01-04  Bruno Haible  <bruno@clisp.org>
5046
5047         Talk about "native Windows API", not "Win32".
5048         * lib/classpath.c: Update comments to mention native Windows.
5049         * lib/csharpexec.c: Likewise.
5050         * lib/dup2.c: Likewise.
5051         * lib/error.c: Likewise.
5052         * lib/fcntl.c: Likewise.
5053         * lib/filename.h: Likewise.
5054         * lib/findprog.c: Likewise.
5055         * lib/get-rusage-as.c: Likewise.
5056         * lib/get-rusage-data.c: Likewise.
5057         * lib/getpagesize.c: Likewise.
5058         * lib/javaexec.c: Likewise.
5059         * lib/msvc-inval.c: Likewise.
5060         * lib/msvc-nothrow.c: Likewise.
5061         * lib/nanosleep.c: Likewise.
5062         * lib/nonblocking.c: Likewise.
5063         * lib/printf-parse.c: Likewise.
5064         * lib/setlocale.c: Likewise.
5065         * lib/sigaction.c: Likewise.
5066         * lib/strerror_r.c: Likewise.
5067         * lib/tmpdir.c: Likewise.
5068         * lib/vasnprintf.c: Likewise.
5069         * lib/w32spawn.h: Likewise.
5070         * lib/waitpid.c: Likewise.
5071         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5072         * m4/locale-ar.m4: Likewise.
5073         * m4/locale-fr.m4: Likewise.
5074         * m4/locale-ja.m4: Likewise.
5075         * m4/locale-tr.m4: Likewise.
5076         * m4/locale-zh.m4: Likewise.
5077         * m4/printf.m4: Likewise.
5078         * tests/test-cloexec.c: Likewise.
5079         * tests/test-copy-acl.sh: Likewise.
5080         * tests/test-copy-file.sh: Likewise.
5081         * tests/test-file-has-acl.sh: Likewise.
5082         * tests/test-set-mode-acl.sh: Likewise.
5083         * tests/test-dup-safer.c: Likewise.
5084         * tests/test-dup2.c: Likewise.
5085         * tests/test-dup3.c: Likewise.
5086         * tests/test-fcntl.c: Likewise.
5087         * tests/test-nonblocking-pipe.h: Likewise.
5088         * tests/test-nonblocking-socket.h: Likewise.
5089         * tests/test-pipe.c: Likewise.
5090         * tests/test-pipe2.c: Likewise.
5091         * tests/test-spawn-pipe-child.c: Likewise.
5092         * doc/acl-resources.txt: Likewise.
5093         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5094         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5095         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5096         * lib/localcharset.c: Update comments to mention native Windows.
5097         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5098         * lib/localename.c: Likewise.
5099         * lib/progreloc.c: Likewise.
5100         * lib/relocatable.c: Likewise.
5101         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5102         (windows_compute_revents): Renamed from win32_compute_revents.
5103         (windows_compute_revents_socket): Renamed from
5104         win32_compute_revents_socket.
5105         * lib/select.c: Update comments to mention native Windows.
5106         (windows_poll_handle): Renamed from win32_poll_handle.
5107         * m4/threadlib.m4: Update comments to mention native Windows.
5108         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5109         --enable-threads=windows instead of --enable-threads=win32. Set
5110         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5111         * lib/glthread/lock.h: Update comments to mention native Windows.
5112         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5113         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5114         USE_WIN32_THREADS.
5115         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5116         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5117         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5118         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5119         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5120         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5121         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5122         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5123         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5124         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5125         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5126         * tests/test-tls.c: Likewise.
5127         Rationale:
5128         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5129         on both 32-bit and 64-bit Windows systems.
5130         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5131         line of distinction is between "native Windows" on one side and Unix/
5132         POSIX systems on the other side. More details in
5133         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5134         Suggested by Paul Eggert.
5135
5136 2012-01-03  Bruno Haible  <bruno@clisp.org>
5137
5138         isatty: Support for MSVC 9.
5139         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5140         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5141         (_isatty_nothrow): New function.
5142         (isatty): Use it instead of _isatty.
5143         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5144         * lib/poll.c (IsConsoleHandle): Likewise.
5145         * lib/select.c (IsConsoleHandle): Likewise.
5146         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5147         (gl_PREREQ_ISATTY): New macro.
5148         * modules/isatty (Depends-on): Add msvc-inval.
5149         (configure.ac): Invoke gl_PREREQ_ISATTY.
5150
5151 2012-01-03  Jim Meyering  <meyering@redhat.com>
5152
5153         maint.mk: remove temporary transition aid from over 1.5 years ago
5154         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5155         purpose was to aid in the transition (avoiding silent malfunction)
5156         from that old name to the new _sc_search_regexp.  This shim was
5157         added by commit 219c504b.
5158
5159         init.sh: do not try to accommodate compare arguments starting with "-"
5160         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5161         compare arguments that start with "-".  Besides, we do not worry
5162         about this when invoking diff or cmp; why start now with sed?
5163         Using "--" to separate options from argument would trigger sed
5164         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5165         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5166
5167 2012-01-02  Bruno Haible  <bruno@clisp.org>
5168
5169         Enhance tests for module 'isatty'.
5170         * modules/isatty-tests (Depends-on): Add pipe-posix.
5171         * tests/test-isatty.c: Include <fcntl.h>.
5172         (DEV_NULL): New macro.
5173         (main): Test the resut of isatty() also on regular files, pipes, and
5174         /dev/null.
5175
5176         New module 'isatty'.
5177         * lib/unistd.in.h (isatty): New declaration.
5178         * lib/isatty.c: New file, based on an idea of
5179         Bastien Roucariès <roucaries.bastien@gmail.com>.
5180         * m4/isatty.m4: New file.
5181         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5182         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5183         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5184         REPLACE_ISATTY.
5185         * modules/isatty: New file.
5186         * doc/posix-functions/isatty.texi: Mention the new module.
5187         Suggested by Paolo Bonzini.
5188
5189 2012-01-02  Bruno Haible  <bruno@clisp.org>
5190
5191         canonicalize: Tweak 2011-12-29 commit.
5192         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5193         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5194
5195 2012-01-02  Jim Meyering  <meyering@redhat.com>
5196
5197         gitlog-to-changelog: describe input syntax in --help output
5198         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5199
5200         gitlog-to-changelog: fix typo in --help: show backslash before email @
5201         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5202         in sources, but not in actual output.
5203
5204 2011-12-30  Jim Meyering  <meyering@redhat.com>
5205
5206         gitlog-to-changelog: don't malfunction when name contains %-directive
5207         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5208         in a name string cause trouble.  E.g., with a user name of "%s",
5209         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5210
5211 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5212
5213         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5214         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5215         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5216         the "  (tiny change)" notation that is appended to the standard
5217         ChangeLog "date  name  email" header line.
5218
5219 2012-01-01  Jim Meyering  <meyering@redhat.com>
5220
5221         test-framework-sh: init.sh: fix "make dist" failure
5222         When using gnulib-tool's --with-tests option and any module that
5223         depends on test-framework-sh, "make dist" would fail due to the
5224         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5225         in the gltests directory, and not in the gllib/ directory.
5226         One way to work around that is to move the EXTRA_DIST += init.sh
5227         from the primary module to the -tests one:
5228         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5229         * modules/test-framework-sh (Makefile.am): ...not here.
5230         Reported by Tom G. Christensen in
5231         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5232
5233         version-etc: update copyright year reported by --version
5234         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5235
5236 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5237
5238         canonicalize: only stat() if required
5239         * lib/canonicalize.c (canonicalize_filename_mode):
5240         Avoid calling l?stat() when both CAN_MISSING,
5241         and CAN_NOLINKS are set, as we neither need
5242         to resolve symlinks or test component existence.
5243
5244 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5245
5246         doc: cover st_ino issues once; add OpenVMS etc.
5247         * doc/posix-functions/stat.texi (stat):
5248         * doc/posix-functions/lstat.texi (lstat):
5249         * doc/posix-functions/fstatat.texi (fstatat):
5250         * doc/posix-functions/fstat.texi (fstat):
5251         Move general 'struct stat' stuff to sys_stat.texi,
5252         leaving behind a pointer.
5253         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5254         Merge duplicate info about 'struct stat' problems into here.
5255         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5256         and suggest partial workarounds.
5257
5258         same-inode: port to OpenVMS
5259         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5260         three st_ino values.
5261
5262 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5263
5264         canonicalize: fix references to stat() and lstat()
5265         * lib/canonicalize.c (canonicalize_filename_mode):
5266         Ensure references always resolve to a replacement
5267         function if required (even via a macro).
5268
5269 2011-12-30  Jim Meyering  <meyering@redhat.com>
5270
5271         gitlog-to-changelog: remove a little duplication
5272         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5273         rather than twice.
5274
5275 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5276
5277         canonicalize: add support for not resolving symlinks
5278         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5279         indicate we don't want to follow symlinks.  Also
5280         provide CAN_MODE_MASK to aid setting these existing
5281         mutually exclusive values.
5282         * lib/canonicalize.c (canonicalize_filename_mode):
5283         Extract the flags from can_mode parameter, which
5284         are currently just used to select between stat()
5285         and lstat().  Also ensure that mutually exclusive
5286         values are flagged immediately as invalid.
5287         * tests/test-canonicalize.c: Verify symlinks are
5288         not followed, and that invalid flag combinations
5289         are diagnosed.
5290
5291 2011-12-25  Jim Meyering  <meyering@redhat.com>
5292
5293         gitlog-to-changelog: do not clump multi-paragraph entries
5294         Identical header lines (date,name,email+coauthors) are suppressed,
5295         thus putting all entries with those same characteristics under
5296         a single header.  However, when a log entry consists of two or
5297         more paragraphs, it may not be clear where it starts and ends.
5298         This change makes it so that such an entry is always separated
5299         from others by a header line, even when that header would
5300         otherwise be suppressed.
5301         * build-aux/gitlog-to-changelog: Implement the above.
5302         Inspired by a related request from Stefano Lattarini in
5303         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5304
5305 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5306
5307         announce-gen: fix `cmd' typo in diagnostic
5308         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5309         diagnostic: a missing '$' meant that the command was not output.
5310
5311 2011-12-23  Jim Meyering  <meyering@redhat.com>
5312
5313         test-framework-sh: distribute init.sh
5314         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5315         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5316         fail due to the lack of init.sh.
5317
5318         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5319         * modules/atexit-tests: Rather than listing tests/init.sh,
5320         now that there's a module for it, simply depend on that new module.
5321         * modules/closein-tests: Likewise.
5322         * modules/exclude-tests: Likewise.
5323         * modules/getcwd-tests: Likewise.
5324         * modules/perror-tests: Likewise.
5325         * modules/pread-tests: Likewise.
5326         * modules/pwrite-tests: Likewise.
5327         * modules/vc-list-files-tests: Likewise.
5328         * modules/verify-tests: Likewise.
5329         * modules/xalloc-die-tests: Likewise.
5330         * modules/xstrtoimax-tests: Likewise.
5331         * modules/xstrtol-tests: Likewise.
5332         * modules/xstrtoll-tests: Likewise.
5333         * modules/xstrtoumax-tests: Likewise.
5334         * modules/yesno-tests: Likewise.
5335
5336 2011-12-22  Jim Meyering  <meyering@redhat.com>
5337
5338         test-framework-sh: add minimal tests of init.sh's compare function
5339         * modules/test-framework-sh-tests: New file.
5340         * tests/test-init.sh: New file.
5341
5342         test-framework-sh: new module
5343         * modules/test-framework-sh: New file.
5344         * MODULES.html.sh (Support for maintaining and releasing projects):
5345         List it.
5346
5347         init.sh: do not emit simulated diff output to stderr
5348         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5349
5350 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5351
5352         .gitignore: ignore gnulib.dvi and regex.info
5353         * doc/.gitignore:add gnulib.dvi and regex.info
5354
5355 2011-12-22  Jim Meyering  <meyering@redhat.com>
5356
5357         init.sh: correct previous change
5358         * tests/init.sh (compare): My previous change was wrong.
5359         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5360
5361         init.sh: avoid unwarranted test failure when using "set -e"
5362         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5363         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5364         a use like "compare exp out" would get evoke an unconditional failure.
5365
5366 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5367
5368         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5369         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5370         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5371         autoreconf that did not.
5372         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5373         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5374
5375 2011-12-17  Jim Meyering  <meyering@redhat.com>
5376
5377         bootstrap: remove some now-unneeded code
5378         This script arose back when gnulib-tool was young.
5379         Since then, it has seen improvements that render much of this
5380         script unnecessary.  In particular, it can now make symlinks
5381         to the files it uses.  Also, I no longer see as much value in
5382         marking files as read-only via comments.
5383         If you relied on the symlink-creation feature of the preceding
5384         version of this script, you can get most of that functionality
5385         by adding the --symlink option to the definition of
5386         gnulib_tool_option_extras in your bootstrap.conf file.
5387         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5388         Run autopoint and libtoolize *before* gnulib-tool.
5389         After it, run an abbreviated autoreconf, rather than a loop around
5390         all tools.
5391         (slirp, bt_mark_as_generated): Remove functions.
5392
5393 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5394
5395         ftoastr: fix typo
5396         * lib/ftoastr.h: Fix misspelling in comment.
5397
5398 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5399
5400         * top/README-release: fix punctuation.
5401
5402 2011-12-17  Jim Meyering  <meyering@redhat.com>
5403
5404         bootstrap: correct the recent buildreq change
5405         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5406         had no effect.
5407         * build-aux/bootstrap (buildreq): Bracket each search term with
5408         "*...*", so that the shell "case" statement works as intended.
5409         Add comments.
5410
5411 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5412
5413         build: let bootstrap resort to wget when downloading .po files
5414         * build-aux/bootstrap (download_po_files): Fallback to wget when
5415         downloading the .po files via rsync fails.  This is necessary to
5416         bootstrap from behind a strict firewall.
5417
5418 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5419
5420         stdint: don't assume C++11 when compiling with g++
5421         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5422         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5423         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5424         work also in C++ before C++11, as that improperly inhibits
5425         generating a substitute stdint.h for that case.
5426
5427 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5428
5429         alloca: protect comment from gnulib-tool
5430         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5431         that gnulib-tool doesn't think it's a license, and munge it to
5432         say "GCC version 3".
5433
5434 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5435
5436         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5437         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5438         $(abs_top_builddir) instead of $(top_builddir).
5439
5440 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5441
5442         strftime-tests: also test nanoseconds
5443         * tests/test-strftime.c (T): Add a test of %N.
5444
5445 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5446
5447         inttypes, stdint: add C++11 support
5448         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5449         when including inttypes.h and stdint.h.  Support this change to
5450         the standard.
5451         * doc/posix-headers/inttypes.texi (inttypes.h):
5452         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5453         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5454         Define if not defined already, for the benefit of pre-C++11 hosts.
5455         Define the standard format macros (e.g., PRId8) always.
5456         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5457         Likewise, if __cpluspus.  Define the standard constant and limit
5458         macros (e.g., INT8_C, INT8_MAX) always.
5459         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5460         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5461         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5462         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5463         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5464         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5465         Likewise.
5466
5467 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5468
5469         nonblocking tests: Fix test failure on Linux/PPC.
5470         Suggested by Prerna Saxena in
5471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5472         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5473         Set to 1100000.
5474
5475 2011-12-12  Jim Meyering  <meyering@redhat.com>
5476
5477         argmatch: don't hard-code `' when listing valid option arguments
5478         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5479         use the quote function to add quotes.  Use fputs rather than
5480         fprintf for the format string with no format directive.
5481
5482 2011-12-07  Eric Blake  <eblake@redhat.com>
5483
5484         bootstrap: detect tools required by gnulib-tool
5485         * build-aux/bootstrap (buildreq): Provide minimum implicit
5486         dependencies.
5487         * DEPENDENCIES: Mention patch as a prereq.
5488
5489 2011-12-04  Bruno Haible  <bruno@clisp.org>
5490
5491         sethostname: Port to Windows platforms.
5492         * lib/sethostname.c: Provide an alternate implementation for Windows
5493         platforms.
5494         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5495         (main): Skip the test if sethostname() fails with EPERM. On Windows
5496         platforms, don't check the result of gethostname().
5497
5498 2011-12-04  Bruno Haible  <bruno@clisp.org>
5499             Jim Meyering  <meyering@redhat.com>
5500
5501         tests: Avoid spurious error message on platforms without mktemp program.
5502         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5503
5504 2011-12-04  Bruno Haible  <bruno@clisp.org>
5505
5506         sethostname: Fix documentation.
5507         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5508         "not fixed" section.
5509
5510 2011-12-03  Bruno Haible  <bruno@clisp.org>
5511
5512         gnulib-tool: Verify that the License field is present and non-empty.
5513         * gnulib-tool (func_get_license_raw): New function, extracted from
5514         func_get_license.
5515         (func_get_license): Use it. Warn if the module is not a test module and
5516         has no license.
5517         Suggested by Jim Meyering.
5518
5519 2011-12-03  Bruno Haible  <bruno@clisp.org>
5520
5521         sethostname tests: Fix link error on mingw.
5522         * tests/test-sethostname1.c: New file, extracted from
5523         tests/test-sethostname.c.
5524         * tests/test-sethostname2.c: New file, extracted from
5525         tests/test-sethostname.c.
5526         * tests/test-sethostname.c: Remove file.
5527         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5528         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5529         (Depends-on): Add gethostname.
5530         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5531         Link the latter with $(GETHOSTNAME_LIB).
5532
5533         sethostname tests: Fix compilation error on mingw.
5534         * tests/test-sethostname.c: Don't include <sys/types.h>.
5535         (geteuid): Use a dummy value without uid_t.
5536         * modules/sethostname-tests (Depends-on): Remove sys_types.
5537
5538         sethostname tests: Avoid a gcc warning.
5539         * tests/test-sethostname.c (main): Remove an unused variable.
5540
5541         Tweak last commit.
5542         * modules/sethostname-tests (Files): Sort by decreasing importance.
5543         (configure.ac): Check for geteuid.
5544         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5545         the test when there's nothing to test. Drop an unnecessary cast.
5546         Improve an error message. Verify that the final sethostname() call
5547         succeeds.
5548
5549 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5550
5551         Add a test suite for the sethostname module.
5552         * modules/sethostname-tests: New file.  A test program
5553         for the sethostname module.
5554         * tests/test-sethostname.c: Likewise.
5555
5556 2011-12-03  Bruno Haible  <bruno@clisp.org>
5557
5558         Tweak last commit.
5559         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5560         Fix preprocessor directives indentation. Fix typos.
5561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5562         * modules/unistd (Makefile): Likewise.
5563
5564 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5565
5566         Integrate the sethostname module into unistd.
5567         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5568         into the unistd.h header.
5569         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5570         preprocessor directives.
5571         * modules/unistd: Setup the Makefile substitutions of the
5572         SETHOSTNAME preprocessor directives.
5573
5574 2011-12-03  Bruno Haible  <bruno@clisp.org>
5575
5576         Tweak last commit.
5577         * lib/sethostname.c: Don't include <string.h>.
5578         (sethostname): No need to copy the argument string to the stack. Don't
5579         call clearerr. Preserve errno when fprintf failed.
5580         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5581         Don't invoke AC_REPLACE_FUNCS.
5582         * modules/sethostname (Link): Remove empty section.
5583         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5584         failure problem.
5585
5586 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5587
5588         New module 'sethostname'.
5589         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5590         for systems that lack it.
5591         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5592         sethostname declaration and function.
5593         * modules/sethostname: New file.  Define the sethostname module.
5594
5595 2011-12-03  Bruno Haible  <bruno@clisp.org>
5596
5597         Tweak last commit.
5598         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5599
5600 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5601
5602         Split the HOST_NAME_MAX detection into a separate m4 macro.
5603         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5604         macro so it can be used by the pending sethostname module.
5605
5606 2011-12-03  Bruno Haible  <bruno@clisp.org>
5607
5608         Fix module descriptions syntax.
5609         * modules/argv-iter (License): Fix syntax.
5610         * modules/di-set (License): Likewise.
5611         * modules/ino-map (License): Likewise.
5612         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5613
5614 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5615
5616         stdalign: port to Clang 3.0
5617         Problem reported by Simon Josefsson in
5618         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5619         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5620         which has <stdalign.h> but which does not define alignof.
5621         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5622
5623 2011-12-01  Eric Blake  <eblake@redhat.com>
5624
5625         mktempd: silence dd usage
5626         * build-aux/mktempd (rand_bytes): Silence dd.
5627
5628 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5629
5630         manywarnings: Don't mention gcc version in docstring.
5631         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5632         Jim Meyering <meyering@redhat.com>.
5633
5634 2011-11-30  Jim Meyering  <meyering@redhat.com>
5635
5636         hash: mark a few floating point constants with "f" suffix
5637         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5638         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5639         floating point constants with "f", since they're destined to be
5640         saved/used as "float"s.
5641
5642 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5643
5644         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5645         * tests/test-float.c (test_long_double): Correct and re-enable the
5646         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5647
5648 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5649
5650         Avoid subtracting two pointers that don't point into the same block.
5651         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5652         only pointers into the same memory block are subtracted. We cannot
5653         assume that sizeof (ptrdiff_t) == sizeof (void *).
5654
5655 2011-11-29  Eric Blake  <eblake@redhat.com>
5656
5657         maint.mk: add syntax check for use of compare from init.sh
5658         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5659         moved here from coreutils.
5660
5661         manywarnings: drop -Wunsuffixed-float-constants
5662         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5663         '1.0D', which is the only way to silence this warning for 'double'.
5664
5665 2011-11-29  Jim Meyering  <meyering@redhat.com>
5666
5667         hash: mark compute_bucket_size with the pure attribute
5668         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5669
5670         quotearg, propername: correct pragma guard expression
5671         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5672         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5673
5674 2011-11-28  Jim Meyering  <meyering@redhat.com>
5675
5676         propername: do not mark proper_name with the const attribute
5677         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5678         since it examines data pointed to by its parameter.
5679         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5680         the suggestion from -Wsuggest-attribute=const.
5681
5682         propername: mark one more function as const
5683         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5684
5685 2011-11-27  Jim Meyering  <meyering@redhat.com>
5686
5687         mark functions with const and pure attributes
5688
5689         Mark functions per suggestions from gcc-4.6 when using these options:
5690         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5691         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5692         Follow these guidelines: when possible, apply the attribute to
5693         an extern declaration, not to its definition.  Apply it to the
5694         definition only when the definition is static.
5695         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5696         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5697         * lib/base64.h (isbase64): Likewise.
5698         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5699         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5700         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5701         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5702         (c_tolower, c_toupper): Likewise.
5703         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5704         * lib/chdir-long.c (find_non_slash): Likewise.
5705         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5706         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5707         * lib/file-type.h (file_type): Likewise.
5708         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5709         * lib/filevercmp.c (verrevcmp): Likewise.
5710         * lib/freadahead.h (freadahead): Likewise.
5711         * lib/fts.c (fts_maxarglen): Likewise.
5712         * lib/hash-pjw.h (hash_pjw): Likewise.
5713         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5714         * lib/hash.c (is_prime, next_prime): Likewise.
5715         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5716         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5717         (hash_table_ok, hash_get_first, hash_string): Likewise.
5718         (compute_bucket_size): Likewise.
5719         * lib/i-ring.h (i_ring_empty): Likewise.
5720         * lib/isnan.c (isnanl): Likewise.
5721         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5722         * lib/memcasecmp.h (memcasecmp): Likewise.
5723         * lib/memchr2.h (memchr2): Likewise.
5724         * lib/memcmp2.h (memcmp2): Likewise.
5725         * lib/parse-datetime.y (lookup_zone): Likewise.
5726         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5727         [!WINDOWS_SOCKETS]: Likewise.
5728         * lib/strnlen1.h (strnlen1): Likewise.
5729         * lib/uniwidth.in.h (uc_width): Likewise.
5730         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5731         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5732         (quoting_options_from_style): Add a comment.
5733         * lib/propername.h (proper_name): Add a comment.
5734
5735 2011-11-27  Bruno Haible  <bruno@clisp.org>
5736
5737         Remove unused macros from !_LIBC code in glibc-borrowed files.
5738         * lib/fnmatch.c (STRCOLL): Remove macro.
5739         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5740         * lib/glob.c (__stat, __readdir64): Remove macros.
5741         * lib/tempname.c (__open64, __xstat64): Remove macros.
5742         Suggested by Paul Eggert.
5743
5744 2011-11-27  Bruno Haible  <bruno@clisp.org>
5745
5746         getcwd: Fix link error on MSVC 9.
5747         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5748
5749 2011-11-27  Bruno Haible  <bruno@clisp.org>
5750
5751         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5752         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5753         HAVE_OPENDIR is 0.
5754         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5755         HAVE_CLOSEDIR is 0.
5756         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5757         is 0.
5758         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5759
5760 2011-11-27  Bruno Haible  <bruno@clisp.org>
5761
5762         getcwd: Fix bug from 2011-08-17.
5763         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5764         platforms that need it.
5765         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5766         code of 4 to be a failure, not a success. This ensures that
5767         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5768
5769 2011-11-27  Bruno Haible  <bruno@clisp.org>
5770
5771         binary-io tests: Avoid test failure on mingw when libtool is used.
5772         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5773         Don't verify the size of t-bin-out1.tmp here.
5774         * tests/test-binary-io.sh: Verify it here.
5775         Reported by Simon Josefsson.
5776
5777 2011-11-26  Bruno Haible  <bruno@clisp.org>
5778
5779         Fix conflict between two instantiations of module 'unistd'.
5780         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5781         ${include_guard_prefix} also in the autoconf snippet.
5782         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5783         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5784         GNULIB_UNISTD_H_GETOPT.
5785         * modules/getopt-posix (configure.ac): Set the
5786         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5787         * modules/getopt-gnu (configure.ac): Likewise.
5788         * modules/unistd (Makefile.am): Change the substitution value of
5789         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5790         Reported by Simon Josefsson.
5791
5792 2011-11-25  Bruno Haible  <bruno@clisp.org>
5793
5794         pagealign_alloc: Doc and comments.
5795         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5796         module.
5797         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5798
5799 2011-11-25  Jim Meyering  <meyering@redhat.com>
5800
5801         test-update-copyright.sh: avoid false-positive failure
5802         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5803         around false positive failure on Cygwin/Windows.  The latter was
5804         matching erroneously-created files with names like
5805         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5806
5807 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5808
5809         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5810         * m4/valgrind-tests.m4: Check that the parameters that will be
5811         used works, not just a subset of them.  Reported by Bruno Haible
5812         <bruno@clisp.org>.
5813
5814 2011-11-24  Jim Meyering  <meyering@redhat.com>
5815
5816         test-stdalign.c: comment out long double tests
5817         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5818         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5819         error: '_Alignas' specifiers cannot reduce alignment of \
5820         'static_longdouble_alignas'.
5821
5822 2011-11-22  Jim Meyering  <meyering@redhat.com>
5823
5824         init.sh: make "compare /dev/null FILE" output more readable
5825         * tests/init.sh (compare_): Document the preferred order of arguments.
5826         (emit_diff_u_header_): New function.
5827         (compare_dev_null_): Emit a simulated diff, rather than just the
5828         contents of the unexpected file.  Suggestion from Bruno Haible.
5829
5830 2011-11-21  Jim Meyering  <meyering@redhat.com>
5831             Eric Blake  <eblake@redhat.com>
5832
5833         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5834         * tests/init.sh: Make our compare function slightly more portable.
5835         Reported by Bruno Haible in
5836         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5837
5838 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5839
5840         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5841         before using it, in code that ends up in config.h.
5842
5843 2011-11-20  Bruno Haible  <bruno@clisp.org>
5844
5845         getcwd: Work around getcwd bug on AIX 5..7.
5846         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5847         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5848         Use a different value for gl_cv_func_getcwd_path_max. Move the
5849         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5850         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5851         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5852         Define HAVE_MINIMALLY_WORKING_GETCWD.
5853         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5854         where it is not even minimally working, that is, on AIX.
5855         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5856         m4/getcwd-path-max.m4.
5857         (main): Update exit code computation.
5858         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5859         getcwd does not handle long file names.
5860
5861 2011-11-20  Bruno Haible  <bruno@clisp.org>
5862
5863         getcwd: Fix bug from 2009-09-10.
5864         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5865         like "no".
5866
5867 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5868
5869         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5870
5871 2011-11-20  Bruno Haible  <bruno@clisp.org>
5872
5873         fma tests: Avoid shadowing local variables.
5874         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5875         expected.
5876
5877 2011-11-20  Bruno Haible  <bruno@clisp.org>
5878
5879         copysignf tests: Fix.
5880         * tests/test-copysignf.c: Fix signature check.
5881
5882 2011-11-20  Bruno Haible  <bruno@clisp.org>
5883
5884         fma: Remove unused code.
5885         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5886         unused macros.
5887
5888 2011-11-20  Bruno Haible  <bruno@clisp.org>
5889
5890         sethostname: Fix doc about AIX.
5891         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5892         sethostname; it has it.
5893
5894         sethostname: Mention more portability problems.
5895         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5896         problem.
5897         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5898
5899 2011-11-19  Bruno Haible  <bruno@clisp.org>
5900
5901         Depend on module fcntl-h when AT_FDCWD is used.
5902         * modules/utimens (Depends-on): Add fcntl-h.
5903         * modules/areadlinkat (Depends-on): Likewise.
5904         * modules/areadlinkat-with-size (Depends-on): Likewise.
5905         * modules/faccessat (Depends-on): Likewise.
5906         * modules/fchmodat (Depends-on): Likewise.
5907         * modules/fchownat (Depends-on): Likewise.
5908         * modules/getcwd (Depends-on): Likewise.
5909         * modules/mkdirat (Depends-on): Likewise.
5910         * modules/mkfifoat (Depends-on): Likewise.
5911         * modules/readlinkat (Depends-on): Likewise.
5912         * modules/symlinkat (Depends-on): Likewise.
5913         * modules/dup2-tests (Depends-on): Likewise.
5914         * modules/fdutimensat-tests (Depends-on): Likewise.
5915         * modules/futimens-tests (Depends-on): Likewise.
5916
5917 2011-11-19  Bruno Haible  <bruno@clisp.org>
5918
5919         euidaccess: Update a comment.
5920         * lib/euidaccess.c: Update comment about platforms with faccessat.
5921
5922 2011-11-19  Bruno Haible  <bruno@clisp.org>
5923
5924         openat: Fix file list.
5925         * modules/openat (Files): Remove lib/at-func.c.
5926
5927 2011-11-19  Bruno Haible  <bruno@clisp.org>
5928
5929         fstatat: Simplify.
5930         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5931         gnulib should define rpl_fstatat, there is a
5932         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5933
5934 2011-11-19  Bruno Haible  <bruno@clisp.org>
5935
5936         Ensure 'inline' can be used in tests/test-utimens-common.h.
5937         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5938         * modules/futimens-tests (configure.ac): Likewise.
5939         * modules/utimens-tests (configure.ac): Likewise.
5940         * modules/utimensat-tests (configure.ac): Likewise.
5941
5942 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5943
5944         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5945         not hash_insert0.
5946         (hash_insert_if_absent): Doc fix.
5947
5948 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5949
5950         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5951
5952 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5953
5954         test-getcwd: disambiguate exit status
5955         * tests/test-getcwd.c (test_long_name): Return 0..7.
5956         (main): Exit with an unambiguous exit status.  The old
5957         code yielded a mysterious mixture of two failure codes.
5958
5959         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5960         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5961         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5962         rpl_fstatat or fstatat.  This should fix the other problem
5963         reported by Kai Habel in
5964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5965         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5967         and I reproduced it on a Solaris 8 host we still have in production.
5968
5969 2011-11-18  Jim Meyering  <meyering@redhat.com>
5970
5971         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5972         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5973         Add a sentence to the comment.
5974         (hash_insert0): New function that simply calls hash_insert_if_absent.
5975         * lib/hash.h (hash_insert_if_absent): Declare it.
5976         (hash_insert0): Add deprecation attribute.
5977         (_GL_ATTRIBUTE_DEPRECATED): Define.
5978         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5979         not hash_insert0.
5980         * NEWS: Mention it, even though it's not really an incompatible change.
5981
5982 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5983
5984         openat: avoid compilation failure due to lack of <errno.h> inclusion
5985         * lib/openat.c: Include <errno.h>.
5986
5987 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5988
5989         * modules/getcwd (Depends-on): Add fdopendir.
5990         This fixes one of the two problems reported by Kai Habel in
5991         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5992
5993         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5994         stdalign problem reported by Ian Beckwith in
5995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5996         * modules/crypto/gc-arcfour (Depends-on):
5997         Depend conditionally on crypto/arcfour.
5998         * modules/crypto/gc-arctwo (Depends-on):
5999         Depend conditionally on crypto/arctwo.
6000         * modules/crypto/gc-des (Depends-on):
6001         Depend conditionally on crypto/des.
6002         * modules/crypto/gc-hmac-md5 (Depends-on):
6003         Depend conditionally on crypto/hmac-md5.
6004         * modules/crypto/gc-hmac-sha1 (Depends-on):
6005         Depend conditionally on crypto/hmac-sha1.
6006         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6007         * modules/crypto/gc-md4 (Depends-on):
6008         Depend conditionally on crypto/md4.
6009         * modules/crypto/gc-md5 (Depends-on):
6010         Depend conditionally on crypto/md5.
6011         * modules/crypto/gc-rijndael (Depends-on):
6012         Depend conditionally on crypto/rijndael.
6013         * modules/crypto/gc-sha1 (Depends-on):
6014         Depend conditionally on crypto/sha1.
6015         * modules/crypto/gc-arcfour:
6016         * modules/crypto/gc-arctwo:
6017         * modules/crypto/gc-des:
6018         * modules/crypto/gc-hmac-md5:
6019         * modules/crypto/gc-hmac-sha1:
6020         * modules/crypto/gc-md2:
6021         * modules/crypto/gc-md4:
6022         * modules/crypto/gc-md5:
6023         * modules/crypto/gc-rijndael:
6024         * modules/crypto/gc-sha1:
6025         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6026         now that the conditional dependencies do the work for us.
6027
6028 2011-11-17  Jim Meyering  <meyering@redhat.com>
6029
6030         tests: factor st_ctime-comparison out of two headers
6031         * tests/test-utimens-common.h (ctime_compare): Define.
6032         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6033         * tests/test-lutimens.h (test_lutimens): Likewise.
6034         * tests/test-utimens.h (test_utimens): Likewise.
6035
6036         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6037         Invoke the test program via an init.sh-using wrapper.
6038         * tests/test-getcwd.sh: New file.
6039         * modules/getcwd-tests (Files): Add it.
6040         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6041
6042 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6043
6044         gitlog-to-changelog: support multi-author commits.
6045         The FSF cares about keeping track of all authors of patches to its
6046         projects, but Git doesn't provide obvious support for multi-author
6047         changesets. Consensus seems to be forming around the use of extra
6048         Signed-off-by inspired lines in the log message formatted as
6049         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6050         multi-author commits between version control systems.
6051         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6052         log message and output in standard ChangeLog multi-author format.
6053         Reported by Peter Rosin <peda@lysator.liu.se>
6054
6055 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6056             Bruno Haible  <bruno@clisp.org>
6057
6058         Fix some modules' file list.
6059         * modules/fstatat (Files): Add m4/lstat.m4.
6060         * modules/openat (Files): Likewise.
6061         * modules/unlinkat (Files): Likewise.
6062
6063 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6064
6065         maint.mk: fix tight-scope.mk generation in VPATH builds.
6066         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6067         reference with $(srcdir) so that the file is found correctly even
6068         when running `make syntax-check' in a VPATH build.
6069
6070 2011-11-13  Bruno Haible  <bruno@clisp.org>
6071             Jim Meyering  <meyering@redhat.com>
6072
6073         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6074         * tests/init.sh (compare): Remove "No differences encountered" or
6075         synonymous output from the 'diff' program.
6076
6077 2011-11-13  Bruno Haible  <bruno@clisp.org>
6078
6079         Makefile: Tweak indentation.
6080         * Makefile: Use tab as first character in every line that contains rule
6081         commands.
6082
6083 2011-11-13  Bruno Haible  <bruno@clisp.org>
6084
6085         Syntax check for copyright statements.
6086         * check-copyright: New file.
6087         * Makefile (sc_check_copyright): New rule.
6088
6089 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6090
6091         * build-aux/git-version-gen: Add --prefix to configure the tag
6092         match string.
6093
6094 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6095
6096         * build-aux/git-version-gen: Add --help and --version.
6097
6098 2011-11-12  Jim Meyering  <meyering@redhat.com>
6099
6100         revamp the other test-exclude?.sh scripts to use init.sh, too
6101         * tests/test-exclude1.sh: Use init.sh.
6102         * tests/test-exclude2.sh: Likewise.
6103         * tests/test-exclude3.sh: Likewise.
6104         * tests/test-exclude4.sh: Likewise.
6105         * tests/test-exclude5.sh: Likewise.
6106         * tests/test-exclude6.sh: Likewise.
6107         * tests/test-exclude7.sh: Likewise.
6108         * tests/test-exclude8.sh: Likewise.
6109         * modules/exclude-tests (Files): List init.sh.
6110
6111         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6112         These shell scripts ignored failure of the binary test-exclude,
6113         so making the latter return 77 didn't cause them to be skipped.
6114         * tests/test-exclude5.sh: Exit with test-exclude's error status
6115         when that program fails.  Revamp to use init.sh.
6116         * tests/test-exclude2.sh: Likewise.
6117
6118         test-exclude: fix a typo
6119         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6120
6121 2011-11-11  Bruno Haible  <bruno@clisp.org>
6122
6123         obstack: Fix compilation error on MSVC 9.
6124         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6125
6126 2011-11-11  Jim Meyering  <meyering@redhat.com>
6127
6128         test-exclude: skip tests rather than failing on deficient systems
6129         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6130         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6131         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6132         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6133
6134 2011-11-10  Bruno Haible  <bruno@clisp.org>
6135
6136         ptsname_r test: Avoid gcc warning on glibc systems.
6137         * tests/test-ptsname_r.c (null_ptr): New function.
6138         (test_errors): Use it.
6139
6140 2011-11-10  Bruno Haible  <bruno@clisp.org>
6141
6142         ptsname_r: Avoid compilation error on OSF/1 5.1.
6143         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6145         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6146         function is not declared or incompatibly declared.
6147         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6148         * modules/ptsname_r (Depends-on, configure.ac): Update.
6149         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6150
6151 2011-11-10  Bruno Haible  <bruno@clisp.org>
6152
6153         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6154         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6155         When cross-compiling, guess yes on all platforms except AIX.
6156         Reported by Ludovic Courtès <ludo@gnu.org>.
6157
6158 2011-11-09  Bruno Haible  <bruno@clisp.org>
6159
6160         ptsname_r tests: Fix bugs.
6161         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6162         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6163
6164 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6165
6166         fstatat: work with cross-compilation
6167         Problem reported by Ludovic Courtès in
6168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6169         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6170         "cross-compiling" and assume the bug is present.  Replace
6171         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6172         an inverted sense, to be more conservative about our assumptions.
6173         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6174
6175 2011-11-09  Bruno Haible  <bruno@clisp.org>
6176
6177         Improve MODULES.html output.
6178         * modules/mkfifoat (Description): Use the word "function".
6179         * modules/readlinkat (Description): Likewise.
6180         * modules/symlinkat (Description): Likewise.
6181
6182 2011-11-09  Eric Blake  <eblake@redhat.com>
6183
6184         ptsname_r-tests: new test module
6185         * modules/ptsname_r-tests: New module.
6186         * tests/test-ptsname_r.c: New file.
6187
6188         ptsname_r: new module
6189         * modules/ptsname_r: New module.
6190         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6191         * lib/ptsname.c (__ptsname_r): Split...
6192         * lib/ptsname_r.c: ...into new file.
6193         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6194         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6195         * modules/stdlib (Makefile.am): Substitute witnesses.
6196         * lib/stdlib.in.h (ptsname_r): Declare it.
6197         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6198         * MODULES.html.sh (Misc): Likewise.
6199         * modules/ptsname (Depends-on): Alter dependency.
6200         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6201
6202 2011-11-09  Jim Meyering  <meyering@redhat.com>
6203
6204         announce-gen: be more concise when there's only one URL+tarball
6205         * build-aux/announce-gen (get_tool_versions): When you distribute
6206         only one type of tarball, combine the first two "Here are..."
6207         sections and make the key-checking grammar independent of
6208         how many tarballs there are.
6209
6210 2011-11-09  Eric Blake  <eblake@redhat.com>
6211
6212         openpty: provide a stub on mingw
6213         * lib/pty.in.h (includes): Provide forward declarations.
6214         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6215
6216         raise: fix mingw handling of SIGPIPE
6217         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6218
6219 2011-11-08  Bruno Haible  <bruno@clisp.org>
6220
6221         More conditional dependencies.
6222         * modules/faccessat (Depends-on): Add conditions.
6223         * modules/fchmodat (Depends-on): Likewise.
6224         * modules/fchownat (Depends-on): Likewise.
6225         * modules/fstatat (Depends-on): Likewise.
6226         * modules/mkfifoat (Depends-on): Likewise.
6227         * modules/readlinkat (Depends-on): Likewise.
6228         * modules/symlinkat (Depends-on): Likewise.
6229         * modules/unlinkat (Depends-on): Likewise.
6230         * modules/utimensat (Depends-on): Likewise.
6231         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6232         * modules/linkat (Depends-on): Refine the conditions.
6233         * modules/renameat (Depends-on): Likewise.
6234
6235 2011-11-08  Bruno Haible  <bruno@clisp.org>
6236
6237         faccessat: Move AC_LIBOBJ invocation to module description.
6238         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6239         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6240         invocation from here...
6241         * modules/faccessat (configure.ac): ... to here. Invoke
6242         gl_PREREQ_FACCESSAT.
6243
6244 2011-11-08  Bruno Haible  <bruno@clisp.org>
6245
6246         faccessat: Simplify autoconf macro.
6247         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6248         gl_FUNC_EUIDACCESS.
6249
6250 2011-11-08  Bruno Haible  <bruno@clisp.org>
6251
6252         renameat: Fix dependencies.
6253         * modules/renameat (Depends-on): Add stdbool.
6254
6255 2011-11-08  Bruno Haible  <bruno@clisp.org>
6256
6257         mkfifoat: Fix module description.
6258         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6259         not gl_UNISTD_MODULE_INDICATOR.
6260
6261 2011-11-08  Bruno Haible  <bruno@clisp.org>
6262
6263         fstatat: Remove unused dependency.
6264         * modules/fstatat (Depends-on): Remove fstat.
6265
6266 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6267
6268         GNUmakefile: behave when Makefile is missing.
6269         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6270
6271 2011-11-08  Bruno Haible  <bruno@clisp.org>
6272
6273         openat: Conditionalize dependencies.
6274         * lib/openat.c: Reduce the scope of some #includes.
6275         * modules/openat (Depends-on): Add conditions.
6276
6277 2011-11-07  Jim Meyering  <meyering@redhat.com>
6278
6279         maint.mk: extract GPG key ID without using a temporary file
6280         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6281         without using a temporary file.  Based on a suggestion from Werner Koch
6282         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6283
6284 2011-11-07  Eric Blake  <eblake@redhat.com>
6285
6286         grantpt: fix typo
6287         * lib/stdlib.in.h (grantpt): Check correct function.
6288
6289         maint.mk: silence new syntax check
6290         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6291
6292 2011-11-06  Bruno Haible  <bruno@clisp.org>
6293
6294         Doc about floating-point and math API.
6295         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6296         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6297
6298 2011-11-06  Bruno Haible  <bruno@clisp.org>
6299
6300         stdalign tests: Skip the test when compiled by Sun C.
6301         * tests/test-stdalign.c (main): Skip the test on Sun C.
6302
6303 2011-11-06  Bruno Haible  <bruno@clisp.org>
6304
6305         ansi-c++-opt: Complete the 2011-06-05 change.
6306         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6307         does not support namespaces, set the variable to "no", not to ":".
6308
6309 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6310
6311         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6312
6313 2011-11-06  Bruno Haible  <bruno@clisp.org>
6314
6315         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6316         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6317         (minus_zerol) [HP-UX]: New macro.
6318         (unary_minus) [HP-UX]: New function.
6319         (copysignl) [HP-UX]: Use unary_minus function.
6320
6321 2011-11-06  Bruno Haible  <bruno@clisp.org>
6322
6323         ldexp, ldexpf, ldexpl: Enhance tests.
6324         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6325         and tests/test-ldexpl.c.
6326         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6327         LDEXP, MIN_EXP, MAX_EXP): New macros.
6328         Include test-ldexp.h.
6329         (main): Just call test_function.
6330         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6331         infinity.h, nan.h.
6332         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6333         MAX_EXP): New macros.
6334         Include test-ldexp.h.
6335         (x, y): Remove variables.
6336         (main): Just call test_function.
6337         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6338         infinity.h, nan.h.
6339         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6340         MAX_EXP): New macros.
6341         Include test-ldexp.h.
6342         (x, y): Remove variables.
6343         (main): Just call test_function.
6344         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6345         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6346         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6347         (Depends-on): Add isnand-nolibm, signbit, float.
6348         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6349         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6350         (Depends-on): Add isnanf-nolibm, signbit, float.
6351
6352 2011-11-06  Bruno Haible  <bruno@clisp.org>
6353
6354         math tests: Cosmetics.
6355         * tests/test-math-c++.cc: Reorder declarations.
6356
6357 2011-11-05  Bruno Haible  <bruno@clisp.org>
6358
6359         fma*: Simplify test.
6360         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6361         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6362
6363         Tests for module 'fmal'.
6364         * modules/fmal-tests: New file.
6365         * tests/test-fmal1.c: New file.
6366         * tests/test-fmal2.c: New file.
6367
6368         New module 'fmal'.
6369         * lib/math.in.h (fmal): New declaration.
6370         * lib/fmal.c: New file.
6371         * m4/fmal.m4: New file.
6372         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6374         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6375         REPLACE_FMAL.
6376         * modules/fmal: New file.
6377         * doc/posix-functions/fmal.texi: Mention the new module and the various
6378         bugs.
6379
6380         Tests for module 'fmaf'.
6381         * modules/fmaf-tests: New file.
6382         * tests/test-fmaf1.c: New file.
6383         * tests/test-fmaf2.c: New file.
6384
6385         New module 'fmaf'.
6386         * lib/math.in.h (fmaf): New declaration.
6387         * lib/fmaf.c: New file.
6388         * m4/fmaf.m4: New file.
6389         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6391         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6392         REPLACE_FMAF.
6393         * modules/fmaf: New file.
6394         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6395         bugs.
6396
6397         Tests for module 'fma'.
6398         * modules/fma-tests: New file.
6399         * tests/test-fma1.c: New file.
6400         * tests/test-fma1.h: New file.
6401         * tests/test-fma2.c: New file.
6402         * tests/test-fma2.h: New file.
6403
6404         New module 'fma'.
6405         * lib/math.in.h (fma): New declaration.
6406         * lib/fma.c: New file.
6407         * m4/fma.m4: New file.
6408         * m4/fegetround.m4: New file.
6409         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6411         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6412         REPLACE_FMA.
6413         * modules/fma: New file.
6414         * doc/posix-functions/fma.texi: Mention the new module and the various
6415         bugs.
6416
6417         Extend gl_MATHFUNC.
6418         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6419         Support 'void' as argument type.
6420         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6421
6422 2011-11-05  Jim Meyering  <meyering@redhat.com>
6423
6424         maint.mk: also prohibit inclusion of dirent.h without use
6425         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6426
6427 2011-11-05  Bruno Haible  <bruno@clisp.org>
6428
6429         ldexpl tests: Avoid test failure on MSVC 9.
6430         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6431         value. Needed in order to enforce the conversion from a value greater
6432         than LDBL_MAX to Infinity.
6433
6434 2011-11-05  Bruno Haible  <bruno@clisp.org>
6435
6436         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6437         * modules/at-internal: New file, extracted from modules/openat.
6438         * modules/openat-h: New file.
6439         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6440         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6441         * modules/openat (Description): Add reference to POSIX function.
6442         (Files): Remove lib/openat.h, lib/openat-proc.c.
6443         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6444         intprops, unistd.
6445         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6446         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6447         gl_FCNTL_MODULE_INDICATOR.
6448         (Include): Remove unistd.h, openat.h.
6449         * modules/areadlinkat (Files): Add lib/at-func.c.
6450         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6451         openat-die, openat-h, save-cwd.
6452         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6453         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6454         openat-die, openat-h, save-cwd, unistd.
6455         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6456         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6457         openat-h, save-cwd. Remove fcntl-h, openat.
6458         * modules/fchmodat (Files): Remove lib/openat.h.
6459         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6460         openat, stdbool, unistd.
6461         * modules/fchownat (Files): Remove lib/openat.h.
6462         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6463         openat, stdbool, sys_stat.
6464         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6465         lib/openat-proc.c.
6466         (Depends-on): Add at-internal.
6467         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6468         * modules/fstatat (Files): Remove lib/openat.h.
6469         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6470         stdbool, unistd.
6471         * modules/fts (Depends-on): Add openat-h.
6472         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6473         openat.
6474         * modules/mkdirat (Files): Remove lib/openat.h.
6475         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6476         openat, stdbool, sys_stat.
6477         * modules/mkfifoat (Files): Add lib/at-func.c.
6478         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6479         openat-h, save-cwd. Remove fcntl-h, openat.
6480         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6481         * modules/readlinkat (Files): Add lib/at-func.c.
6482         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6483         openat-h, save-cwd. Remove fcntl-h, openat.
6484         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6485         openat.
6486         * modules/selinux-at (Files): Add lib/at-func.c.
6487         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6488         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6489         * modules/symlinkat (Files): Add lib/at-func.c.
6490         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6491         openat-h, save-cwd. Remove fcntl-h, openat.
6492         * modules/unlinkat (Files): Remove lib/openat.h.
6493         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6494         stdbool.
6495         * modules/utimensat (Files): Add lib/at-func.c.
6496         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6497         openat-die, openat-h, save-cwd.
6498         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6499         * modules/fdutimensat-tests (Depends-on): Add openat.
6500         * modules/fstatat-tests (Depends-on): Add openat-h.
6501         * modules/readlinkat-tests (Depends-on): Add openat.
6502         * modules/symlinkat-tests (Depends-on): Add openat.
6503
6504 2011-11-05  Bruno Haible  <bruno@clisp.org>
6505
6506         openat: Include <stdbool.h>.
6507         * lib/openat.c: Include <stdbool.h>.
6508
6509 2011-11-04  Bruno Haible  <bruno@clisp.org>
6510
6511         fchownat, renameat, unlinkat: Fix dependencies.
6512         * modules/fchownat (Depends-on): Add fstatat.
6513         * modules/renameat (Depends-on): Likewise.
6514         * modules/unlinkat (Depends-on): Likewise.
6515
6516 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6517
6518         openat: remove direct dependency on dirent
6519         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6520         and hasn't been needed ever since fdopendir was split into its own
6521         module on 2009-08-31.
6522         * modules/openat (Depends-on): Remove dirent.
6523
6524 2011-11-04  Bruno Haible  <bruno@clisp.org>
6525
6526         renameat: Optimize code size.
6527         * modules/renameat (configure.ac): Don't compile at-func2.c if
6528         REPLACE_RENAMEAT is 1.
6529
6530 2011-11-04  Bruno Haible  <bruno@clisp.org>
6531
6532         openat tests: Fix file list.
6533         * modules/openat-tests (Files): Add tests/test-open.h.
6534
6535 2011-11-04  Bruno Haible  <bruno@clisp.org>
6536
6537         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6538         * modules/fchmodat (Depends-on): Add openat-die.
6539         * modules/fchownat (Depends-on): Likewise.
6540         * modules/linkat (Depends-on): Likewise.
6541         * modules/renameat (Depends-on): Likewise.
6542         * modules/openat (Depends-on): Add dirent.
6543
6544 2011-11-04  Jim Meyering  <meyering@redhat.com>
6545
6546         at-func*.c: fix comments
6547         * lib/at-func2.c: Correct/improve first-line comment.
6548         * lib/at-func.c: Correct grammar in first-line comment.
6549
6550 2011-11-04  Bruno Haible  <bruno@clisp.org>
6551
6552         New module 'mkdirat', split off from module 'openat'.
6553         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6554         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6555         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6556         * modules/mkdirat: New file, extracted from modules/openat.
6557         * modules/openat (Files): Remove lib/mkdirat.c.
6558         (Depends-on): Remove mkdir.
6559         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6560         (Include): Remove <sys/stat.h>.
6561         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6562         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6563         tests/test-mkdir.h.
6564         (Depends-on): Remove ignore-value.
6565         (Makefile.am): Remove rules for test-mkdirat.
6566         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6567         of module 'openat'.
6568         * NEWS: Mention the change.
6569
6570 2011-11-04  Bruno Haible  <bruno@clisp.org>
6571
6572         closedir: Avoid warning on mingw.
6573         * lib/closedir.c: Include <unistd.h>.
6574
6575 2011-11-04  Bruno Haible  <bruno@clisp.org>
6576
6577         New module 'fstatat', split off from module 'openat'.
6578         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6579         defined.
6580         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6581         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6582         gl_FUNC_FSTATAT.
6583         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6584         * modules/fstatat: New file, extracted from modules/openat.
6585         * modules/openat (Files): Remove lib/fstatat.c.
6586         (Depends-on): Remove lstat.
6587         (configure.ac): Remove AC_LIBOBJ of fstatat.
6588         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6589         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6590         tests/test-lstat.h, tests/test-stat.h.
6591         (Depends-on): Remove getcwd-lgpl.
6592         (Makefile.am): Remove rules for test-fstatat.
6593         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6594         of module 'openat'.
6595         * NEWS: Mention the change.
6596         * modules/getcwd (Depends-on): Add fstatat.
6597         * modules/linkat (Depends-on): Likewise.
6598         * modules/mkfifoat-tests (Depends-on): Likewise.
6599         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6600
6601 2011-11-03  Bruno Haible  <bruno@clisp.org>
6602
6603         New module 'unlinkat', split off from module 'openat'.
6604         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6605         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6606         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6607         * modules/unlinkat: New file, extracted from modules/openat. Correct
6608         the dependency conditions.
6609         * modules/openat (Files): Remove lib/unlinkat.c.
6610         (Depends-on): Remove rmdir, unlink.
6611         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6612         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6613         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6614         tests/test-rmdir.h, tests/test-unlink.h.
6615         (Depends-on): Remove unlinkdir.
6616         (Makefile.am): Remove rules for test-unlinkat.
6617         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6618         of module 'openat'.
6619         * NEWS: Mention the change.
6620         * modules/linkat-tests (Depends-on): Add unlinkat.
6621         * modules/mkfifoat-tests (Depends-on): Likewise.
6622         * modules/readlinkat-tests (Depends-on): Likewise.
6623
6624 2011-11-02  Bruno Haible  <bruno@clisp.org>
6625
6626         New module 'fchmodat', split off from module 'openat'.
6627         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6628         defined.
6629         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6630         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6631         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6632         * modules/fchmodat: New file, extracted from modules/openat.
6633         * modules/openat (Files): Remove lib/fchmodat.c.
6634         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6635         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6636         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6637         (Makefile.am): Remove rules for test-fchmodat.
6638         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6639         of module 'openat'.
6640         * NEWS: Mention the change.
6641
6642 2011-11-02  Jim Meyering  <meyering@redhat.com>
6643
6644         putenv: indent #definition of "environ" to placate cppi
6645         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6646
6647         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6648         Git logs are often treated as immutable, because editing them
6649         changes the SHA1 checksums of all descendants.  Thus, errors in
6650         git logs tend to stay there forever.  However, when we generate
6651         a ChangeLog file -- typically for distribution -- from that git log,
6652         we can actually make corrections in the generated file.  The key
6653         lies in recording in machine-readable/applicable form the desired
6654         corrections.  See --help for description and an example.
6655         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6656         (usage): Describe it; alphabetize option descriptions.
6657         (main): Honor the new option, carefully.
6658
6659 2011-11-01  Jim Meyering  <meyering@redhat.com>
6660
6661         gitlog-to-changelog: avoid an infloop
6662         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6663         that ends up being empty.
6664
6665 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6666
6667         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6668         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6669         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6670         contains (possibly-quoted) backslashes.  This should avoid
6671         all-too-common shell bugs if COMPLICATED contains backslashes in
6672         the "wrong" places.  Reported by David Evans in
6673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6674         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6675         because we want ASCII ranges.  Is there some reason we don't use
6676         the C locale everywhere in this script?
6677         (func_module, top level): Avoid unwanted pathname expansion when
6678         $repo_url_prefix or $repo_url_suffix_repl contain shell
6679         metacharacters like '?' and '*'.
6680
6681 2011-11-01  Bruno Haible  <bruno@clisp.org>
6682
6683         fchownat: Improve description.
6684         * modules/fchownat (Description): Add link to function.
6685
6686 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6687
6688         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6689         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6691         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6692
6693 2011-11-01  Bruno Haible  <bruno@clisp.org>
6694
6695         alignof: Avoid collision with stdalign module.
6696         * lib/alignof.h (alignof): Remove macro.
6697         * NEWS: Mention the change.
6698         Reported by Paul Eggert.
6699
6700 2011-11-01  Bruno Haible  <bruno@clisp.org>
6701
6702         New module 'fchownat', split off from module 'openat'.
6703         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6704         defined.
6705         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6706         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6707         invoke gl_FUNC_FCHOWNAT.
6708         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6709         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6710         * modules/fchownat: New file, extracted from modules/openat.
6711         * modules/openat (Files): Remove lib/fchownat.c.
6712         (Depends-on): Remove lchown.
6713         (configure.ac): Remove AC_LIBOBJ of fchownat.
6714         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6715         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6716         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6717         (Depends-on): Remove mgetgroups, usleep, stat-time.
6718         (configure.ac): Remove test for getegid.
6719         (Makefile.am): Remove rules for test-fchownat.
6720         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6721         of module 'openat'.
6722         * NEWS: Mention the change.
6723
6724 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6725
6726         stdalign: port better to MSVC and to Sun C 5.11
6727         This fixes some of the problems reported by Bruno Haible in
6728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6729         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6730         shortcomings of MSVC and of Sun C 5.11.
6731         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6732         around __declspec arg.
6733         * modules/stdalign-tests (Files): Add tests/macros.h.
6734         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6735         Include macros.h, for ASSERT.
6736         (DECLARE_ALIGNED): Remove.
6737         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6738         to catch bug), and to 1 if not (simplifies the rest of the code).
6739         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6740         (CHECK_AUTO): Remove.
6741         (CHECK_ALIGNED): Check only the alignment of the static vars,
6742         since auto var alignment isn't supported by Sun C 5.11.
6743         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6744         ASSERT failures are easier to diagnose.
6745
6746 2011-10-31  Bruno Haible  <bruno@clisp.org>
6747
6748         doc about some IRIX 5.3 problems.
6749         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6750         on IRIX 5.3.
6751         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6752         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6753         5.3.
6754         * doc/posix-functions/grantpt.texi: Likewise.
6755         * doc/posix-functions/unlockpt.texi: Likewise.
6756         * doc/posix-functions/lgamma.texi: Likewise.
6757         * doc/posix-functions/nextafter.texi: Likewise.
6758         * doc/posix-functions/remainder.texi: Likewise.
6759         * doc/posix-functions/select.texi: Mention misplaced declaration on
6760         IRIX 5.3.
6761         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6762
6763 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6764
6765         gitlog-to-changelog: fix git-log invocation.
6766         git-log mishandles date strings before 1970-01-01 UTC, and there is
6767         no use to specify --since=1970-01-01 by default anyway.
6768         * build-aux/gitlog-to-changelog: By default, when no --since option
6769         was given, do not specify explicit --since option to git-log.
6770
6771 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6772
6773         gitlog-to-changelog: new option --append-dot.
6774         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6775         first non-blank line of each commit message terminated with a dot.
6776
6777 2011-10-30  Bruno Haible  <bruno@clisp.org>
6778
6779         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6780         * lib/ffsl.h: Include <config.h>.
6781         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6782
6783 2011-10-30  Jim Meyering  <meyering@redhat.com>
6784
6785         GNUmakefile: reenable "make syntax-check" for most projects
6786         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6787         build-aux variable", "syntax-check" would do nothing but succeed with
6788         the "No version control files detected..." diagnostic (unless you
6789         happened to override _build-aux via cfg.mk).
6790         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6791         to precede inclusion of maint.mk.  Otherwise, these variables would
6792         be used undefined in any project that does not override the default.
6793
6794 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6795
6796         gitlog-to-changelog: treat a message with only blank lines as empty.
6797         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6798         trailing blank lines before the code that issues a warning about an
6799         empty commit message.
6800
6801 2011-10-30  Jim Meyering  <meyering@redhat.com>
6802
6803         test-parse-datetime.c: avoid new DST-related false positive test failure
6804         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6805         based on the time/date we'll convert, not the current time.
6806         Otherwise, the moment we cross a DST boundary like today's in
6807         Europe, (CEST to CET), that offset ends up being one hour off.
6808
6809 2011-10-27  Bruno Haible  <bruno@clisp.org>
6810
6811         fstat: Tweak documentation.
6812         * modules/fstat (Description): More precise description.
6813
6814 2011-10-27  Bruno Haible  <bruno@clisp.org>
6815
6816         Update documentation regarding 'largefile' module.
6817         * doc/posix-functions/fstat.texi: Tweak wording.
6818         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6819         problems with huge directories and/or small ino_t types.
6820         * doc/posix-functions/readdir.texi: Likewise.
6821         * doc/posix-functions/rewinddir.texi: Likewise.
6822
6823 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6824
6825         maint.mk: don't maintain a second build-aux variable.
6826         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6827         depends on GNUmakefile, which already maintains a cfg.mk
6828         overridable $(_build-aux) for projects with a non-standard
6829         build-aux directory location, although without the $(srcdir)
6830         prefix.  Use that variable consistently instead of introducing a
6831         second one.  Adjust all call sites.
6832
6833 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6834
6835         Add stdalign module and use it in other modules.
6836         This is based on a previous proposal by Bruno Haible
6837         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6838
6839         stdalign: new module
6840         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6841         * modules/stdalign: New files.
6842         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6843         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6844
6845         stdalign-tests: new module
6846         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6847
6848         argp: use stdalign
6849         * lib/argp-parse.c: Include <stdalign.h>.
6850         (alignof): Remove.
6851         * modules/argp (Depends-on): Add stdalign.
6852
6853         crypto libraries: use stdalign
6854         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6855         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6856         Do not include <stdlib.h> twice, in md4.c.
6857         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6858         because we are accessing a pointer's bit-pattern, not a size.
6859         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6860         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6861         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6862         * modules/crypto/sha512: Likewise.
6863
6864         sys_socket: use stdalign, not alignof
6865         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6866         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6867
6868 2011-10-27  Bruno Haible  <bruno@clisp.org>
6869
6870         raise test: Avoid a test failure on Linux/MIPS.
6871         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6872         because 99 is a valid signal on Linux/MIPS.
6873
6874 2011-10-27  Bruno Haible  <bruno@clisp.org>
6875
6876         nonblocking tests: Fix test failure on Linux/MIPS.
6877         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6878         Set to 270000.
6879
6880 2011-10-27  Bruno Haible  <bruno@clisp.org>
6881
6882         utimensat: Work around problem on Linux/hppa.
6883         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6884         values.
6885         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6886
6887 2011-10-25  Jim Meyering  <meyering@redhat.com>
6888
6889         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6890         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6891         after symbols like NULL, size_t, etc.
6892         Reported by Alfred M. Szmidt.
6893
6894         maint.mk: exempt ENODATA from a syntax-check rule
6895         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6896         from the sc_prohibit_always-defined_macros syntax-check rule.
6897         Add a comment.  See this for more details:
6898         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6899
6900 2011-10-23  Jim Meyering  <meyering@redhat.com>
6901
6902         fts: close parent dir FD before returning from post-traversal fts_read
6903         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6904         unlink A, even though an FD open on A remained.  This is suboptimal
6905         (holding a file descriptor open longer than needed), but otherwise not
6906         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6907         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6908         that represents a real problem: it causes the removal of A to fail
6909         with e.g., "rm: cannot remove `A': Device or resource busy"
6910
6911         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6912         directory file descriptors.  After completing the final, FTS_DP,
6913         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6914         cache, but then proceeded to add a new FD to it via the subsequent
6915         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6916         final file descriptor would be closed only via fts_close's call to
6917         fd_ring_clear.  Now, it is usually closed earlier, via the final
6918         FTS_DP-returning fts_read call.
6919         * lib/fts.c (restore_initial_cwd): New function, converted from
6920         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6921         Update callers.
6922         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6923         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6924
6925 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6926             Bruno Haible  <bruno@clisp.org>
6927             Jim Meyering  <jim@meyering.net>
6928
6929         readme-release: improve safety of release prep instructions.
6930         * README-release: Don't git pull all branches when only master
6931         is needed for the release process.
6932         Run make maintainer-clean before changing trees and merging.
6933         Don't try to run ./configure right after git pull in case files
6934         that influence the bootstrap process have changed, move the
6935         ./configure step to after running ./bootstrap.
6936         Don't bootstrap "one last time"... it's the first time!
6937
6938 2011-10-22  Bruno Haible  <bruno@clisp.org>
6939
6940         errno, strerror-override: Support for MSVC 10.
6941         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6942         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6943         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6944         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6945         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6946         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6947         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6948         Assign values compatible with MSVC 10.
6949         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6950         New macros.
6951         (GNULIB_defined_EWINSOCK): New macro.
6952         * lib/strerror-override.c (strerror_override): Update accordingly.
6953         * lib/strerror-override.h: Likewise.
6954         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6955         longer equal to the corresponding errno value.
6956         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6957
6958 2011-10-22  Bruno Haible  <bruno@clisp.org>
6959
6960         perror: Recognize when test program crashes.
6961         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6962         strerror, set gl_cv_func_perror_works to no.
6963         Reported by Daniel Richard G. <skunk@iskunk.org>.
6964
6965         perror: Fix indentation.
6966         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6967
6968 2011-10-22  Bruno Haible  <bruno@clisp.org>
6969
6970         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6971         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6972         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6973         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6974         functions, not as a macro.
6975         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6976         macros.
6977         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6978         absence of macro.
6979         Suggested by Eric Blake.
6980         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6981
6982 2011-10-21  Bruno Haible  <bruno@clisp.org>
6983
6984         relocatable-prog-wrapper: Don't leave object files behind.
6985         * build-aux/install-reloc: Re-synchronize list of .o files to be
6986         removed with list of compilation units.
6987
6988 2011-10-20  Bruno Haible  <bruno@clisp.org>
6989
6990         openpty, posix_openpt: Remove code duplication.
6991         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6992         * lib/openpty.c: Include <stdlib.h>.
6993         (openpty): Use posix_openpt on all platforms except IRIX.
6994         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6995
6996 2011-10-20  Bruno Haible  <bruno@clisp.org>
6997
6998         unlockpt: Detect invalid argument.
6999         * lib/unlockpt.c: Include <fcntl.h>.
7000         (unlockpt): Check whether fd is valid, using fcntl().
7001         * modules/unlockpt (Depends-on): Add fcntl-h.
7002
7003 2011-10-20  Bruno Haible  <bruno@clisp.org>
7004
7005         openpty: Avoid compilation error on AIX 6.1.
7006         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7007
7008 2011-10-20  Bruno Haible  <bruno@clisp.org>
7009
7010         posix_openpt: Support for OpenBSD.
7011         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7012         (posix_openpt) [OpenBSD]: New code.
7013         * lib/grantpt.c: Include <fcntl.h>.
7014         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7015         * modules/grantpt (Depends-on): Add fcntl-h.
7016
7017 2011-10-20  Bruno Haible  <bruno@clisp.org>
7018
7019         posix_openpt test: Coding style.
7020         * tests/test-posix_openpt.c: Use GNU coding style.
7021
7022 2011-10-20  Bruno Haible  <bruno@clisp.org>
7023
7024         grantpt: Support --avoid=pt_chown.
7025         * modules/grantpt (Files): Add lib/pty-private.h.
7026
7027 2011-10-20  Bruno Haible  <bruno@clisp.org>
7028
7029         posix_openpt: Fix autoconf macro.
7030         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7031         unneeded check for _getpty.
7032
7033 2011-10-20  Bruno Haible  <bruno@clisp.org>
7034
7035         openpty: Update comments.
7036         * lib/openpty.c: Add comments about Minix.
7037
7038 2011-10-19  Eric Blake  <eblake@redhat.com>
7039
7040         openpty: relax license
7041         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7042
7043         pt_chown: use configmake to simplify build
7044         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7045
7046         ptsname and others: relax license
7047         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7048         * modules/unlockpt (License): Likewise.
7049         * modules/pt_chown (License): Likewise.
7050         * modules/ptsname (License): Likewise.
7051         * modules/ttyname_r (License): Likewise.
7052
7053 2011-10-19  Jim Meyering  <meyering@redhat.com>
7054
7055         posix_openpt: remove spurious #endif
7056         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7057
7058 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7059
7060         maint.mk: Respect $(build_aux) in web-manual rule.
7061         * top/maint.mk (web-manual): Find gen-announce script in user's
7062         $(build_aux) directory instead of hard-coding 'build-aux'.
7063
7064 2011-10-19  Bruno Haible  <bruno@clisp.org>
7065
7066         posix_openpt: Fix compilation error.
7067         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7068         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7069         Mention the openpty module as an alternative.
7070
7071 2011-10-19  Bruno Haible  <bruno@clisp.org>
7072
7073         Support for old NeXTstep 3.3 frexp().
7074         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7075         execution time of the test to 5 seconds.
7076         Reported by Daniel Richard G. <skunk@iskunk.org>.
7077
7078 2011-10-19  Bruno Haible  <bruno@clisp.org>
7079
7080         Support for old NeXTstep 3.3 sed.
7081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7082         part, use /.../, not \|...|. Escape periods in the header file name.
7083         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7084         Reported by Daniel Richard G. <skunk@iskunk.org>.
7085
7086 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7087
7088         Support for old NeXTstep 3.3 gcc.
7089         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7090         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7091         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7092         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7093         * lib/regex.h (_Restrict_arr_): Likewise.
7094         * lib/regex_internal.h (re_token_t): Likewise.
7095         * lib/regexec.c (check_node_accept_bytes): Likewise.
7096         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7097
7098 2011-10-18  Eric Blake  <eblake@redhat.com>
7099
7100         posix_openpt: new module
7101         * modules/posix_openpt: New module.
7102         * m4/posix_openpt.m4: New file.
7103         * lib/posix_openpt.c: Likewise.
7104         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7105         (gl_STDLIB_H_DEFAULTS): Set defaults.
7106         * modules/stdlib (Makefile.am): Substitute macros.
7107         * lib/stdlib.in.h (posix_openpt): Declare.
7108         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7109         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7110         * modules/posix_openpt-tests: New test module.
7111         * tests/test-posix_openpt.c: New test.
7112
7113 2011-10-15  Bruno Haible  <bruno@clisp.org>
7114
7115         xstrtoll: Fix compilation failure.
7116         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7117         from lib/strtol.c.
7118         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7119         some platforms.
7120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7121
7122 2011-10-15  Bruno Haible  <bruno@clisp.org>
7123
7124         vasnprintf: Optimize bit search operation.
7125         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7127         gl_DOUBLE_EXPONENT_LOCATION.
7128         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7129         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7130         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7131         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7132         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7133         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7134         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7135         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7136         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7137
7138 2011-10-15  Bruno Haible  <bruno@clisp.org>
7139
7140         vasnprintf: Fix comments.
7141         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7142
7143 2011-10-14  Bruno Haible  <bruno@clisp.org>
7144
7145         Tests for module 'integer_length_ll'.
7146         * modules/integer_length_ll-tests: New file.
7147         * tests/test-integer_length_ll.c: New file.
7148
7149         New module 'integer_length_ll'.
7150         * lib/integer_length_ll.c: New file.
7151         * modules/integer_length_ll: New file.
7152
7153 2011-10-14  Bruno Haible  <bruno@clisp.org>
7154
7155         Tests for module 'integer_length_l'.
7156         * modules/integer_length_l-tests: New file.
7157         * tests/test-integer_length_l.c: New file.
7158
7159         New module 'integer_length_l'.
7160         * lib/integer_length_l.c: New file.
7161         * modules/integer_length_l: New file.
7162
7163 2011-10-14  Bruno Haible  <bruno@clisp.org>
7164
7165         Tests for module 'integer_length'.
7166         * modules/integer_length-tests: New file.
7167         * tests/test-integer_length.c: New file.
7168
7169         New module 'integer_length'.
7170         * lib/integer_length.h: New file.
7171         * lib/integer_length.c: New file.
7172         * modules/integer_length: New file.
7173
7174 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7175
7176         popen: Fix dependency conditions.
7177         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7178
7179 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7180
7181         perror: Fix autoconf test.
7182         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7183         <stdlib.h> and <string.h>.
7184
7185 2011-10-14  Bruno Haible  <bruno@clisp.org>
7186
7187         ffsl: Optimize on 64-bit platforms.
7188         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7189         unrolling.
7190
7191 2011-10-13  Bruno Haible  <bruno@clisp.org>
7192
7193         ffsl: Optimize on 32-bit platforms.
7194         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7195         use ffs() without a loop.
7196
7197         ffsl, ffsll: Optimize for GCC.
7198         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7199         * lib/ffsl.c (GCC_BUILTIN): New macro.
7200         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7201
7202 2011-10-13  Bruno Haible  <bruno@clisp.org>
7203
7204         ffs, bcopy, memset: Support symbol renaming via config.h.
7205         * lib/ffs.c: Include <config.h>.
7206         * lib/bcopy.c: Likewise.
7207         * lib/memset.c: Likewise.
7208
7209 2011-10-10  Bruno Haible  <bruno@clisp.org>
7210
7211         atanl: Simplify for platforms where 'long double' == 'double'.
7212         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7213         alternative implementation.
7214         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7215         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7216         * modules/atanl (Depends-on): Add atan. Update conditions.
7217
7218 2011-10-10  Bruno Haible  <bruno@clisp.org>
7219
7220         acosl: Simplify for platforms where 'long double' == 'double'.
7221         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7222         alternative implementation.
7223         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7224         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7225         * modules/acosl (Depends-on): Add acos. Update conditions.
7226
7227 2011-10-10  Bruno Haible  <bruno@clisp.org>
7228
7229         asinl: Simplify for platforms where 'long double' == 'double'.
7230         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7231         alternative implementation.
7232         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7233         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7234         * modules/asinl (Depends-on): Add asin. Update conditions.
7235
7236 2011-10-10  Bruno Haible  <bruno@clisp.org>
7237
7238         tanl: Simplify for platforms where 'long double' == 'double'.
7239         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7240         implementation.
7241         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7242         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7243         * modules/tanl (Depends-on): Add tan. Update conditions.
7244         (configure.ac): Don't compile trigl.c if
7245         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7246
7247 2011-10-10  Bruno Haible  <bruno@clisp.org>
7248
7249         cosl: Simplify for platforms where 'long double' == 'double'.
7250         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7251         implementation.
7252         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7253         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7254         * modules/cosl (Depends-on): Add cos. Update conditions.
7255         (configure.ac): Don't compile sincosl.c and trigl.c if
7256         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7257
7258 2011-10-10  Bruno Haible  <bruno@clisp.org>
7259
7260         sinl: Simplify for platforms where 'long double' == 'double'.
7261         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7262         implementation.
7263         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7264         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7265         * modules/sinl (Depends-on): Add sin. Update conditions.
7266         (configure.ac): Don't compile sincosl.c and trigl.c if
7267         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7268
7269 2011-10-10  Bruno Haible  <bruno@clisp.org>
7270
7271         logl: Simplify for platforms where 'long double' == 'double'.
7272         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7273         implementation.
7274         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7275         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7276         * modules/logl (Depends-on): Add log. Update conditions.
7277
7278 2011-10-10  Bruno Haible  <bruno@clisp.org>
7279
7280         expl: Simplify for platforms where 'long double' == 'double'.
7281         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7282         implementation.
7283         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7284         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7285         * modules/expl (Depends-on): Add exp. Update conditions.
7286
7287 2011-10-10  Bruno Haible  <bruno@clisp.org>
7288
7289         sqrtl: Simplify for platforms where 'long double' == 'double'.
7290         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7291         alternative implementation.
7292         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7293         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7294         * modules/sqrtl (Depends-on): Update conditions.
7295
7296 2011-10-10  Bruno Haible  <bruno@clisp.org>
7297
7298         ldexpl: Simplify for platforms where 'long double' == 'double'.
7299         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7300         alternative implementation.
7301         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7302         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7303         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7304
7305 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7306
7307         ffsll: set correct witness
7308         * modules/ffsll (configure.ac): Fix typo.
7309
7310 2011-10-10  Bruno Haible  <bruno@clisp.org>
7311
7312         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7313         * lib/printf-frexpl.c: Include <config.h>.
7314         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7315         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7316         second time.
7317         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7318         gl_LONG_DOUBLE_VS_DOUBLE.
7319         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7320         conditions.
7321
7322 2011-10-10  Bruno Haible  <bruno@clisp.org>
7323
7324         frexpl: Simplify for platforms where 'long double' == 'double'.
7325         * lib/frexpl.c: Include <config.h>.
7326         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7327         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7328         time.
7329         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7330         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7331         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7332         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7333         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7334         conditions.
7335
7336 2011-10-10  Jim Meyering  <meyering@redhat.com>
7337
7338         test-renameat: don't leave behind a temporary file
7339         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7340           ERROR: files left in build directory after distclean:
7341           ./gltests/test-renameat.too
7342           make[1]: *** [distcleancheck] Error 1
7343         Reported by Tom G. Christensen.
7344
7345 2011-10-09  Bruno Haible  <bruno@clisp.org>
7346
7347         rint: Determine RINT_LIBM correctly on AIX 7.
7348         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7349         directly, not only through a function pointer. Also accept an optional
7350         4th argument with extra code.
7351         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7352         rintf() call by gcc when optimizing.
7353
7354         mathfunc.m4: Refactor.
7355         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7356         m4 variable.
7357
7358 2011-10-09  Bruno Haible  <bruno@clisp.org>
7359
7360         rintl: Simplify for platforms where 'long double' == 'double'.
7361         * lib/rintl.c: Include <config.h>.
7362         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7363         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7364         time.
7365         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7366         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7367         * modules/rintl (Depends-on): Add rint. Update conditions.
7368
7369 2011-10-09  Bruno Haible  <bruno@clisp.org>
7370
7371         roundl: Simplify for platforms where 'long double' == 'double'.
7372         * lib/roundl.c: Include <config.h>.
7373         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7374         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7375         time.
7376         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7377         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7378         * modules/roundl (Depends-on): Add round. Update conditions.
7379
7380 2011-10-09  Bruno Haible  <bruno@clisp.org>
7381
7382         truncl: Simplify for platforms where 'long double' == 'double'.
7383         * lib/truncl.c: Include <config.h>.
7384         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7385         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7386         time.
7387         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7388         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7389         * modules/truncl (Depends-on): Add trunc. Update conditions.
7390
7391 2011-10-09  Bruno Haible  <bruno@clisp.org>
7392
7393         ceill: Simplify for platforms where 'long double' == 'double'.
7394         * lib/ceill.c: Include <config.h>.
7395         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7396         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7397         time.
7398         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7399         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7400         * modules/ceill (Depends-on): Add ceil. Update conditions.
7401
7402 2011-10-09  Bruno Haible  <bruno@clisp.org>
7403
7404         floorl: Simplify for platforms where 'long double' == 'double'.
7405         * lib/floorl.c: Include <config.h>.
7406         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7407         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7408         time.
7409         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7410         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7411         * modules/floorl (Depends-on): Add floor. Update conditions.
7412
7413 2011-10-09  Bruno Haible  <bruno@clisp.org>
7414
7415         rint: Fix ordering constraints.
7416         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7417         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7418         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7419
7420 2011-10-09  Bruno Haible  <bruno@clisp.org>
7421
7422         copysignl: Simplify for platforms where 'long double' == 'double'.
7423         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7424         alternative.
7425         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7426         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7427         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7428
7429 2011-10-09  Bruno Haible  <bruno@clisp.org>
7430
7431         Tests for module 'rintl'.
7432         * modules/rintl-tests: New file.
7433         * tests/test-rintl.c: New file.
7434
7435         New module 'rintl'.
7436         * lib/math.in.h (rintl): New declaration.
7437         * lib/rintl.c: New file.
7438         * m4/rintl.m4: New file.
7439         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7441         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7442         * modules/rintl: New file.
7443         * tests/test-math-c++.cc: Check the declaration of rintl.
7444         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7445         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7446         * doc/posix-functions/rintl.texi: Mention the new module.
7447
7448 2011-10-09  Bruno Haible  <bruno@clisp.org>
7449
7450         Tests for module 'rintf'.
7451         * modules/rintf-tests: New file.
7452         * tests/test-rintf.c: New file.
7453
7454         New module 'rintf'.
7455         * lib/math.in.h (rintf): New declaration.
7456         * lib/rintf.c: New file.
7457         * m4/rintf.m4: New file.
7458         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7459         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7460         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7461         * modules/rintf: New file.
7462         * tests/test-math-c++.cc: Check the declaration of rintf.
7463         * doc/posix-functions/rintf.texi: Mention the new module.
7464
7465 2011-10-09  Bruno Haible  <bruno@clisp.org>
7466
7467         rint: Support for MSVC.
7468         * lib/math.in.h (rint): New declaration.
7469         * lib/rint.c: New file.
7470         * m4/rint.m4: New file.
7471         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7472         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7473         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7474         * modules/rint (Description): Fix.
7475         (Files): Add lib/rint.c, m4/rint.m4.
7476         (Depends-on): Add math.
7477         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7478         gl_MATH_MODULE_INDICATOR.
7479         * tests/test-math-c++.cc: Check the declaration of rint.
7480         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7481         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7482         * doc/posix-functions/rint.texi: Mention the replacement provided by
7483         the module.
7484
7485         rint tests: More tests.
7486         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7487         minus-zero.h, infinity.h, nan.h.
7488         (main): Skip the test if the current rounding mode is not standard. Add
7489         tests for negative numbers, minus zero, infinity, NaN.
7490         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7491         tests/nan.h.
7492         (Depends-on): Add isnand-nolibm.
7493
7494 2011-10-09  Bruno Haible  <bruno@clisp.org>
7495
7496         Tests for module 'copysignl'.
7497         * modules/copysignl-tests: New file.
7498         * tests/test-copysignl.c: New file.
7499
7500         New module 'copysignl'.
7501         * lib/math.in.h (copysignl): New declaration.
7502         * lib/copysignl.c: New file.
7503         * m4/copysignl.m4: New file.
7504         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7505         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7506         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7507         HAVE_COPYSIGNL.
7508         * modules/copysignl: New file.
7509         * tests/test-math-c++.cc: Check the declaration of copysignl.
7510         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7511         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7512         * doc/posix-functions/copysignl.texi: Mention the new module.
7513
7514 2011-10-09  Bruno Haible  <bruno@clisp.org>
7515
7516         Tests for module 'copysignf'.
7517         * modules/copysignf-tests: New file.
7518         * tests/test-copysignf.c: New file.
7519
7520         New module 'copysignf'.
7521         * lib/math.in.h (copysignf): New declaration.
7522         * lib/copysignf.c: New file.
7523         * m4/copysignf.m4: New file.
7524         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7525         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7526         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7527         HAVE_COPYSIGNF.
7528         * modules/copysignf: New file.
7529         * tests/test-math-c++.cc: Check the declaration of copysignf.
7530         * doc/posix-functions/copysignf.texi: Mention the new module.
7531
7532 2011-10-09  Bruno Haible  <bruno@clisp.org>
7533
7534         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7535         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7536         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7537         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7538         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7539         gl_SIGNAL_H_DEFAULTS.
7540
7541 2011-10-09  Bruno Haible  <bruno@clisp.org>
7542
7543         poll: Make macro safer.
7544         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7545         ac_cv_header_poll_h is not set.
7546
7547 2011-10-09  Bruno Haible  <bruno@clisp.org>
7548
7549         copysign: Provide replacement.
7550         * lib/math.in.h (copysign): New declaration.
7551         * lib/copysign.c: New file.
7552         * m4/copysign.m4: New file.
7553         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7555         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7556         HAVE_COPYSIGN.
7557         * modules/copysign (Description): Clarify.
7558         (Files): Add lib/copysign.c, m4/copysign.m4.
7559         (Depends-on): Add math, signbit.
7560         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7561         gl_MATH_MODULE_INDICATOR.
7562         * tests/test-math-c++.cc: Check the declaration of copysign.
7563         * doc/posix-functions/copysign.texi: Mention the effects of the module
7564         on Minix and MSVC.
7565
7566 2011-10-09  Bruno Haible  <bruno@clisp.org>
7567
7568         isinf: Ensure macro on AIX 5.1.
7569         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7570         macro.
7571         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7572
7573 2011-10-09  Bruno Haible  <bruno@clisp.org>
7574
7575         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7576         * modules/snprintf-posix-tests (configure.ac): Require
7577         gl_LONG_DOUBLE_VS_DOUBLE.
7578         * modules/sprintf-posix-tests (configure.ac): Likewise.
7579         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7580         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7581         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7582         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7583         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7584         tests on platforms where 'long double' is the same as 'double'.
7585         * tests/test-sprintf-posix.h (test_function): Likewise.
7586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7587         * tests/test-vasprintf-posix.c (test_function): Likewise.
7588
7589         *printf: Fix for platforms where 'long double' == 'double'.
7590         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7591         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7592         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7593         * modules/fprintf-posix (Files): Likewise.
7594         * modules/obstack-printf-posix (Files): Likewise.
7595         * modules/snprintf-posix (Files): Likewise.
7596         * modules/sprintf-posix (Files): Likewise.
7597         * modules/vasnprintf (Files): Likewise.
7598         * modules/vasnprintf-posix (Files): Likewise.
7599         * modules/vasprintf-posix (Files): Likewise.
7600         * modules/vdprintf-posix (Files): Likewise.
7601         * modules/vfprintf-posix (Files): Likewise.
7602         * modules/vsnprintf-posix (Files): Likewise.
7603         * modules/vsprintf-posix (Files): Likewise.
7604         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7605         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7606         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7607         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7608         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7609         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7610         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7611
7612         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7613         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7614         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7615         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7616         'long double'.
7617         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7618
7619         isinf: Fix for platforms where 'long double' == 'double'.
7620         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7621         Don't blindly assume 80-bit 'long double'.
7622
7623         isfinite: Fix for platforms where 'long double' == 'double'.
7624         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7625         Don't blindly assume 80-bit 'long double'.
7626
7627         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7628         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7629         * modules/isfinite-tests (configure.ac): Require
7630         gl_LONG_DOUBLE_VS_DOUBLE.
7631         * modules/isinf-tests (configure.ac): Likewise.
7632         * modules/isnan-tests (configure.ac): Likewise.
7633         * modules/isnanl-tests (configure.ac): Likewise.
7634         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7635         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7636         tests on platforms where 'long double' is the same as 'double'.
7637         * tests/test-isinf.c (test_isinfl): Likewise.
7638         * tests/test-isnan.c (test_long_double): Likewise.
7639         * tests/test-isnanl.h (main): Likewise.
7640
7641 2011-10-08  Bruno Haible  <bruno@clisp.org>
7642
7643         Tests for module 'tanhf'.
7644         * modules/tanhf-tests: New file.
7645         * tests/test-tanhf.c: New file.
7646
7647         New module 'tanhf'.
7648         * lib/math.in.h (tanhf): New declaration.
7649         * lib/tanhf.c: New file.
7650         * m4/tanhf.m4: New file.
7651         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7652         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7653         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7654         * modules/tanhf: New file.
7655         * tests/test-math-c++.cc: Check the declaration of tanhf.
7656         * doc/posix-functions/tanhf.texi: Mention the new module.
7657
7658         tanh: Use a .m4 file.
7659         * m4/tanh.m4: New file.
7660         * modules/tanh (Files): Add it.
7661         (configure.ac): Just invoke gl_FUNC_TANH.
7662
7663 2011-10-08  Bruno Haible  <bruno@clisp.org>
7664
7665         Tests for module 'coshf'.
7666         * modules/coshf-tests: New file.
7667         * tests/test-coshf.c: New file.
7668
7669         New module 'coshf'.
7670         * lib/math.in.h (coshf): New declaration.
7671         * lib/coshf.c: New file.
7672         * m4/coshf.m4: New file.
7673         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7675         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7676         * modules/coshf: New file.
7677         * tests/test-math-c++.cc: Check the declaration of coshf.
7678         * doc/posix-functions/coshf.texi: Mention the new module.
7679
7680         cosh: Use a .m4 file.
7681         * m4/cosh.m4: New file.
7682         * modules/cosh (Files): Add it.
7683         (configure.ac): Just invoke gl_FUNC_COSH.
7684
7685 2011-10-08  Bruno Haible  <bruno@clisp.org>
7686
7687         Tests for module 'sinhf'.
7688         * modules/sinhf-tests: New file.
7689         * tests/test-sinhf.c: New file.
7690
7691         New module 'sinhf'.
7692         * lib/math.in.h (sinhf): New declaration.
7693         * lib/sinhf.c: New file.
7694         * m4/sinhf.m4: New file.
7695         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7696         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7697         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7698         * modules/sinhf: New file.
7699         * tests/test-math-c++.cc: Check the declaration of sinhf.
7700         * doc/posix-functions/sinhf.texi: Mention the new module.
7701
7702         sinh: Use a .m4 file.
7703         * m4/sinh.m4: New file.
7704         * modules/sinh (Files): Add it.
7705         (configure.ac): Just invoke gl_FUNC_SINH.
7706
7707 2011-10-08  Bruno Haible  <bruno@clisp.org>
7708
7709         Tests for module 'atan2f'.
7710         * modules/atan2f-tests: New file.
7711         * tests/test-atan2f.c: New file.
7712
7713         New module 'atan2f'.
7714         * lib/math.in.h (atan2f): New declaration.
7715         * lib/atan2f.c: New file.
7716         * m4/atan2f.m4: New file.
7717         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7718         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7719         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7720         * modules/atan2f: New file.
7721         * tests/test-math-c++.cc: Check the declaration of atan2f.
7722         * doc/posix-functions/atan2f.texi: Mention the new module.
7723
7724         atan2: Use a .m4 file.
7725         * m4/atan2.m4: New file.
7726         * modules/atan2 (Files): Add it.
7727         (configure.ac): Just invoke gl_FUNC_ATAN2.
7728
7729 2011-10-08  Bruno Haible  <bruno@clisp.org>
7730
7731         Tests for module 'atanf'.
7732         * modules/atanf-tests: New file.
7733         * tests/test-atanf.c: New file.
7734
7735         New module 'atanf'.
7736         * lib/math.in.h (atanf): New declaration.
7737         * lib/atanf.c: New file.
7738         * m4/atanf.m4: New file.
7739         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7740         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7741         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7742         * modules/atanf: New file.
7743         * tests/test-math-c++.cc: Check the declaration of atanf.
7744         * doc/posix-functions/atanf.texi: Mention the new module.
7745
7746         atan: Use a .m4 file.
7747         * m4/atan.m4: New file.
7748         * modules/atan (Files): Add it.
7749         (configure.ac): Just invoke gl_FUNC_ATAN.
7750
7751 2011-10-08  Bruno Haible  <bruno@clisp.org>
7752
7753         Tests for module 'acosf'.
7754         * modules/acosf-tests: New file.
7755         * tests/test-acosf.c: New file.
7756
7757         New module 'acosf'.
7758         * lib/math.in.h (acosf): New declaration.
7759         * lib/acosf.c: New file.
7760         * m4/acosf.m4: New file.
7761         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7763         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7764         * modules/acosf: New file.
7765         * tests/test-math-c++.cc: Check the declaration of acosf.
7766         * doc/posix-functions/acosf.texi: Mention the new module.
7767
7768         acos: Use a .m4 file.
7769         * m4/acos.m4: New file.
7770         * modules/acos (Files): Add it.
7771         (configure.ac): Just invoke gl_FUNC_ACOS.
7772
7773 2011-10-08  Bruno Haible  <bruno@clisp.org>
7774
7775         Tests for module 'asinf'.
7776         * modules/asinf-tests: New file.
7777         * tests/test-asinf.c: New file.
7778
7779         New module 'asinf'.
7780         * lib/math.in.h (asinf): New declaration.
7781         * lib/asinf.c: New file.
7782         * m4/asinf.m4: New file.
7783         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7784         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7785         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7786         * modules/asinf: New file.
7787         * tests/test-math-c++.cc: Check the declaration of asinf.
7788         * doc/posix-functions/asinf.texi: Mention the new module.
7789
7790         asin: Use a .m4 file.
7791         * m4/asin.m4: New file.
7792         * modules/asin (Files): Add it.
7793         (configure.ac): Just invoke gl_FUNC_ASIN.
7794
7795 2011-10-08  Bruno Haible  <bruno@clisp.org>
7796
7797         Tests for module 'tanf'.
7798         * modules/tanf-tests: New file.
7799         * tests/test-tanf.c: New file.
7800
7801         New module 'tanf'.
7802         * lib/math.in.h (tanf): New declaration.
7803         * lib/tanf.c: New file.
7804         * m4/tanf.m4: New file.
7805         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7807         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7808         * modules/tanf: New file.
7809         * tests/test-math-c++.cc: Check the declaration of tanf.
7810         * doc/posix-functions/tanf.texi: Mention the new module.
7811
7812         tan: Use a .m4 file.
7813         * m4/tan.m4: New file.
7814         * modules/tan (Files): Add it.
7815         (configure.ac): Just invoke gl_FUNC_TAN.
7816
7817 2011-10-08  Bruno Haible  <bruno@clisp.org>
7818
7819         Tests for module 'cosf'.
7820         * modules/cosf-tests: New file.
7821         * tests/test-cosf.c: New file.
7822
7823         New module 'cosf'.
7824         * lib/math.in.h (cosf): New declaration.
7825         * lib/cosf.c: New file.
7826         * m4/cosf.m4: New file.
7827         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7829         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7830         * modules/cosf: New file.
7831         * tests/test-math-c++.cc: Check the declaration of cosf.
7832         * doc/posix-functions/cosf.texi: Mention the new module.
7833
7834         cos: Use a .m4 file.
7835         * m4/cos.m4: New file.
7836         * modules/cos (Files): Add it.
7837         (configure.ac): Just invoke gl_FUNC_COS.
7838
7839 2011-10-08  Bruno Haible  <bruno@clisp.org>
7840
7841         Tests for module 'sinf'.
7842         * modules/sinf-tests: New file.
7843         * tests/test-sinf.c: New file.
7844
7845         New module 'sinf'.
7846         * lib/math.in.h (sinf): New declaration.
7847         * lib/sinf.c: New file.
7848         * m4/sinf.m4: New file.
7849         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7851         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7852         * modules/sinf: New file.
7853         * tests/test-math-c++.cc: Check the declaration of sinf.
7854         * doc/posix-functions/sinf.texi: Mention the new module.
7855
7856         sin: Use a .m4 file.
7857         * m4/sin.m4: New file.
7858         * modules/sin (Files): Add it.
7859         (configure.ac): Just invoke gl_FUNC_SIN.
7860
7861 2011-10-08  Bruno Haible  <bruno@clisp.org>
7862
7863         Tests for module 'powf'.
7864         * modules/powf-tests: New file.
7865         * tests/test-powf.c: New file.
7866
7867         New module 'powf'.
7868         * lib/math.in.h (powf): New declaration.
7869         * lib/powf.c: New file.
7870         * m4/powf.m4: New file.
7871         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7872         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7873         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7874         * modules/powf: New file.
7875         * tests/test-math-c++.cc: Check the declaration of powf.
7876         * doc/posix-functions/powf.texi: Mention the new module.
7877
7878         pow: Use a .m4 file.
7879         * m4/pow.m4: New file.
7880         * modules/pow (Files): Add it.
7881         (configure.ac): Just invoke gl_FUNC_POW.
7882
7883 2011-10-08  Bruno Haible  <bruno@clisp.org>
7884
7885         Tests for module 'log10f'.
7886         * modules/log10f-tests: New file.
7887         * tests/test-log10f.c: New file.
7888
7889         New module 'log10f'.
7890         * lib/math.in.h (log10f): New declaration.
7891         * lib/log10f.c: New file.
7892         * m4/log10f.m4: New file.
7893         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7895         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7896         * modules/log10f: New file.
7897         * tests/test-math-c++.cc: Check the declaration of log10f.
7898         * doc/posix-functions/log10f.texi: Mention the new module.
7899
7900         log10: Use a .m4 file.
7901         * m4/log10.m4: New file.
7902         * modules/log10 (Files): Add it.
7903         (configure.ac): Just invoke gl_FUNC_LOG10.
7904
7905 2011-10-08  Bruno Haible  <bruno@clisp.org>
7906
7907         Tests for module 'logf'.
7908         * modules/logf-tests: New file.
7909         * tests/test-logf.c: New file.
7910
7911         New module 'logf'.
7912         * lib/math.in.h (logf): New declaration.
7913         * lib/logf.c: New file.
7914         * m4/logf.m4: New file.
7915         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7917         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7918         * modules/logf: New file.
7919         * tests/test-math-c++.cc: Check the declaration of logf.
7920         * doc/posix-functions/logf.texi: Mention the new module.
7921
7922         log: Use a .m4 file.
7923         * m4/log.m4: New file.
7924         * modules/log (Files): Add it.
7925         (configure.ac): Just invoke gl_FUNC_LOG.
7926
7927 2011-10-08  Bruno Haible  <bruno@clisp.org>
7928
7929         Tests for module 'expf'.
7930         * modules/expf-tests: New file.
7931         * tests/test-expf.c: New file.
7932
7933         New module 'expf'.
7934         * lib/math.in.h (expf): New declaration.
7935         * lib/expf.c: New file.
7936         * m4/expf.m4: New file.
7937         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7939         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7940         * modules/expf: New file.
7941         * tests/test-math-c++.cc: Check the declaration of expf.
7942         * doc/posix-functions/expf.texi: Mention the new module.
7943
7944         exp: Use a .m4 file.
7945         * m4/exp.m4: New file.
7946         * modules/exp (Files): Add it.
7947         (configure.ac): Just invoke gl_FUNC_EXP.
7948
7949 2011-10-08  Bruno Haible  <bruno@clisp.org>
7950
7951         Tests for module 'sqrtf'.
7952         * modules/sqrtf-tests: New file.
7953         * tests/test-sqrtf.c: New file.
7954
7955         New module 'sqrtf'.
7956         * lib/math.in.h (sqrtf): New declaration.
7957         * lib/sqrtf.c: New file.
7958         * m4/sqrtf.m4: New file.
7959         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7961         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7962         * modules/sqrtf: New file.
7963         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7964         * doc/posix-functions/sqrtf.texi: Mention the new module.
7965
7966 2011-10-08  Bruno Haible  <bruno@clisp.org>
7967
7968         Tests: Avoid link failures w.r.t. libintl.
7969         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7970         $(LIBINTL).
7971         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7972         $(LIBINTL).
7973         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7974         against $(LIBINTL).
7975         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7976         $(LIBINTL).
7977         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7978         $(LIBINTL).
7979         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7980
7981 2011-10-08  Bruno Haible  <bruno@clisp.org>
7982
7983         pow tests: Defeat compiler optimizations.
7984         * tests/test-pow.c (main): Assign arguments to x and y before use.
7985
7986 2011-10-08  Bruno Haible  <bruno@clisp.org>
7987
7988         gnulib-tool: Improve last commit.
7989         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7990         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7991         ignore dependencies that are not among the modules list.
7992
7993 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7994
7995         gnulib-tool: don't follow dependencies to avoided modules
7996         This fixes a bug that is related to the previous one.
7997         * gnulib-tool (func_modules_transitive_closure)
7998         (func_emit_autoconf_snippets):
7999         Check whether a dependency is acceptable before using it.
8000         (--extract-dependencies): Report an error if --avoid is also used,
8001         since this combination of options is not yet supported.
8002
8003         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8004         Problem reported by Peter Dyballa in
8005         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8006         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8007         when echoing "$condition".
8008
8009 2011-10-07  Bruno Haible  <bruno@clisp.org>
8010
8011         Fix documentation about math functions on MacOS X.
8012         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8013         MacOS X 10.5.
8014         * doc/posix-functions/fdim.texi: Likewise.
8015         * doc/posix-functions/feclearexcept.texi: Likewise.
8016         * doc/posix-functions/fegetenv.texi: Likewise.
8017         * doc/posix-functions/fegetround.texi: Likewise.
8018         * doc/posix-functions/feholdexcept.texi: Likewise.
8019         * doc/posix-functions/feraiseexcept.texi: Likewise.
8020         * doc/posix-functions/fesetenv.texi: Likewise.
8021         * doc/posix-functions/fesetround.texi: Likewise.
8022         * doc/posix-functions/fetestexcept.texi: Likewise.
8023         * doc/posix-functions/feupdateenv.texi: Likewise.
8024         * doc/posix-functions/fmax.texi: Likewise.
8025         * doc/posix-functions/fmin.texi: Likewise.
8026         * doc/posix-functions/log2.texi: Likewise.
8027         * doc/posix-functions/modff.texi: Likewise.
8028         * doc/posix-functions/nan.texi: Likewise.
8029         * doc/posix-functions/nanf.texi: Likewise.
8030         * doc/posix-functions/nextafterf.texi: Likewise.
8031         * doc/posix-functions/remquo.texi: Likewise.
8032
8033 2011-10-07  Bruno Haible  <bruno@clisp.org>
8034
8035         modff: Drop assumption about library that defines modff.
8036         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8037         AC_CHECK_FUNCS.
8038         * modules/modff (Files): Add m4/mathfunc.m4.
8039
8040 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8041
8042         raise tests: Avoid a GCC warning.
8043         * tests/test-raise.c (handler): Use _Noreturn.
8044
8045 2011-10-07  Bruno Haible  <bruno@clisp.org>
8046
8047         Tests for module 'ldexpf'.
8048         * modules/ldexpf-tests: New file.
8049         * tests/test-ldexpf.c: New file.
8050
8051         New module 'ldexpf'.
8052         * lib/math.in.h (ldexpf): New declaration.
8053         * lib/ldexpf.c: New file.
8054         * m4/ldexpf.m4: New file.
8055         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8057         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8058         * modules/ldexpf: New file.
8059         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8060         * doc/posix-functions/ldexpf.texi: Mention the new module.
8061
8062 2011-10-06  Bruno Haible  <bruno@clisp.org>
8063
8064         frexpf: Work around problems on IRIX and mingw.
8065         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8067         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8068         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8069         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8070         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8071         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8072
8073 2011-10-06  Bruno Haible  <bruno@clisp.org>
8074
8075         fabsf: Drop assumption about library that defines fabsf.
8076         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8077         AC_CHECK_FUNCS.
8078         * modules/fabsf (Files): Add m4/mathfunc.m4.
8079
8080 2011-10-06  Bruno Haible  <bruno@clisp.org>
8081
8082         frexpf: Drop assumption about library that defines frexpf.
8083         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8084         'int *', 'float *', 'long double *', 'float', 'long double'.
8085         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8086         AC_CHECK_FUNCS.
8087         * modules/frexpf (Files): Add m4/mathfunc.m4.
8088
8089         Tests for module 'frexpf'.
8090         * modules/frexpf-tests: New file.
8091         * tests/test-frexpf.c: New file.
8092
8093         New module 'frexpf'.
8094         * lib/math.in.h (frexpf): New declaration.
8095         * lib/frexpf.c: New file.
8096         * m4/frexpf.m4: New file.
8097         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8099         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8100         * modules/frexpf: New file.
8101         * tests/test-math-c++.cc: Check the declaration of frexpf.
8102         * doc/posix-functions/frexpf.texi: Mention the new module.
8103
8104 2011-10-06  Bruno Haible  <bruno@clisp.org>
8105
8106         math: Sort function declarations of math.in.h.
8107         * lib/math.in.h (frexp, logb): Move declarations.
8108
8109 2011-10-05  Bruno Haible  <bruno@clisp.org>
8110
8111         Tests for module 'modff'.
8112         * modules/modff-tests: New file.
8113         * tests/test-modff.c: New file.
8114
8115         New module 'modff'.
8116         * lib/math.in.h (modff): New declaration.
8117         * lib/modff.c: New file.
8118         * m4/modff.m4: New file.
8119         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8121         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8122         * modules/modff: New file.
8123         * tests/test-math-c++.cc: Check the declaration of modff.
8124         * doc/posix-functions/modff.texi: Mention the new module.
8125
8126         modf tests: Make test sharper.
8127         * tests/test-modf.c (main): Strengthen upper bound.
8128
8129         modf: Use a .m4 file.
8130         * m4/modf.m4: New file.
8131         * modules/modf (Files): Add it.
8132         (configure.ac): Just invoke gl_FUNC_MODF.
8133
8134 2011-10-05  Bruno Haible  <bruno@clisp.org>
8135
8136         Tests for module 'fmodf'.
8137         * modules/fmodf-tests: New file.
8138         * tests/test-fmodf.c: New file.
8139
8140         New module 'fmodf'.
8141         * lib/math.in.h (fmodf): New declaration.
8142         * lib/fmodf.c: New file.
8143         * m4/fmodf.m4: New file.
8144         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8146         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8147         * modules/fmodf: New file.
8148         * tests/test-math-c++.cc: Check the declaration of fmodf.
8149         * doc/posix-functions/fmodf.texi: Mention the new module.
8150
8151         fmod: Use a .m4 file.
8152         * m4/fmod.m4: New file.
8153         * modules/fmod (Files): Add it.
8154         (configure.ac): Just invoke gl_FUNC_FMOD.
8155
8156 2011-10-05  Bruno Haible  <bruno@clisp.org>
8157
8158         Tests for module 'fabsf'.
8159         * modules/fabsf-tests: New file.
8160         * tests/test-fabsf.c: New file.
8161
8162         New module 'fabsf'.
8163         * lib/math.in.h (fabsf): New declaration.
8164         * lib/fabsf.c: New file.
8165         * m4/fabsf.m4: New file.
8166         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8168         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8169         * modules/fabsf: New file.
8170         * tests/test-math-c++.cc: Check the declaration of fabsf.
8171         * doc/posix-functions/fabsf.texi: Mention the new module.
8172
8173         fabs: Use a .m4 file.
8174         * m4/fabs.m4: New file.
8175         * modules/fabs (Files): Add it.
8176         (configure.ac): Just invoke gl_FUNC_FABS.
8177
8178 2011-10-05  Jim Meyering  <meyering@redhat.com>
8179
8180         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8181         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8182         ls -lL regression introduced in coreutils-8.12, it does so at the
8183         cost of an additional stat call in the common case.  Besides, now
8184         that the kernel change that prompted commit 95f7c57f has been reverted
8185         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8186         we have no use for commit 95f7c57f, "file-has-acl: use
8187         acl_extended_file_nofollow if available".
8188
8189 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8190
8191         file-has-acl: revert unintended change in behavior of ls -L
8192         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8193         derived from...
8194         (file_has_acl): ...code here.  Call it.
8195         This problem was introduced with 2011-07-22 commit 95f7c57f,
8196         "file-has-acl: use acl_extended_file_nofollow if available".
8197         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8198
8199 2011-10-03  Bruno Haible  <bruno@clisp.org>
8200
8201         poll: Avoid link errors on MSVC.
8202         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8203         * modules/poll (Depends-on): Add sockets.
8204         (Link): New section.
8205         * NEWS: Mention the change.
8206         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8207         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8208         $(LIB_POLL) instead of $(LIBSOCKET).
8209
8210 2011-10-03  Bruno Haible  <bruno@clisp.org>
8211
8212         sys_select tests: Fix link error on MSVC 9.
8213         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8214         with $(LIB_SELECT) instead of $(LIBSOCKET).
8215
8216 2011-10-03  Bruno Haible  <bruno@clisp.org>
8217
8218         sys_select: Fix compilation error on mingw.
8219         * lib/sys_select.in.h: On native Windows, include <io.h>.
8220
8221 2011-10-03  Bruno Haible  <bruno@clisp.org>
8222
8223         wmemset: Support for MSVC.
8224         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8225         whether wmemset() exists.
8226
8227 2011-10-03  Bruno Haible  <bruno@clisp.org>
8228
8229         wmemmove: Support for MSVC.
8230         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8231         whether wmemmove() exists.
8232
8233 2011-10-03  Bruno Haible  <bruno@clisp.org>
8234
8235         wmemcpy: Support for MSVC.
8236         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8237         whether wmemcpy() exists.
8238
8239 2011-10-03  Bruno Haible  <bruno@clisp.org>
8240
8241         wmemcmp: Support for MSVC.
8242         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8243         whether wmemcmp() exists.
8244
8245 2011-10-03  Bruno Haible  <bruno@clisp.org>
8246
8247         wmemchr: Support for MSVC.
8248         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8249         whether wmemchr() exists.
8250
8251 2011-10-03  Bruno Haible  <bruno@clisp.org>
8252
8253         glthread/*, strsignal: Support for MSVC.
8254         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8255         including <winsock.h> on MSVC 9.
8256         * lib/glthread/lock.h: Likewise.
8257         * lib/glthread/thread.h: Likewise.
8258         * lib/glthread/tls.h: Likewise.
8259         * lib/glthread/yield.h: Likewise.
8260         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8261         if HAVE_UNISTD_H is false.
8262         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8263
8264 2011-10-03  Bruno Haible  <bruno@clisp.org>
8265
8266         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8267         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8268         Set to 100000.
8269
8270 2011-10-03  Bruno Haible  <bruno@clisp.org>
8271
8272         acl: Fix specification.
8273         * lib/file-has-acl.c (file_has_acl): Fix specification.
8274
8275 2011-10-03  Bruno Haible  <bruno@clisp.org>
8276
8277         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8278         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8279         (compute_curr_prefix, shared_library_fullname,
8280         find_shared_library_fullname, get_shared_library_fullname, relocate):
8281         Use it together with PIC && INSTALLDIR.
8282         Reported by <jojelino@gmail.com>
8283         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8284
8285 2011-10-01  Jim Meyering  <meyering@redhat.com>
8286
8287         maint.mk: adjust a release-related rule not to require use of gzip
8288         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8289         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8290         projects that build only .tar.xz files.  Also fix an erroneous test.
8291
8292         test-linkat: don't leave behind a temporary file
8293         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8294         Otherwise, coreutils' "make distcheck" would fail with this:
8295           Only in /c/cu/tests/torture/coreutils/test/\
8296             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8297           make[2]: *** [my-distcheck] Error 1
8298
8299         float, math: add omitted file
8300         * lib/itold.c: Add file, required for yesterday's float change.
8301
8302 2011-10-01  Bruno Haible  <bruno@clisp.org>
8303
8304         isinf: Fix for OpenBSD/x86.
8305         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8306         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8307         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8308
8309 2011-10-01  Bruno Haible  <bruno@clisp.org>
8310
8311         isfinite: Fix syntax error in configure test.
8312         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8313
8314         isfinite: Fix typo.
8315         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8316         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8317
8318 2011-10-01  Bruno Haible  <bruno@clisp.org>
8319
8320         nonblocking tests: Fix test failure on Linux/IA-64.
8321         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8322         Set to 270000.
8323
8324 2011-10-01  Bruno Haible  <bruno@clisp.org>
8325
8326         mkfifoat tests: Fix a test failure on mingw.
8327         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8328         with error ENOSYS.
8329
8330 2011-09-30  Bruno Haible  <bruno@clisp.org>
8331
8332         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8333         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8334         'long double'. Set REPLACE_ITOLD.
8335         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8336         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8337         * lib/itold.c: New file.
8338         * modules/float (Files): Add lib/itold.c.
8339         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8340         (Makefile.am): Substitute REPLACE_ITOLD.
8341         * modules/math (Depends-on): Add float.
8342         (Makefile.am): Substitute REPLACE_ITOLD.
8343         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8344         * doc/posix-headers/math.texi: Likewise.
8345         * doc/posix-functions/logl.texi: Likewise.
8346
8347 2011-09-30  Bruno Haible  <bruno@clisp.org>
8348
8349         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8350         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8351         Set to 140000.
8352
8353 2011-09-30  Bruno Haible  <bruno@clisp.org>
8354
8355         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8356         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8357         invocation, say "right after AC_PROG_CC_STDC", not "right after
8358         AC_PROG_CC".
8359         Reported by Gary V. Vaughan <gary@gnu.org>.
8360
8361 2011-09-30  Bruno Haible  <bruno@clisp.org>
8362
8363         Centralize C99 requirement.
8364         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8365         * modules/stdarg (configure.ac-early): Invoke it instead of
8366         AC_PROG_CC_STDC.
8367         Reported by Gary V. Vaughan and Paul Eggert.
8368
8369 2011-09-29  Bruno Haible  <bruno@clisp.org>
8370
8371         float: Fix LDBL_MAX value on Linux/PowerPC.
8372         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8373         on Linux/PowerPC.
8374         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8375         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8376         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8377         platform.
8378         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8379
8380 2011-09-29  Bruno Haible  <bruno@clisp.org>
8381
8382         doc: Improve doc about gl_EARLY.
8383         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8384         AC_PROG_CC_STDC invocation.
8385         Reported by Gary V. Vaughan <gary@gnu.org>.
8386
8387 2011-09-28  Bruno Haible  <bruno@clisp.org>
8388
8389         fgetc, fputc, fread, fwrite tests: Fix link error.
8390         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8391         on non-MSVC platforms.
8392         * tests/test-fputc.c (main): Likewise.
8393         * tests/test-fread.c (main): Likewise.
8394         * tests/test-fwrite.c (main): Likewise.
8395         Reported by Jim Meyering.
8396
8397 2011-09-27  Bruno Haible  <bruno@clisp.org>
8398
8399         fputc, fwrite tests: Avoid test failure on MSVC.
8400         * tests/test-fgetc.c: Include msvc-inval.h.
8401         (main): Invoke gl_msvc_inval_ensure_handler.
8402         * tests/test-fputc.c: Include msvc-inval.h.
8403         (main): Invoke gl_msvc_inval_ensure_handler.
8404         * tests/test-fread.c: Include msvc-inval.h.
8405         (main): Invoke gl_msvc_inval_ensure_handler.
8406         * tests/test-fwrite.c: Include msvc-inval.h.
8407         (main): Invoke gl_msvc_inval_ensure_handler.
8408         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8409         * modules/fputc-tests (Depends-on): Likewise.
8410         * modules/fread-tests (Depends-on): Likewise.
8411         * modules/fwrite-tests (Depends-on): Likewise.
8412
8413 2011-09-27  Bruno Haible  <bruno@clisp.org>
8414
8415         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8416         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8417         (raise): Remove older, duplicated declaration.
8418         (_gl_raise_SIGPIPE): New declaration.
8419         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8420         (rpl_raise): Remove function.
8421         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8422         a gnulib-defined SIGPIPE here.
8423         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8424         'sigprocmask' has detected missing signal-blocking and the module
8425         'sigpipe' is enabled.
8426         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8427
8428 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8429
8430         base64-tests: avoid memory leak
8431         * tests/test-base64.c (main): Plug memory leak.
8432
8433         base32: new module
8434         * modules/base32: New module.
8435         * lib/base32.c: New file.
8436         * lib/base32.h: Likewise.
8437         * m4/base32.m4: Likewise.
8438         * modules/base32-tests: New test.
8439         * tests/test-base32.c: Likewise.
8440         * MODULES.html.sh (Misc): Mention it.
8441
8442 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8443
8444         gnulib: use more-standard license notice wording
8445         * gnulib-tool (func_emit_copyright_notice): When emitting a
8446         license notice into a file, use the standard wording as suggested
8447         by the current information for GNU maintainers, except say "file"
8448         rather than "program".  The new wording gives a license version
8449         number, which addresses an issue raised by Glenn Morris in
8450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8451         * m4/onceonly.m4: Use that same wording here, too.
8452
8453         dup2: minor simplification
8454         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8455         as lib/dup2.c no longer uses 'inline'.
8456
8457 2011-09-25  Bruno Haible  <bruno@clisp.org>
8458
8459         strings: Fix compilation error on MSVC.
8460         * lib/strings.in.h: Include <stddef.h> for size_t.
8461
8462 2011-09-25  Bruno Haible  <bruno@clisp.org>
8463
8464         fflush et al.: Document limitation on MSVC.
8465         * doc/posix-functions/fflush.texi: Document possible crash in handling
8466         mode other than DEFAULT_HANDLING.
8467         * doc/posix-functions/fgetc.texi: Likewise.
8468         * doc/posix-functions/fputc.texi: Likewise.
8469         * doc/posix-functions/fread.texi: Likewise.
8470         * doc/posix-functions/fwrite.texi: Likewise.
8471
8472 2011-09-25  Bruno Haible  <bruno@clisp.org>
8473
8474         msvc-inval: Allow three invalid parameter handling modes.
8475         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8476         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8477         macros.
8478         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8479         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8480         SANE_LIBRARY_HANDLING as a no-op.
8481         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8482         <stdlib.h>.
8483         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8484
8485 2011-09-25  Bruno Haible  <bruno@clisp.org>
8486
8487         msvc-inval: Make handler multithread-safe.
8488         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8489         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8490         declarations.
8491         (gl_msvc_inval_current): New declaration.
8492         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8493         Operate on the structure returned by gl_msvc_inval_current().
8494         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8495         Remove varaiables.
8496         (tls_index, tls_initialized): New variables.
8497         (not_per_thread): New variable.
8498         (gl_msvc_inval_current): New function.
8499         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8500         returned by gl_msvc_inval_current().
8501
8502 2011-09-25  Bruno Haible  <bruno@clisp.org>
8503
8504         msvc-inval: Install handler globally.
8505         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8506         !_MSC_VER.
8507         (gl_msvc_invalid_parameter_handler): Remove declaration.
8508         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8509         declarations.
8510         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8511         Install the handler globally, don't uninstall it.
8512         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8513         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8514         currently valid, call RaiseException instead.
8515         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8516         for !_MSC_VER.
8517
8518 2011-09-25  Bruno Haible  <bruno@clisp.org>
8519
8520         strerror_r-posix: Fix for MSVC 9.
8521         * lib/strerror_r.c (local_snprintf): New function.
8522         (snprintf): Define to local_snprintf, not to _snprintf.
8523
8524 2011-09-25  Bruno Haible  <bruno@clisp.org>
8525
8526         ftruncate: Support for MSVC 9.
8527         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8528         (chsize_nothrow): New function.
8529         (chsize): Redefine as a macro.
8530         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8531         * modules/ftruncate (Depends-on): Add msvc-inval.
8532
8533 2011-09-25  Bruno Haible  <bruno@clisp.org>
8534
8535         New module 'fstat'.
8536         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8537         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8538         * lib/fchdir.c (rpl_fstat): Remove function.
8539         * m4/fstat.m4: New file.
8540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8542         declared.
8543         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8544         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8545         * modules/fstat: New file.
8546         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8547         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8548         is set.
8549         * doc/posix-functions/fstat.texi: Mention the new module and the
8550         problem on MSVC.
8551         * NEWS: Mention the change.
8552         * modules/acl (Depends-on): Add fstat.
8553         * modules/chdir-safer (Depends-on): Likewise.
8554         * modules/chown (Depends-on): Likewise.
8555         * modules/copy-file (Depends-on): Likewise.
8556         * modules/fchdir (Depends-on): Likewise.
8557         * modules/fdopendir (Depends-on): Likewise.
8558         * modules/fopen (Depends-on): Likewise.
8559         * modules/fts (Depends-on): Likewise.
8560         * modules/getcwd (Depends-on): Likewise.
8561         * modules/isapipe (Depends-on): Likewise.
8562         * modules/linkat (Depends-on): Likewise.
8563         * modules/lseek (Depends-on): Likewise.
8564         * modules/mkdir-p (Depends-on): Likewise.
8565         * modules/open (Depends-on): Likewise.
8566         * modules/openat (Depends-on): Likewise.
8567         * modules/read-file (Depends-on): Likewise.
8568         * modules/renameat (Depends-on): Likewise.
8569         * modules/utimens (Depends-on): Likewise.
8570
8571 2011-09-25  Bruno Haible  <bruno@clisp.org>
8572
8573         linkat: Fix compilation on MSVC 9.
8574         * lib/linkat.c: Don't include <stdint.h>.
8575
8576 2011-09-25  Bruno Haible  <bruno@clisp.org>
8577
8578         fclose: Support for MSVC 9.
8579         * lib/fclose.c: Include msvc-inval.h.
8580         (fclose_nothrow): New function.
8581         (rpl_fclose): Use it.
8582         * modules/fclose (Depends-on): Add msvc-inval.
8583         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8584
8585 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8586
8587         dup2: minor simplifications
8588         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8589         that it's a performance win.
8590         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8591         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8592
8593 2011-09-24  Jim Meyering  <meyering@redhat.com>
8594
8595         test-futimens: avoid a warning from gcc -Wshadow
8596         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8597         to avoid a shadowing warning.
8598
8599 2011-09-24  Bruno Haible  <bruno@clisp.org>
8600
8601         fdopen: Support for MSVC 9.
8602         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8603         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8604         * lib/fdopen.c: Include msvc-inval.h.
8605         (fdopen_nothrow): New function.
8606         (rpl_fdopen): Use it.
8607         * modules/fdopen (Depends-on): Add msvc-inval.
8608         * modules/fclose-tests (Depends-on): Add fdopen.
8609         * modules/fflush-tests (Depends-on): Likewise.
8610         * modules/fgetc-tests (Depends-on): Likewise.
8611         * modules/fputc-tests (Depends-on): Likewise.
8612         * modules/fread-tests (Depends-on): Likewise.
8613         * modules/freopen-tests (Depends-on): Likewise.
8614         * modules/fseeko-tests (Depends-on): Likewise.
8615         * modules/ftello-tests (Depends-on): Likewise.
8616         * modules/fwrite-tests  (Depends-on): Likewise.
8617         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8618
8619 2011-09-24  Bruno Haible  <bruno@clisp.org>
8620
8621         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8622         * modules/fgetc-tests (Depends-on): Add unistd.
8623         * modules/fputc-tests (Depends-on): Likewise.
8624         * modules/fread-tests (Depends-on): Likewise.
8625         * modules/fwrite-tests (Depends-on): Likewise.
8626
8627 2011-09-24  Bruno Haible  <bruno@clisp.org>
8628
8629         dup: Simplify autoconf test.
8630         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8631         on gl_MSVC_INVAL's result.
8632
8633 2011-09-24  Bruno Haible  <bruno@clisp.org>
8634
8635         Tests for function fwrite().
8636         * modules/fwrite-tests: New file.
8637         * tests/test-fwrite.c: New file.
8638         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8639
8640         Tests for function fread().
8641         * modules/fread-tests: New file.
8642         * tests/test-fread.c: New file.
8643         * modules/stdio-tests (Depends-on): Add fread-tests.
8644
8645         Activate fputc tests.
8646         * modules/stdio-tests (Depends-on): Add fputc-tests.
8647
8648         Enhance fgetc, fputc tests.
8649         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8650         * tests/test-fputc.c (main): Likewise.
8651
8652 2011-09-24  Bruno Haible  <bruno@clisp.org>
8653
8654         write: Support for MSVC 9.
8655         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8656         is not 1.
8657         * lib/write.c (write_nothrow): New function.
8658         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8659         not 1. Use write_nothrow.
8660         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8661         invalid parameter handler.
8662         (gl_PREREQ_WRITE): New macro.
8663         * modules/write (Depends-on): Add msvc-inval.
8664         (configure.ac): Invoke gl_PREREQ_WRITE.
8665         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8666
8667 2011-09-24  Bruno Haible  <bruno@clisp.org>
8668
8669         read: Fix last commit.
8670         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8671
8672 2011-09-24  Bruno Haible  <bruno@clisp.org>
8673
8674         dup2: Fix last commit.
8675         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8676         (rpl_dup2): Disable fcntl workaround on native Windows.
8677
8678         sigprocmask: Make code safer.
8679         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8680         section that changes macro definitions for this compilation unit.
8681
8682 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8683
8684         dup2: clarify by coalescing Windows-specific material
8685         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8686         "msvc-nothrow.h"' to the Windows-specific section, so that the
8687         Emacs source need not contain these include files.
8688         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8689         Windows-specific fixes into this function rather than just the
8690         nothrow fix, as this shortens and clarifies the code.  Always
8691         define as a function, as that's a bit cleaner than having it be
8692         sometimes a function and sometimes a macro.
8693         (rpl_dup2): Move the Windows-specific stuff out of here and into
8694         ms_windows_dup2.  Don't protect the Haiku-related fix with
8695         "#if !defined __linux__", as the same code also works around
8696         a Linux kernel bug, and it doesn't add any system calls on any
8697         platform.  Add comment about FreeBSD 6.1.
8698
8699         sigprocmask: move #include directive
8700         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8701         Windows-specific section, so that the Emacs source need not
8702         contain msvc-inval.h.
8703
8704 2011-09-23  Bruno Haible  <bruno@clisp.org>
8705
8706         read: Support for MSVC 9.
8707         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8708         is not 1.
8709         * lib/read.c (read_nothrow): New function.
8710         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8711         read_nothrow.
8712         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8713         invalid parameter handler.
8714         (gl_PREREQ_READ): New macro.
8715         * modules/read (Depends-on): Add msvc-inval.
8716         (configure.ac): Invoke gl_PREREQ_READ.
8717         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8718
8719 2011-09-23  Bruno Haible  <bruno@clisp.org>
8720
8721         close: Support for MSVC 9.
8722         * lib/close.c: Include <errno.h>, msvc-inval.h.
8723         (close_nothrow): New function.
8724         (rpl_close): Use it.
8725         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8726         invalid parameter handler.
8727         * modules/close (Depends-on): Add msvc-inval.
8728         * modules/dup2-tests (Depends-on): Add close.
8729         * modules/dup3-tests (Depends-on): Likewise.
8730         * modules/fcntl-tests (Depends-on): Likewise.
8731         * modules/spawn-pipe-tests (Depends-on): Likewise.
8732         * modules/unistd-safer-tests (Depends-on): Likewise.
8733         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8734
8735 2011-09-23  Bruno Haible  <bruno@clisp.org>
8736
8737         New module 'dup'.
8738         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8739         Allow replacement.
8740         * lib/dup.c: New file.
8741         * lib/fchdir.c (rpl_dup): Remove function.
8742         * m4/dup.m4: New file.
8743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8744         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8745         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8746         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8747         * modules/dup: New file.
8748         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8749         'dup' module is in use.
8750         * modules/fdopendir (Depends-on): Add dup.
8751         * modules/fdutimensat-tests (Depends-on): Likewise.
8752         * modules/fts (Depends-on): Likewise.
8753         * modules/futimens-tests (Depends-on): Likewise.
8754         * modules/posix_spawnp-tests (Depends-on): Likewise.
8755         * modules/unistd-safer-tests (Depends-on): Likewise.
8756         * modules/utimens-tests (Depends-on): Likewise.
8757         * doc/posix-functions/dup.texi: Mention the new module and the problem
8758         on MSVC.
8759
8760 2011-09-23  Bruno Haible  <bruno@clisp.org>
8761
8762         getdtablesize: Support for MSVC 9.
8763         * lib/getdtablesize.c: Include msvc-inval.h.
8764         (_setmaxstdio_nothrow): New function.
8765         (_setmaxstdio): Redefine it.
8766         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8767         * modules/getdtablesize (Depends-on): Add msvc-inval.
8768         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8769
8770 2011-09-23  Bruno Haible  <bruno@clisp.org>
8771
8772         signal-h: Rename from signal.
8773         * modules/signal-h: Renamed from modules/signal.
8774         * modules/pthread_sigmask (Depends-on): Update.
8775         * modules/raise (Depends-on): Likewise.
8776         * modules/sigaction (Depends-on): Likewise.
8777         * modules/sigpipe (Depends-on): Likewise.
8778         * modules/sigprocmask (Depends-on): Likewise.
8779         * modules/sys_select (Depends-on): Likewise.
8780         * modules/signal-h-tests: Renamed from modules/signal-tests.
8781         (Files, Depends-on, Makefile.am): Update.
8782         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8783         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8784         (Files, Makefile.am): Update.
8785         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8786         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8787         * modules/signal: New placeholder file.
8788         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8789         * doc/posix-headers/signal.texi: Update.
8790         * NEWS: Mention the change.
8791
8792 2011-09-23  Bruno Haible  <bruno@clisp.org>
8793
8794         sigprocmask: Avoid crashes through signal() on MSVC 9.
8795         * lib/sigprocmask.c: Include msvc-inval.h.
8796         (signal_nothrow): New function.
8797         (signal): Redefine it.
8798         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8799         * modules/sigprocmask (Depends-on): Add msvc-inval.
8800         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8801
8802 2011-09-23  Bruno Haible  <bruno@clisp.org>
8803
8804         Tests for module 'raise'.
8805         * modules/raise-tests: New file.
8806         * tests/test-raise.c: New file.
8807
8808         raise: Support for MSVC.
8809         * lib/signal.in.h (raise): New declaration.
8810         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8811         for native Windows platforms.
8812         * m4/raise.m4: New file.
8813         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8814         HAVE_RAISE, REPLACE_RAISE.
8815         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8816         REPLACE_RAISE.
8817         * modules/raise (Status, Notice): Remove fields.
8818         (Files): Add m4/raise.m4.
8819         (Depends-on): Add signal, msvc-inval.
8820         (configure.ac): Use the common idioms.
8821         (Maintainer): Add me.
8822         * tests/test-signal-c++.cc: Check the signature of raise.
8823         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8824
8825 2011-09-23  Bruno Haible  <bruno@clisp.org>
8826
8827         pipe2: Fix compilation on pre-C99 compilers.
8828         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8829
8830 2011-09-23  Bruno Haible  <bruno@clisp.org>
8831
8832         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8833         * lib/msvc-nothrow.h: New file.
8834         * lib/msvc-nothrow.c: New file.
8835         * m4/msvc-nothrow.m4: New file.
8836         * modules/msvc-nothrow: New file.
8837         * lib/dup2.c: Include msvc-nothrow.h.
8838         (rpl_dup2): No need to protect _get_osfhandle call here.
8839         * lib/accept4.c: Include msvc-nothrow.h.
8840         * lib/error.c: Likewise.
8841         * lib/fcntl.c: Likewise.
8842         * lib/lseek.c: Likewise.
8843         * lib/nonblocking.c: Likewise.
8844         * lib/poll.c: Likewise.
8845         * lib/read.c: Likewise.
8846         * lib/select.c: Likewise.
8847         * lib/sockets.h: Likewise.
8848         * lib/sockets.c: Likewise.
8849         * lib/stdio-read.c: Likewise.
8850         * lib/stdio-write.c: Likewise.
8851         * lib/write.c: Likewise.
8852         * lib/w32sock.h: Likewise.
8853         * lib/w32spawn.h: Likewise.
8854         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8855         * lib/fsync.c: Likewise.
8856         * lib/isapipe.c: Likewise.
8857         * modules/dup2 (Depends-on): Add msvc-nothrow.
8858         * modules/accept4 (Depends-on): Likewise.
8859         * modules/error (Depends-on): Likewise.
8860         * modules/fcntl (Depends-on): Likewise.
8861         * modules/lseek (Depends-on): Likewise.
8862         * modules/nonblocking (Depends-on): Likewise.
8863         * modules/poll (Depends-on): Likewise.
8864         * modules/read (Depends-on): Likewise.
8865         * modules/select (Depends-on): Likewise.
8866         * modules/sockets (Depends-on): Likewise.
8867         * modules/sigpipe (Depends-on): Likewise.
8868         * modules/write (Depends-on): Likewise.
8869         * modules/accept (Depends-on): Likewise.
8870         * modules/bind (Depends-on): Likewise.
8871         * modules/connect (Depends-on): Likewise.
8872         * modules/gethostname (Depends-on): Likewise.
8873         * modules/getpeername (Depends-on): Likewise.
8874         * modules/getsockname (Depends-on): Likewise.
8875         * modules/getsockopt (Depends-on): Likewise.
8876         * modules/ioctl (Depends-on): Likewise.
8877         * modules/listen (Depends-on): Likewise.
8878         * modules/recv (Depends-on): Likewise.
8879         * modules/recvfrom (Depends-on): Likewise.
8880         * modules/send (Depends-on): Likewise.
8881         * modules/sendto (Depends-on): Likewise.
8882         * modules/setsockopt (Depends-on): Likewise.
8883         * modules/shutdown (Depends-on): Likewise.
8884         * modules/socket (Depends-on): Likewise.
8885         * modules/execute (Depends-on): Likewise.
8886         * modules/spawn-pipe (Depends-on): Likewise.
8887         * modules/flock (Depends-on): Likewise.
8888         * modules/fsync (Depends-on): Likewise.
8889         * modules/isapipe (Depends-on): Likewise.
8890         * tests/test-cloexec.c: Include msvc-nothrow.h.
8891         * tests/test-dup-safer.c: Likewise.
8892         * tests/test-dup2.c: Likewise.
8893         * tests/test-dup3.c: Likewise.
8894         * tests/test-fcntl.c: Likewise.
8895         * tests/test-pipe.c: Likewise.
8896         * tests/test-pipe2.c: Likewise.
8897         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8898         * modules/unistd-safer-tests (Depends-on): Likewise.
8899         * modules/dup2-tests (Depends-on): Likewise.
8900         * modules/dup3-tests (Depends-on): Likewise.
8901         * modules/fcntl-tests (Depends-on): Likewise.
8902         * modules/pipe-posix-tests (Depends-on): Likewise.
8903         * modules/pipe2-tests (Depends-on): Likewise.
8904
8905 2011-09-23  Bruno Haible  <bruno@clisp.org>
8906
8907         dup2: Make code more maintainable.
8908         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8909         (rpl_dup2): Use it.
8910         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8911         * modules/dup2 (configure.ac): Invoke it.
8912         Reported by Paul Eggert.
8913
8914 2011-09-23  Bruno Haible  <bruno@clisp.org>
8915
8916         msvc-inval: Fix compilation error.
8917         * lib/msvc-inval.h: Include <excpt.h>.
8918
8919 2011-09-23  Bruno Haible  <bruno@clisp.org>
8920
8921         mkdir: Tweak for MSVC 9.
8922         * lib/sys_stat.in.h: Update comments.
8923         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8924
8925         Tests for module 'chdir'.
8926         * modules/chdir-tests: New file.
8927         * tests/test-chdir.c: New file.
8928
8929         New module 'chdir'.
8930         * modules/chdir: New file.
8931         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8932         (chdir): New declaration.
8933         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8934         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8935         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8936         * tests/test-unistd-c++.cc: Check signature of chdir.
8937         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8938         * modules/chdir-long (Depends-on): Add chdir.
8939         * modules/fchdir (Depends-on): Likewise.
8940         * modules/rename (Depends-on): Likewise.
8941         * modules/savewd (Depends-on): Likewise.
8942
8943         rmdir: Support for mingw, MSVC 9.
8944         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8945         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8946
8947         getcwd: Tweak for MSVC 9.
8948         * lib/unistd.in.h: Update comments.
8949         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8950
8951 2011-09-22  Bruno Haible  <bruno@clisp.org>
8952
8953         strerror_r-posix: Avoid a link error on MSVC.
8954         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8955         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8956
8957 2011-09-22  Bruno Haible  <bruno@clisp.org>
8958
8959         select: Avoid link errors on MSVC.
8960         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8961         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8962         * modules/pselect (Link): Likewise.
8963         * NEWS: Mention the change.
8964         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8965         test-select-stdin against $(LIB_SELECT).
8966         * modules/pselect-tests (Makefile.am): Link test-pselect against
8967         $(LIB_SELECT).
8968
8969 2011-09-22  Bruno Haible  <bruno@clisp.org>
8970
8971         select: Avoid compilation error on MSVC.
8972         * lib/select.c: Don't include <stdbool.h>.
8973
8974 2011-09-21  Bruno Haible  <bruno@clisp.org>
8975
8976         Consolidate all uses of PATH_MAX in *.m4 files.
8977         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8978         macros.
8979         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8980         and gl_PATHMAX_SNIPPET.
8981         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8982         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8983         * modules/chdir-long (Files): Add m4/pathmax.m4.
8984         * modules/getcwd (Files): Likewise.
8985
8986 2011-09-21  Bruno Haible  <bruno@clisp.org>
8987
8988         ftruncate: Un-deprecate, concentrate on Win32 support.
8989         * modules/ftruncate (Status, Notice): Remove sections.
8990         (Depends-on): Add largefile.
8991         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8992         non-mingw platforms.
8993         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8994         include <io.h>.
8995         * modules/perror-tests (Depends-on): Add ftruncate.
8996         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8997         'ftruncate' module.
8998
8999 2011-09-21  Bruno Haible  <bruno@clisp.org>
9000
9001         Add dependencies to new dirent related modules.
9002         * modules/opendir (Depends-on): Add closedir.
9003         * modules/getcwd (Depends-on): Add opendir, closedir.
9004         * modules/dirent-safer-tests (Depends-on): Likewise.
9005         * modules/fdopendir-tests (Depends-on): Likewise.
9006         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9007         * modules/renameat-tests (Depends-on): Likewise.
9008
9009 2011-09-21  Bruno Haible  <bruno@clisp.org>
9010
9011         opendir: Avoid compilation error on mingw.
9012         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9013         * modules/opendir (Depends-on): Add unistd.
9014
9015 2011-09-21  Bruno Haible  <bruno@clisp.org>
9016
9017         ftruncate tests: Avoid a test failure on mingw.
9018         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9019
9020 2011-09-21  Bruno Haible  <bruno@clisp.org>
9021
9022         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9023         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9024         native Windows.
9025
9026 2011-09-21  Bruno Haible  <bruno@clisp.org>
9027
9028         New module 'fdopen'.
9029         * lib/stdio.in.h (fdopen): New declaration.
9030         * lib/fdopen.c: New file.
9031         * m4/fdopen.m4: New file.
9032         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9033         REPLACE_FDOPEN.
9034         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9035         REPLACE_FDOPEN.
9036         * modules/fdopen: New file.
9037         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9038         * tests/test-stdio-c++.cc: Check signature of fdopen.
9039         * doc/posix-functions/fdopen.texi: Mention the new module.
9040
9041 2011-09-21  Bruno Haible  <bruno@clisp.org>
9042
9043         unlockpt tests: Avoid test failure on NetBSD 5.1.
9044         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9045         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9046
9047 2011-09-21  Bruno Haible  <bruno@clisp.org>
9048
9049         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9050         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9051         * tests/test-getlogin_r.c (main): Likewise.
9052
9053 2011-09-20  Bruno Haible  <bruno@clisp.org>
9054
9055         time tests: Don't require pid_t.
9056         * doc/posix-headers/time.texi: Revert last change.
9057         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9058         * tests/test-time.c: Comment out the check for pid_t.
9059
9060 2011-09-20  Bruno Haible  <bruno@clisp.org>
9061
9062         fsync tests: Avoid a test failure on mingw.
9063         * tests/test-fsync.c (main): Allow a failure with EIO.
9064
9065 2011-09-20  Bruno Haible  <bruno@clisp.org>
9066
9067         euidaccess: Update comments.
9068         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9069
9070 2011-09-20  Bruno Haible  <bruno@clisp.org>
9071
9072         Ensure EBADF returns for socket functions on mingw.
9073         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9074         descriptor is invalid.
9075         * lib/bind.c (rpl_bind): Likewise.
9076         * lib/connect.c (rpl_connect): Likewise.
9077         * lib/getpeername.c (rpl_getpeername): Likewise.
9078         * lib/getsockname.c (rpl_getsockname): Likewise.
9079         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9080         * lib/listen.c (rpl_listen): Likewise.
9081         * lib/recv.c (rpl_recv): Likewise.
9082         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9083         * lib/send.c (rpl_send): Likewise.
9084         * lib/sendto.c (rpl_sendto): Likewise.
9085         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9086         * lib/shutdown.c (rpl_shutdown): Likewise.
9087
9088 2011-09-20  Bruno Haible  <bruno@clisp.org>
9089
9090         select tests: EBADF tests.
9091         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9092         test_bad_fd): New functions.
9093         (test_function): Invoke also test_bad_fd.
9094
9095 2011-09-20  Bruno Haible  <bruno@clisp.org>
9096
9097         Tests for module 'posix_spawn_file_actions_addopen.
9098         * modules/posix_spawn_file_actions_addopen-tests: New file.
9099         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9100
9101         Tests for module 'posix_spawn_file_actions_adddup2'.
9102         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9103         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9104
9105         Tests for module 'posix_spawn_file_actions_addclose'.
9106         * modules/posix_spawn_file_actions_addclose-tests: New file.
9107         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9108
9109 2011-09-20  Bruno Haible  <bruno@clisp.org>
9110
9111         Tests for module 'unlockpt'.
9112         * modules/unlockpt-tests: New file.
9113         * tests/test-unlockpt.c: New file.
9114         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9115
9116         Tests for module 'grantpt'.
9117         * modules/grantpt-tests: New file.
9118         * tests/test-grantpt.c: New file.
9119         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9120
9121 2011-09-20  Bruno Haible  <bruno@clisp.org>
9122
9123         freopen tests: EBADF tests.
9124         * tests/test-freopen.c: Include errno.h, unistd.h.
9125         (main): Add tests for EBADF, commented out for the moment.
9126
9127         fclose tests: EBADF tests.
9128         * tests/test-fclose.c (main): Add tests for EBADF.
9129
9130         fflush tests: EBADF tests.
9131         * tests/test-fflush.c: Include errno.h, macros.h.
9132         (main): Add tests for EBADF.
9133
9134         ftello tests: EBADF tests.
9135         * tests/test-ftello4.sh: New file.
9136         * tests/test-ftello4.c: New file.
9137         * modules/ftello-tests (Files): Add them.
9138         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9139
9140         fseeko tests: EBADF tests.
9141         * tests/test-fseeko4.sh: New file.
9142         * tests/test-fseeko4.c: New file.
9143         * modules/fseeko-tests (Files): Add them.
9144         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9145
9146         Tests for function fputc().
9147         * modules/fputc-tests: New file.
9148         * tests/test-fputc.c: New file.
9149         * modules/stdio-tests (Depends-on): Add fputc-tests.
9150
9151         Tests for function fgetc().
9152         * modules/fgetc-tests: New file.
9153         * tests/test-fgetc.c: New file.
9154         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9155
9156         Tests for function fdopen().
9157         * modules/fdopen-tests: New file.
9158         * tests/test-fdopen.c: New file.
9159         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9160
9161         Tests for module 'vdprintf'.
9162         * modules/vdprintf-tests: New file.
9163         * tests/test-vdprintf.c: New file.
9164
9165         Tests for module 'dprintf'.
9166         * modules/dprintf-tests: New file.
9167         * tests/test-dprintf.c: New file.
9168
9169 2011-09-20  Bruno Haible  <bruno@clisp.org>
9170
9171         Tests for module 'ioctl'.
9172         * modules/ioctl-tests: New file.
9173         * tests/test-ioctl.c: New file.
9174
9175 2011-09-20  Bruno Haible  <bruno@clisp.org>
9176
9177         fcntl tests: EBADF tests.
9178         * tests/test-fcntl.c (main): Add more tests for EBADF.
9179
9180 2011-09-20  Bruno Haible  <bruno@clisp.org>
9181
9182         utimensat tests: EBADF tests.
9183         * tests/test-utimensat.c (main): Add tests for EBADF.
9184
9185         renameat tests: EBADF tests.
9186         * tests/test-renameat.c (main): Add tests for EBADF.
9187
9188         mkfifoat tests: EBADF tests.
9189         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9190
9191         readlinkat tests: EBADF tests.
9192         * tests/test-readlinkat.c (main): Add tests for EBADF.
9193
9194         symlinkat tests: EBADF tests.
9195         * tests/test-symlinkat.c (main): Add tests for EBADF.
9196
9197         linkat tests: EBADF tests.
9198         * tests/test-linkat.c (main): Add tests for EBADF.
9199
9200         Tests for module 'faccessat'.
9201         * modules/faccessat-tests: New file.
9202         * tests/test-faccessat.c: New file.
9203
9204         fdopendir tests: EBADF tests.
9205         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9206
9207         openat tests: EBADF tests.
9208         * tests/test-fchownat.c (main): Add tests for EBADF.
9209         * tests/test-fstatat.c (main): Likewise.
9210         * tests/test-mkdirat.c (main): Likewise.
9211         * tests/test-openat.c (main): Likewise.
9212         * tests/test-unlinkat.c (main): Likewise.
9213         * tests/test-fchmodat.c: New file.
9214         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9215         (Makefile.am): Also run 'test-fchmodat'.
9216
9217 2011-09-20  Bruno Haible  <bruno@clisp.org>
9218
9219         utimens, futimens, fdutimensat tests: EBADF tests.
9220         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9221
9222         Tests for function fstat().
9223         * modules/fstat-tests: New file.
9224         * tests/test-fstat.c: New file.
9225         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9226
9227 2011-09-20  Bruno Haible  <bruno@clisp.org>
9228
9229         test-ttyname_r tests: EBADF tests.
9230         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9231
9232         Tests for module 'isatty'.
9233         * modules/isatty-tests: New file.
9234         * tests/test-isatty.c: New file.
9235
9236         Tests for module 'write'.
9237         * modules/write-tests: New file.
9238         * tests/test-write.c: New file.
9239
9240         Tests for module 'read'.
9241         * modules/read-tests: New file.
9242         * tests/test-read.c: New file.
9243
9244         pwrite tests: EBADF tests.
9245         * tests/test-pwrite.c (main): Add tests for EBADF.
9246
9247         pread tests: EBADF tests.
9248         * tests/test-pread.c (main): Add tests for EBADF.
9249
9250         lseek tests: EBADF tests.
9251         * tests/test-lseek.c (main): Add more tests for EBADF.
9252
9253         Tests for module 'ftruncate'.
9254         * modules/ftruncate-tests: New file.
9255         * tests/test-ftruncate.sh: New file.
9256         * tests/test-ftruncate.c: New file.
9257
9258         fsync tests: EBADF tests.
9259         * tests/test-fsync.c (main): Add more tests for EBADF.
9260
9261         fdatasync tests: EBADF tests.
9262         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9263
9264         Tests for module 'fchown'.
9265         * modules/fchown-tests: New file.
9266         * tests/test-fchown.c: New file.
9267
9268         Tests for module 'fchmod'.
9269         * modules/fchmod-tests: New file.
9270         * tests/test-fchmod.c: New file.
9271
9272         fchdir tests: EBADF tests.
9273         * tests/test-fchdir.c (main): Add more tests for EBADF.
9274
9275         dup2 tests: EBADF tests.
9276         * tests/test-dup2.c (main): Add more tests for EBADF.
9277
9278         Tests for module 'dup'.
9279         * modules/dup-tests: New file.
9280         * tests/test-dup.c: New file.
9281
9282         Tests for module 'close'.
9283         * modules/close-tests: New file.
9284         * tests/test-close.c: New file.
9285
9286 2011-09-20  Bruno Haible  <bruno@clisp.org>
9287
9288         Tests for module 'shutdown'.
9289         * modules/shutdown-tests: New file.
9290         * tests/test-shutdown.c: New file.
9291
9292         Tests for module 'setsockopt'.
9293         * modules/setsockopt-tests: New file.
9294         * tests/test-setsockopt.c: New file.
9295
9296         Tests for module 'sendto'.
9297         * modules/sendto-tests: New file.
9298         * tests/test-sendto.c: New file.
9299
9300         Tests for module 'send'.
9301         * modules/send-tests: New file.
9302         * tests/test-send.c: New file.
9303
9304         Tests for module 'recvfrom'.
9305         * modules/recvfrom-tests: New file.
9306         * tests/test-recvfrom.c: New file.
9307
9308         Tests for module 'recv'.
9309         * modules/recv-tests: New file.
9310         * tests/test-recv.c: New file.
9311
9312         Tests for module 'listen'.
9313         * modules/listen-tests: New file.
9314         * tests/test-listen.c: New file.
9315
9316         Tests for module 'getsockopt'.
9317         * modules/getsockopt-tests: New file.
9318         * tests/test-getsockopt.c: New file.
9319
9320         Tests for module 'getsockname'.
9321         * modules/getsockname-tests: New file.
9322         * tests/test-getsockname.c: New file.
9323
9324         Tests for module 'getpeername'.
9325         * modules/getpeername-tests: New file.
9326         * tests/test-getpeername.c: New file.
9327
9328         Tests for module 'connect'.
9329         * modules/connect-tests: New file.
9330         * tests/test-connect.c: New file.
9331
9332         Tests for module 'bind'.
9333         * modules/bind-tests: New file.
9334         * tests/test-bind.c: New file.
9335
9336         accept4 tests: Fix for native Windows.
9337         * tests/test-accept4.c: Include sockets.h.
9338         (main): Invoke gl_sockets_startup.
9339         * modules/accept4-tests (Depends-on): Add sockets.
9340
9341         accept tests: Fix for native Windows.
9342         * tests/test-accept.c: Include sockets.h.
9343         (main): Invoke gl_sockets_startup.
9344         * modules/accept-tests (Depends-on): Add sockets.
9345
9346 2011-09-19  Bruno Haible  <bruno@clisp.org>
9347
9348         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9349         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9350         do...while(0).
9351         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9352         Suggested by Paul Eggert.
9353
9354 2011-09-19  Bruno Haible  <bruno@clisp.org>
9355
9356         sched: Ensure pid_t is defined.
9357         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9358         not define pid_t.
9359         * lib/sched.in.h: Include <sys/types.h>.
9360         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9362
9363 2011-09-19  Bruno Haible  <bruno@clisp.org>
9364
9365         msvc-inval: Ensure the entire expansion is a single statement.
9366         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9367         of braces.
9368
9369 2011-09-19  Jim Meyering  <meyering@redhat.com>
9370
9371         tests: use printf, not echo in init.sh's warn_ function
9372         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9373         misbehave when given strings containing a backslash or starting
9374         with e.g., -n.  James Youngman suggested setting IFS.
9375
9376 2011-09-19  Eric Blake  <eblake@redhat.com>
9377
9378         futimens: enhance test
9379         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9380         closed non-negative fd.
9381
9382         date: accept 'hence' as opposite of 'ago'
9383         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9384         * tests/test-parse-datetime.c (main): Enhance test.
9385         Suggested by Jesse Wilson.
9386
9387 2011-09-19  Jim Meyering  <meyering@redhat.com>
9388
9389         getcwd: don't fail in a deep directory on a system without openat
9390         Before this change, getcwd would fail when called from a directory
9391         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9392         the non-openat implementation used "..", "../..", "../../..", etc.
9393         to access ancestor directories.  With too many, that string would
9394         be longer than PATH_MAX.
9395         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9396         using gnulib's openat replacement.
9397         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9398         we're using the replacement function.
9399
9400 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9401
9402         maint.mk: avoid warnings from perl about missing files
9403         * top/maint.mk (def_sym_regex): Ignore files listed in
9404         $(gl_other_headers_) that do not exist, say because a project
9405         does not use a corresponding module.
9406
9407 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9408
9409         stat: use pathmax.h only if needed
9410         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9411         This is better for Emacs, which does not have a mingw port and
9412         therefore can avoid the pathmax module.
9413
9414         utimens: remove dependency on dup2
9415         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9416         to work around the Linux kernel bug.
9417         * modules/utimens (Depends-on): Remove dup2.
9418
9419 2011-09-18  Bruno Haible  <bruno@clisp.org>
9420
9421         inet_ntop, inet_pton: Look for it also in libresolv.
9422         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9423         libnsl, search for it in libresolv.
9424         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9425         Needed on Solaris 7.
9426
9427 2011-09-18  Bruno Haible  <bruno@clisp.org>
9428
9429         accept, accept4 tests: Avoid link error on Solaris.
9430         * modules/accept-tests (Makefile.am): Link test-accept against
9431         $(LIBSOCKET).
9432         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9433         $(LIBSOCKET).
9434
9435         accept4: Avoid link error on Solaris.
9436         * modules/accept4 (Link): New section.
9437
9438         socket functions: Avoid link errors on Solaris.
9439         * modules/accept (Depends-on): Add socketlib.
9440         (Link): New section.
9441         * modules/bind (Depends-on): Add socketlib.
9442         (Link): New section.
9443         * modules/connect (Depends-on): Add socketlib.
9444         (Link): New section.
9445         * modules/getpeername (Depends-on): Add socketlib.
9446         (Link): New section.
9447         * modules/getsockname (Depends-on): Add socketlib.
9448         (Link): New section.
9449         * modules/getsockopt (Depends-on): Add socketlib.
9450         (Link): New section.
9451         * modules/listen (Depends-on): Add socketlib.
9452         (Link): New section.
9453         * modules/recv (Depends-on): Add socketlib.
9454         (Link): New section.
9455         * modules/recvfrom (Depends-on): Add socketlib.
9456         (Link): New section.
9457         * modules/send (Depends-on): Add socketlib.
9458         (Link): New section.
9459         * modules/sendto (Depends-on): Add socketlib.
9460         (Link): New section.
9461         * modules/setsockopt (Depends-on): Add socketlib.
9462         (Link): New section.
9463         * modules/shutdown (Depends-on): Add socketlib.
9464         (Link): New section.
9465         * modules/socket (Depends-on): Add socketlib.
9466         (Link): New section.
9467
9468 2011-09-18  Bruno Haible  <bruno@clisp.org>
9469
9470         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9471         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9472         than 5 seconds.
9473         * modules/ptsname-tests (configure.ac): Test for alarm.
9474
9475 2011-09-18  Bruno Haible  <bruno@clisp.org>
9476
9477         posix_spawn_file_actions_add*: Fix module dependencies.
9478         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9479         posix_spawn_file_actions_init.
9480         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9481         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9482
9483 2011-09-18  Bruno Haible  <bruno@clisp.org>
9484
9485         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9486         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9487         * tests/test-renameat.c (main): Likewise.
9488
9489 2011-09-18  Bruno Haible  <bruno@clisp.org>
9490
9491         Tests for module 'accept4'.
9492         * modules/accept4-tests: New file.
9493         * tests/test-accept4.c: New file.
9494
9495 2011-09-18  Bruno Haible  <bruno@clisp.org>
9496
9497         Tests for module 'accept'.
9498         * modules/accept-tests: New file.
9499         * tests/test-accept.c: New file.
9500
9501 2011-09-18  Bruno Haible  <bruno@clisp.org>
9502
9503         dup2: Support for MSVC.
9504         * lib/dup2.c: Include msvc-inval.h.
9505         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9506         _get_osfhandle calls.
9507         * modules/dup2 (Depends-on): Add msvc-inval.
9508         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9509
9510         New module 'msvc-inval'.
9511         * lib/msvc-inval.h: New file.
9512         * lib/msvc-inval.c: New file.
9513         * m4/msvc-inval.m4: New file.
9514         * modules/msvc-inval: New file.
9515
9516 2011-09-17  Bruno Haible  <bruno@clisp.org>
9517
9518         Tests for module 'pclose'.
9519         * modules/pclose-tests: New file.
9520
9521         New module 'pclose'.
9522         * lib/stdio.in.h (pclose): New declaration.
9523         * lib/pclose.c: New file.
9524         * m4/pclose.m4: New file.
9525         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9526         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9527         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9528         * modules/pclose: New file.
9529         * modules/popen-tests (Depends-on): Add pclose.
9530         * modules/popen-safer-tests (Depends-on): Likewise.
9531         * doc/posix-functions/pclose.texi: Mention the new module.
9532
9533 2011-09-17  Bruno Haible  <bruno@clisp.org>
9534
9535         popen: Support for MSVC.
9536         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9537         * lib/popen.c (popen): Provide alternate definition for native Windows.
9538         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9540         * modules/popen (Depends-on, configure.ac): Update condition.
9541         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9542         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9543         fixed.
9544
9545 2011-09-17  Bruno Haible  <bruno@clisp.org>
9546
9547         isnanl, isnand, isnanf: Work around MSVC bug.
9548         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9549
9550 2011-09-17  Bruno Haible  <bruno@clisp.org>
9551
9552         sys_socket tests: Fix recent mistake.
9553         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9554
9555 2011-09-17  Bruno Haible  <bruno@clisp.org>
9556
9557         putenv: Support for MSVC.
9558         * modules/putenv (Depends-on): Add environ.
9559         * lib/putenv.c (environ): Disable declaration.
9560         * lib/unistd.in.h: Update comment.
9561
9562 2011-09-17  Bruno Haible  <bruno@clisp.org>
9563
9564         math: Avoid macro redefinition warnings on MSVC.
9565         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9566         Undefine before redefining.
9567
9568 2011-09-17  Bruno Haible  <bruno@clisp.org>
9569
9570         doc: Mention functions which are declared as macros.
9571         * doc/posix-functions/*[fl].texi: Mention that some functions are
9572         defined as macros with arguments only.
9573
9574 2011-09-17  Bruno Haible  <bruno@clisp.org>
9575
9576         Add dependencies to new dirent related modules.
9577         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9578         * modules/fts (Depends-on): Likewise.
9579         * modules/glob (Depends-on): Likewise.
9580         * modules/savedir (Depends-on): Likewise.
9581         * modules/scandir (Depends-on): Likewise.
9582         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9583         * modules/fdopendir (Depends-on): Add opendir.
9584
9585 2011-09-17  Bruno Haible  <bruno@clisp.org>
9586
9587         inet_pton: Support for MSVC on Windows Vista or newer.
9588         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9589         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9590         HAVE_DECL_INET_PTON is defined.
9591         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9592         On platforms with <winsock2.h>, test whether inet_pton is declared in
9593         <ws2tcpip.h>. If so, arrange to replace it.
9594         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9595         REPLACE_INET_PTON.
9596         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9597         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9598         (Depends-on, configure.ac): Update condition.
9599         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9600
9601 2011-09-17  Bruno Haible  <bruno@clisp.org>
9602
9603         inet_ntop: Support for MSVC on Windows Vista or newer.
9604         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9605         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9606         HAVE_DECL_INET_NTOP is defined.
9607         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9608         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9609         <ws2tcpip.h>. If so, arrange to replace it.
9610         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9611         REPLACE_INET_NTOP.
9612         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9613         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9614         (Depends-on, configure.ac): Update condition.
9615         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9616
9617 2011-09-16  Eric Blake  <eblake@redhat.com>
9618
9619         test-fsync: yet another enhancement
9620         * tests/test-fsync.c (main): Also test behavior on read-only text
9621         file.
9622
9623 2011-09-16  Bruno Haible  <bruno@clisp.org>
9624
9625         Enhance fsync, fdatasync tests.
9626         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9627         * tests/test-fdatasync.c (main): Likewise.
9628
9629 2011-09-16  Bruno Haible  <bruno@clisp.org>
9630
9631         Support for MSVC compiler: Ensure mode_t gets defined.
9632         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9633         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9634         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9635         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9636         * tests/test-fcntl-h.c: Check that mode_t is defined.
9637         * tests/test-sys_stat.c: Likewise.
9638         * tests/test-sys_types.c: Likewise.
9639         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9640         * doc/posix-headers/sys_stat.texi: Likewise.
9641         * doc/posix-headers/sys_types.texi: Likewise.
9642
9643 2011-09-16  Bruno Haible  <bruno@clisp.org>
9644
9645         sys_stat: Support for MSVC.
9646         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9647         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9648         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9649         MSVC.
9650
9651 2011-09-16  Bruno Haible  <bruno@clisp.org>
9652
9653         Support for MSVC compiler: Ensure off_t gets defined.
9654         * lib/unistd.in.h: Include <sys/types.h>.
9655         * tests/test-fcntl-h.c: Check that off_t is defined.
9656         * tests/test-sys_stat.c: Likewise.
9657         * tests/test-sys_types.c: Likewise.
9658
9659 2011-09-16  Eric Blake  <eblake@redhat.com>
9660
9661         fdatasync: port to Solaris
9662         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9663         * modules/fdatasync (Link): Document it.
9664         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9665
9666         fdatasync: port to MacOS X 10.7
9667         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9668         declared.
9669         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9670         * modules/unistd (Makefile.am): Substitute it.
9671         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9672         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9673
9674         fdatasync: minor improvements
9675         * modules/fdatasync (Depends-on): Add condition for fsync.
9676         * lib/fdatasync.c (fdatasync): Add comment.
9677         * tests/test-unistd-c++.cc: Test fdatasync.
9678
9679         unistd: update refs to newer POSIX
9680         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9681         Suggested by Bruno Haible.
9682
9683         fdatasync: new module
9684         * modules/fsync (Description): Document difference to fdatasync.
9685         * modules/fdatasync: New module.
9686         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9687         * lib/fdatasync.c (fdatasync): Likewise.
9688         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9689         defaults.
9690         * modules/unistd (Makefile.am): Set witnesses.
9691         * lib/unistd.in.h (fdatasync): Declare.
9692         * MODULES.html.sh: Document it.
9693         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9694         * modules/fdatasync-tests: New test.
9695         * tests/test-fdatasync.c: Likewise.
9696
9697 2011-09-16  Eric Blake  <eblake@redhat.com>
9698
9699         test-fsync: enhance tests
9700         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9701         * tests/test-fsync.c (main): Enhance test.
9702
9703 2011-09-15  Bruno Haible  <bruno@clisp.org>
9704
9705         Support for MSVC compiler: Ensure ssize_t gets defined.
9706         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9707         * doc/posix-headers/stdio.texi: Likewise.
9708         * modules/stdio (Depends-on): Add ssize_t.
9709         * modules/sys_socket (Depends-on): Likewise.
9710         * modules/sys_types (Depends-on): Likewise.
9711         * modules/sys_uio (Depends-on): Likewise.
9712         * modules/unistd (Depends-on): Likewise.
9713         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9714         * tests/test-sys_types.c: Check that ssize_t is defined.
9715
9716 2011-09-14  Bruno Haible  <bruno@clisp.org>
9717
9718         Avoid using #, the m4 comment starter character, near brackets.
9719         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9720         delimiter character in sed expressions.
9721         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9722         Suggested by Eric Blake.
9723
9724         Properly quote AC_CHECK_DECLS' 4th argument.
9725         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9726         argument.
9727         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9728         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9729         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9730         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9731         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9732         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9734         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9735         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9736         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9737         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9738         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9739         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9740         * m4/isinf.m4 (gl_ISINF): Likewise.
9741         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9742         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9743         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9744         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9745         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9747         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9748         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9749         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9750         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9751         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9752         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9753         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9754         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9755         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9756         Reported by Eric Blake.
9757
9758         Properly quote AC_CHECK_DECL's 4th argument.
9759         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9760         argument.
9761         * m4/argp.m4 (gl_ARGP): Likewise.
9762         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9763         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9764         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9765         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9766         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9767         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9769         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9770         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9771         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9773         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9774         Reported by Eric Blake.
9775
9776 2011-09-14  Eric Blake  <eblake@redhat.com>
9777
9778         opendir: avoid compile warning
9779         * lib/opendir.c (includes): Always include errno.h.
9780         Reported by Tatsuro MATSUOKA.
9781
9782 2011-09-14  Jim Meyering  <meyering@redhat.com>
9783
9784         maint.mk: sc_tight_scope: propagate failure from sub-make
9785         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9786         Reported by Martin von Gagern.
9787
9788 2011-09-13  Bruno Haible  <bruno@clisp.org>
9789
9790         tempname: Support for MSVC.
9791         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9792         MSVC.
9793         * modules/tempname (Depends-on): Add fcntl-h.
9794
9795 2011-09-13  Bruno Haible  <bruno@clisp.org>
9796
9797         sys_time: Support for MSVC.
9798         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9799         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9800         include <winsock2.h>.
9801         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9802         function declarations that collide with POSIX.
9803         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9804         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9805
9806 2011-09-13  Bruno Haible  <bruno@clisp.org>
9807
9808         stat: Support for MSVC.
9809         * lib/stat.c: Include pathmax.h.
9810         * modules/stat (Depends-on): Add pathmax.
9811
9812         pathmax: Support for native Windows.
9813         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9814
9815 2011-09-12  Bruno Haible  <bruno@clisp.org>
9816
9817         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9818         * lib/dirent.in.h (struct dirent): New type.
9819         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9820         DT_WHT): New macros.
9821         (DIR): New type.
9822         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9823         (readdir, rewinddir): New declarations.
9824         * lib/dirent-private.h: New file.
9825         * lib/opendir.c: New file.
9826         * lib/readdir.c: New file.
9827         * lib/rewinddir.c: New file.
9828         * lib/closedir.c: New file.
9829         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9830         * m4/opendir.m4: New file.
9831         * m4/readdir.m4: New file.
9832         * m4/rewinddir.m4: New file.
9833         * m4/closedir.m4: New file.
9834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9835         REPLACE_CLOSEDIR here.
9836         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9837         readdir, rewinddir are declared.
9838         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9839         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9840         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9841         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9842         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9843         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9844         * modules/opendir: New file.
9845         * modules/readdir: New file.
9846         * modules/rewinddir: New file.
9847         * modules/closedir: New file.
9848         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9849         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9850         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9851         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9852         * NEWS: Mention the 'fchdir' change.
9853
9854 2011-09-11  Bruno Haible  <bruno@clisp.org>
9855
9856         asm-underscore.m4: Support for MSVC.
9857         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9858         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9859
9860 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9861
9862         Doc about crypt functions.
9863         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9864         needing for _GNU_SOURCE to get crypt.
9865         * doc/posix-functions/encrypt.texi: Likewise.
9866         * doc/posix-functions/setkey.texi: Likewise.
9867
9868 2011-09-11  Bruno Haible  <bruno@clisp.org>
9869
9870         doc: Update regarding MSVC 9.
9871         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9872         tested".
9873         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9874         * doc/posix-headers/*.texi: Likewise.
9875         * doc/pastposix-functions/*.texi: Likewise.
9876         * doc/glibc-functions/*.texi: Likewise.
9877         * doc/glibc-headers/*.texi: Likewise.
9878
9879 2011-09-11  Bruno Haible  <bruno@clisp.org>
9880
9881         unistd et al.: Don't assume <unistd.h> exists.
9882         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9883         does not exist.
9884         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9885         exist. But include <stdlib.h>.
9886         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9887         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9888         symlink() does not exist.
9889         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9890         include <io.h> instead.
9891         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9892         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9893         include <direct.h> instead.
9894         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9895         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9896         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9897         <io.h> instead.
9898         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9899         correctly if the system does not have hard links.
9900         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9901         <direct.h> instead.
9902         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9903         it when looking for function declarations.
9904         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9905         <direct.h> and <io.h> instead.
9906         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9907
9908 2011-09-11  Bruno Haible  <bruno@clisp.org>
9909
9910         strcase: Support for MSVC.
9911         * modules/strcase (Status, Notice): Remove obsoletion mark.
9912         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9913         * doc/posix-functions/strncasecmp.texi: Likewise.
9914
9915         strings: Don't assume <strings.h> exists.
9916         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9917         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9918         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9919         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9920
9921 2011-09-11  Bruno Haible  <bruno@clisp.org>
9922
9923         dirent: Don't assume <dirent.h> exists.
9924         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9925         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9926         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9927         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9928
9929 2011-09-11  Bruno Haible  <bruno@clisp.org>
9930
9931         Fix wint_t on MSVC.
9932         * lib/wchar.in.h (wint_t): On MSVC, override it.
9933         * lib/wctype.in.h (wint_t): Likewise.
9934         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9935         MSVC.
9936         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9937         * doc/posix-headers/wctype.texi: Likewise.
9938
9939 2011-09-11  Bruno Haible  <bruno@clisp.org>
9940
9941         sys_types: Fix typo.
9942         * lib/sys_types.in.h: Fix typo in comment.
9943         Reported by Paul Eggert.
9944
9945         Support for MSVC compiler: Ensure size_t gets defined.
9946         * modules/strings (Depends-on): Add 'sys_types'.
9947         * modules/sys_uio (Depends-on): Likewise.
9948         * lib/sys_uio.in.h: Update comment.
9949
9950         C++ tests for module 'sys_types'.
9951         * modules/sys_types-c++-tests: New file.
9952         * tests/test-sys_types-c++.cc: New file.
9953
9954         Tests for module 'sys_types'.
9955         * modules/sys_types-tests: New file.
9956         * tests/test-sys_types.c: New file.
9957
9958         New module 'sys_types'.
9959         * lib/sys_types.in.h: New file.
9960         * m4/sys_types_h.m4: New file.
9961         * modules/sys_types: New file.
9962         * doc/posix-headers/sys_types.texi: Mention the new module and the
9963         size_t problem on MSVC 9.
9964
9965 2011-09-11  Bruno Haible  <bruno@clisp.org>
9966
9967         Support for MSVC compiler: Avoid division by a literal 0.
9968         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9969         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9970         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9971         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9972         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9973         * tests/infinity.h: New file.
9974         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9975         on MSVC.
9976         * tests/test-ceilf1.c: Include infinity.h.
9977         (main): Use Infinityf.
9978         * tests/test-ceil1.c: Include infinity.h.
9979         (main): Use Infinityd.
9980         * tests/test-ceill.c: Include infinity.h.
9981         (main): Use Infinityl.
9982         * tests/test-dprintf-posix.c: Include infinity.h.
9983         (test_function): Use Infinityd.
9984         * tests/test-floorf1.c: Include infinity.h.
9985         (main): Use Infinityf.
9986         * tests/test-floor1.c: Include infinity.h.
9987         (main): Use Infinityd.
9988         * tests/test-floorl.c: Include infinity.h.
9989         (main): Use Infinityl.
9990         * tests/test-fprintf-posix.c: Include infinity.h.
9991         (test_function): Use Infinityd.
9992         * tests/test-frexp.c: Include infinity.h.
9993         (main): Use Infinityd.
9994         * tests/test-frexpl.c: Include infinity.h.
9995         (main): Use Infinityl.
9996         * tests/test-isfinite.c: Include infinity.h.
9997         (test_isfinitef): Use Infinityf.
9998         (test_isfinited): Use Infinityd.
9999         (test_isfinitel): Use Infinityl.
10000         * tests/test-isinf.c: Include infinity.h.
10001         (test_isinff): Use Infinityf.
10002         (test_isinfd): Use Infinityd.
10003         (test_isinfl): Use Infinityl.
10004         * tests/test-isnan.c: Include infinity.h.
10005         (test_float): Use Infinityf.
10006         (test_double): Use Infinityd.
10007         (test_long_double): Use Infinityl.
10008         * tests/test-isnanf.h: Include infinity.h.
10009         (main): Use Infinityf.
10010         * tests/test-isnand.h: Include infinity.h.
10011         (main): Use Infinityd.
10012         * tests/test-isnanl.h: Include infinity.h.
10013         (main): Use Infinityl.
10014         * tests/test-ldexpl.c: Include infinity.h.
10015         (main): Use Infinityl.
10016         * tests/test-printf-posix.h: Include infinity.h.
10017         (test_function): Use Infinityd.
10018         * tests/test-roundf1.c: Include infinity.h.
10019         (main): Use Infinityf.
10020         * tests/test-round1.c: Include infinity.h.
10021         (main): Use Infinityd.
10022         * tests/test-roundl.c: Include infinity.h.
10023         (main): Use Infinityl.
10024         * tests/test-signbit.c: Include infinity.h.
10025         (test_signbitf): Use Infinityf.
10026         (test_signbitd): Use Infinityd.
10027         (test_signbitl): Use Infinityl.
10028         * tests/test-snprintf-posix.h: Include infinity.h.
10029         (test_function): Use Infinityd, Infinityl.
10030         * tests/test-sprintf-posix.h: Include infinity.h.
10031         (test_function): Use Infinityd, Infinityl.
10032         * tests/test-truncf1.c: Include infinity.h.
10033         (main): Use Infinityf.
10034         * tests/test-trunc1.c: Include infinity.h.
10035         (main): Use Infinityd.
10036         * tests/test-truncl.c: Include infinity.h.
10037         (main): Use Infinityl.
10038         * tests/test-vasnprintf-posix.c: Include infinity.h.
10039         (test_function): Use Infinityd, Infinityl.
10040         * tests/test-vasprintf-posix.c: Include infinity.h.
10041         (test_function): Use Infinityd, Infinityl.
10042         * modules/ceilf-tests (Files): Add tests/infinity.h.
10043         * modules/ceil-tests (Files): Likewise.
10044         * modules/ceill-tests (Files): Likewise.
10045         * modules/dprintf-posix-tests (Files): Likewise.
10046         * modules/floorf-tests (Files): Likewise.
10047         * modules/floor-tests (Files): Likewise.
10048         * modules/floorl-tests (Files): Likewise.
10049         * modules/fprintf-posix-tests (Files): Likewise.
10050         * modules/frexp-tests (Files): Likewise.
10051         * modules/frexp-nolibm-tests (Files): Likewise.
10052         * modules/frexpl-tests (Files): Likewise.
10053         * modules/frexpl-nolibm-tests (Files): Likewise.
10054         * modules/isfinite-tests (Files): Likewise.
10055         * modules/isinf-tests (Files): Likewise.
10056         * modules/isnan-tests (Files): Likewise.
10057         * modules/isnanf-tests (Files): Likewise.
10058         * modules/isnanf-nolibm-tests (Files): Likewise.
10059         * modules/isnand-tests (Files): Likewise.
10060         * modules/isnand-nolibm-tests (Files): Likewise.
10061         * modules/isnanl-tests (Files): Likewise.
10062         * modules/isnanl-nolibm-tests (Files): Likewise.
10063         * modules/ldexpl-tests (Files): Likewise.
10064         * modules/printf-posix-tests (Files): Likewise.
10065         * modules/roundf-tests (Files): Likewise.
10066         * modules/round-tests (Files): Likewise.
10067         * modules/roundl-tests (Files): Likewise.
10068         * modules/signbit-tests (Files): Likewise.
10069         * modules/snprintf-posix-tests (Files): Likewise.
10070         * modules/sprintf-posix-tests (Files): Likewise.
10071         * modules/truncf-tests (Files): Likewise.
10072         * modules/trunc-tests (Files): Likewise.
10073         * modules/truncl-tests (Files): Likewise.
10074         * modules/vasnprintf-posix-tests (Files): Likewise.
10075         * modules/vasprintf-posix-tests (Files): Likewise.
10076         * modules/vdprintf-posix-tests (Files): Likewise.
10077         * modules/vfprintf-posix-tests (Files): Likewise.
10078         * modules/vprintf-posix-tests (Files): Likewise.
10079         * modules/vsnprintf-posix-tests (Files): Likewise.
10080         * modules/vsprintf-posix-tests (Files): Likewise.
10081         * modules/xprintf-posix-tests (Files): Likewise.
10082
10083 2011-09-11  Bruno Haible  <bruno@clisp.org>
10084
10085         Ensure pid_t gets defined.
10086         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10087         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10088         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10089         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10090         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10091         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10092         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10093         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10094         * tests/test-fcntl-h.c: Check that pid_t is defined.
10095         * tests/test-sched.c: Likewise.
10096         * tests/test-termios.c: Likewise.
10097         * tests/test-time.c: Likewise.
10098         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10099         * doc/posix-headers/signal.texi: Likewise.
10100         * doc/posix-headers/sys_types.texi: Likewise.
10101         * doc/posix-headers/time.texi: Likewise.
10102
10103 2011-09-11  Bruno Haible  <bruno@clisp.org>
10104
10105         acl: Fix compilation on Solaris 10 (older version).
10106         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10107         of ACE_EVERYONE.
10108         * lib/set-mode-acl.c (qset_acl): Likewise.
10109         Reported by Christian Jullien <eligis@orange.fr>.
10110
10111 2011-09-10  Bruno Haible  <bruno@clisp.org>
10112
10113         iconv, unsetenv: Add support for MSVC compiler.
10114         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10115         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10116
10117 2011-09-10  Bruno Haible  <bruno@clisp.org>
10118
10119         *printf: Add support for MSVC compiler.
10120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10121         handles the exception caused by the %n directive. When cross-compiling,
10122         guess no on native Windows.
10123         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10124         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10125         emulate it through vsnprintf.
10126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10127         * doc/posix-functions/dprintf.texi: Update documentation regarding
10128         MSVC 9.
10129         * doc/posix-functions/fprintf.texi: Likewise.
10130         * doc/posix-functions/printf.texi: Likewise.
10131         * doc/posix-functions/snprintf.texi: Likewise.
10132         * doc/posix-functions/sprintf.texi: Likewise.
10133         * doc/posix-functions/swprintf.texi: Likewise.
10134         * doc/posix-functions/vdprintf.texi: Likewise.
10135         * doc/posix-functions/vfprintf.texi: Likewise.
10136         * doc/posix-functions/vprintf.texi: Likewise.
10137         * doc/posix-functions/vsnprintf.texi: Likewise.
10138         * doc/posix-functions/vsprintf.texi: Likewise.
10139         * doc/glibc-functions/asprintf.texi: Likewise.
10140         * doc/glibc-functions/obstack_printf.texi: Likewise.
10141         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10142         * doc/glibc-functions/vasprintf.texi: Likewise.
10143
10144 2011-09-10  Bruno Haible  <bruno@clisp.org>
10145
10146         nocrash: Add support for native Windows.
10147         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10148
10149 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10150             Bruno Haible  <bruno@clisp.org>
10151
10152         absolute-header, include-next: Add support for MSVC compiler.
10153         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10154         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10155         directory separator in #line directives.
10156         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10157         recognize also backslash as directory separator in #line directives.
10158
10159 2011-09-08  Jim Meyering  <meyering@redhat.com>
10160
10161         maint.mk: mark the post-release commit log with "maint: " prefix
10162         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10163         one-line commit-log summary.
10164
10165 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10166             Bruno Haible  <bruno@clisp.org>
10167
10168         Doc about crypt functions.
10169         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10170         systems.
10171         * doc/posix-functions/encrypt.texi: Likewise.
10172         * doc/posix-functions/setkey.texi: Likewise.
10173
10174 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10175
10176         * lib/gc.h: Fix copyright header.
10177
10178 2011-09-07  Bruno Haible  <bruno@clisp.org>
10179
10180         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10181         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10182         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10183
10184 2011-09-07  Bruno Haible  <bruno@clisp.org>
10185
10186         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10187         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10188         * lib/freopen.c: Likewise.
10189         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10190         * lib/lstat.c: Likewise.
10191         * lib/stat.c: Likewise.
10192         * lib/open.c: Use different syntax for include of <fcntl.h>.
10193         * lib/openat.c: Include fcntl.h again, explicitly.
10194
10195 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10196
10197         parse-datetime: document the newly accepted format
10198         * doc/parse-datetime.texi (Combined date and time of day items):
10199         New section.
10200
10201 2011-09-06  Bruno Haible  <bruno@clisp.org>
10202
10203         acl: Fix a test failure on newer Solaris 10 with ZFS.
10204         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10205         ENOSYS as no ACL.
10206         Reported by Jim Meyering.
10207
10208 2011-09-06  Bruno Haible  <bruno@clisp.org>
10209
10210         acl: Update for AIX >= 5.3 with NFS.
10211         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10212         ENOSYS as no ACL.
10213
10214         acl: Fix a test failure on AIX >= 5.3 with NFS.
10215         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10216         as no ACL.
10217
10218 2011-09-06  Bruno Haible  <bruno@clisp.org>
10219
10220         acl: Fix a test failure on IRIX 6.5 with NFS.
10221         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10222         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10223         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10224         * lib/copy-acl.c (qcopy_acl): Likewise.
10225
10226 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         openat: port to AIX 7.1 with large files
10229         AIX 7.1 does a "#define openat open64at" if large files are in use,
10230         so we can't simply #undef openat.  Use the orig_openat trick (similar
10231         to orig_open in lib/open.c) to work around the problem.  Problem
10232         reported by Kevin Brott for GNU tar, in the thread containing
10233         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10234         * lib/openat.c (__need_system_fcntl_h): Define first.
10235         Include <fcntl.h> and <sys/types.h> before undefining.
10236         (orig_openat) [HAVE_OPENAT]: New inline function.
10237         (openat) [HAVE_OPENAT]: Do not undef.
10238         (rpl_openat): Use orig_openat, not openat.
10239
10240 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10241             Bruno Haible  <bruno@clisp.org>
10242
10243         acl: Avoid errors on NonStop Kernel.
10244         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10245         ENOTSUP errors.
10246
10247 2011-09-05  Bruno Haible  <bruno@clisp.org>
10248
10249         acl: Clean up Solaris code.
10250         * lib/acl-internal.h: Remove no-op #if.
10251         * lib/file-has-acl.c: Likewise.
10252         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10253         * lib/copy-acl.c (qcopy_acl): Likewise.
10254
10255 2011-09-05  Bruno Haible  <bruno@clisp.org>
10256
10257         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10258         binaries built on the original Solaris 10.
10259         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10260         trivial.
10261
10262 2011-09-05  Bruno Haible  <bruno@clisp.org>
10263
10264         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10265         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10266         10.
10267         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10268         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10269         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10270         instead of acl_get, facl_get, acl_set, facl_set.
10271
10272 2011-09-05  Bruno Haible  <bruno@clisp.org>
10273
10274         copy-file: Try unit tests on more file systems.
10275         * tests/test-copy-file-1.sh: New file.
10276         * tests/test-copy-file-2.sh: New file.
10277         * modules/copy-file-tests (Files): Add them.
10278         (Makefile.am): Add them to TESTS.
10279
10280         acl: Try unit tests on more file systems.
10281         * tests/test-file-has-acl-1.sh: New file.
10282         * tests/test-file-has-acl-2.sh: New file.
10283         * tests/test-set-mode-acl-1.sh: New file.
10284         * tests/test-set-mode-acl-2.sh: New file.
10285         * tests/test-copy-acl-1.sh: New file.
10286         * tests/test-copy-acl-2.sh: New file.
10287         * modules/acl-tests (Files): Add them.
10288         (Makefile.am): Add them to TESTS.
10289
10290 2011-09-04  Bruno Haible  <bruno@clisp.org>
10291
10292         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10293         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10294         10.
10295         (OLD_ALLOW, OLD_DENY): New macros.
10296         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10297         ACE_ACCESS_ALLOWED_ACE_TYPE.
10298         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10299         ACE_ACCESS_DENIED_ACE_TYPE.
10300         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10301         (NEW_ACE_EXECUTE): Fix value.
10302         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10303         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10304         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10305         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10306         NEW_ACE_SYNCHRONIZE): New macros.
10307         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10308         instead of acl_fromtext, acl_set, facl_set.
10309         Fixes a coreutils/tests/cp/perm failure.
10310
10311 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10312
10313         openat: test for fstatat (..., 0) bug
10314         Further testing with tar suggests that fstatat (..., 0)
10315         does not work in general, on AIX 7.1; see
10316         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10317         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10318         replacement fstatat (which is what older AIX releases were using
10319         anyway).
10320         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10321         use is now changed to orig_fstatat.  This was probably the right
10322         thing to do anyway.
10323         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10324         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10325         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10326         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10327         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10328         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10329         if the bug is found.
10330
10331         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10332         This tests for another fstatat bug on AIX 7.1:
10333         fstatat (AT_FDCWD, ..., 0) does not work.  See
10334         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10335         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10336         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10337         (rpl_fstatat): Adjust so that it works around either (or both)
10338         bugs if present.
10339         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10340
10341 2011-09-03  Karl Berry  <karl@gnu.org>
10342
10343         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10344         in index entries.
10345
10346 2011-09-02  Bruno Haible  <bruno@clisp.org>
10347
10348         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10349         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10350         values of AR, ARFLAGS, RANLIB.
10351         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10352
10353 2011-09-02  Bruno Haible  <bruno@clisp.org>
10354
10355         Find 'ar' program that fits with --host argument.
10356         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10357
10358 2011-09-02  Bruno Haible  <bruno@clisp.org>
10359
10360         tests: init.sh: Support any non-GNU diff.
10361         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10362         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10363         Solaris 8.
10364
10365 2011-09-02  Bruno Haible  <bruno@clisp.org>
10366
10367         tests: init.sh: work also with any non-GNU diff that supports -u
10368         * tests/init.sh: Relax check for diff -u support.
10369         Rather than checking for GNU diff via --version, simply check
10370         for support for -u itself.  Useful at least on OpenBSD 4.9,
10371         AIX 7.1, IRIX 6.5, and Solaris 10.
10372
10373 2011-09-01  Bruno Haible  <bruno@clisp.org>
10374
10375         strtoimax, strtoumax: Document problem on HP-UX 11.
10376         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10377         * doc/posix-functions/strtoumax.texi: Likewise.
10378
10379 2011-09-01  Bruno Haible  <bruno@clisp.org>
10380
10381         strtoumax: Avoid link error on OSF/1 with DTK cc.
10382         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10383         defined as a function.
10384         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10385         strtoumax is defined, not whether it is declared.
10386
10387 2011-09-01  Bruno Haible  <bruno@clisp.org>
10388
10389         strtoimax: Avoid link error on OSF/1 with DTK cc.
10390         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10391         defined as a function.
10392         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10393         strtoimax is defined, not whether it is declared.
10394
10395 2011-09-01  Bruno Haible  <bruno@clisp.org>
10396
10397         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10398         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10399         as a function.
10400         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10401         whether it is declared.
10402
10403 2011-09-01  Bruno Haible  <bruno@clisp.org>
10404
10405         imaxabs: Avoid link error on OSF/1 with DTK cc.
10406         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10407         as a function.
10408         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10409         whether it is declared.
10410
10411 2011-09-01  Bruno Haible  <bruno@clisp.org>
10412
10413         Tests for module 'strtoumax'.
10414         * modules/strtoumax-tests: New file.
10415         * tests/test-strtoumax.c: New file.
10416
10417         Tests for module 'strtoimax'.
10418         * modules/strtoimax-tests: New file.
10419         * tests/test-strtoimax.c: New file.
10420
10421         Tests for module 'imaxdiv'.
10422         * modules/imaxdiv-tests: New file.
10423         * tests/test-imaxdiv.c: New file.
10424
10425         Tests for module 'imaxabs'.
10426         * modules/imaxabs-tests: New file.
10427         * tests/test-imaxabs.c: New file.
10428
10429 2011-09-01  Bruno Haible  <bruno@clisp.org>
10430
10431         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10432         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10433         pthread_create.
10434
10435 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10436
10437         openat: work around AIX 7.1 fstatat issue
10438         This should fix the problem that was not properly fixed
10439         in the previous change, dated 2011-08-30.
10440         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10441         __need_system_stat_h defined.
10442         (orig_fstatat) [HAVE_FSTATAT]: New function.
10443         (rpl_fstatat): Go back to the old way of doing things,
10444         except call orig_fstatat instead of fstatat.
10445         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10446         Remove unnecessary check whether fstatat fills in st_size etc.
10447
10448 2011-09-01  Bruno Haible  <bruno@clisp.org>
10449
10450         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10451         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10452         just include the system's header.
10453
10454 2011-08-31  Jim Meyering  <meyering@redhat.com>
10455
10456         tests: avoid spurious assertion failure in test-float.c on ppc64
10457         * tests/test-float.c (test_long_double): Comment out an assertion,
10458         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10459         with gcc-4.4.4.
10460
10461         maint: indent with spaces, not TABs
10462         I need to get in the habit of running gnulib's "make check".
10463         Both of these would have been caught.
10464         * m4/largefile.m4: Indent with spaces, not TABs.
10465         * lib/parse-datetime.y (iso_8601_time): Likewise.
10466         Spotted by Pádraig Brady.
10467
10468         test-parse-datetime.c: accommodate a relatively strict gcc warning
10469         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10470         to avoid a warning from gcc's -Werror=missing-declarations.
10471         Insert a few spaces-before-funcall-parenthesis.
10472
10473 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10474
10475         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10476         The parser now accepts ISO 8601 date-time strings with "T" as the
10477         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10478         with a space between the date and time strings.  Now it also parses
10479         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10480         variants like "2004-02-29T16:21:42.333-07:00"
10481         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10482         of day representation using the 'T' separator character.
10483         * doc/parse-datetime.texi (General date syntax): replace use of
10484         deprecated --iso-8601 option with --rfc-3339 in example of date
10485         command output formats that can be parsed.
10486         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10487         lib/parse-datetime.y.
10488         (gmt_offset): New function.
10489         (main): Add additional test cases to validate ISO8601 extended
10490         date and time of day parsing.
10491
10492 2011-08-31  Bruno Haible  <bruno@clisp.org>
10493
10494         freopen: Documentation.
10495         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10496         name.
10497         Reported by Claudio Bley <claudio.bley@gmail.com>.
10498
10499 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10500
10501         freopen: Don't crash if the filename argument is NULL.
10502         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10503         NULL.
10504
10505 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10506
10507         openat: work around AIX 7.1 fstatat bug
10508         Problem reported by Kevin Brott for GNU tar, in the thread containing
10509         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10510         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10511         FSTATAT_ST_SIZE_ETC_BROKEN.
10512         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10513         rpl_fstatat.
10514         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10515         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10516         AC_CHECK_FUNCS_ONCE for fstatat.
10517         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10518         fchmodat, mkdirat, openat and unlinkat.
10519
10520 2011-08-30  Bruno Haible  <bruno@clisp.org>
10521
10522         Avoid endless recursions if config.h includes some header files.
10523         * lib/fopen.c (__need_FILE): Define already before including config.h.
10524         * lib/freopen.c (__need_FILE): Likewise.
10525         * lib/open.c (__need_system_fcntl_h): Likewise.
10526         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10527         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10528         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10529
10530 2011-08-25  Karl Berry  <karl@gnu.org>
10531
10532         * config/srclist.txt (ylwrap): new try.
10533         * build-aux/ylwrap: new file.
10534
10535 2011-08-23  Bruno Haible  <bruno@clisp.org>
10536
10537         tmpdir: Use a good default directory on native Windows.
10538         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10539         (P_tmpdir): Default to _P_tmpdir on native Windows.
10540         (path_search): On native Windows, try the value returned by GetTempPath
10541         before trying P_tmpdir.
10542         * modules/tmpdir (Depends-on): Add pathmax.
10543         Suggested by John Darrington <john@darrington.wattle.id.au>.
10544
10545 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10546
10547         doc: fix typo in README-release
10548         * top/README-release: Capitalize first word of a sentence.
10549
10550 2011-08-19  Jim Meyering  <meyering@redhat.com>
10551
10552         fts: do not exhaust memory when processing million-entry directories
10553         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10554         directory would require about 256*N bytes of memory.  Thus, it was
10555         easy to construct a directory too large to be processed by any of
10556         those tools.  With this change, fts' maximum memory utilization is
10557         now limited to around 30MB.
10558         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10559         (fts_read): When we've processed the final entry (i.e., when
10560         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10561         using the parent entry to read any remaining entries.  Dispatch
10562         depending on what fts_build returns:
10563         - NULL+stop, aka failure: stop
10564         - NULL otherwise: move up in the dir hierarchy
10565         - non-NULL: handle this new entry
10566         (fts_build): Declare and use new local, continue_readdir.
10567         Prepare to be called from fts_read, when the entries
10568         from a partially-read directory have just been exhausted.
10569         In that case, we'll skip the opendir and instead use the parent's
10570         fts_dirp and derive dir_fd from that.
10571         Finally, in the readdir loop, if we read max_entries entries,
10572         exit the loop ensuring *not* to call closedir.  This is required
10573         so that fts_dirp can be reused on a subsequent call.
10574         Prompted by Ben England's report of memory exhaustion in find
10575         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10576
10577         maint: fts: move decl of `dp' down into while loop; split a long line
10578         * lib/fts.c (fts_build): No semantic change.
10579
10580         fts: add/use new struct member, fts_dirp
10581         We are about to use this to manage any directory with
10582         too many entries to read all of them into memory at once.
10583         To do that, we'll need to save the DIR* pointer in each
10584         affected FTSENT struct.
10585         * lib/fts_.h: Include <dirent.h>.
10586         (struct FTSENT) [fts_dirp]: New member.
10587         * lib/fts.c (closedir_and_clear): Define.
10588         Use it in place of closedir so that we are sure to
10589         clear the new fts_dirp member when done with it.
10590         (fts_alloc): Initialize the new member.
10591         (fts_lfree): Free, if needed.
10592
10593         maint: fts: give __opendir2 a new parameter and rename
10594         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10595         than surreptitiously using sole caller's "dir_fd".
10596         (fts_opendir): Rename from __opendir2.
10597
10598         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10599         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10600
10601         maint: fts.c: correct off-by-one indentation
10602         * lib/fts.c (fts_build): Correct indentation, change style
10603         of a couple of block comments, and bracing style.
10604
10605         maint: fts.c: move __opendir2 #define "up" out of function body
10606         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10607
10608         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10609         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10610         out for a long time and besides was useful only on BSD systems.
10611
10612 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10613
10614         regex: port to Stratus OpenVOS
10615         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10616         define to empty, rather than attempting nonportable optimizations.
10617         Problem reported by Paul Green in:
10618         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10619         and fix suggested by Eric Blake in:
10620         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10621
10622 2011-08-17  Eric Blake  <eblake@redhat.com>
10623
10624         getcwd: fix test failures on mingw
10625         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10626         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10627         test if long directory cannot be created, and allow mingw errno.
10628
10629         getcwd-lgpl: fix m4 to match relaxed test for BSD
10630         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10631         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10632         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10633         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10634         signature problem.
10635
10636         getcwd: fix compilation on mingw64
10637         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10638         getcwd.
10639         Reported by Marc-André Lureau.
10640
10641         pipe2: silence compiler warning
10642         * lib/pipe2.c (pipe2): Hide label if it is not used.
10643
10644 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10645
10646         relocatable-prog: fix link error
10647         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10648         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10649         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10650         into modules/relocatable-lib without noticing that
10651         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10652         also needs to build relocatable.c.
10653
10654 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10657         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10658         shell code: it contained a 'break' that was not in a loop.
10659         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10660         via a shell-language loop; this may have been true in old Autoconf
10661         versions, but it's not true in Autoconf 2.68.  I found this bug
10662         when testing coreutils git on Solaris 8, whose shell complains
10663         about the syntax error.
10664
10665 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10666
10667         * lib/base64.c: Fix comment to reference RFC 4648.
10668         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10669         <gvtulder@gmail.com>.
10670
10671 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10672
10673         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10674
10675         po/Makefile.in.in: fix make -q problem
10676         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10677         rule, since there's no file named 'check-macro-version' and its
10678         use as a file breaks make -q.
10679         (all): Don't depend on check-macro-version.
10680         (CHECK_MACRO_VERSION): New macro.
10681         (stamp-po): Use it.
10682
10683         configmake: fix make -q problem
10684         * modules/configmake (configmake.h): Update configmake.h's time stamp
10685         even if the file does not change.  Otherwise, 'make -q' fails.
10686         Problem reported by Simon Josefsson in
10687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10688
10689 2011-08-11  Jim Meyering  <meyering@redhat.com>
10690
10691         git-version-gen: correct the advice in a comment
10692         * build-aux/git-version-gen: Correct comment.
10693         Don't recommend to list .tarball-version in .gitignore.
10694
10695 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10696
10697         base64: fix off-by-one buffer size bug
10698         Problem and (trivial) fix reported by Gijs van Tulder in
10699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10700         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10701         * tests/test-base64.c (main): Catch the bug.
10702
10703 2011-08-10  Eric Blake  <eblake@redhat.com>
10704
10705         closein: correct comments
10706         * lib/closein.c (close_stdin): Improve comments.
10707
10708 2011-08-09  Bruno Haible  <bruno@clisp.org>
10709
10710         More tests for 'fseeko'.
10711         * tests/test-fseeko3.c: New file, from Eric Blake.
10712         * tests/test-fseeko3.sh: New file.
10713         * modules/fseeko-tests (Files): Add them.
10714         (TESTS): Add test-fseeko3.sh.
10715         (check_PROGRAMS): Add test-fseeko3.
10716
10717 2011-08-09  Eric Blake  <eblake@redhat.com>
10718
10719         fseeko: remove unneeded hack
10720         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10721
10722         fseeko: fix bug on glibc
10723         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10724         Reported by John W. Eaton.
10725
10726 2011-08-08  Bruno Haible  <bruno@clisp.org>
10727
10728         unictype/base: Fix interoperability with preinstalled libunistring.
10729         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10730         Reported by Simon Josefsson.
10731
10732 2011-08-08  Bruno Haible  <bruno@clisp.org>
10733
10734         iswblank: Detect declaration correctly.
10735         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10736         AC_CHECK_DECLS invocation.
10737
10738 2011-08-08  Bruno Haible  <bruno@clisp.org>
10739
10740         tcgetsid: Detect declaration correctly.
10741         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10742         AC_CHECK_DECLS invocation.
10743         Reported by Simon Josefsson.
10744
10745 2011-08-08  Eric Blake  <eblake@redhat.com>
10746
10747         largefile: fix typo that regressed large file support
10748         * modules/largefile (configure.ac-early): Fix section name.
10749
10750 2011-08-06  Karl Berry  <karl@gnu.org>
10751
10752         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10753         a separate module.
10754
10755 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10756
10757         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10758         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10759         get prototype for free.
10760
10761 2011-08-04  Bruno Haible  <bruno@clisp.org>
10762
10763         Tests for module 'pathmax'.
10764         * modules/pathmax-tests: New file.
10765         * tests/test-pathmax.c: New file.
10766
10767         canonicalize-lgpl: Support larger filenames on the Hurd.
10768         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10769         Reported by Paul Eggert.
10770
10771         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10772         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10773         * lib/chdir-long.h: Include pathmax.h.
10774         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10775         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10776         (PATH_MAX): Remove code that is done by pathmax.h.
10777         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10778         * lib/tmpfile.c: Add a comment.
10779         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10780         * modules/chdir-long (Depends-on): Add pathmax.
10781         * modules/getcwd (Depends-on): Add pathmax.
10782         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10783         is not defined.
10784         * doc/posix-headers/limits.texi: Mention the pathmax module.
10785         * NEWS: Mention the change.
10786
10787 2011-08-02  Bruno Haible  <bruno@clisp.org>
10788
10789         pthread_sigmask: Actually use results of gl_THREADLIB.
10790         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10791         gl_THREADLIB, not gl_[]THREADLIB.
10792         Reported by Eric Blake.
10793
10794 2011-08-02  Jim Meyering  <meyering@redhat.com>
10795
10796         maint.mk: relax the default _gl_TS_function_match regexp
10797         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10798         space between function name and "(" in an "extern" declaration.
10799         That would fail to match a decl with no space there: extern void foo();
10800
10801 2011-07-31  Iain Nicol  <iain@thenicols.net>
10802
10803         git-version-gen: document that EXTRA_DIST must include .version
10804         * build-aux/git-version-gen: In the how-to-use comment, document
10805         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10806         will fail when run from an unpacked distribution tarball.
10807
10808 2011-08-01  Bruno Haible  <bruno@clisp.org>
10809
10810         wctype-h: Fix last change.
10811         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10812         REPLACE_TOWLOWER to 0.
10813         Reported by Sam Steingold <sds@gnu.org>.
10814
10815 2011-07-31  Bruno Haible  <bruno@clisp.org>
10816
10817         frexpl: Update autoconf test.
10818         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10819         according to changes of 2011-06-20.
10820
10821 2011-07-31  Bruno Haible  <bruno@clisp.org>
10822
10823         sys_utsname: Add support for Minix.
10824         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10825         <sys/utsname.h>.
10826         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10827         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10828
10829 2011-07-31  Bruno Haible  <bruno@clisp.org>
10830
10831         strings: Add support for Minix.
10832         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10833         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10834         * doc/posix-headers/strings.texi: Document the Minix problem.
10835
10836 2011-07-31  Bruno Haible  <bruno@clisp.org>
10837
10838         wctype-h: Add support for Minix.
10839         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10840         REPLACE_TOWLOWER.
10841         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10842         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10843         REPLACE_ISWCNTRL.
10844
10845 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10846
10847         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10848         This is a performance improvement for 64-bit hosts: it causes the
10849         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10850
10851 2011-07-31  Bruno Haible  <bruno@clisp.org>
10852
10853         stdioext: Add support for Minix.
10854         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10855         * lib/fpurge.c (fpurge): Likewise.
10856         * lib/freadahead.c (freadahead): Likewise.
10857         * lib/freadable.c (freadable): Likewise.
10858         * lib/freading.c (freading): Likewise.
10859         * lib/freadptr.c (freadptr): Likewise.
10860         * lib/freadseek.c (freadptrinc): Likewise.
10861         * lib/fseeko.c (rpl_fseeko): Likewise.
10862         * lib/fseterr.c (fseterr): Likewise.
10863         * lib/fwritable.c (fwritable): Likewise.
10864         * lib/fwriting.c (fwriting): Likewise.
10865         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10866         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10867
10868 2011-07-31  Bruno Haible  <bruno@clisp.org>
10869
10870         errno: Port to Minix.
10871         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10872         ECONNABORTED are defined.
10873         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10874         GNULIB_defined_ECONNABORTED): New macros.
10875         * lib/strerror-override.h (strerror_override): Test also
10876         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10877         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10878         ECONNABORTED.
10879         * doc/posix-headers/errno.texi: Mention the Minix problem.
10880
10881 2011-07-31  Bruno Haible  <bruno@clisp.org>
10882
10883         Work around declaration collisions on Minix.
10884         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10885         defined, set REPLACE_MBSINIT.
10886         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10887         defined, set REPLACE_MBRTOWC.
10888         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10889         set REPLACE_MBRLEN.
10890         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10891         defined, set REPLACE_MBSRTOWCS.
10892         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10893         defined, set REPLACE_WCRTOMB.
10894         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10895         defined, set REPLACE_WCSRTOMBS.
10896
10897 2011-07-31  Bruno Haible  <bruno@clisp.org>
10898
10899         Add support for Minix with ACK compiler.
10900         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10901         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10902         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10903
10904 2011-07-31  Bruno Haible  <bruno@clisp.org>
10905
10906         Documentation about Minix.
10907         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10908         * doc/glibc-headers/*.texi: Likewise.
10909         * doc/posix-functions/*.texi: Likewise.
10910         * doc/glibc-functions/*.texi: Likewise.
10911
10912 2011-07-31  Bruno Haible  <bruno@clisp.org>
10913
10914         snippet/warn-on-use: Fix indentation.
10915         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10916
10917 2011-07-25  Jim Meyering  <meyering@redhat.com>
10918
10919         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10920         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10921         commands.
10922
10923 2011-07-27  Jim Meyering  <meyering@redhat.com>
10924
10925         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10926         * top/maint.mk (gl_extract_significant_defines_): Now that
10927         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10928         gnulib/lib/signal.in.h, and now that we recommend to
10929         define-if-undefined those two symbols in application code,
10930         we must filter them out of the "significant" list.
10931         This avoids a "make syntax-check" failure in coreutils.
10932
10933 2011-07-26  Eric Blake  <eblake@redhat.com>
10934
10935         warnings: add comments about previous patch
10936         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10937         * m4/include_next.m4: Likewise.
10938         * m4/warn-on-use.m4: Likewise.
10939         * m4/warnings.m4: Likewise, and simplify use.
10940         Suggested by Stefano Lattarini.
10941
10942         include-next, warnings: support older autoconf
10943         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10944         AS_VAR_PUSHDEF in a way that works with older autoconf.
10945         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10946         Reported by Daniel P. Berrange.
10947
10948 2011-07-25  Bruno Haible  <bruno@clisp.org>
10949
10950         fseek, ftell: Fix doc.
10951         * doc/posix-functions/fseek.texi: Reword statement about
10952         AC_SYS_LARGEFILE.
10953         * doc/posix-functions/ftell.texi: Likewise.
10954
10955 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10956             Bruno Haible  <bruno@clisp.org>
10957
10958         Add dependencies to the 'largefile' module.
10959         * modules/fopen (Depends-on): Add 'largefile'.
10960         * modules/freopen (Depends-on): Likewise.
10961         * modules/fseeko (Depends-on): Likewise.
10962         * modules/ftello (Depends-on): Likewise.
10963         * modules/glob (Depends-on): Likewise.
10964         * modules/lseek (Depends-on): Likewise.
10965         * modules/lstat (Depends-on): Likewise.
10966         * modules/mkostemp (Depends-on): Likewise.
10967         * modules/mkostemps (Depends-on): Likewise.
10968         * modules/mkstemp (Depends-on): Likewise.
10969         * modules/mkstemps (Depends-on): Likewise.
10970         * modules/open (Depends-on): Likewise.
10971         * modules/openat (Depends-on): Likewise.
10972         * modules/pread (Depends-on): Likewise.
10973         * modules/pwrite (Depends-on): Likewise.
10974         * modules/scandir (Depends-on): Likewise.
10975         * modules/stat (Depends-on): Likewise.
10976         * modules/tmpfile (Depends-on): Likewise.
10977         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10978         since the containing module now depends on the largefile module.
10979         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10980         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10981         off_t is fixed by gnulib.
10982         * doc/posix-functions/freopen.texi: Likewise.
10983         * doc/posix-functions/fseeko.texi: Likewise.
10984         * doc/posix-functions/fstatat.texi: Likewise.
10985         * doc/posix-functions/ftello.texi: Likewise.
10986         * doc/posix-functions/glob.texi: Likewise.
10987         * doc/posix-functions/lseek.texi: Likewise.
10988         * doc/posix-functions/lstat.texi: Likewise.
10989         * doc/posix-functions/mkstemp.texi: Likewise.
10990         * doc/posix-functions/open.texi: Likewise.
10991         * doc/posix-functions/openat.texi: Likewise.
10992         * doc/posix-functions/pread.texi: Likewise.
10993         * doc/posix-functions/pwrite.texi: Likewise.
10994         * doc/posix-functions/scandir.texi: Likewise.
10995         * doc/posix-functions/stat.texi: Likewise.
10996         * doc/posix-functions/tmpfile.texi: Likewise.
10997         * doc/glibc-functions/mkostemp.texi: Likewise.
10998         * doc/glibc-functions/mkostemps.texi: Likewise.
10999         * doc/glibc-functions/mkstemps.texi: Likewise.
11000
11001 2011-07-25  Bruno Haible  <bruno@clisp.org>
11002
11003         fcntl: Move AC_LIBOBJ invocation to module description.
11004         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11005         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11006
11007         fcntl: Remove call-in from fchdir.m4.
11008         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11010
11011         dup3: Remove potential call-in from fchdir.m4.
11012         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11014
11015         dup2: Move AC_LIBOBJ invocation to module description.
11016         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11017         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11018         Don't invoke AC_LIBOBJ.
11019         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11020
11021         dup2: Remove call-in from fchdir.m4.
11022         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11023         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11024
11025         fclose: Move AC_LIBOBJ invocation to module description.
11026         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11027         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11028         to 1.
11029         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11030
11031         fclose: Remove call-in from close.m4.
11032         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11033         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11034
11035         close: Move AC_LIBOBJ invocation to module description.
11036         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11037         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11038         1.
11039         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11040
11041         close: Remove call-in from fchdir.m4.
11042         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11044
11045         open: Move AC_LIBOBJ invocation to module description.
11046         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11047         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11048         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11049
11050         open: Remove call-in from fchdir.m4.
11051         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11052         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11053
11054         fchdir: Start to remove gl_REPLACE_* idiom.
11055         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11056         (gl_FUNC_FCHDIR): Invoke it.
11057
11058 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11059
11060         * lib/ftell.c (ftell): Comment out cast.
11061
11062         close: use gl_REPLACE_FCLOSE only if defined
11063         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11064         is defined.  The close module doesn't depend on the fclose module
11065         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11066         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11067         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11068
11069 2011-07-24  Jim Meyering  <meyering@redhat.com>
11070
11071         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11072         * tests/test-select.h (test_function): Declare as "static".
11073
11074 2011-07-24  Bruno Haible  <bruno@clisp.org>
11075
11076         doc: Mention the effects of AC_SYS_LARGEFILE.
11077         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11078         on this function.
11079         * doc/posix-functions/aio_error.texi: Likewise.
11080         * doc/posix-functions/aio_fsync.texi: Likewise.
11081         * doc/posix-functions/aio_read.texi: Likewise.
11082         * doc/posix-functions/aio_return.texi: Likewise.
11083         * doc/posix-functions/aio_suspend.texi: Likewise.
11084         * doc/posix-functions/aio_write.texi: Likewise.
11085         * doc/posix-functions/fgetpos.texi: Likewise.
11086         * doc/posix-functions/fopen.texi: Likewise.
11087         * doc/posix-functions/freopen.texi: Likewise.
11088         * doc/posix-functions/fsetpos.texi: Likewise.
11089         * doc/posix-functions/fstatvfs.texi: Likewise.
11090         * doc/posix-functions/ftruncate.texi: Likewise.
11091         * doc/posix-functions/ftw.texi: Likewise.
11092         * doc/posix-functions/getrlimit.texi: Likewise.
11093         * doc/posix-functions/glob.texi: Likewise.
11094         * doc/posix-functions/lio_listio.texi: Likewise.
11095         * doc/posix-functions/lockf.texi: Likewise.
11096         * doc/posix-functions/mkstemp.texi: Likewise.
11097         * doc/posix-functions/mmap.texi: Likewise.
11098         * doc/posix-functions/nftw.texi: Likewise.
11099         * doc/posix-functions/openat.texi: Likewise.
11100         * doc/posix-functions/opendir.texi: Likewise.
11101         * doc/posix-functions/posix_fadvise.texi: Likewise.
11102         * doc/posix-functions/posix_fallocate.texi: Likewise.
11103         * doc/posix-functions/pread.texi: Likewise.
11104         * doc/posix-functions/pwrite.texi: Likewise.
11105         * doc/posix-functions/readdir.texi: Likewise.
11106         * doc/posix-functions/readdir_r.texi: Likewise.
11107         * doc/posix-functions/rewinddir.texi: Likewise.
11108         * doc/posix-functions/scandir.texi: Likewise.
11109         * doc/posix-functions/seekdir.texi: Likewise.
11110         * doc/posix-functions/setrlimit.texi: Likewise.
11111         * doc/posix-functions/statvfs.texi: Likewise.
11112         * doc/posix-functions/telldir.texi: Likewise.
11113         * doc/posix-functions/tmpfile.texi: Likewise.
11114         * doc/posix-functions/truncate.texi: Likewise.
11115         * doc/glibc-functions/fallocate.texi: Likewise.
11116         * doc/glibc-functions/fstatfs.texi: Likewise.
11117         * doc/glibc-functions/fts_children.texi: Likewise.
11118         * doc/glibc-functions/fts_read.texi: Likewise.
11119         * doc/glibc-functions/getdirentries.texi: Likewise.
11120         * doc/glibc-functions/mkostemp.texi: Likewise.
11121         * doc/glibc-functions/mkostemps.texi: Likewise.
11122         * doc/glibc-functions/mkstemps.texi: Likewise.
11123         * doc/glibc-functions/preadv.texi: Likewise.
11124         * doc/glibc-functions/pwritev.texi: Likewise.
11125         * doc/glibc-functions/sendfile.texi: Likewise.
11126         * doc/glibc-functions/statfs.texi: Likewise.
11127
11128 2011-07-24  Bruno Haible  <bruno@clisp.org>
11129
11130         doc: Fix typo.
11131         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11132
11133 2011-07-24  Bruno Haible  <bruno@clisp.org>
11134
11135         doc: Mention fsusage.
11136         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11137
11138 2011-07-24  Bruno Haible  <bruno@clisp.org>
11139
11140         doc: Mention new glibc headers and functions.
11141         * doc/glibc-headers/gshadow.texi: New file.
11142         * doc/glibc-functions/endsgent.texi: New file.
11143         * doc/glibc-functions/fgetsgent.texi: New file.
11144         * doc/glibc-functions/fgetsgent_r.texi: New file.
11145         * doc/glibc-functions/getsgent.texi: New file.
11146         * doc/glibc-functions/getsgent_r.texi: New file.
11147         * doc/glibc-functions/getsgnam.texi: New file.
11148         * doc/glibc-functions/getsgnam_r.texi: New file.
11149         * doc/glibc-functions/putsgent.texi: New file.
11150         * doc/glibc-functions/setsgent.texi: New file.
11151         * doc/glibc-functions/sgetsgent.texi: New file.
11152         * doc/glibc-functions/sgetsgent_r.texi: New file.
11153         * doc/glibc-functions/malloc_info.texi: New file.
11154         * doc/glibc-functions/preadv.texi: New file.
11155         * doc/glibc-functions/pwritev.texi: New file.
11156         * doc/glibc-functions/register_printf_modifier.texi: New file.
11157         * doc/glibc-functions/register_printf_specifier.texi: New file.
11158         * doc/glibc-functions/register_printf_type.texi: New file.
11159         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11160         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11161         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11162         * doc/glibc-functions/pthread_getname_np.texi: New file.
11163         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11164         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11165         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11166         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11167         * doc/glibc-functions/pthread_setname_np.texi: New file.
11168         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11169         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11170         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11171         * doc/glibc-functions/qsort_r.texi: New file.
11172         * doc/glibc-functions/quick_exit.texi: New file.
11173         * doc/glibc-functions/syncfs.texi: New file.
11174         * doc/gnulib.texi: Include them.
11175         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11176         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11177         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11178         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11179         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11180         * doc/glibc-functions/execvpe.texi: Likewise.
11181
11182 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11183
11184         ftell: don't include <unistd.h>
11185         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11186         guaranteed to define off_t, and the ftell module depends on the
11187         stdio module.
11188
11189         ftell: do not assume wraparound signed arithmetic
11190         * lib/ftell.c: Include <limits.h>.
11191         (ftell): Don't assume wraparound signed arithmetic.
11192
11193 2011-07-24  Bruno Haible  <bruno@clisp.org>
11194
11195         close: No longer depend on module 'fclose'.
11196         * modules/close (Depends-on): Remove fclose.
11197         * NEWS: Mention the change.
11198         Suggested by Sam Steingold <sds@gnu.org>.
11199
11200 2011-07-24  Bruno Haible  <bruno@clisp.org>
11201
11202         fsusage: Enable large volume support on AIX >= 5.2.
11203         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11204         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11205         instead of STAT_STATVFS.
11206         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11207
11208         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11209         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11210         f_blocks field only on MacOS X.
11211
11212         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11213         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11214         * modules/fsusage (Depends-on): Add largefile.
11215
11216 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11217
11218         * README: Modernize discussion of signed integers.
11219         Assuming overflow wraparound is no longer safe.
11220         Mention ones' complement and signed magnitude.
11221
11222 2011-07-22  Bruno Haible  <bruno@clisp.org>
11223
11224         select tests, pselect tests: Refactor.
11225         * tests/test-select.h: New file, extracted from tests/test-select.c.
11226         (select_fn): New type.
11227         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11228         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11229         test_pipe): Add my_select argument.
11230         (test_function): Renamed from main. Add my_select argument.
11231         * tests/test-select.c: Move most code to tests/test-select.h. Include
11232         test-select.h.
11233         * modules/select-tests (Files): Add tests/test-select.h.
11234         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11235         (my_select, main): New functions.
11236         * modules/pselect-tests (Files): Add tests/test-select.h,
11237         tests/macros.h, tests/signature.h.
11238         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11239         (configure.ac): Check for <sys/wait.h>.
11240
11241 2011-07-22  Bruno Haible  <bruno@clisp.org>
11242
11243         sys_select tests: Check the signature of FD_*.
11244         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11245         signature tests from here...
11246         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11247         here.
11248         * modules/sys_select-tests (Files): Add tests/signature.h.
11249
11250 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11251
11252         largefile: new module, replacing large-inode
11253         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11254         * MODULES.html.sh: Add largefile, remove large-inode.
11255         * modules/largefile, m4/largefile.m4: New files.
11256         * modules/large-inode, m4/large-inode.m4: Remove.
11257
11258         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11259         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11260         implementations that use only 32 bits to count blocks.
11261         On typical hosts with 1024-byte blocks, this fails with file
11262         systems as small as 4 TiB.  Problem reported by Herb Wartens
11263         <http://debbugs.gnu.org/9140> and this should also fix a similar
11264         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11265
11266         large-inode: New module
11267         * MODULES.html.sh: Add it.
11268         * modules/large-inode, m4/large-inode.m4: New files.
11269
11270         extensions: Enable extensions on MacOS X 10.5 and later.
11271         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11272
11273 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11274
11275         file-has-acl: use acl_extended_file_nofollow if available
11276         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11277         (acl_extended_file): New macro.
11278         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11279         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11280
11281 2011-07-21  Bruno Haible  <bruno@clisp.org>
11282
11283         Declare system functions in a way that works with C++.
11284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11285         declare fdopendir as extern "C".
11286         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11287         declare frexpl as extern "C".
11288         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11289         declare gai_strerror as extern "C".
11290         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11291         programs, declare gai_strerror as extern "C".
11292         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11293         declare getlogin_r as extern "C".
11294         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11295         as extern "C".
11296         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11297         declare ldexpl as extern "C".
11298         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11299         as extern "C".
11300         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11301         program, declare getmntinfo as extern "C".
11302         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11303         stpncpy as extern "C".
11304         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11305         program, declare __xpg_strerror_r as extern "C".
11306         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11307         strndup as extern "C".
11308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11309         declare memset and bzero as extern "C".
11310         Reported by Sam Steingold <sds@gnu.org>.
11311
11312 2011-07-12  Jim Meyering  <meyering@redhat.com>
11313
11314         maint.mk: prohibit inclusion of "verify.h" without use
11315         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11316
11317 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11318
11319         timer-time: A new module to check for timer_settime()
11320         * m4/timer_time.m4: Check for the posix function.
11321         * modules/timer-time: Add the new module.
11322         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11323         Mention it.
11324
11325 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11326             Bruno Haible  <bruno@clisp.org>
11327
11328         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11329         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11330         not defined, assume POSIX threads and look for pthread_sigmask in
11331         $LIBS, without changing $CPPFLAGS.
11332
11333 2011-07-19  Bruno Haible  <bruno@clisp.org>
11334
11335         strstr: Update cross-compilation guess.
11336         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11337         CPUs, guess no, in view of glibc
11338         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11339         Suggested by Eric Blake. Reported by Reuben Thomas.
11340
11341 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11342
11343         getopt-gnu: suppress core dumps from detection code
11344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11345         to suppress core dumps that may well occur on glibc systems.
11346         * modules/getopt-gnu: Depend on nocrash.
11347
11348 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11349
11350         pthread_sigmask: ensure usleep is declared
11351         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11352         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11353
11354 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11355
11356         doc: Document NonStop portability issues.
11357         * doc/posix-functions/sigaction.texi (sigaction):
11358         * doc/posix-headers/signal.texi (signal.h):
11359         Document NonStop.  See Joachim Schmitz in
11360         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11361
11362 2011-07-15  Bruno Haible  <bruno@clisp.org>
11363
11364         ffsl, ffsll: Avoid unportable behaviour.
11365         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11366
11367 2011-07-15  Bruno Haible  <bruno@clisp.org>
11368
11369         ffs: More tests.
11370         * tests/test-ffs.c (NBITS): New macro.
11371         (main): Add more tests.
11372         * tests/test-ffsl.c (NBITS): New macro.
11373         (main): Add more tests.
11374         * tests/test-ffsll.c (NBITS): New macro.
11375         (main): Add more tests.
11376
11377 2011-07-15  Eric Blake  <eblake@redhat.com>
11378
11379         ffsl, ffsll: new modules
11380         * modules/ffsl: New file.
11381         * modules/ffsll: Likewise.
11382         * m4/ffsl.m4: Likewise.
11383         * m4/ffsll.m4: Likewise.
11384         * lib/ffsl.c: Likewise.
11385         * lib/ffsl.h: Likewise.
11386         * lib/ffsll.c: Likewise.
11387         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11388         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11389         * modules/string (Makefile.am): Substitute witnesses.
11390         * lib/strings.in.h (ffsl, ffsll): Declare.
11391         * modules/ffsl-tests: New test file.
11392         * modules/ffsll-tests: Likewise.
11393         * tests/test-ffsl.c: Likewise.
11394         * tests/test-ffsll.c: Likewise.
11395         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11396         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11397         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11398
11399         ffs: fix m4 prerequisite
11400         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11401
11402         ffs: avoid undefined behavior
11403         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11404         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11405         Reported by Bruno Haible.
11406
11407 2011-07-12  Bruno Haible  <bruno@clisp.org>
11408
11409         pthread_sigmask: Rely on module 'threadlib'.
11410         * modules/pthread_sigmask (Depends-on): Add threadlib.
11411         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11412         is defined.
11413
11414 2011-07-12  Bruno Haible  <bruno@clisp.org>
11415
11416         regex: Depend on module 'strcase'.
11417         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11418
11419 2011-07-12  Jim Meyering  <meyering@redhat.com>
11420
11421         warn-on-use: fix typo in file name
11422         * modules/snippet/warn-on-use (Files): Correct file name:
11423         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11424
11425 2011-07-12  Bruno Haible  <bruno@clisp.org>
11426
11427         strings: Document module.
11428         * doc/posix-headers/strings.texi: Mention module 'strings'.
11429
11430 2011-07-12  Bruno Haible  <bruno@clisp.org>
11431
11432         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11433         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11434         (Files, Makefile.am): Update.
11435         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11436         * modules/stdlib (Depends-on): Update.
11437
11438 2011-07-12  Bruno Haible  <bruno@clisp.org>
11439
11440         * NEWS: Mention the changes.
11441
11442         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11443         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11444         (Files, Makefile.am): Update.
11445         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11446         * modules/arpa_inet (Depends-on): Update.
11447         * modules/ctype (Depends-on): Update.
11448         * modules/dirent (Depends-on): Update.
11449         * modules/fcntl-h (Depends-on): Update.
11450         * modules/glob (Depends-on): Update.
11451         * modules/iconv-h (Depends-on): Update.
11452         * modules/inttypes-incomplete (Depends-on): Update.
11453         * modules/langinfo (Depends-on): Update.
11454         * modules/locale (Depends-on): Update.
11455         * modules/math (Depends-on): Update.
11456         * modules/netdb (Depends-on): Update.
11457         * modules/poll-h (Depends-on): Update.
11458         * modules/pty (Depends-on): Update.
11459         * modules/search (Depends-on): Update.
11460         * modules/signal (Depends-on): Update.
11461         * modules/spawn (Depends-on): Update.
11462         * modules/stdio (Depends-on): Update.
11463         * modules/stdlib (Depends-on): Update.
11464         * modules/string (Depends-on): Update.
11465         * modules/strings (Depends-on): Update.
11466         * modules/sys_file (Depends-on): Update.
11467         * modules/sys_ioctl (Depends-on): Update.
11468         * modules/sys_select (Depends-on): Update.
11469         * modules/sys_socket (Depends-on): Update.
11470         * modules/sys_stat (Depends-on): Update.
11471         * modules/sys_time (Depends-on): Update.
11472         * modules/sys_times (Depends-on): Update.
11473         * modules/sys_utsname (Depends-on): Update.
11474         * modules/sys_wait (Depends-on): Update.
11475         * modules/termios (Depends-on): Update.
11476         * modules/time (Depends-on): Update.
11477         * modules/unistd (Depends-on): Update.
11478         * modules/wchar (Depends-on): Update.
11479         * modules/wctype-h (Depends-on): Update.
11480         * MODULES.html.sh (Support for building libraries and executables):
11481         Update.
11482
11483         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11484         * modules/snippet/unused-parameter: Renamed from
11485         modules/unused-parameter.
11486         (Files, Makefile.am): Update.
11487         * build-aux/snippet/unused-parameter.h: Renamed from
11488         build-aux/unused-parameter.h.
11489         * modules/selinux-h (Depends-on): Update.
11490         * modules/unistr/base (Depends-on): Update.
11491         * MODULES.html.sh (Core language properties): Update.
11492
11493         Rename module 'link-warning' to 'snippet/link-warning'.
11494         * modules/snippet/link-warning: Renamed from modules/link-warning.
11495         (Files, Makefile.am): Update.
11496         * build-aux/snippet/link-warning.h: Renamed from
11497         build-aux/link-warning.h.
11498         * MODULES.html.sh (Support for building libraries and executables):
11499         Update.
11500
11501         Rename module 'c++defs' to 'snippet/c++defs'.
11502         * modules/snippet/c++defs: Renamed from modules/c++defs.
11503         (Files, Makefile.am): Update.
11504         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11505         * modules/arpa_inet (Depends-on): Update.
11506         * modules/ctype (Depends-on): Update.
11507         * modules/dirent (Depends-on): Update.
11508         * modules/fcntl-h (Depends-on): Update.
11509         * modules/glob (Depends-on): Update.
11510         * modules/iconv-h (Depends-on): Update.
11511         * modules/langinfo (Depends-on): Update.
11512         * modules/locale (Depends-on): Update.
11513         * modules/math (Depends-on): Update.
11514         * modules/netdb (Depends-on): Update.
11515         * modules/poll-h (Depends-on): Update.
11516         * modules/pty (Depends-on): Update.
11517         * modules/search (Depends-on): Update.
11518         * modules/signal (Depends-on): Update.
11519         * modules/spawn (Depends-on): Update.
11520         * modules/stdio (Depends-on): Update.
11521         * modules/stdlib (Depends-on): Update.
11522         * modules/string (Depends-on): Update.
11523         * modules/strings (Depends-on): Update.
11524         * modules/sys_ioctl (Depends-on): Update.
11525         * modules/sys_select (Depends-on): Update.
11526         * modules/sys_socket (Depends-on): Update.
11527         * modules/sys_stat (Depends-on): Update.
11528         * modules/sys_time (Depends-on): Update.
11529         * modules/sys_wait (Depends-on): Update.
11530         * modules/termios (Depends-on): Update.
11531         * modules/time (Depends-on): Update.
11532         * modules/unistd (Depends-on): Update.
11533         * modules/wchar (Depends-on): Update.
11534         * modules/wctype-h (Depends-on): Update.
11535
11536         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11537         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11538         (Files, Makefile.am): Update.
11539         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11540         * modules/argv-iter (Depends-on): Update.
11541         * modules/arpa_inet (Depends-on): Update.
11542         * modules/dirent (Depends-on): Update.
11543         * modules/fcntl-h (Depends-on): Update.
11544         * modules/fnmatch (Depends-on): Update.
11545         * modules/getopt-posix (Depends-on): Update.
11546         * modules/glob (Depends-on): Update.
11547         * modules/iconv-h (Depends-on): Update.
11548         * modules/inttypes-incomplete (Depends-on): Update.
11549         * modules/locale (Depends-on): Update.
11550         * modules/math (Depends-on): Update.
11551         * modules/netdb (Depends-on): Update.
11552         * modules/search (Depends-on): Update.
11553         * modules/signal (Depends-on): Update.
11554         * modules/spawn (Depends-on): Update.
11555         * modules/stdio (Depends-on): Update.
11556         * modules/stdlib (Depends-on): Update.
11557         * modules/string (Depends-on): Update.
11558         * modules/strings (Depends-on): Update.
11559         * modules/sys_socket (Depends-on): Update.
11560         * modules/sys_stat (Depends-on): Update.
11561         * modules/sys_time (Depends-on): Update.
11562         * modules/sys_times (Depends-on): Update.
11563         * modules/sys_utsname (Depends-on): Update.
11564         * modules/time (Depends-on): Update.
11565         * modules/unistd (Depends-on): Update.
11566         * modules/wchar (Depends-on): Update.
11567         * MODULES.html.sh (Support for building libraries and executables):
11568         Update.
11569
11570 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11571
11572         Improvements on _Noreturn and related modules.
11573
11574         modules/_Exit-tests: test _Noreturn too
11575         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11576         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11577         (main): Use them.
11578
11579         stdnoreturn, stdnoreturn-tests: remove modules
11580         They're not needed here and a bit premature for use elsewhere.  See
11581         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11582         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11583         * tests/test-stdnoreturn.c: Remove files.
11584         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11585         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11586         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11587         and using noreturn.
11588         * modules/openat, modules/sigpipe-die, modules/xalloc:
11589         * modules/xmemdup0, modules/xstrtol:
11590         Remove dependency on stdnoreturn.
11591
11592         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11593         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11594         Reparenthesize to avoid GCC warning.
11595         Support Microsoft's syntax.
11596         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11597
11598         _Noreturn-tests: remove module
11599         * modules/_Noreturn-tests: Remove.
11600         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11601         * tests/test-_Noreturn.c: Remove.
11602         * tests/test-stdnoreturn.c: Merge from the old
11603         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11604
11605 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11606
11607         _Noreturn, stdnoreturn, and related modules.
11608
11609         * top/maint.mk: Adjust to new noreturn support.
11610         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11611         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11612
11613         xalloc: use stdnoreturn.h
11614         * lib/xalloc.h: Include <stdnoreturn.h>.
11615         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11616         * modules/xalloc (Depends-on): Add stdnoreturn.
11617
11618         xstrtol: use stdnoreturn.h
11619         * lib/xstrtol.h: Include <stdnoreturn.h>.
11620         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11621         * modules/xstrtol (Depends-on): Add stdnoreturn.
11622
11623         xmemdup0: use stdnoreturn.h
11624         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11625         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11626         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11627
11628         sigpipe-die: use stdnoreturn.h
11629         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11630         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11631         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11632
11633         openat: use stdnoreturn.h
11634         * lib/openat.h: Include <stdnoreturn.h>.
11635         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11636         * modules/openat (Depends-on): Add stdnoreturn.
11637
11638         * lib/openat-die.c (openat_save_fail): Modernize comment.
11639
11640         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11641
11642         * lib/glthread/thread.h: Modernize comment.
11643
11644         obstack: use _Noreturn
11645         * lib/obstack.c (__attribute__): Remove macro.
11646         (print_and_abort): Use _Noreturn.
11647
11648         c-stack: use _Noreturn
11649         * lib/c-stack.c (die, overflow_handler, segv_handler):
11650         Use _Noreturn rather than __attribute__((noreturn)).
11651
11652         argmatch-tests, exclude_tests: use _Noreturn
11653         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11654         Remove.
11655         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11656
11657         stdlib: use _Noreturn
11658         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11659         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11660         * modules/stdlib (Depends-on): Add _Noreturn.
11661         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11662
11663         stdnoreturn-tests: new module
11664         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11665
11666         stdnoreturn: new module
11667         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11668         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11669
11670         _Noreturn-tests: new module
11671         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11672
11673         _Noreturn: new module
11674         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11675         New section, mentioning it.
11676         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11677
11678         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11679
11680 2011-07-11  Eric Blake  <eblake@redhat.com>
11681
11682         ffs: new module
11683         * modules/ffs: New file.
11684         * m4/ffs.m4: Likewise.
11685         * lib/ffs.c: Likewise.
11686         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11687         * modules/strings (Makefile.am): Substitute witness.
11688         (Depends-on): Add c++defs.
11689         * lib/strings.in.h (ffs): Declare.
11690         * modules/ffs-tests: New test file.
11691         * tests/test-ffs.c: Test new module.
11692         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11693         * doc/posix-functions/ffs.texi (ffs): Likewise.
11694
11695         regex: avoid compiler warning
11696         * lib/regex.c (includes): Include <strings.h>, for use of
11697         strcasecmp in regcomp.c.
11698         Reported by Joachim Schmitz.
11699
11700 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11701
11702         stdint: respect system's intmax_t if INTMAX_MAX
11703         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11704         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11705         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11706         long but int64_t is long long, and where we will clash with the
11707         system intmax_t if we override it.  See
11708         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11709         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11710         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11711         similarly for UINTMAX_C.
11712
11713 2011-07-08  Bruno Haible  <bruno@clisp.org>
11714
11715         pthread_sigmask tests: Avoid a compiler warning.
11716         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11717         non-zero.
11718
11719         sigprocmask tests: A better way to avoid a compiler warning.
11720         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11721         (main): Complain if system() returns non-zero.
11722         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11723
11724 2011-07-08  Bruno Haible  <bruno@clisp.org>
11725
11726         pthread_sigmask: Work around IRIX bug.
11727         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11728         bug.
11729         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11730         there may be unblocked pending signals.
11731         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11732
11733 2011-07-08  Bruno Haible  <bruno@clisp.org>
11734
11735         pthread_sigmask: Work around Cygwin bug.
11736         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11737         bug.
11738         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11739         the system's pthread_sigmask function.
11740         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11741
11742 2011-07-08  Bruno Haible  <bruno@clisp.org>
11743
11744         pthread_sigmask: Work around bug in single-threaded implementation.
11745         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11746         FreeBSD, HP-UX, Solaris bug.
11747         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11748         * lib/pthread_sigmask.c: Include <stddef.h>.
11749         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11750         the system's pthread_sigmask function.
11751         * modules/pthread_sigmask (configure.ac): Invoke
11752         gl_PREREQ_PTHREAD_SIGMASK.
11753         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11754         HP-UX, Solaris.
11755
11756 2011-07-08  Eric Blake  <eblake@redhat.com>
11757
11758         test-sigprocmask: avoid compiler warning
11759         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11760         * tests/test-sigprocmask.c (main): Use it to silence warning.
11761         Reported by Jim Meyering.
11762
11763         test-snprintf: avoid compiler warning
11764         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11765         * tests/test-vsnprintf.c (main): Likewise.
11766         Reported by Jim Meyering.
11767
11768 2011-07-08  Bruno Haible  <bruno@clisp.org>
11769
11770         Tests for module 'pthread_sigmask'.
11771         * modules/pthread_sigmask-tests: New file.
11772         * tests/test-pthread_sigmask1.c: New file, based on
11773         tests/test-sigprocmask.c.
11774         * tests/test-pthread_sigmask2.c: New file.
11775
11776 2011-07-08  Jim Meyering  <meyering@redhat.com>
11777
11778         test-getopt.h: avoid warning about an unused variable
11779         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11780
11781 2011-07-07  Jim Meyering  <meyering@redhat.com>
11782
11783         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11784         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11785         now that it no longer contains leading TABs.
11786         Remove unused "url=FIXME" statement.
11787
11788 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11789
11790         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11791         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11792         When gl_THREADLIB is not in use, assume that the POSIX sematics
11793         are desired.  This is better for Emacs, which uses POSIX semantics
11794         on GNUish and/or POSIXish platforms, and does not use threads at
11795         all otherwise.
11796
11797         pthread_sigmask: fix typo when testing for libraries
11798         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11799         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11800
11801 2011-07-08  Eric Blake  <eblake@redhat.com>
11802
11803         fts: introduce FTS_NOATIME
11804         * lib/fts_.h (FTS_NOATIME): New bit flag.
11805         (FTS_OPTIONMASK): Adjust.
11806         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11807         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11808
11809 2011-07-08  Bruno Haible  <bruno@clisp.org>
11810
11811         Tests for module 'thread'.
11812         * modules/thread-tests: New file.
11813         * tests/test-thread_self.c: New file.
11814         * tests/test-thread_create.cc: New file.
11815
11816 2011-07-08  Bruno Haible  <bruno@clisp.org>
11817
11818         thread: Avoid gcc warnings when using gl_thread_self().
11819         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11820         'void *'.
11821         (gl_thread_self_pointer): Update.
11822
11823 2011-07-07  Bruno Haible  <bruno@clisp.org>
11824
11825         signal-c++-tests: Check declaration of pthread_sigmask.
11826         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11827         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11828         $(LIB_PTHREAD_SIGMASK).
11829
11830 2011-07-07  Bruno Haible  <bruno@clisp.org>
11831
11832         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11833         * lib/signal.in.h (pthread_sigmask): Override if
11834         REPLACE_PTHREAD_SIGMASK is 1.
11835         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11836         REPLACE_PTHREAD_SIGMASK.
11837         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11838         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11839         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11840         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11841         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11842
11843 2011-07-07  Bruno Haible  <bruno@clisp.org>
11844
11845         pthread_sigmask: Ensure declaration in <signal.h>.
11846         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11847         include <pthread.h>.
11848         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11849         problem.
11850
11851 2011-07-07  Bruno Haible  <bruno@clisp.org>
11852
11853         pthread_sigmask: Document the module.
11854         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11855
11856 2011-07-07  Bruno Haible  <bruno@clisp.org>
11857
11858         pthread_sigmask: Follow gnulib conventions.
11859         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11860         gl_PTHREAD_SIGMASK.
11861         * modules/pthread_sigmask (configure.ac): Update.
11862
11863 2011-07-07  Bruno Haible  <bruno@clisp.org>
11864
11865         pthread_sigmask: Make declaration C++ safe.
11866         * lib/signal.in.h: In two special conditions, just do an #include_next.
11867         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11868         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11869         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11870         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11871         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11872         not REPLACE_PTHREAD_MASK.
11873         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11874         not REPLACE_PTHREAD_MASK.
11875         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11876
11877 2011-07-07  Bruno Haible  <bruno@clisp.org>
11878
11879         pthread_sigmask: Fix return value.
11880         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11881         * lib/pthread_sigmask.c: New file.
11882         * modules/pthread_sigmask (Files): Add it.
11883         (configure.ac): Invoke AC_LIBOBJ.
11884
11885 2011-07-07  Eric Blake  <eblake@redhat.com>
11886
11887         getopt: more portable argv creation
11888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11889         const, use char arrays rather than strings.
11890         Suggested by Paul Eggert.
11891
11892 2011-07-07  Bruno Haible  <bruno@clisp.org>
11893
11894         Tests for module 'sigprocmask'.
11895         * modules/sigprocmask-tests: New file.
11896         * tests/test-sigprocmask.c: New file.
11897
11898 2011-07-07  Bruno Haible  <bruno@clisp.org>
11899
11900         float tests: Tweak.
11901         * tests/test-float.c (main): Tweak skip message.
11902
11903 2011-07-07  Eric Blake  <eblake@redhat.com>
11904
11905         getopt: avoid compiler warning during configure
11906         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11907         assigning string literals to non-const pointer.
11908
11909         getopt-gnu: avoid crash in glibc getopt
11910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11911         * tests/test-getopt.h (test_getopt): Enhance test.
11912         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11913         * doc/posix-functions/getopt.texi (getopt): Document it.
11914         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11915         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11916         Likewise.
11917
11918 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11919
11920         getopt: handle W; without long options in getopt [BZ #12922]
11921         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11922         but no long options are defined, just return 'W'.
11923
11924 2011-07-07  Bruno Haible  <bruno@clisp.org>
11925
11926         Avoid literal tabs.
11927         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11928         variable containing a tab instead of a literal tab.
11929         Reported by Jim Meyering.
11930
11931 2011-07-07  Bruno Haible  <bruno@clisp.org>
11932
11933         Comments.
11934         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11935
11936 2011-07-06  Bruno Haible  <bruno@clisp.org>
11937
11938         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11939         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11940         <winsock2.h>.
11941         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11942         lib/sys_socket.in.h.
11943         (close, gethostname): Hide declarations from <winsock2.h>.
11944         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11945         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11946         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11947         (select): Don't override if gnulib's <sys/select.h> was already
11948         included.
11949         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11950         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11951         setsockopt, shutdown, select): Tweak indentation.
11952
11953 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11954
11955         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11956         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11957         in an application that does not use the sys_select module.
11958
11959 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11960
11961         poll: do not return 0 on timeout=-1
11962         * lib/poll.c: Loop with yield if no events occured
11963
11964 2011-07-06  Eric Blake  <eblake@redhat.com>
11965
11966         pthread_sigmask: always replace when not using pthread
11967         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11968         replacement when using some threading other than pthread.  Fix
11969         logic bug.
11970
11971 2011-07-06  Bruno Haible  <bruno@clisp.org>
11972
11973         Comments.
11974         * m4/printf.m4: Update comments about mingw.
11975
11976 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11977
11978         sys_select: define sigset_t more portably
11979         * lib/sys_select.in.h: Always include <sys/types.h>, since
11980         we now need sigset_t and mingw defines it there.
11981         Include <signal.h> before split inclusion guard, to avoid
11982         mishaps on Solaris, whose <signal.h> eventually includes us.
11983         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11984         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11985         which come from ...
11986         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11987         gl_CHECK_TYPE_SIGSET_T.
11988         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11989         does the real work.
11990         * modules/sys_select (Depends-on): Add 'signal'.
11991
11992         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11993         Suggested by Bruno Haible.
11994
11995         pselect: Use pthread_sigmask, not sigprocmask.
11996         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11997         multithreaded apps better than sigprocmask does.
11998         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11999         sigprocmask directly.
12000
12001 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12002
12003         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12004         Don't #undef,  since we don't need any underlying pselect.
12005         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12006         (Depends-on): Add select.
12007         (Link): Add $(LIBSOCKET).
12008         These changes suggested by Bruno Haible.
12009
12010         pselect: document better
12011         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12012         * doc/posix-functions/pselect.texi (pselect): Document new module.
12013
12014         pthread_sigmask: new module
12015         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12016         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12017         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12018         This is done only as a macro; I don't know how well that'll
12019         work for C++.  Move <sys/types.h> include before the include_next,
12020         to avoid mishap on Solaris.
12021         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12022         * modules/signal (Makefile.am): Substitute the check's results.
12023         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12024
12025         test-pselect: new module
12026         * modules/pselect-tests, tests/test-pselect.c: New files.
12027         * tests/test-select.c, tests/test-sys_select-c++.cc:
12028         If TEST_PSELECT is defined, test pselect instead of testing select.
12029
12030         * tests/test-sys_select.c (sigset_t): Test for it, too.
12031         Suggested by Bruno Haible.
12032
12033 2011-07-05  Eric Blake  <eblake@redhat.com>
12034
12035         snprintf: guarantee %1$d, for libintl
12036         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12037         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12038         * doc/posix-functions/snprintf.texi (snprintf): Update.
12039         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12040         * tests/test-snprintf.c (main): Enhance test.
12041         * tests/test-vsnprintf.c (main): Likewise.
12042
12043 2011-07-05  Jim Meyering  <meyering@redhat.com>
12044
12045         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12046         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12047         per Bruno's request, to accommodate this idiom (no space after "#")
12048         even when the function is inside an #if block:
12049         char *
12050         gets (char *s)
12051         #undef gets
12052         {
12053           ...
12054         }
12055
12056 2011-07-04  Jim Meyering  <meyering@redhat.com>
12057
12058         maint: indent with spaces, not TABs, and add a rule to check this
12059         * tests/test-userspec.c: Indent with spaces, not TABs.
12060         * tests/test-argp.c: Likewise.
12061         * tests/test-c-stack2.sh: Likewise.
12062         * tests/test-parse-duration.sh: Likewise
12063         * m4/strtod.m4: Likewise.
12064         * m4/alloca.m4: Likewise.
12065         * m4/pselect.m4: Likewise.
12066         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12067
12068 2011-07-03  Jim Meyering  <meyering@redhat.com>
12069
12070         maint.mk: correct omissions in prohibit_argmatch_without_use check
12071         This rule would mistakenly report that argmatch.h is included without
12072         use even when both the argmatch and invalid_arg macro were used.
12073         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12074         of argmatch and invalid_arg.
12075
12076 2011-07-03  Bruno Haible  <bruno@clisp.org>
12077
12078         Comments about EINTR.
12079         * lib/safe-read.h: Explain the purpose of this module.
12080         * lib/safe-write.h: Likewise.
12081         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12082         module.
12083         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12084         module.
12085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12086
12087 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12088
12089         xnanosleep: Rewrite to use new dtotimespec module.
12090         It has the conversion code that used to be in xnanosleep.
12091         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12092         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12093         (TIME_T_MAX): Remove.
12094         (xnanosleep): Rewrite in terms of dtotimespec.
12095         * modules/xnanosleep (Depends-on): Add dtotimespec.
12096         Remove intprops, stdbool.
12097
12098         timespec-add, timespec-sub: new modules
12099         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12100         * lib/timespec-add.c, lib/timespec-sub.c:
12101         * modules/timespec-add, modules/timespec-sub: New files.
12102
12103         dtotimespec: new module
12104         * lib/timespec.h (dtotimespec): New decl.
12105         * lib/dtotimespec.c, modules/dtotimespec: New files.
12106
12107         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12108
12109         pselect: new module
12110         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12111         (pselect): New decls.
12112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12113         since the standard pselect decl uses 'restrict'.
12114         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12115         HAVE_PSELECT, REPLACE_PSELECT.
12116         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12117         HAVE_PSELECT, REPLACE_PSELECT.
12118         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12119
12120         sys_select: don't depend on sys_socket
12121         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12123         This fix works on GNU and GNU-like platforms, but has not been tested
12124         on native Windows.
12125         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12126         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12127         gl_HEADER_SYS_SOCKET.
12128         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12129         gl_PREREQ_SYS_H_WINSOCK2.
12130
12131 2011-06-29  Eric Blake  <eblake@redhat.com>
12132
12133         pipe2: fix C89 compile problem
12134         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12135         Reported by Bruno Haible.
12136
12137         pipe, pipe2: don't corrupt fd on error
12138         * lib/pipe.c (pipe): Leave fd unchanged on error.
12139         * lib/pipe2.c (pipe2): Likewise.
12140         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12141         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12142
12143 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12144
12145         mmap-anon: do not use regular expressions inadvertently
12146         * m4/mmap-anon.m4: Remove trailing period from strings sought
12147         in the output.
12148
12149 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12150
12151         nanosleep: fix integer overflow problem
12152         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12153         arithmetic wraps around on overflow.
12154
12155         nanosleep: simplify carrying
12156         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12157         first call to the underyling nanosleep, not for the last one.
12158         This doesn't fix any bugs, but it simplifies the computation of
12159         the remaining delay.  Found while auditing integer overflow issues.
12160
12161         dup2: remove test for existence of fcntl
12162         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12163         "#if HAVE_FCNTL", in the configure-time test program.
12164         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12165         and therefore speeds up "configure" a bit.  Found while
12166         adding the dup2 module to Emacs.
12167
12168 2011-06-24  Eric Blake  <eblake@redhat.com>
12169
12170         maint.mk: enhance useless header checks
12171         * top/maint.mk (_sc_header_without_use): Check both include
12172         styles.
12173         (sc_prohibit_assert_without_use)
12174         (sc_prohibit_close_stream_without_use)
12175         (sc_prohibit_getopt_without_use)
12176         (sc_prohibit_quotearg_without_use)
12177         (sc_prohibit_quote_without_use)
12178         (sc_prohibit_long_options_without_use)
12179         (sc_prohibit_inttostr_without_use)
12180         (sc_prohibit_ignore_value_without_use)
12181         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12182         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12183         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12184         (sc_prohibit_hash_pjw_without_use)
12185         (sc_prohibit_safe_read_without_use)
12186         (sc_prohibit_argmatch_without_use)
12187         (sc_prohibit_canonicalize_without_use)
12188         (sc_prohibit_root_dev_ino_without_use)
12189         (sc_prohibit_openat_without_use)
12190         (sc_prohibit_c_ctype_without_use)
12191         (sc_prohibit_signal_without_use)
12192         (sc_prohibit_stdio--_without_use)
12193         (sc_prohibit_stdio-safer_without_use)
12194         (sc_prohibit_strings_without_use)
12195         (sc_prohibit_intprops_without_use)
12196         (sc_prohibit_stddef_without_use)
12197         (sc_prohibit_xfreopen_without_use): Update clients.
12198
12199 2011-06-24  Jim Meyering  <meyering@redhat.com>
12200
12201         syntax-check: keep one maint.mk rule in sync with its header
12202         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12203         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12204         I prefer to avoid temporary files here, so use <(...), but that
12205         is not supported by /bin/sh, so...
12206         (SHELL): Define to /bin/bash.
12207
12208 2011-06-24  Eric Blake  <eblake@redhat.com>
12209
12210         maint.mk: update sc_prohibit_intprops_without_use
12211         * top/maint.mk (_intprops_names): Match recent changes.
12212
12213 2011-06-24  Bruno Haible  <bruno@clisp.org>
12214
12215         strerror-override: No-op tweak.
12216         * lib/strerror-override.h (strerror_override): Reorder conditions,
12217         for consistency with lib/strerror-override.c.
12218
12219 2011-06-23  Eric Blake  <eblake@redhat.com>
12220
12221         maint.mk: test further PATH_MAX issues
12222         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12223         (sc_prohibit_path_max_allocation): ...and also test alloca.
12224         Suggested by Jim Meyering.
12225
12226 2011-06-22  Eric Blake  <eblake@redhat.com>
12227
12228         maint.mk: add syntax-check to avoid char[PATH_MAX]
12229         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12230
12231         stat: be robust to PATH_MAX definition
12232         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12233         * modules/stat (Depends-on): Add verify.
12234
12235         link: work around IRIX bug
12236         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12237         * lib/link.c (rpl_link): Work around it.
12238         * tests/test-link.h (test_link): Enhance test.
12239         * doc/posix-functions/link.texi (link): Document the bug.
12240
12241         getopt: silence clang warning
12242         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12243         dereference.
12244         Reported by Gustavo Martin Domato.
12245
12246 2011-06-22  Jim Meyering  <meyering@redhat.com>
12247
12248         bootstrap: do not insert a blank line into each .gitignore file
12249         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12250
12251 2011-06-21  Eric Blake  <eblake@redhat.com>
12252
12253         perror: test for output mismatch
12254         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12255         perror on IRIX.
12256
12257         strerror_r: fix OpenBSD behavior on out-of-range
12258         * lib/strerror_r.c (strerror_r): Always use maximal string.
12259         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12260
12261         strerror_r: fix OpenBSD behavior on 0
12262         * lib/strerror-override.c (strerror_override): Also override 0
12263         when needed.
12264         * lib/strerror-override.h (strerror_override): Likewise.
12265         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12266         earlier.
12267         * lib/strerror_r.c (strerror_r): Likewise.
12268         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12269         behavior...
12270         (gl_FUNC_STRERROR_0): ...into new macro.
12271         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12272         is overridden.
12273         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12274         * modules/strerror-override (Files): Add strerror.m4.
12275         (configure.ac): Also provide override for 0 when needed.
12276         * doc/posix-functions/strerror.texi (strerror): Document this.
12277         * doc/posix-functions/perror.texi (perror): Likewise.
12278
12279         perror: adjust array size
12280         * modules/perror (Depends-on): Add strerror-override.
12281         * lib/perror.c (perror): Use it to avoid magic number.
12282
12283         strerror-override: reduce size
12284         * lib/strerror-override.c (strerror_override): Use fewer lines.
12285
12286 2011-06-20  Bruno Haible  <bruno@clisp.org>
12287
12288         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12289         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12290
12291 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12292
12293         alloca: port to compilers that can optimize like GCC 4.6.0
12294         * lib/alloca.c (find_stack_direction): New signature, taken from
12295         Autoconf git.  This works with GCC 4.6.0.  This code should never
12296         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12297         be used with other compilers that optimize as well as GCC 4.6.0 does.
12298         (alloca): Adjust to new signature.
12299         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12300         New macro, which patches Autoconf in a similar way.
12301
12302         c-stack: stop worrying about stack direction
12303         * lib/c-stack.c (find_stack_direction): Remove.
12304         (segv_handler): Don't worry about stack direction growth, as it's
12305         too much of a pain to configure this correctly, given how compilers
12306         are optimizing-away our stack-growth detection code.  Instead, assume
12307         that any access to just before or just after the stack is OK.
12308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12309         Don't require AC_FUNC_ALLOCA; no longer needed.
12310
12311 2011-06-20  Eric Blake  <eblake@redhat.com>
12312
12313         test-stat: don't allocate PATH_MAX bytes
12314         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12315         PATH_MAX-sized buffer.
12316         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12317         * modules/stat-tests (Depends-on): Likewise.
12318         * tests/test-fstatat.c (includes): Drop pathmax.h.
12319         * tests/test-stat.c (includes): Likewise.
12320         Reported by Bruno Haible.
12321
12322 2011-06-20  Bruno Haible  <bruno@clisp.org>
12323
12324         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12325         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12326         * lib/float.c: New file.
12327         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12328         REPLACE_FLOAT_LDBL.
12329         * modules/float (Files): Add lib/float.c.
12330         (configure.ac): Invoke AC_LIBOBJ.
12331         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12332
12333 2011-06-20  Bruno Haible  <bruno@clisp.org>
12334
12335         Tests for module 'float'.
12336         * modules/float-tests: New file.
12337         * tests/test-float.c: New file.
12338
12339 2011-06-19  Bruno Haible  <bruno@clisp.org>
12340
12341         isinf: Coding style.
12342         * lib/isinf.c: Use GNU coding style.
12343
12344 2011-06-19  Bruno Haible  <bruno@clisp.org>
12345
12346         linkat test: Avoid test failure on AIX 7.1.
12347         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12348         * tests/test-link.h (test_link): Likewise.
12349
12350 2011-06-19  Bruno Haible  <bruno@clisp.org>
12351
12352         pread test: Avoid test failure on OpenBSD 4.9.
12353         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12354
12355 2011-06-19  Bruno Haible  <bruno@clisp.org>
12356
12357         sprintf-posix: Fix test failure on AIX 7.1.
12358         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12359         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12360         on AIX.
12361         * doc/posix-functions/fprintf.texi: Likewise.
12362         * doc/posix-functions/printf.texi: Likewise.
12363         * doc/posix-functions/snprintf.texi: Likewise.
12364         * doc/posix-functions/sprintf.texi: Likewise.
12365         * doc/posix-functions/vdprintf.texi: Likewise.
12366         * doc/posix-functions/vfprintf.texi: Likewise.
12367         * doc/posix-functions/vprintf.texi: Likewise.
12368         * doc/posix-functions/vsnprintf.texi: Likewise.
12369         * doc/posix-functions/vsprintf.texi: Likewise.
12370
12371 2011-06-19  Bruno Haible  <bruno@clisp.org>
12372
12373         roundl-ieee: Fix test failure on AIX 7.1.
12374         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12375         * doc/posix-functions/roundl.texi: Mention problem with negative
12376         arguments.
12377
12378 2011-06-19  Bruno Haible  <bruno@clisp.org>
12379
12380         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12381         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12382         * doc/posix-functions/round.texi: Mention problem with negative
12383         arguments.
12384         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12385
12386 2011-06-19  Bruno Haible  <bruno@clisp.org>
12387
12388         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12389         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12390         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12391         * doc/posix-functions/roundf.texi: Mention problem with negative
12392         arguments.
12393         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12394
12395 2011-06-19  Bruno Haible  <bruno@clisp.org>
12396
12397         ceilf-ieee: Work around bug on MacOS X 10.5.
12398         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12399
12400         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12401         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12402         IEEE compliant, avoid compiler optimizations.
12403         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12404         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12405         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12406         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12407         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12408         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12409         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12410         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12411         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12413
12414 2011-06-19  Bruno Haible  <bruno@clisp.org>
12415
12416         ceilf-ieee: Work around bug on AIX 7.1.
12417         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12418         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12419
12420 2011-06-19  Bruno Haible  <bruno@clisp.org>
12421
12422         ceil-ieee: Work around bug on AIX 7.1.
12423         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12424         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12425
12426 2011-06-18  Bruno Haible  <bruno@clisp.org>
12427
12428         fsync test: Avoid test failure on MacOS X and AIX.
12429         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12430         EINVAL.
12431
12432 2011-06-18  Bruno Haible  <bruno@clisp.org>
12433
12434         openat, fdopendir tests: Fix link errors.
12435         * modules/openat-tests (Depends-on): Add progname.
12436         * modules/fdopendir-tests (Depends-on): Likewise.
12437         * tests/test-fchownat.c: Include progname.h.
12438         (main): Call set_program_name.
12439         * tests/test-fstatat.c: Include progname.h.
12440         (main): Call set_program_name.
12441         * tests/test-mkdirat.c: Include progname.h.
12442         (main): Call set_program_name.
12443         * tests/test-openat.c: Include progname.h.
12444         (main): Call set_program_name.
12445         * tests/test-unlinkat.c: Include progname.h.
12446         (main): Call set_program_name.
12447         * tests/test-fdopendir.c: Include progname.h.
12448         (main): Call set_program_name.
12449
12450 2011-06-18  Bruno Haible  <bruno@clisp.org>
12451
12452         Doc update.
12453         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12454         HP-UX.
12455         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12456
12457 2011-06-18  Bruno Haible  <bruno@clisp.org>
12458
12459         getcwd tests: Avoid compilation error on HP-UX 11.31.
12460         * modules/getcwd-tests (Depends-on): Add pathmax.
12461         * tests/test-getcwd.c: Include pathmax.h.
12462
12463 2011-06-18  Bruno Haible  <bruno@clisp.org>
12464
12465         isfinite, isinf: Fix link error on AIX 6 and 7.
12466         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12467         needed, also test the macro with a 'float' argument.
12468         * m4/isinf.m4 (gl_ISINF): Likewise.
12469
12470 2011-06-18  Bruno Haible  <bruno@clisp.org>
12471
12472         getloadavg: Don't clobber LIBS. Regression from previous commit.
12473         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12474         AC_CHECK_LIB from here...
12475         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12476         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12477         gl_func_getloadavg_done.
12478         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12479
12480 2011-06-18  Bruno Haible  <bruno@clisp.org>
12481
12482         clean-temp: Improve documentation.
12483         * lib/clean-temp.h: Explain better how to use this module.
12484         Reported by John Darrington <john@darrington.wattle.id.au>.
12485
12486 2011-06-17  Bruno Haible  <bruno@clisp.org>
12487
12488         pread, pwrite: Avoid cc warning on AIX.
12489         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12490         (pwrite): Likewise.
12491
12492 2011-06-17  Bruno Haible  <bruno@clisp.org>
12493
12494         spawn-pipe tests: Fix link error.
12495         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12497
12498 2011-06-17  Bruno Haible  <bruno@clisp.org>
12499
12500         Tests: Remove unnecessary dependency.
12501         * modules/canonicalize-tests (Depends-on): Remove progname.
12502         * modules/chown-tests (Depends-on): Likewise.
12503         * modules/dirname-tests (Depends-on): Likewise.
12504         * modules/fdopendir-tests (Depends-on): Likewise.
12505         * modules/fdutimensat-tests (Depends-on): Likewise.
12506         * modules/hash-tests (Depends-on): Likewise.
12507         * modules/lchown-tests (Depends-on): Likewise.
12508         * modules/linkat-tests (Depends-on): Likewise.
12509         * modules/renameat-tests (Depends-on): Likewise.
12510         * modules/spawn-pipe-tests (Depends-on): Likewise.
12511         * modules/utimensat-tests (Depends-on): Likewise.
12512
12513 2011-06-17  Bruno Haible  <bruno@clisp.org>
12514
12515         spawn-pipe tests: Fix link error.
12516         * tests/test-spawn-pipe-child.c: Undefine fflush.
12517
12518 2011-06-17  Bruno Haible  <bruno@clisp.org>
12519
12520         Fix tests link errors.
12521         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12522         * modules/chown-tests (Makefile.am): Don't link test-chown with
12523         LIBINTL.
12524         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12525         LIBINTL.
12526         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12527         LIBINTL.
12528         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12529         LIBINTL.
12530
12531 2011-06-16  Bruno Haible  <bruno@clisp.org>
12532
12533         crypto/gc-sha1: Fix recent regression.
12534         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12535         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12536
12537         crypto/gc-md5: Fix recent regression.
12538         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12539
12540         crypto/gc-md4: Fix recent regression.
12541         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12542         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12543
12544         crypto/gc-arctwo: Fix recent regression.
12545         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12546         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12547
12548         crypto/gc-rijndael: Fix recent regression.
12549         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12550         (configure.ac): Invoke AC_LIBOBJ here.
12551         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12552         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12553
12554         crypto/gc-hmac-sha1: Fix recent regression.
12555         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12556         (configure.ac): Invoke AC_LIBOBJ here.
12557         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12559
12560         crypto/gc-hmac-md5: Fix recent regression.
12561         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12562         (configure.ac): Invoke AC_LIBOBJ here.
12563         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12565
12566         crypto/gc-des: Fix recent regression.
12567         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12568         (configure.ac): Invoke AC_LIBOBJ here.
12569         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12570         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12571
12572         crypto/gc-arcfour: Fix recent regression.
12573         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12574         (configure.ac): Invoke AC_LIBOBJ here.
12575         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12576         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12577
12578 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12579
12580         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12581         After the 2011-05-21 change, this macro requires
12582         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12583         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12584
12585 2011-06-16  Bruno Haible  <bruno@clisp.org>
12586
12587         fprintftime: Move AC_LIBOBJ invocations to module description.
12588         * m4/fprintftime.m4: Remove file.
12589         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12590         (configure.ac): Remove gl_FPRINTFTIME call.
12591         (Makefile.am): Augment lib_SOURCES.
12592         Reported by Jim Meyering.
12593
12594 2011-06-16  Bruno Haible  <bruno@clisp.org>
12595
12596         tmpfile-safer: Finish 2011-05-23 commit.
12597         * m4/stdio-safer.m4: Really remove file.
12598         Reported by Jim Meyering.
12599
12600 2011-06-16  Bruno Haible  <bruno@clisp.org>
12601
12602         syntax-check: Fix typo.
12603         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12604         printf-posix.m4.
12605         Reported by Jim Meyering.
12606
12607 2011-06-13  Jim Meyering  <meyering@redhat.com>
12608
12609         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12610         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12611
12612 2011-05-23  Bruno Haible  <bruno@clisp.org>
12613
12614         yesno: Move AC_LIBOBJ invocations to module description.
12615         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12616         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12617
12618 2011-05-23  Bruno Haible  <bruno@clisp.org>
12619
12620         xstrtol: Move AC_LIBOBJ invocations to module description.
12621         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12622         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12623
12624 2011-05-23  Bruno Haible  <bruno@clisp.org>
12625
12626         xstrtold: Move AC_LIBOBJ invocations to module description.
12627         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12628         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12629
12630 2011-05-23  Bruno Haible  <bruno@clisp.org>
12631
12632         xstrtod: Move AC_LIBOBJ invocations to module description.
12633         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12634         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12635
12636 2011-05-23  Bruno Haible  <bruno@clisp.org>
12637
12638         xnanosleep: Move AC_LIBOBJ invocations to module description.
12639         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12640         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12641
12642 2011-05-23  Bruno Haible  <bruno@clisp.org>
12643
12644         xgetcwd: Move AC_LIBOBJ invocations to module description.
12645         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12646         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12647
12648 2011-05-23  Bruno Haible  <bruno@clisp.org>
12649
12650         xalloc: Move AC_LIBOBJ invocations to module description.
12651         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12652         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12653
12654 2011-05-23  Bruno Haible  <bruno@clisp.org>
12655
12656         write-any-file: Move AC_LIBOBJ invocations to module description.
12657         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12658         invocation.
12659         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12660
12661 2011-05-23  Bruno Haible  <bruno@clisp.org>
12662
12663         utimens: Move AC_LIBOBJ invocations to module description.
12664         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12665         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12666
12667 2011-05-23  Bruno Haible  <bruno@clisp.org>
12668
12669         utimecmp: Move AC_LIBOBJ invocations to module description.
12670         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12671         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12672
12673 2011-05-23  Bruno Haible  <bruno@clisp.org>
12674
12675         userspec: Move AC_LIBOBJ invocations to module description.
12676         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12677         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12678
12679 2011-05-23  Bruno Haible  <bruno@clisp.org>
12680
12681         unlinkdir: Move AC_LIBOBJ invocations to module description.
12682         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12683         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12684
12685 2011-05-23  Bruno Haible  <bruno@clisp.org>
12686
12687         unistd-safer: Move AC_LIBOBJ invocations to module description.
12688         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12689         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12690
12691 2011-05-23  Bruno Haible  <bruno@clisp.org>
12692
12693         tempname: Move AC_LIBOBJ invocations to module description.
12694         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12695         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12696
12697 2011-05-23  Bruno Haible  <bruno@clisp.org>
12698
12699         strftime: Move AC_LIBOBJ invocations to module description.
12700         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12701         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12702
12703 2011-05-23  Bruno Haible  <bruno@clisp.org>
12704
12705         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12706         * m4/stdlib-safer.m4: Remove file.
12707         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12708         (configure.ac): Remove gl_STDLIB_SAFER call.
12709         (Makefile.am): Augment lib_SOURCES.
12710
12711 2011-05-23  Bruno Haible  <bruno@clisp.org>
12712
12713         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12714         * m4/stdio-safer.m4: Remove file.
12715         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12716         (configure.ac): Remove gl_TMPFILE_SAFER call.
12717         (Makefile.am): Augment lib_SOURCES.
12718
12719 2011-05-23  Bruno Haible  <bruno@clisp.org>
12720
12721         popen-safer: Move AC_LIBOBJ invocations to module description.
12722         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12723         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12724         (configure.ac): Remove gl_POPEN_SAFER call.
12725         (Makefile.am): Augment lib_SOURCES.
12726
12727 2011-05-23  Bruno Haible  <bruno@clisp.org>
12728
12729         freopen-safer: Move AC_LIBOBJ invocations to module description.
12730         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12731         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12732         (configure.ac): Remove gl_FREOPEN_SAFER call.
12733         (Makefile.am): Augment lib_SOURCES.
12734
12735 2011-05-23  Bruno Haible  <bruno@clisp.org>
12736
12737         fopen-safer: Move AC_LIBOBJ invocations to module description.
12738         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12739         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12740         (configure.ac): Remove gl_FOPEN_SAFER call.
12741         (Makefile.am): Augment lib_SOURCES.
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12746         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12747         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12748
12749 2011-05-23  Bruno Haible  <bruno@clisp.org>
12750
12751         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12752         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12753         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12754
12755 2011-05-23  Bruno Haible  <bruno@clisp.org>
12756
12757         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12758         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12759         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12760
12761 2011-05-23  Bruno Haible  <bruno@clisp.org>
12762
12763         settime: Move AC_LIBOBJ invocations to module description.
12764         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12765         * modules/settime (Makefile.am): Augment lib_SOURCES.
12766
12767 2011-05-23  Bruno Haible  <bruno@clisp.org>
12768
12769         savedir: Move AC_LIBOBJ invocations to module description.
12770         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12771         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12772
12773 2011-05-23  Bruno Haible  <bruno@clisp.org>
12774
12775         save-cwd: Move AC_LIBOBJ invocations to module description.
12776         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12777         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12778
12779 2011-05-23  Bruno Haible  <bruno@clisp.org>
12780
12781         same: Move AC_LIBOBJ invocations to module description.
12782         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12783         * modules/same (Makefile.am): Augment lib_SOURCES.
12784
12785 2011-05-23  Bruno Haible  <bruno@clisp.org>
12786
12787         safe-write: Move AC_LIBOBJ invocations to module description.
12788         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12789         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12790         instead of gl_SAFE_WRITE.
12791         (Makefile.am): Augment lib_SOURCES.
12792
12793 2011-05-23  Bruno Haible  <bruno@clisp.org>
12794
12795         safe-read: Move AC_LIBOBJ invocations to module description.
12796         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12797         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12798         of gl_SAFE_READ.
12799         (Makefile.am): Augment lib_SOURCES.
12800
12801 2011-05-23  Bruno Haible  <bruno@clisp.org>
12802
12803         safe-alloc: Move AC_LIBOBJ invocations to module description.
12804         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12805         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12806
12807 2011-05-23  Bruno Haible  <bruno@clisp.org>
12808
12809         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12810         * m4/rijndael.m4: Remove file.
12811         * modules/crypto/rijndael (Files): Remove it.
12812         (configure.ac): Remove gl_RIJNDAEL call.
12813         (Makefile.am): Augment lib_SOURCES.
12814
12815 2011-05-23  Bruno Haible  <bruno@clisp.org>
12816
12817         readtokens: Move AC_LIBOBJ invocations to module description.
12818         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12819         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12820
12821 2011-05-23  Bruno Haible  <bruno@clisp.org>
12822
12823         read-file: Move AC_LIBOBJ invocations to module description.
12824         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12825         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12826         of gl_FUNC_READ_FILE.
12827         (Makefile.am): Augment lib_SOURCES.
12828
12829 2011-05-23  Bruno Haible  <bruno@clisp.org>
12830
12831         quotearg: Move AC_LIBOBJ invocations to module description.
12832         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12833         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12834
12835 2011-05-23  Bruno Haible  <bruno@clisp.org>
12836
12837         quote: Move AC_LIBOBJ invocations to module description.
12838         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12839         * modules/quote (Makefile.am): Augment lib_SOURCES.
12840
12841 2011-05-23  Bruno Haible  <bruno@clisp.org>
12842
12843         posixver: Move AC_LIBOBJ invocations to module description.
12844         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12845         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12846
12847 2011-05-23  Bruno Haible  <bruno@clisp.org>
12848
12849         posixtm: Move AC_LIBOBJ invocations to module description.
12850         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12851         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12852
12853 2011-05-23  Bruno Haible  <bruno@clisp.org>
12854
12855         physmem: Move AC_LIBOBJ invocations to module description.
12856         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12857         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12858
12859 2011-05-23  Bruno Haible  <bruno@clisp.org>
12860
12861         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12862         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12863         invocation.
12864         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12865
12866 2011-05-23  Bruno Haible  <bruno@clisp.org>
12867
12868         mpsort: Move AC_LIBOBJ invocations to module description.
12869         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12870         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12871
12872 2011-05-23  Bruno Haible  <bruno@clisp.org>
12873
12874         modechange: Move AC_LIBOBJ invocations to module description.
12875         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12876         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12877
12878 2011-05-23  Bruno Haible  <bruno@clisp.org>
12879
12880         mkdir-p: Move AC_LIBOBJ invocations to module description.
12881         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12882         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12883
12884 2011-05-23  Bruno Haible  <bruno@clisp.org>
12885
12886         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12887         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12888         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12889
12890 2011-05-23  Bruno Haible  <bruno@clisp.org>
12891
12892         mgetgroups: Move AC_LIBOBJ invocations to module description.
12893         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12894         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12895
12896 2011-05-23  Bruno Haible  <bruno@clisp.org>
12897
12898         memxor: Move AC_LIBOBJ invocations to module description.
12899         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12900         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12901
12902 2011-05-23  Bruno Haible  <bruno@clisp.org>
12903
12904         memcoll: Move AC_LIBOBJ invocations to module description.
12905         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12906         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12907
12908 2011-05-23  Bruno Haible  <bruno@clisp.org>
12909
12910         memcasecmp: Move AC_LIBOBJ invocations to module description.
12911         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12912         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12913
12914 2011-05-23  Bruno Haible  <bruno@clisp.org>
12915
12916         crypto/md5: Move AC_LIBOBJ invocations to module description.
12917         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12918         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12919
12920 2011-05-23  Bruno Haible  <bruno@clisp.org>
12921
12922         crypto/md4: Move AC_LIBOBJ invocations to module description.
12923         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12924         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12925
12926 2011-05-23  Bruno Haible  <bruno@clisp.org>
12927
12928         crypto/md2: Move AC_LIBOBJ invocations to module description.
12929         * m4/md2.m4: Remove file.
12930         * modules/crypto/md2 (Files): Remove it.
12931         (configure.ac): Remove gl_MD2 call.
12932         (Makefile.am): Augment lib_SOURCES.
12933
12934 2011-05-23  Bruno Haible  <bruno@clisp.org>
12935
12936         long-options: Move AC_LIBOBJ invocations to module description.
12937         * m4/long-options.m4: Remove file.
12938         * modules/long-options (Files): Remove it.
12939         (configure.ac): Remove gl_LONG_OPTIONS call.
12940         (Makefile.am): Augment lib_SOURCES.
12941
12942 2011-05-23  Bruno Haible  <bruno@clisp.org>
12943
12944         i-ring: Move AC_LIBOBJ invocations to module description.
12945         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12946         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12947
12948 2011-05-23  Bruno Haible  <bruno@clisp.org>
12949
12950         idcache: Move AC_LIBOBJ invocations to module description.
12951         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12952         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12953
12954 2011-05-23  Bruno Haible  <bruno@clisp.org>
12955
12956         human: Move AC_LIBOBJ invocations to module description.
12957         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12958         * modules/human (Makefile.am): Augment lib_SOURCES.
12959
12960 2011-05-23  Bruno Haible  <bruno@clisp.org>
12961
12962         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12963         * m4/hmac-sha1.m4: Remove file.
12964         * modules/crypto/hmac-sha1 (Files): Remove it.
12965         (configure.ac): Remove gl_HMAC_SHA1 call.
12966         (Makefile.am): Augment lib_SOURCES.
12967
12968 2011-05-23  Bruno Haible  <bruno@clisp.org>
12969
12970         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12971         * m4/hmac-md5.m4: Remove file.
12972         * modules/crypto/hmac-md5 (Files): Remove it.
12973         (configure.ac): Remove gl_HMAC_MD5 call.
12974         (Makefile.am): Augment lib_SOURCES.
12975
12976 2011-05-23  Bruno Haible  <bruno@clisp.org>
12977
12978         hash: Move AC_LIBOBJ invocations to module description.
12979         * m4/hash.m4: Remove file.
12980         * modules/hash (Files): Remove it.
12981         (configure.ac): Remove gl_HASH call.
12982         (Makefile.am): Augment lib_SOURCES.
12983
12984 2011-05-23  Bruno Haible  <bruno@clisp.org>
12985
12986         hard-locale: Move AC_LIBOBJ invocations to module description.
12987         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12988         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12989
12990 2011-05-23  Bruno Haible  <bruno@clisp.org>
12991
12992         getugroups: Move AC_LIBOBJ invocations to module description.
12993         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12994         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12995
12996 2011-05-23  Bruno Haible  <bruno@clisp.org>
12997
12998         gettime: Move AC_LIBOBJ invocations to module description.
12999         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13000         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13001
13002 2011-05-23  Bruno Haible  <bruno@clisp.org>
13003
13004         getndelim2: Move AC_LIBOBJ invocations to module description.
13005         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13006         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13007
13008 2011-05-23  Bruno Haible  <bruno@clisp.org>
13009
13010         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13011         * m4/gc-pbkdf2-sha1.m4: Remove file.
13012         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13013         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13014         (Makefile.am): Augment lib_SOURCES.
13015
13016 2011-05-23  Bruno Haible  <bruno@clisp.org>
13017
13018         fts: Move AC_LIBOBJ invocations to module description.
13019         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13020         * modules/fts (configure.ac): ... to here.
13021
13022 2011-05-23  Bruno Haible  <bruno@clisp.org>
13023
13024         file-type: Move AC_LIBOBJ invocations to module description.
13025         * m4/file-type.m4: Remove file.
13026         * modules/file-type (Files): Remove it.
13027         (configure.ac): Remove gl_FILE_TYPE call.
13028         (Makefile.am): Augment lib_SOURCES.
13029
13030 2011-05-23  Bruno Haible  <bruno@clisp.org>
13031
13032         filenamecat*: Respect rules for use of AC_LIBOBJ.
13033         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13034         Remove AC_LIBOBJ invocation.
13035         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13036         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13037
13038 2011-05-23  Bruno Haible  <bruno@clisp.org>
13039
13040         filemode: Move AC_LIBOBJ invocations to module description.
13041         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13042         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13043
13044 2011-05-23  Bruno Haible  <bruno@clisp.org>
13045
13046         openat-safer: Move AC_LIBOBJ invocations to module description.
13047         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13048         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13049
13050 2011-05-23  Bruno Haible  <bruno@clisp.org>
13051
13052         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13053         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13054         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13055
13056 2011-05-23  Bruno Haible  <bruno@clisp.org>
13057
13058         exclude: Move AC_LIBOBJ invocations to module description.
13059         * m4/exclude.m4: Remove file.
13060         * modules/exclude (Files): Remove it.
13061         (configure.ac): Remove gl_EXCLUDE call.
13062         (Makefile.am): Augment lib_SOURCES.
13063
13064 2011-05-23  Bruno Haible  <bruno@clisp.org>
13065
13066         dirname*: Respect rules for use of AC_LIBOBJ.
13067         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13068         invocations.
13069         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13070         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13071
13072 2011-05-23  Bruno Haible  <bruno@clisp.org>
13073
13074         dirent-safer: Move AC_LIBOBJ invocations to module description.
13075         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13076         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13077
13078 2011-05-23  Bruno Haible  <bruno@clisp.org>
13079
13080         crypto/des: Move AC_LIBOBJ invocations to module description.
13081         * m4/des.m4: Remove file.
13082         * modules/crypto/des (Files): Remove it.
13083         (configure.ac): Remove gl_DES call.
13084         (Makefile.am): Augment lib_SOURCES.
13085
13086 2011-05-23  Bruno Haible  <bruno@clisp.org>
13087
13088         cycle-check: Move AC_LIBOBJ invocations to module description.
13089         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13090         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13091
13092 2011-05-23  Bruno Haible  <bruno@clisp.org>
13093
13094         c-strtold: Move AC_LIBOBJ invocations to module description.
13095         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13096         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13097
13098 2011-05-23  Bruno Haible  <bruno@clisp.org>
13099
13100         c-strtod: Move AC_LIBOBJ invocations to module description.
13101         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13102         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13103
13104 2011-05-23  Bruno Haible  <bruno@clisp.org>
13105
13106         crc: Move AC_LIBOBJ invocations to module description.
13107         * m4/crc.m4: Remove file.
13108         * modules/crc (Files): Remove it.
13109         (configure.ac): Remove gl_CRC call.
13110         (Makefile.am): Augment lib_SOURCES.
13111
13112 2011-05-23  Bruno Haible  <bruno@clisp.org>
13113
13114         close-stream: Move AC_LIBOBJ invocations to module description.
13115         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13116         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13117
13118 2011-05-23  Bruno Haible  <bruno@clisp.org>
13119
13120         closeout: Move AC_LIBOBJ invocations to module description.
13121         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13122         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13123
13124 2011-05-23  Bruno Haible  <bruno@clisp.org>
13125
13126         closein: Move AC_LIBOBJ invocations to module description.
13127         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13128         * modules/closein (Makefile.am): Augment lib_SOURCES.
13129
13130 2011-05-23  Bruno Haible  <bruno@clisp.org>
13131
13132         cloexec: Move AC_LIBOBJ invocations to module description.
13133         * m4/cloexec.m4: Remove file.
13134         * modules/cloexec (Files): Remove it.
13135         (configure.ac): Remove gl_CLOEXEC call.
13136         (Makefile.am): Augment lib_SOURCES.
13137
13138 2011-05-23  Bruno Haible  <bruno@clisp.org>
13139
13140         check-version: Move AC_LIBOBJ invocations to module description.
13141         * m4/check-version.m4: Remove file.
13142         * modules/check-version (Files): Remove it.
13143         (configure.ac): Remove gl_CHECK_VERSION call.
13144         (Makefile.am): Augment lib_SOURCES.
13145
13146 2011-05-23  Bruno Haible  <bruno@clisp.org>
13147
13148         chdir-safer: Move AC_LIBOBJ invocations to module description.
13149         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13150         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13151
13152 2011-05-23  Bruno Haible  <bruno@clisp.org>
13153
13154         canonicalize: Move AC_LIBOBJ invocations to module description.
13155         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13156         AC_LIBOBJ invocation.
13157         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13158
13159 2011-05-23  Bruno Haible  <bruno@clisp.org>
13160
13161         canon-host: Move AC_LIBOBJ invocations to module description.
13162         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13163         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13164         instead of gl_CANON_HOST.
13165         (Makefile.am): Augment lib_SOURCES.
13166
13167 2011-05-23  Bruno Haible  <bruno@clisp.org>
13168
13169         backupfile: Move AC_LIBOBJ invocations to module description.
13170         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13171         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13172
13173 2011-05-23  Bruno Haible  <bruno@clisp.org>
13174
13175         argmatch: Move AC_LIBOBJ invocations to module description.
13176         * m4/argmatch.m4: Remove file.
13177         * modules/argmatch (Files): Remove it.
13178         (configure.ac): Remove gl_ARGMATCH call.
13179         (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13184         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13185         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13186
13187 2011-05-23  Bruno Haible  <bruno@clisp.org>
13188
13189         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13190         * m4/arcfour.m4: Remove file.
13191         * modules/crypto/arcfour (Files): Remove it.
13192         (configure.ac): Remove gl_ARCFOUR call.
13193         (Makefile.am): Augment lib_SOURCES.
13194
13195 2011-05-22  Bruno Haible  <bruno@clisp.org>
13196
13197         write: Move AC_LIBOBJ invocations to module description.
13198         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13199         * modules/write (configure.ac): ... to here.
13200
13201 2011-05-22  Bruno Haible  <bruno@clisp.org>
13202
13203         wmemset: Move AC_LIBOBJ invocations to module description.
13204         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13205         here...
13206         * modules/wmemset (configure.ac): ... to here.
13207
13208 2011-05-22  Bruno Haible  <bruno@clisp.org>
13209
13210         wmemmove: Move AC_LIBOBJ invocations to module description.
13211         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13212         here...
13213         * modules/wmemmove (configure.ac): ... to here.
13214
13215 2011-05-22  Bruno Haible  <bruno@clisp.org>
13216
13217         wmemcpy: Move AC_LIBOBJ invocations to module description.
13218         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13219         here...
13220         * modules/wmemcpy (configure.ac): ... to here.
13221
13222 2011-05-22  Bruno Haible  <bruno@clisp.org>
13223
13224         wmemcmp: Move AC_LIBOBJ invocations to module description.
13225         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13226         here...
13227         * modules/wmemcmp (configure.ac): ... to here.
13228
13229 2011-05-22  Bruno Haible  <bruno@clisp.org>
13230
13231         wmemchr: Move AC_LIBOBJ invocations to module description.
13232         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13233         here...
13234         * modules/wmemchr (configure.ac): ... to here.
13235
13236 2011-05-22  Bruno Haible  <bruno@clisp.org>
13237
13238         wcswidth: Move AC_LIBOBJ invocations to module description.
13239         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13240         here...
13241         * modules/wcswidth (configure.ac): ... to here.
13242
13243 2011-05-22  Bruno Haible  <bruno@clisp.org>
13244
13245         wcwidth: Respect rules for use of AC_LIBOBJ.
13246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13247         invocation from here...
13248         * modules/wcwidth (configure.ac): ... to here.
13249         (Depends-on): Update conditions.
13250
13251 2011-05-22  Bruno Haible  <bruno@clisp.org>
13252
13253         wctype: Move AC_LIBOBJ invocations to module description.
13254         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13255         invocation from here...
13256         * modules/wctype (configure.ac): ... to here.
13257         (Depends-on): Update conditions.
13258
13259 2011-05-22  Bruno Haible  <bruno@clisp.org>
13260
13261         wctrans: Move AC_LIBOBJ invocations to module description.
13262         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13263         invocation from here...
13264         * modules/wctrans (configure.ac): ... to here.
13265
13266 2011-05-22  Bruno Haible  <bruno@clisp.org>
13267
13268         wctomb: Move AC_LIBOBJ invocations to module description.
13269         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13270         invocations from here...
13271         * modules/wctomb (configure.ac): ... to here.
13272
13273 2011-05-22  Bruno Haible  <bruno@clisp.org>
13274
13275         wctob: Move AC_LIBOBJ invocations to module description.
13276         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13277         gl_PREREQ_WCTOB invocations from here...
13278         * modules/wctob (configure.ac): ... to here.
13279         (Depends-on): Update conditions.
13280
13281 2011-05-22  Bruno Haible  <bruno@clisp.org>
13282
13283         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13284         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13285         here...
13286         * modules/wcsxfrm (configure.ac): ... to here.
13287
13288 2011-05-22  Bruno Haible  <bruno@clisp.org>
13289
13290         wcstok: Move AC_LIBOBJ invocations to module description.
13291         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13292         * modules/wcstok (configure.ac): ... to here.
13293
13294 2011-05-22  Bruno Haible  <bruno@clisp.org>
13295
13296         wcsstr: Move AC_LIBOBJ invocations to module description.
13297         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13298         * modules/wcsstr (configure.ac): ... to here.
13299
13300 2011-05-22  Bruno Haible  <bruno@clisp.org>
13301
13302         wcsspn: Move AC_LIBOBJ invocations to module description.
13303         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13304         * modules/wcsspn (configure.ac): ... to here.
13305
13306 2011-05-22  Bruno Haible  <bruno@clisp.org>
13307
13308         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13309         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13310         gl_PREREQ_WCSRTOMBS invocations from here...
13311         * modules/wcsrtombs (configure.ac): ... to here.
13312
13313 2011-05-22  Bruno Haible  <bruno@clisp.org>
13314
13315         wcsrchr: Move AC_LIBOBJ invocations to module description.
13316         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13317         here...
13318         * modules/wcsrchr (configure.ac): ... to here.
13319
13320 2011-05-22  Bruno Haible  <bruno@clisp.org>
13321
13322         wcspbrk: Move AC_LIBOBJ invocations to module description.
13323         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13324         here...
13325         * modules/wcspbrk (configure.ac): ... to here.
13326
13327 2011-05-22  Bruno Haible  <bruno@clisp.org>
13328
13329         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13330         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13331         gl_PREREQ_WCSNRTOMBS invocations from here...
13332         * modules/wcsnrtombs (configure.ac): ... to here.
13333
13334 2011-05-22  Bruno Haible  <bruno@clisp.org>
13335
13336         wcsnlen: Move AC_LIBOBJ invocations to module description.
13337         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13338         here...
13339         * modules/wcsnlen (configure.ac): ... to here.
13340
13341 2011-05-22  Bruno Haible  <bruno@clisp.org>
13342
13343         wcsncpy: Move AC_LIBOBJ invocations to module description.
13344         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13345         here...
13346         * modules/wcsncpy (configure.ac): ... to here.
13347
13348 2011-05-22  Bruno Haible  <bruno@clisp.org>
13349
13350         wcsncmp: Move AC_LIBOBJ invocations to module description.
13351         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13352         here...
13353         * modules/wcsncmp (configure.ac): ... to here.
13354
13355 2011-05-22  Bruno Haible  <bruno@clisp.org>
13356
13357         wcsncat: Move AC_LIBOBJ invocations to module description.
13358         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13359         here...
13360         * modules/wcsncat (configure.ac): ... to here.
13361
13362 2011-05-22  Bruno Haible  <bruno@clisp.org>
13363
13364         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13365         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13366         from here...
13367         * modules/wcsncasecmp (configure.ac): ... to here.
13368
13369 2011-05-22  Bruno Haible  <bruno@clisp.org>
13370
13371         wcslen: Move AC_LIBOBJ invocations to module description.
13372         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13373         * modules/wcslen (configure.ac): ... to here.
13374
13375 2011-05-22  Bruno Haible  <bruno@clisp.org>
13376
13377         wcsdup: Move AC_LIBOBJ invocations to module description.
13378         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13379         * modules/wcsdup (configure.ac): ... to here.
13380
13381 2011-05-22  Bruno Haible  <bruno@clisp.org>
13382
13383         wcscspn: Move AC_LIBOBJ invocations to module description.
13384         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13385         here...
13386         * modules/wcscspn (configure.ac): ... to here.
13387
13388 2011-05-22  Bruno Haible  <bruno@clisp.org>
13389
13390         wcscpy: Move AC_LIBOBJ invocations to module description.
13391         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13392         * modules/wcscpy (configure.ac): ... to here.
13393
13394 2011-05-22  Bruno Haible  <bruno@clisp.org>
13395
13396         wcscoll: Move AC_LIBOBJ invocations to module description.
13397         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13398         here...
13399         * modules/wcscoll (configure.ac): ... to here.
13400
13401 2011-05-22  Bruno Haible  <bruno@clisp.org>
13402
13403         wcscmp: Move AC_LIBOBJ invocations to module description.
13404         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13405         * modules/wcscmp (configure.ac): ... to here.
13406
13407 2011-05-22  Bruno Haible  <bruno@clisp.org>
13408
13409         wcschr: Move AC_LIBOBJ invocations to module description.
13410         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13411         * modules/wcschr (configure.ac): ... to here.
13412
13413 2011-05-22  Bruno Haible  <bruno@clisp.org>
13414
13415         wcscat: Move AC_LIBOBJ invocations to module description.
13416         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13417         * modules/wcscat (configure.ac): ... to here.
13418
13419 2011-05-22  Bruno Haible  <bruno@clisp.org>
13420
13421         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13422         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13423         here...
13424         * modules/wcscasecmp (configure.ac): ... to here.
13425
13426 2011-05-22  Bruno Haible  <bruno@clisp.org>
13427
13428         wcrtomb: Move AC_LIBOBJ invocations to module description.
13429         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13430         invocations from here...
13431         * modules/wcrtomb (configure.ac): ... to here.
13432
13433 2011-05-22  Bruno Haible  <bruno@clisp.org>
13434
13435         wcpncpy: Move AC_LIBOBJ invocations to module description.
13436         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13437         here...
13438         * modules/wcpncpy (configure.ac): ... to here.
13439
13440 2011-05-22  Bruno Haible  <bruno@clisp.org>
13441
13442         wcpcpy: Move AC_LIBOBJ invocations to module description.
13443         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13444         * modules/wcpcpy (configure.ac): ... to here.
13445
13446 2011-05-22  Bruno Haible  <bruno@clisp.org>
13447
13448         waitpid: Move AC_LIBOBJ invocations to module description.
13449         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13450         invocation from here...
13451         * modules/waitpid (configure.ac): ... to here.
13452
13453 2011-05-22  Bruno Haible  <bruno@clisp.org>
13454
13455         utimensat: Move AC_LIBOBJ invocations to module description.
13456         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13457         here...
13458         * modules/utimensat (configure.ac): ... to here.
13459
13460 2011-05-22  Bruno Haible  <bruno@clisp.org>
13461
13462         usleep: Move AC_LIBOBJ invocations to module description.
13463         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13464         here...
13465         * modules/usleep (configure.ac): ... to here.
13466
13467 2011-05-22  Bruno Haible  <bruno@clisp.org>
13468
13469         unlockpt: Move AC_LIBOBJ invocations to module description.
13470         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13471         gl_PREREQ_UNLOCKPT invocations from here...
13472         * modules/unlockpt (configure.ac): ... to here.
13473
13474 2011-05-22  Bruno Haible  <bruno@clisp.org>
13475
13476         unlink: Respect rules for use of AC_LIBOBJ.
13477         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13478         * modules/unlink (configure.ac): ... to here.
13479
13480 2011-05-22  Bruno Haible  <bruno@clisp.org>
13481
13482         uname: Move AC_LIBOBJ invocations to module description.
13483         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13485         here...
13486         * modules/uname (configure.ac): ... to here.
13487
13488 2011-05-22  Bruno Haible  <bruno@clisp.org>
13489
13490         ttyname_r: Move AC_LIBOBJ invocations to module description.
13491         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13492         gl_PREREQ_TTYNAME_R invocations from here...
13493         * modules/ttyname_r (configure.ac): ... to here.
13494
13495 2011-05-22  Bruno Haible  <bruno@clisp.org>
13496
13497         tsearch: Move AC_LIBOBJ invocations to module description.
13498         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13499         invocations from here...
13500         * modules/tsearch (configure.ac): ... to here.
13501
13502 2011-05-22  Bruno Haible  <bruno@clisp.org>
13503
13504         towctrans: Move AC_LIBOBJ invocations to module description.
13505         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13506         AC_LIBOBJ invocation from here...
13507         * modules/towctrans (configure.ac): ... to here.
13508
13509 2011-05-22  Bruno Haible  <bruno@clisp.org>
13510
13511         tmpfile: Move AC_LIBOBJ invocations to module description.
13512         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13513         invocations from here...
13514         * modules/tmpfile (configure.ac): ... to here.
13515
13516 2011-05-22  Bruno Haible  <bruno@clisp.org>
13517
13518         times: Move AC_LIBOBJ invocations to module description.
13519         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13520         * modules/times (configure.ac): ... to here.
13521
13522 2011-05-22  Bruno Haible  <bruno@clisp.org>
13523
13524         time_r: Move AC_LIBOBJ invocations to module description.
13525         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13526         invocations from here...
13527         * modules/time_r (configure.ac): ... to here.
13528
13529 2011-05-22  Bruno Haible  <bruno@clisp.org>
13530
13531         timegm: Move AC_LIBOBJ invocations to module description.
13532         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13533         invocations from here...
13534         * modules/timegm (configure.ac): ... to here.
13535
13536 2011-05-22  Bruno Haible  <bruno@clisp.org>
13537
13538         tcgetsid: Move AC_LIBOBJ invocations to module description.
13539         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13540         and gl_PREREQ_TCGETSID invocations from here...
13541         * modules/tcgetsid (configure.ac): ... to here.
13542         (Depends-on): Update conditions.
13543
13544 2011-05-22  Bruno Haible  <bruno@clisp.org>
13545
13546         symlinkat: Move AC_LIBOBJ invocations to module description.
13547         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13548         here...
13549         * modules/symlinkat (configure.ac): ... to here.
13550
13551 2011-05-22  Bruno Haible  <bruno@clisp.org>
13552
13553         symlink: Move AC_LIBOBJ invocations to module description.
13554         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13555         here...
13556         * modules/symlink (configure.ac): ... to here.
13557
13558 2011-05-22  Bruno Haible  <bruno@clisp.org>
13559
13560         strverscmp: Move AC_LIBOBJ invocations to module description.
13561         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13562         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13563         from here...
13564         * modules/strverscmp (configure.ac): ... to here.
13565
13566 2011-05-22  Bruno Haible  <bruno@clisp.org>
13567
13568         strtok_r: Move AC_LIBOBJ invocations to module description.
13569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13570         and gl_PREREQ_STRTOK_R invocations from here...
13571         * modules/strtok_r (configure.ac): ... to here.
13572         (Depends-on): Update conditions.
13573
13574 2011-05-22  Bruno Haible  <bruno@clisp.org>
13575
13576         strtoumax: Move AC_LIBOBJ invocations to module description.
13577         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13579         from here...
13580         * modules/strtoumax (configure.ac): ... to here.
13581
13582 2011-05-22  Bruno Haible  <bruno@clisp.org>
13583
13584         strtoimax: Move AC_LIBOBJ invocations to module description.
13585         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13587         from here...
13588         * modules/strtoimax (configure.ac): ... to here.
13589
13590 2011-05-22  Bruno Haible  <bruno@clisp.org>
13591
13592         strtoull: Move AC_LIBOBJ invocations to module description.
13593         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13594         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13595         from here...
13596         * modules/strtoull (configure.ac): ... to here.
13597
13598 2011-05-22  Bruno Haible  <bruno@clisp.org>
13599
13600         strtoll: Move AC_LIBOBJ invocations to module description.
13601         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13602         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13603         here...
13604         * modules/strtoll (configure.ac): ... to here.
13605
13606 2011-05-22  Bruno Haible  <bruno@clisp.org>
13607
13608         strtoul: Move AC_LIBOBJ invocations to module description.
13609         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13610         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13611         * modules/strtoul (configure.ac): ... to here.
13612
13613 2011-05-22  Bruno Haible  <bruno@clisp.org>
13614
13615         strtol: Move AC_LIBOBJ invocations to module description.
13616         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13617         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13618         * modules/strtol (configure.ac): ... to here.
13619
13620 2011-05-22  Bruno Haible  <bruno@clisp.org>
13621
13622         strtod: Move AC_LIBOBJ invocations to module description.
13623         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13624         invocations from here...
13625         * modules/strtod (configure.ac): ... to here.
13626
13627 2011-05-22  Bruno Haible  <bruno@clisp.org>
13628
13629         strstr*: Move AC_LIBOBJ invocations to module description.
13630         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13631         invocations from here...
13632         * modules/strstr-simple (configure.ac): ... to here.
13633         * modules/strstr (configure.ac): ... and here.
13634
13635 2011-05-22  Bruno Haible  <bruno@clisp.org>
13636
13637         strsignal: Move AC_LIBOBJ invocations to module description.
13638         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13639         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13640         * modules/strsignal (configure.ac): ... to here.
13641         (Depends-on): Update conditions.
13642
13643 2011-05-22  Bruno Haible  <bruno@clisp.org>
13644
13645         strsep: Move AC_LIBOBJ invocations to module description.
13646         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13648         here...
13649         * modules/strsep (configure.ac): ... to here.
13650
13651 2011-05-22  Bruno Haible  <bruno@clisp.org>
13652
13653         strptime: Move AC_LIBOBJ invocations to module description.
13654         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13655         gl_PREREQ_STRPTIME invocations from here...
13656         * modules/strptime (configure.ac): ... to here.
13657
13658 2011-05-22  Bruno Haible  <bruno@clisp.org>
13659
13660         strpbrk: Move AC_LIBOBJ invocations to module description.
13661         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13663         here...
13664         * modules/strpbrk (configure.ac): ... to here.
13665
13666 2011-05-22  Bruno Haible  <bruno@clisp.org>
13667
13668         strnlen: Move AC_LIBOBJ invocations to module description.
13669         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13670         invocations from here...
13671         * modules/strnlen (configure.ac): ... to here.
13672
13673 2011-05-22  Bruno Haible  <bruno@clisp.org>
13674
13675         strndup: Move AC_LIBOBJ invocations to module description.
13676         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13677         invocations from here...
13678         * modules/strndup (configure.ac): ... to here.
13679         (Depends-on): Update conditions.
13680
13681 2011-05-22  Bruno Haible  <bruno@clisp.org>
13682
13683         strncat: Move AC_LIBOBJ invocations to module description.
13684         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13685         invocations from here...
13686         * modules/strncat (configure.ac): ... to here.
13687
13688 2011-05-22  Bruno Haible  <bruno@clisp.org>
13689
13690         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13691         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13692         invocations from here...
13693         * modules/strdup (configure.ac): ... to here.
13694         * modules/strdup-posix (configure.ac): ... and here.
13695
13696 2011-05-22  Bruno Haible  <bruno@clisp.org>
13697
13698         strcspn: Move AC_LIBOBJ invocations to module description.
13699         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13700         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13701         here...
13702         * modules/strcspn (configure.ac): ... to here.
13703
13704 2011-05-22  Bruno Haible  <bruno@clisp.org>
13705
13706         strchrnul: Move AC_LIBOBJ invocations to module description.
13707         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13708         gl_PREREQ_STRCHRNUL invocations from here...
13709         * modules/strchrnul (configure.ac): ... to here.
13710
13711 2011-05-22  Bruno Haible  <bruno@clisp.org>
13712
13713         strcasestr*: Move AC_LIBOBJ invocations to module description.
13714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13715         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13716         * modules/strcasestr-simple (configure.ac): ... to here.
13717         * modules/strcasestr (configure.ac): ... and here.
13718
13719 2011-05-22  Bruno Haible  <bruno@clisp.org>
13720
13721         strcase: Move AC_LIBOBJ invocations to module description.
13722         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13723         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13724         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13725         gl_PREREQ_STRNCASECMP invocations from here...
13726         * modules/strcase (configure.ac): ... to here.
13727
13728 2011-05-22  Bruno Haible  <bruno@clisp.org>
13729
13730         stpncpy: Move AC_LIBOBJ invocations to module description.
13731         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13732         here...
13733         * modules/stpncpy (configure.ac): ... to here.
13734
13735 2011-05-22  Bruno Haible  <bruno@clisp.org>
13736
13737         stpcpy: Move AC_LIBOBJ invocations to module description.
13738         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13739         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13740         here...
13741         * modules/stpcpy (configure.ac): ... to here.
13742
13743 2011-05-21  Bruno Haible  <bruno@clisp.org>
13744
13745         stat: Move AC_LIBOBJ invocations to module description.
13746         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13747         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13748         here...
13749         * modules/stat (configure.ac): ... to here.
13750
13751 2011-05-21  Bruno Haible  <bruno@clisp.org>
13752
13753         sleep: Move AC_LIBOBJ invocations to module description.
13754         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13755         * modules/sleep (configure.ac): ... to here.
13756
13757 2011-05-21  Bruno Haible  <bruno@clisp.org>
13758
13759         signbit: Move AC_LIBOBJ invocations to module description.
13760         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13761         * modules/signbit (configure.ac): ... to here.
13762
13763 2011-05-21  Bruno Haible  <bruno@clisp.org>
13764
13765         sigprocmask: Move AC_LIBOBJ invocations to module description.
13766         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13767         gl_PREREQ_SIGPROMASK invocations from here...
13768         * modules/sigprocmask (configure.ac): ... to here.
13769
13770 2011-05-21  Bruno Haible  <bruno@clisp.org>
13771
13772         sigaction: Move AC_LIBOBJ invocations to module description.
13773         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13774         gl_PREREQ_SIGACTION invocations from here...
13775         * modules/sigaction (configure.ac): ... to here.
13776
13777 2011-05-21  Bruno Haible  <bruno@clisp.org>
13778
13779         sig2str: Move AC_LIBOBJ invocations to module description.
13780         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13781         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13782         here...
13783         * modules/sig2str (configure.ac): ... to here.
13784
13785 2011-05-21  Bruno Haible  <bruno@clisp.org>
13786
13787         setlocale: Move AC_LIBOBJ invocations to module description.
13788         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13789         gl_PREREQ_SETLOCALE invocations from here...
13790         * modules/setlocale (configure.ac): ... to here.
13791
13792 2011-05-21  Bruno Haible  <bruno@clisp.org>
13793
13794         unsetenv: Move AC_LIBOBJ invocations to module description.
13795         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13796         and gl_PREREQ_UNSETENV invocations from here...
13797         * modules/unsetenv (configure.ac): ... to here.
13798         (Depends-on): Update.
13799
13800 2011-05-21  Bruno Haible  <bruno@clisp.org>
13801
13802         setenv: Move AC_LIBOBJ invocations to module description.
13803         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13804         here...
13805         * modules/setenv (configure.ac): ... to here.
13806
13807 2011-05-21  Bruno Haible  <bruno@clisp.org>
13808
13809         selinux-h: Move AC_LIBOBJ invocations to module description.
13810         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13811         AC_LIBOBJ invocation from here...
13812         * modules/selinux-h (configure.ac): ... to here.
13813
13814 2011-05-21  Bruno Haible  <bruno@clisp.org>
13815
13816         select: Respect rules for use of AC_LIBOBJ.
13817         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13818         here...
13819         * modules/select (configure.ac): ... to here.
13820
13821 2011-05-21  Bruno Haible  <bruno@clisp.org>
13822
13823         scandir: Move AC_LIBOBJ invocations to module description.
13824         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13825         invocations from here...
13826         * modules/scandir (configure.ac): ... to here.
13827
13828 2011-05-21  Bruno Haible  <bruno@clisp.org>
13829
13830         rpmatch: Move AC_LIBOBJ invocations to module description.
13831         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13833         here...
13834         * modules/rpmatch (configure.ac): ... to here.
13835
13836 2011-05-21  Bruno Haible  <bruno@clisp.org>
13837
13838         rmdir: Respect rules for use of AC_LIBOBJ.
13839         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13840         * modules/rmdir (configure.ac): ... to here.
13841
13842 2011-05-21  Bruno Haible  <bruno@clisp.org>
13843
13844         renameat: Move AC_LIBOBJ invocations to module description.
13845         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13846         here...
13847         * modules/renameat (configure.ac): ... to here.
13848
13849 2011-05-21  Bruno Haible  <bruno@clisp.org>
13850
13851         rename: Respect rules for use of AC_LIBOBJ.
13852         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13853         here...
13854         * modules/rename (configure.ac): ... to here.
13855
13856 2011-05-21  Bruno Haible  <bruno@clisp.org>
13857
13858         remove: Move AC_LIBOBJ invocations to module description.
13859         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13860         here...
13861         * modules/remove (configure.ac): ... to here.
13862
13863 2011-05-21  Bruno Haible  <bruno@clisp.org>
13864
13865         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13866         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13867         macro.
13868         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13869         * modules/relocatable-lib (configure.ac): ... to here.
13870         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13871         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13872
13873 2011-05-21  Bruno Haible  <bruno@clisp.org>
13874
13875         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13876         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13877         here...
13878         * modules/relocatable-prog (configure.ac): ... to here.
13879
13880 2011-05-21  Bruno Haible  <bruno@clisp.org>
13881
13882         regex: Move AC_LIBOBJ invocations to module description.
13883         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13884         invocations from here...
13885         * modules/regex (configure.ac): ... to here.
13886
13887 2011-05-21  Bruno Haible  <bruno@clisp.org>
13888
13889         realloc-*: Move AC_LIBOBJ invocations to module description.
13890         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13891         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13892         AC_LIBOBJ invocations from here...
13893         * modules/realloc-gnu (configure.ac): ... to here.
13894         * modules/realloc-posix (configure.ac): ... and here.
13895
13896 2011-05-21  Bruno Haible  <bruno@clisp.org>
13897
13898         readutmp: Move AC_LIBOBJ invocations to module description.
13899         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13900         * modules/readutmp (configure.ac): ... to here.
13901
13902 2011-05-21  Bruno Haible  <bruno@clisp.org>
13903
13904         readlinkat: Move AC_LIBOBJ invocations to module description.
13905         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13906         here...
13907         * modules/readlinkat (configure.ac): ... to here.
13908
13909 2011-05-21  Bruno Haible  <bruno@clisp.org>
13910
13911         readlink: Move AC_LIBOBJ invocations to module description.
13912         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13913         gl_PREREQ_READLINK invocations from here...
13914         * modules/readlink (configure.ac): ... to here.
13915
13916 2011-05-21  Bruno Haible  <bruno@clisp.org>
13917
13918         readline: Move AC_LIBOBJ invocations to module description.
13919         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13920         gl_PREREQ_READLINE invocations from here...
13921         * modules/readline (configure.ac): ... to here.
13922
13923 2011-05-21  Bruno Haible  <bruno@clisp.org>
13924
13925         read: Move AC_LIBOBJ invocations to module description.
13926         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13927         * modules/read (configure.ac): ... to here.
13928
13929 2011-05-21  Bruno Haible  <bruno@clisp.org>
13930
13931         rawmemchr: Move AC_LIBOBJ invocations to module description.
13932         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13934         from here...
13935         * modules/rawmemchr (configure.ac): ... to here.
13936
13937 2011-05-21  Bruno Haible  <bruno@clisp.org>
13938
13939         random_r: Move AC_LIBOBJ invocations to module description.
13940         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13941         gl_PREREQ_RANDOM_R invocations from here...
13942         * modules/random_r (configure.ac): ... to here.
13943
13944 2011-05-21  Bruno Haible  <bruno@clisp.org>
13945
13946         pwrite: Move AC_LIBOBJ invocations to module description.
13947         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13948         * modules/pwrite (configure.ac): ... to here.
13949
13950 2011-05-21  Bruno Haible  <bruno@clisp.org>
13951
13952         putenv: Move AC_LIBOBJ invocations to module description.
13953         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13954         * modules/putenv (configure.ac): ... to here.
13955
13956 2011-05-21  Bruno Haible  <bruno@clisp.org>
13957
13958         login_tty: Move AC_LIBOBJ invocations to module description.
13959         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13960         * modules/login_tty (configure.ac): ... to here.
13961
13962 2011-05-21  Bruno Haible  <bruno@clisp.org>
13963
13964         openpty: Move AC_LIBOBJ invocations to module description.
13965         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13966         * modules/openpty (configure.ac): ... to here.
13967
13968 2011-05-21  Bruno Haible  <bruno@clisp.org>
13969
13970         forkpty: Move AC_LIBOBJ invocations to module description.
13971         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13972         * modules/forkpty (configure.ac): ... to here.
13973
13974 2011-05-21  Bruno Haible  <bruno@clisp.org>
13975
13976         ptsname: Move AC_LIBOBJ invocations to module description.
13977         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13978         invocations from here...
13979         * modules/ptsname (configure.ac): ... to here.
13980
13981 2011-05-21  Bruno Haible  <bruno@clisp.org>
13982
13983         pread: Move AC_LIBOBJ invocations to module description.
13984         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13985         * modules/pread (configure.ac): ... to here.
13986
13987 2011-05-21  Bruno Haible  <bruno@clisp.org>
13988
13989         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13990         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13991         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13992         * modules/posix_spawn (configure.ac): ... to here.
13993         * modules/posix_spawnp (configure.ac): ... and here.
13994
13995 2011-05-21  Bruno Haible  <bruno@clisp.org>
13996
13997         popen: Move AC_LIBOBJ invocations to module description.
13998         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13999         invocations from here...
14000         * modules/popen (configure.ac): ... to here.
14001
14002 2011-05-21  Bruno Haible  <bruno@clisp.org>
14003
14004         poll: Move AC_LIBOBJ invocations to module description.
14005         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14006         invocations from here...
14007         * modules/poll (configure.ac): ... to here.
14008
14009 2011-05-21  Bruno Haible  <bruno@clisp.org>
14010
14011         pipe-posix: Move AC_LIBOBJ invocations to module description.
14012         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14013         * modules/pipe-posix (configure.ac): ... to here.
14014
14015 2011-05-21  Bruno Haible  <bruno@clisp.org>
14016
14017         openat: Respect rules for use of AC_LIBOBJ.
14018         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14019         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14020         * modules/openat (configure.ac): ... to here.
14021
14022 2011-05-21  Bruno Haible  <bruno@clisp.org>
14023
14024         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14025         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14026         invocation from here...
14027         * modules/obstack-printf (configure.ac): ... to here.
14028         * modules/obstack-printf-posix (configure.ac): ... and here.
14029
14030 2011-05-21  Bruno Haible  <bruno@clisp.org>
14031
14032         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14033         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14034         from here...
14035         * modules/nl_langinfo (configure.ac): ... to here.
14036
14037 2011-05-21  Bruno Haible  <bruno@clisp.org>
14038
14039         nanosleep: Move AC_LIBOBJ invocations to module description.
14040         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14041         gl_PREREQ_NANOSLEEP invocations from here...
14042         * modules/nanosleep (configure.ac): ... to here.
14043
14044 2011-05-21  Bruno Haible  <bruno@clisp.org>
14045
14046         mountlist: Move AC_LIBOBJ invocations to module description.
14047         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14048         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14049         * modules/mountlist (configure.ac): ... to here.
14050
14051 2011-05-21  Bruno Haible  <bruno@clisp.org>
14052
14053         mktime: Respect rules for use of AC_LIBOBJ.
14054         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14055         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14056         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14057         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14058         * modules/mktime (configure.ac): ... to here.
14059         * modules/mktime-internal (configure.ac): ... and here.
14060         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14061
14062 2011-05-21  Bruno Haible  <bruno@clisp.org>
14063
14064         mkstemps: Move AC_LIBOBJ invocations to module description.
14065         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14066         here...
14067         * modules/mkstemps (configure.ac): ... to here.
14068
14069 2011-05-21  Bruno Haible  <bruno@clisp.org>
14070
14071         mkstemp: Move AC_LIBOBJ invocations to module description.
14072         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14073         gl_PREREQ_MKSTEMP invocations from here...
14074         * modules/mkstemp (configure.ac): ... to here.
14075
14076 2011-05-21  Bruno Haible  <bruno@clisp.org>
14077
14078         mkostemps: Move AC_LIBOBJ invocations to module description.
14079         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14080         here...
14081         * modules/mkostemps (configure.ac): ... to here.
14082
14083 2011-05-21  Bruno Haible  <bruno@clisp.org>
14084
14085         mkostemp: Move AC_LIBOBJ invocations to module description.
14086         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14087         gl_PREREQ_MKOSTEMP invocations from here...
14088         * modules/mkostemp (configure.ac): ... to here.
14089
14090 2011-05-21  Bruno Haible  <bruno@clisp.org>
14091
14092         mknod: Move AC_LIBOBJ invocations to module description.
14093         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14094         * modules/mknod (configure.ac): ... to here.
14095
14096 2011-05-21  Bruno Haible  <bruno@clisp.org>
14097
14098         mkfifoat: Move AC_LIBOBJ invocations to module description.
14099         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14100         here...
14101         * modules/mkfifoat (configure.ac): ... to here.
14102
14103 2011-05-21  Bruno Haible  <bruno@clisp.org>
14104
14105         mkfifo: Respect rules for use of AC_LIBOBJ.
14106         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14107         here...
14108         * modules/mkfifo (configure.ac): ... to here.
14109
14110 2011-05-21  Bruno Haible  <bruno@clisp.org>
14111
14112         mkdtemp: Move AC_LIBOBJ invocations to module description.
14113         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14114         invocations from here...
14115         * modules/mkdtemp (configure.ac): ... to here.
14116
14117 2011-05-21  Bruno Haible  <bruno@clisp.org>
14118
14119         mkdir: Move AC_LIBOBJ invocations to module description.
14120         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14121         * modules/mkdir (configure.ac): ... to here.
14122
14123 2011-05-21  Bruno Haible  <bruno@clisp.org>
14124
14125         memset: Move AC_LIBOBJ invocations to module description.
14126         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14128         here...
14129         * modules/memset (configure.ac): ... to here.
14130
14131 2011-05-21  Bruno Haible  <bruno@clisp.org>
14132
14133         memrchr: Move AC_LIBOBJ invocations to module description.
14134         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14136         here...
14137         * modules/memrchr (configure.ac): ... to here.
14138
14139 2011-05-21  Bruno Haible  <bruno@clisp.org>
14140
14141         mempcpy: Move AC_LIBOBJ invocations to module description.
14142         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14144         here...
14145         * modules/mempcpy (configure.ac): ... to here.
14146
14147 2011-05-21  Bruno Haible  <bruno@clisp.org>
14148
14149         memmove: Move AC_LIBOBJ invocations to module description.
14150         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14152         here...
14153         * modules/memmove (configure.ac): ... to here.
14154
14155 2011-05-21  Bruno Haible  <bruno@clisp.org>
14156
14157         memmem*: Move AC_LIBOBJ invocations to module description.
14158         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14159         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14160         here...
14161         (gl_FUNC_MEMMEM): ... and here...
14162         * modules/memmem-simple (configure.ac): ... to here.
14163         * modules/memmem (configure.ac): ... and here.
14164
14165 2011-05-21  Bruno Haible  <bruno@clisp.org>
14166
14167         memcpy: Move AC_LIBOBJ invocations to module description.
14168         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14169         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14170         here...
14171         * modules/memcpy (configure.ac): ... to here.
14172
14173 2011-05-21  Bruno Haible  <bruno@clisp.org>
14174
14175         memcmp: Simplify autoconf macro.
14176         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14177         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14178         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14179
14180 2011-05-21  Bruno Haible  <bruno@clisp.org>
14181
14182         memcmp: Move AC_LIBOBJ invocations to module description.
14183         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14184         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14185         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14186         * modules/memcmp (configure.ac): ... to here.
14187         (Depends-on): Update conditions.
14188
14189 2011-05-21  Bruno Haible  <bruno@clisp.org>
14190
14191         memchr: Respect rules for use of AC_LIBOBJ.
14192         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14193         invocations from here...
14194         * modules/memchr (configure.ac): ... to here.
14195
14196 2011-05-21  Bruno Haible  <bruno@clisp.org>
14197
14198         mbtowc: Move AC_LIBOBJ invocations to module description.
14199         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14200         invocations from here...
14201         * modules/mbtowc (configure.ac): ... to here.
14202
14203 2011-05-21  Bruno Haible  <bruno@clisp.org>
14204
14205         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14206         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14207         gl_PREREQ_MBSRTOWCS invocations from here...
14208         * modules/mbsrtowcs (configure.ac): ... to here.
14209
14210 2011-05-21  Bruno Haible  <bruno@clisp.org>
14211
14212         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14213         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14214         gl_PREREQ_MBSNRTOWCS invocations from here...
14215         * modules/mbsnrtowcs (configure.ac): ... to here.
14216
14217 2011-05-21  Bruno Haible  <bruno@clisp.org>
14218
14219         mbsinit: Move AC_LIBOBJ invocations to module description.
14220         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14221         invocations from here...
14222         * modules/mbsinit (configure.ac): ... to here.
14223
14224 2011-05-21  Bruno Haible  <bruno@clisp.org>
14225
14226         mbrlen: Move AC_LIBOBJ invocations to module description.
14227         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14228         invocations from here...
14229         * modules/mbrlen (configure.ac): ... to here.
14230
14231 2011-05-21  Bruno Haible  <bruno@clisp.org>
14232
14233         mbrtowc: Respect rules for use of AC_LIBOBJ.
14234         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14235         invocations from here...
14236         * modules/mbrtowc (configure.ac): ... to here.
14237
14238 2011-05-21  Bruno Haible  <bruno@clisp.org>
14239
14240         malloc-*: Move AC_LIBOBJ invocations to module description.
14241         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14242         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14243         AC_LIBOBJ invocations from here...
14244         * modules/malloc-gnu (configure.ac): ... to here.
14245         * modules/malloc-posix (configure.ac): ... and here.
14246
14247 2011-05-21  Bruno Haible  <bruno@clisp.org>
14248
14249         lstat, openat: Respect rules for use of AC_LIBOBJ.
14250         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14251         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14252         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14253         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14254         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14255         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14256         here.
14257         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14258
14259 2011-05-21  Bruno Haible  <bruno@clisp.org>
14260
14261         lseek: Move AC_LIBOBJ invocations to module description.
14262         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14263         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14264         * modules/lseek (configure.ac): ... to here.
14265
14266 2011-05-21  Bruno Haible  <bruno@clisp.org>
14267
14268         linkat: Move AC_LIBOBJ invocations to module description.
14269         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14270         here...
14271         * modules/linkat (configure.ac): ... to here.
14272
14273 2011-05-21  Bruno Haible  <bruno@clisp.org>
14274
14275         link: Respect rules for use of AC_LIBOBJ.
14276         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14277         * modules/link (configure.ac): ... to here.
14278
14279 2011-05-21  Bruno Haible  <bruno@clisp.org>
14280
14281         lchown: Move AC_LIBOBJ invocations to module description.
14282         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14283         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14284         * modules/lchown (configure.ac): ... to here.
14285
14286 2011-05-21  Bruno Haible  <bruno@clisp.org>
14287
14288         iswctype: Move AC_LIBOBJ invocations to module description.
14289         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14290         here...
14291         * modules/iswctype (configure.ac): ... to here.
14292
14293 2011-05-21  Bruno Haible  <bruno@clisp.org>
14294
14295         iswblank: Move AC_LIBOBJ invocations to module description.
14296         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14297         here...
14298         * modules/iswblank (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         atanl: Move AC_LIBOBJ invocations to module description.
14303         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14304         * modules/atanl (configure.ac): ... to here.
14305
14306 2011-05-21  Bruno Haible  <bruno@clisp.org>
14307
14308         acosl: Move AC_LIBOBJ invocations to module description.
14309         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14310         * modules/acosl (configure.ac): ... to here.
14311
14312 2011-05-21  Bruno Haible  <bruno@clisp.org>
14313
14314         asinl: Respect rules for use of AC_LIBOBJ.
14315         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14316         * modules/asinl (configure.ac): ... to here.
14317
14318 2011-05-21  Bruno Haible  <bruno@clisp.org>
14319
14320         tanl: Move AC_LIBOBJ invocations to module description.
14321         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14322         * modules/tanl (configure.ac): ... to here.
14323
14324 2011-05-21  Bruno Haible  <bruno@clisp.org>
14325
14326         cosl: Move AC_LIBOBJ invocations to module description.
14327         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14328         * modules/cosl (configure.ac): ... to here.
14329
14330 2011-05-21  Bruno Haible  <bruno@clisp.org>
14331
14332         sinl: Move AC_LIBOBJ invocations to module description.
14333         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14334         * modules/sinl (configure.ac): ... to here.
14335
14336 2011-05-21  Bruno Haible  <bruno@clisp.org>
14337
14338         logl: Move AC_LIBOBJ invocations to module description.
14339         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14340         * modules/logl (configure.ac): ... to here.
14341
14342 2011-05-21  Bruno Haible  <bruno@clisp.org>
14343
14344         expl: Move AC_LIBOBJ invocations to module description.
14345         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14346         * modules/expl (configure.ac): ... to here.
14347
14348 2011-05-21  Bruno Haible  <bruno@clisp.org>
14349
14350         roundl: Move AC_LIBOBJ invocations to module description.
14351         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14352         * modules/roundl (configure.ac): ... to here.
14353
14354 2011-05-21  Bruno Haible  <bruno@clisp.org>
14355
14356         round: Move AC_LIBOBJ invocations to module description.
14357         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14358         * modules/round (configure.ac): ... to here.
14359
14360 2011-05-21  Bruno Haible  <bruno@clisp.org>
14361
14362         roundf: Move AC_LIBOBJ invocations to module description.
14363         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14364         * modules/roundf (configure.ac): ... to here.
14365
14366 2011-05-21  Bruno Haible  <bruno@clisp.org>
14367
14368         truncl: Move AC_LIBOBJ invocations to module description.
14369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14370         * modules/truncl (configure.ac): ... to here.
14371
14372 2011-05-21  Bruno Haible  <bruno@clisp.org>
14373
14374         trunc: Move AC_LIBOBJ invocations to module description.
14375         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14376         * modules/trunc (configure.ac): ... to here.
14377
14378 2011-05-21  Bruno Haible  <bruno@clisp.org>
14379
14380         truncf: Move AC_LIBOBJ invocations to module description.
14381         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14382         * modules/truncf (configure.ac): ... to here.
14383
14384 2011-05-21  Bruno Haible  <bruno@clisp.org>
14385
14386         ceill: Move AC_LIBOBJ invocations to module description.
14387         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14388         * modules/ceill (configure.ac): ... to here.
14389
14390 2011-05-21  Bruno Haible  <bruno@clisp.org>
14391
14392         ceil: Move AC_LIBOBJ invocations to module description.
14393         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14394         * modules/ceil (configure.ac): ... to here.
14395
14396 2011-05-21  Bruno Haible  <bruno@clisp.org>
14397
14398         ceilf: Move AC_LIBOBJ invocations to module description.
14399         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14400         * modules/ceilf (configure.ac): ... to here.
14401
14402 2011-05-21  Bruno Haible  <bruno@clisp.org>
14403
14404         floorl: Respect rules for use of AC_LIBOBJ.
14405         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14406         * modules/floorl (configure.ac): ... to here.
14407
14408 2011-05-21  Bruno Haible  <bruno@clisp.org>
14409
14410         floor: Respect rules for use of AC_LIBOBJ.
14411         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14412         * modules/floor (configure.ac): ... to here.
14413
14414 2011-05-21  Bruno Haible  <bruno@clisp.org>
14415
14416         floorf: Move AC_LIBOBJ invocations to module description.
14417         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14418         * modules/floorf (configure.ac): ... to here.
14419
14420 2011-05-20  Bruno Haible  <bruno@clisp.org>
14421
14422         sqrtl: Respect rules for use of AC_LIBOBJ.
14423         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14424         * modules/sqrtl (configure.ac): ... to here.
14425
14426 2011-05-20  Bruno Haible  <bruno@clisp.org>
14427
14428         ldexpl: Respect rules for use of AC_LIBOBJ.
14429         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14430         * modules/ldexpl (configure.ac): ... to here.
14431
14432 2011-05-20  Bruno Haible  <bruno@clisp.org>
14433
14434         frexpl*: Respect rules for use of AC_LIBOBJ.
14435         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14436         invocation from here...
14437         * modules/frexpl (configure.ac): ... to here.
14438         * modules/frexpl-nolibm (configure.ac): ... and here.
14439
14440 2011-05-20  Bruno Haible  <bruno@clisp.org>
14441
14442         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14443         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14444         invocation from here...
14445         * modules/frexp (configure.ac): ... to here.
14446         * modules/frexp-nolibm (configure.ac): ... and here.
14447
14448 2011-05-20  Bruno Haible  <bruno@clisp.org>
14449
14450         isnan: Respect rules for use of AC_LIBOBJ.
14451         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14452         invocations here.
14453         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14454         REPLACE_ISNAN.
14455         * modules/isnand (configure.ac): Likewise.
14456         * modules/isnanl (configure.ac): Likewise.
14457
14458 2011-05-20  Bruno Haible  <bruno@clisp.org>
14459
14460         isnanl*: Respect rules for use of AC_LIBOBJ.
14461         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14462         invocation from here...
14463         * modules/isnanl (configure.ac): ... to here.
14464         * modules/isnanl-nolibm (configure.ac): ... and here.
14465
14466 2011-05-20  Bruno Haible  <bruno@clisp.org>
14467
14468         isnand*: Move AC_LIBOBJ invocations to module description.
14469         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14470         invocation from here...
14471         * modules/isnand (configure.ac): ... to here.
14472         * modules/isnand-nolibm (configure.ac): ... and here.
14473
14474 2011-05-20  Bruno Haible  <bruno@clisp.org>
14475
14476         isnanf*: Move AC_LIBOBJ invocations to module description.
14477         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14478         invocation from here...
14479         * modules/isnanf (configure.ac): ... to here.
14480         * modules/isnanf-nolibm (configure.ac): ... and here.
14481
14482 2011-05-20  Bruno Haible  <bruno@clisp.org>
14483
14484         isnan*: Separate the AC_LIBOBJ invocations.
14485         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14486         AC_LIBOBJ invocation.
14487         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14488         here.
14489         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14490         AC_LIBOBJ invocation.
14491         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14492         here.
14493         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14494         AC_LIBOBJ invocation.
14495         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14496         here.
14497         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14498
14499 2011-05-08  Bruno Haible  <bruno@clisp.org>
14500
14501         isinf: Move AC_LIBOBJ invocations to module description.
14502         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14503         * modules/isinf (configure.ac): ... to here.
14504
14505 2011-05-08  Bruno Haible  <bruno@clisp.org>
14506
14507         isfinite: Move AC_LIBOBJ invocations to module description.
14508         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14509         * modules/isfinite (configure.ac): ... to here.
14510
14511 2011-05-08  Bruno Haible  <bruno@clisp.org>
14512
14513         isblank: Move AC_LIBOBJ invocations to module description.
14514         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14515         here...
14516         * modules/isblank (configure.ac): ... to here.
14517
14518 2011-05-08  Bruno Haible  <bruno@clisp.org>
14519
14520         isapipe: Move AC_LIBOBJ invocations to module description.
14521         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14522         gl_PREREQ_ISAPIPE invocations from here...
14523         * modules/isapipe (configure.ac): ... to here.
14524         (Depends-on): Update condition.
14525
14526 2011-05-08  Bruno Haible  <bruno@clisp.org>
14527
14528         ioctl: Move AC_LIBOBJ invocations to module description.
14529         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14530         invocations from here...
14531         * modules/ioctl (configure.ac): ... to here.
14532         (Depends-on): Update condition.
14533
14534 2011-05-08  Bruno Haible  <bruno@clisp.org>
14535
14536         imaxdiv: Move AC_LIBOBJ invocations to module description.
14537         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14538         invocations from here...
14539         * modules/imaxdiv (configure.ac): ... to here.
14540
14541 2011-05-08  Bruno Haible  <bruno@clisp.org>
14542
14543         imaxabs: Move AC_LIBOBJ invocations to module description.
14544         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14545         invocations from here...
14546         * modules/imaxabs (configure.ac): ... to here.
14547
14548 2011-05-08  Bruno Haible  <bruno@clisp.org>
14549
14550         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14551         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14552         AC_LIBOBJ invocations from here...
14553         * modules/getaddrinfo (configure.ac): ... to here.
14554         (Depends-on): Add conditions.
14555
14556 2011-05-08  Bruno Haible  <bruno@clisp.org>
14557
14558         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14559         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14560         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14561         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14562         (gl_PREREQ_INET_PTON): ... from here.
14563         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14564         gl_PREREQ_INET_PTON here.
14565         (Depends-on): Update condition.
14566
14567 2011-05-08  Bruno Haible  <bruno@clisp.org>
14568
14569         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14570         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14571         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14572         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14573         (gl_PREREQ_INET_NTOP): ... from here.
14574         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14575         gl_PREREQ_INET_NTOP here.
14576         (Depends-on): Update condition.
14577
14578 2011-05-08  Bruno Haible  <bruno@clisp.org>
14579
14580         iconv_open: Move AC_LIBOBJ invocations to module description.
14581         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14582         AC_LIBOBJ invocations from here...
14583         * modules/iconv_open (configure.ac): ... to here.
14584
14585 2011-05-08  Bruno Haible  <bruno@clisp.org>
14586
14587         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14588         If module 'iconv_open' is among the main modules and module
14589         'iconv_open-utf' is among the tests dependencies, then
14590         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14591         return the special iconv_t values. Therefore iconv() and iconv_close()
14592         must support these special iconv_t values, already in lib, not only in
14593         tests.
14594         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14596         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14597         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14598         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14599         (Depends-on): Add the dependencies of iconv_open-utf.
14600         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14601         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14602         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14603
14604 2011-05-08  Bruno Haible  <bruno@clisp.org>
14605
14606         group-member: Move AC_LIBOBJ invocations to module description.
14607         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14608         gl_PREREQ_GROUP_MEMBER invocations from here...
14609         * modules/group-member (configure.ac): ... to here.
14610
14611 2011-05-08  Bruno Haible  <bruno@clisp.org>
14612
14613         grantpt: Move AC_LIBOBJ invocations to module description.
14614         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14615         invocations from here...
14616         * modules/grantpt (configure.ac): ... to here.
14617
14618 2011-05-08  Bruno Haible  <bruno@clisp.org>
14619
14620         glob: Move AC_LIBOBJ invocations to module description.
14621         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14622         from here...
14623         * modules/glob (configure.ac): ... to here.
14624
14625 2011-05-08  Bruno Haible  <bruno@clisp.org>
14626
14627         getusershell: Move AC_LIBOBJ invocations to module description.
14628         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14629         Move AC_LIBOBJ invocation from here...
14630         * modules/getusershell (configure.ac): ... to here.
14631         (Depends-on): Update condition.
14632
14633 2011-05-08  Bruno Haible  <bruno@clisp.org>
14634
14635         gettimeofday: Move AC_LIBOBJ invocations to module description.
14636         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14637         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14638         gl_PREREQ_GETTIMEOFDAY invocations from here...
14639         * modules/gettimeofday (configure.ac): ... to here.
14640
14641 2011-05-08  Bruno Haible  <bruno@clisp.org>
14642
14643         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14644         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14645         just gl_FUNC_TZSET.
14646         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14647         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14648         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14649         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14650
14651 2011-05-08  Bruno Haible  <bruno@clisp.org>
14652
14653         getsubopt: Move AC_LIBOBJ invocations to module description.
14654         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14655         gl_PREREQ_GETSUBOPT invocations from here...
14656         * modules/getsubopt (configure.ac): ... to here.
14657
14658 2011-05-08  Bruno Haible  <bruno@clisp.org>
14659
14660         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14661         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14662         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14663         * modules/getpass-gnu (configure.ac): ... to here.
14664
14665 2011-05-08  Bruno Haible  <bruno@clisp.org>
14666
14667         getpass: Move AC_LIBOBJ invocations to module description.
14668         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14669         gl_PREREQ_GETPASS invocations from here...
14670         * modules/getpass (configure.ac): ... to here.
14671
14672 2011-05-08  Bruno Haible  <bruno@clisp.org>
14673
14674         getpagesize: Move AC_LIBOBJ invocations to module description.
14675         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14676         from here...
14677         * modules/getpagesize (configure.ac): ... to here.
14678
14679 2011-05-08  Bruno Haible  <bruno@clisp.org>
14680
14681         getopt: Move AC_LIBOBJ invocations to module description.
14682         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14683         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14684         invocations from here...
14685         * modules/getopt-gnu (configure.ac): ... to here.
14686         * modules/getopt-posix (configure.ac): ... and here.
14687         (Depends-on): Update condition.
14688
14689 2011-05-08  Bruno Haible  <bruno@clisp.org>
14690
14691         getopt, argp: Respect rules for use of AC_LIBOBJ.
14692         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14693         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14694         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14695         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14696
14697 2011-05-08  Bruno Haible  <bruno@clisp.org>
14698
14699         getlogin_r: Move AC_LIBOBJ invocations to module description.
14700         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14701         gl_PREREQ_GETLOGIN_R invocations from here...
14702         * modules/getlogin_r (configure.ac): ... to here.
14703
14704 2011-05-08  Bruno Haible  <bruno@clisp.org>
14705
14706         getlogin: Move AC_LIBOBJ invocations to module description.
14707         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14708         here...
14709         * modules/getlogin (configure.ac): ... to here.
14710
14711 2011-05-08  Bruno Haible  <bruno@clisp.org>
14712
14713         getloadavg: Move AC_LIBOBJ invocations to module description.
14714         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14715         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14716         * modules/getloadavg (configure.ac): ... to here.
14717
14718 2011-05-08  Bruno Haible  <bruno@clisp.org>
14719
14720         gethrxtime: Move AC_LIBOBJ invocations to module description.
14721         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14722         LIB_GETHRXTIME from here...
14723         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14724         invocations from here...
14725         * modules/gethrxtime (configure.ac): ... to here.
14726
14727 2011-05-08  Bruno Haible  <bruno@clisp.org>
14728
14729         gethostname: Move AC_LIBOBJ invocations to module description.
14730         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14731         gl_PREREQ_GETHOSTNAME invocations from here...
14732         * modules/gethostname (configure.ac): ... to here.
14733
14734 2011-05-08  Bruno Haible  <bruno@clisp.org>
14735
14736         getgroups: Move AC_LIBOBJ invocations to module description.
14737         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14738         here...
14739         * modules/getgroups (configure.ac): ... to here.
14740
14741 2011-05-08  Bruno Haible  <bruno@clisp.org>
14742
14743         getdtablesize: Move AC_LIBOBJ invocations to module description.
14744         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14745         invocation from here...
14746         * modules/getdtablesize (configure.ac): ... to here.
14747
14748 2011-05-08  Bruno Haible  <bruno@clisp.org>
14749
14750         getdomainname: Move AC_LIBOBJ invocations to module description.
14751         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14752         gl_PREREQ_GETDOMAINNAME invocations from here...
14753         * modules/getdomainname (configure.ac): ... to here.
14754
14755 2011-05-08  Bruno Haible  <bruno@clisp.org>
14756
14757         getline: Move AC_LIBOBJ invocations to module description.
14758         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14759         invocations from here...
14760         * modules/getline (configure.ac): ... to here.
14761
14762 2011-05-08  Bruno Haible  <bruno@clisp.org>
14763
14764         getline: Simplify.
14765         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14766         It's already handled through the module dependency.
14767
14768 2011-05-08  Bruno Haible  <bruno@clisp.org>
14769
14770         getdelim: Move AC_LIBOBJ invocations to module description.
14771         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14772         and gl_PREREQ_GETDELIM invocations from here...
14773         * modules/getdelim (configure.ac): ... to here.
14774         (Depends-on): Fix condition.
14775
14776 2011-05-08  Bruno Haible  <bruno@clisp.org>
14777
14778         getcwd: Move AC_LIBOBJ invocations to module description.
14779         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14780         invocations from here...
14781         * modules/getcwd (configure.ac): ... to here.
14782
14783 2011-05-08  Bruno Haible  <bruno@clisp.org>
14784
14785         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14786         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14787         here...
14788         * modules/getcwd-lgpl (configure.ac): ... to here.
14789
14790 2011-05-07  Bruno Haible  <bruno@clisp.org>
14791
14792         crypto/gc: Move AC_LIBOBJ invocations to module description.
14793         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14794         * modules/crypto/gc (configure.ac): ... to here.
14795
14796 2011-05-07  Bruno Haible  <bruno@clisp.org>
14797
14798         fwriting: Move AC_LIBOBJ invocations to module description.
14799         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14800         here...
14801         * modules/fwriting (configure.ac): ... to here.
14802
14803 2011-05-07  Bruno Haible  <bruno@clisp.org>
14804
14805         fwritable: Move AC_LIBOBJ invocations to module description.
14806         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14807         here...
14808         * modules/fwritable (configure.ac): ... to here.
14809
14810 2011-05-07  Bruno Haible  <bruno@clisp.org>
14811
14812         futimens: Move AC_LIBOBJ invocations to module description.
14813         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14814         here...
14815         * modules/futimens (configure.ac): ... to here.
14816
14817 2011-05-07  Bruno Haible  <bruno@clisp.org>
14818
14819         ftruncate: Move AC_LIBOBJ invocations to module description.
14820         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14821         gl_PREREQ_FTRUNCATE invocations from here...
14822         * modules/ftruncate (configure.ac): ... to here.
14823
14824 2011-05-07  Bruno Haible  <bruno@clisp.org>
14825
14826         fsync: Move AC_LIBOBJ invocations to module description.
14827         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14828         invocations from here...
14829         * modules/fsync (configure.ac): ... to here.
14830
14831 2011-05-07  Bruno Haible  <bruno@clisp.org>
14832
14833         fsusage: Move AC_LIBOBJ invocations to module description.
14834         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14835         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14836         * modules/fsusage (configure.ac): ... to here.
14837
14838 2011-05-07  Bruno Haible  <bruno@clisp.org>
14839
14840         freopen: Move AC_LIBOBJ invocations to module description.
14841         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14842         invocations from here...
14843         * modules/freopen (configure.ac): ... to here.
14844
14845 2011-05-07  Bruno Haible  <bruno@clisp.org>
14846
14847         free: Move AC_LIBOBJ invocations to module description.
14848         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14849         invocations from here...
14850         * modules/free (configure.ac): ... to here.
14851
14852 2011-05-07  Bruno Haible  <bruno@clisp.org>
14853
14854         freadable: Move AC_LIBOBJ invocations to module description.
14855         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14856         here...
14857         * modules/freadable (configure.ac): ... to here.
14858
14859 2011-05-07  Bruno Haible  <bruno@clisp.org>
14860
14861         fpurge: Move AC_LIBOBJ invocations to module description.
14862         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14863         invocations from here...
14864         * modules/fpurge (configure.ac): ... to here.
14865
14866 2011-05-07  Bruno Haible  <bruno@clisp.org>
14867
14868         fpending: Move AC_LIBOBJ invocations to module description.
14869         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14870         gl_FUNC_FPENDING.
14871         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14872         invocations from here...
14873         * modules/fpending (configure.ac): ... to here.
14874
14875 2011-05-07  Bruno Haible  <bruno@clisp.org>
14876
14877         fopen: Move AC_LIBOBJ invocations to module description.
14878         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14879         invocations from here...
14880         * modules/fopen (configure.ac): ... to here.
14881
14882 2011-05-07  Bruno Haible  <bruno@clisp.org>
14883
14884         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14885         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14886         gl_FUNC_FNMATCH_POSIX.
14887         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14888         invocations from here...
14889         * modules/fnmatch (configure.ac): ... to here.
14890         * modules/fnmatch-gnu (configure.ac): ... and here.
14891
14892 2011-05-07  Bruno Haible  <bruno@clisp.org>
14893
14894         flock: Move AC_LIBOBJ invocations to module description.
14895         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14896         invocations from here...
14897         * modules/flock (configure.ac): ... to here.
14898
14899 2011-05-07  Bruno Haible  <bruno@clisp.org>
14900
14901         fileblocks: Move AC_LIBOBJ invocations to module description.
14902         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14903         gl_PREREQ_FILEBLOCKS invocations from here...
14904         * modules/fileblocks (configure.ac): ... to here.
14905
14906 2011-05-06  Bruno Haible  <bruno@clisp.org>
14907
14908         fflush: Move AC_LIBOBJ invocations to module description.
14909         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14910         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14911         invocations from here...
14912         * modules/fflush (configure.ac): ... to here.
14913
14914 2011-05-06  Bruno Haible  <bruno@clisp.org>
14915
14916         fdopendir: Move AC_LIBOBJ invocations to module description.
14917         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14918         here...
14919         * modules/fdopendir (configure.ac): ... to here.
14920         (Depends-on): Improve conditions.
14921
14922 2011-05-06  Bruno Haible  <bruno@clisp.org>
14923
14924         _Exit: Move AC_LIBOBJ invocations to module description.
14925         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14926         invocations from here...
14927         * modules/_Exit (configure.ac): ... to here.
14928
14929 2011-05-21  Bruno Haible  <bruno@clisp.org>
14930
14931         euidaccess: Respect rules for use of AC_LIBOBJ.
14932         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14933         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14934         from here...
14935         * modules/euidaccess (configure.ac): ... to here.
14936
14937 2011-05-06  Bruno Haible  <bruno@clisp.org>
14938
14939         error: Move AC_LIBOBJ invocations to module description.
14940         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14941         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14942         invocations from here...
14943         * modules/error (configure.ac): ... to here.
14944
14945 2011-05-06  Bruno Haible  <bruno@clisp.org>
14946
14947         duplocale: Move AC_LIBOBJ invocations to module description.
14948         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14949         gl_PREREQ_DUPLOCALE invocations from here...
14950         * modules/duplocale (configure.ac): ... to here.
14951
14952 2011-05-05  Bruno Haible  <bruno@clisp.org>
14953
14954         dirfd: Move AC_LIBOBJ invocations to module description.
14955         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14956         gl_FUNC_DIRFD.
14957         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14958         here...
14959         * modules/dirfd (configure.ac): ... to here.
14960         (Depends-on): Fix condition.
14961
14962 2011-05-05  Bruno Haible  <bruno@clisp.org>
14963
14964         chown: Respect rules for use of AC_LIBOBJ.
14965         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14966         * modules/chown (configure.ac): ... to here.
14967
14968 2011-05-05  Bruno Haible  <bruno@clisp.org>
14969
14970         chdir-long: Move AC_LIBOBJ invocations to module description.
14971         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14972         gl_PREREQ_CHDIR_LONG invocations from here...
14973         * modules/chdir-long (configure.ac): ... to here.
14974
14975 2011-05-05  Bruno Haible  <bruno@clisp.org>
14976
14977         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14978         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14979         from here...
14980         * modules/canonicalize-lgpl (configure.ac): ... to here.
14981
14982 2011-05-05  Bruno Haible  <bruno@clisp.org>
14983
14984         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14985         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14986         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14987         REPLACE_CALLOC.
14988         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14989         * modules/calloc-gnu (configure.ac): Likewise.
14990
14991 2011-05-05  Bruno Haible  <bruno@clisp.org>
14992
14993         btowc: Move AC_LIBOBJ invocations to module description.
14994         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14995         invocations from here...
14996         * modules/btowc (configure.ac): ... to here.
14997
14998 2011-05-21  Bruno Haible  <bruno@clisp.org>
14999
15000         atexit: Move AC_LIBOBJ invocations to module description.
15001         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15002         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15003         here...
15004         * modules/atexit (configure.ac): ... to here.
15005
15006 2011-05-05  Bruno Haible  <bruno@clisp.org>
15007
15008         atoll: Move AC_LIBOBJ invocations to module description.
15009         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15010         invocations from here...
15011         * modules/atoll (configure.ac): ... to here.
15012
15013 2011-05-05  Bruno Haible  <bruno@clisp.org>
15014
15015         argz: Move AC_LIBOBJ invocations to module description.
15016         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15017         * modules/argz (configure.ac): ... to here.
15018
15019 2011-05-05  Bruno Haible  <bruno@clisp.org>
15020
15021         alphasort: Move AC_LIBOBJ invocations to module description.
15022         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15023         gl_PREREQ_ALPHASORT invocations from here...
15024         * modules/alphasort (configure.ac): ... to here.
15025
15026 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         verify: new macro verify_expr; verify_true deprecated
15029         * NEWS: Mention this.
15030         * doc/verify.texi (Compile-time Assertions): Document this.
15031         * lib/verify.h (verify_true): Deprecate.
15032         (verify_expr): New macro.
15033         * tests/test-verify.c (function): Test verify_expr.
15034
15035 2011-06-14  Jim Meyering  <meyering@redhat.com>
15036
15037         init.sh: give more portable redirection-related advice in a comment
15038         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15039         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15040         for lots of discussion.  Stefano Lattarini suggested the solution
15041         of putting "9>&2" after the command.  Reported by Bruno Haible.
15042
15043 2011-06-13  Bruno Haible  <bruno@clisp.org>
15044
15045         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15046         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15047         'none'.
15048
15049 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15050
15051         ftoastr: use strtof only if HAVE_STRTOF
15052         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15054         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15055         * modules/ftoastr (configure.ac): Check for strtof.
15056
15057 2011-06-13  Bruno Haible  <bruno@clisp.org>
15058
15059         gnulib-tool: Addendum to 2011-06-08 commit.
15060         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15061         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15062
15063 2011-06-13  Bruno Haible  <bruno@clisp.org>
15064
15065         fseeko: Provide a non-inline replacement of fseek().
15066         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15067         * modules/fseeko (Depends-on): Add fseek.
15068         * modules/fseek (License): Change to LGPLv2+.
15069
15070 2011-06-13  Bruno Haible  <bruno@clisp.org>
15071
15072         ftello: Provide a non-inline replacement of ftell().
15073         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15074         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15075         not have ftello() (such as on mingw).
15076         * modules/ftello (Depends-on): Add ftell.
15077         * modules/ftell (License): Change to LGPLv2+.
15078
15079 2011-05-07  Bruno Haible  <bruno@clisp.org>
15080
15081         ftell: Move AC_LIBOBJ invocations to module description.
15082         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15083         * modules/ftell (configure.ac): ... to here.
15084
15085 2011-05-07  Bruno Haible  <bruno@clisp.org>
15086
15087         ftello: Respect rules for use of AC_LIBOBJ.
15088         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15089         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15090         here...
15091         * modules/ftello (configure.ac): ... to here.
15092
15093 2011-05-07  Bruno Haible  <bruno@clisp.org>
15094
15095         fseeko: Simplify.
15096         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15097         (gl_FUNC_FSEEKO): Inline it here.
15098
15099 2011-05-07  Bruno Haible  <bruno@clisp.org>
15100
15101         fseek: Move AC_LIBOBJ invocations to module description.
15102         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15103         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15104         * modules/fseek (configure.ac): ... to here.
15105
15106 2011-05-07  Bruno Haible  <bruno@clisp.org>
15107
15108         fseek: Respect rules for use of AC_LIBOBJ.
15109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15110         here...
15111         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15112
15113 2011-05-07  Bruno Haible  <bruno@clisp.org>
15114
15115         fseeko: Respect rules for use of AC_LIBOBJ.
15116         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15117         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15118         here...
15119         * modules/fseeko (configure.ac): ... to here.
15120
15121 2011-06-13  Bruno Haible  <bruno@clisp.org>
15122
15123         gnulib-tool: Allow comments in the 'Depends-on' section.
15124         * doc/gnulib.texi (Module description): Mention comment syntax in the
15125         Depends-on section.
15126         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15127
15128 2011-06-13  Bruno Haible  <bruno@clisp.org>
15129
15130         file-set.h: guard __attibute__ use, now that it's not always defined
15131         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15132         versions that support it.  This fixes a coreutils build failure with
15133         the vendor cc on HP-UX 11.31.
15134
15135 2011-06-12  Bruno Haible  <bruno@clisp.org>
15136
15137         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15138         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15139         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15140         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15141         (acl, aclsort): New declarations.
15142         (aclv_nontrivial): New declaration.
15143         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15144         (file_has_acl): Read also the second kind of HP-UX ACLs.
15145         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15146         kind of HP-UX ACLs if the first kind fails.
15147         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15148         second kind of HP-UX ACLs.
15149         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15150         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15151         agree.
15152         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15153         hpuxjfs.
15154         Handle hpuxjfs.
15155         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15156         hpuxjfs.
15157         Handle hpuxjfs.
15158         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15159         (func_test_same_acls): Use both lsacl and getacl.
15160         Handle hpuxjfs.
15161         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15162         (func_test_same_acls): Use both lsacl and getacl.
15163         Handle hpuxjfs.
15164
15165 2011-06-12  Bruno Haible  <bruno@clisp.org>
15166
15167         acl: Complete the 2010-08-10 fix.
15168         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15169         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15170         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15171         explicitly.
15172         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15173         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15174
15175 2011-06-12  Bruno Haible  <bruno@clisp.org>
15176
15177         spawn-pipe tests: Comments.
15178         * tests/test-spawn-pipe-child.c (main): Update comment.
15179         Reported by James Youngman <jay@gnu.org>.
15180
15181 2011-06-11  James Youngman  <jay@gnu.org>
15182
15183         New module 'stat-size'.
15184         * modules/stat-size: New module.  Provides macros for accessing
15185         file size information in instances of struct stat.  Depends on the
15186         fileblocks module because it calls st_blocks.
15187         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15188         * doc/gnulib.texi: Include stat-size.texi.
15189         * doc/stat-size.texi: Documentation for this module.
15190         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15191         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15192         AC_STRUCT_ST_BLOCKS.
15193
15194 2011-06-09  Bruno Haible  <bruno@clisp.org>
15195
15196         thread: Support pthreads-win32.
15197         * lib/glthread/thread.h (gl_thread_self): Define differently on
15198         pthreads-win32.
15199         (gl_null_thread): New declaration.
15200         (gl_thread_self_pointer): New macro.
15201         * lib/glthread/thread.c (gl_null_thread): New constant.
15202         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15203         gl_thread_self.
15204         * tests/test-tls.c: Likewise.
15205         Suggested by Paul Eggert. Reported by Eric Blake.
15206
15207 2011-06-09  Bruno Haible  <bruno@clisp.org>
15208
15209         thread: Fix confusion between NULL and 0.
15210         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15211         Reported by Paul Eggert.
15212
15213 2011-06-09  Bruno Haible  <bruno@clisp.org>
15214
15215         spawn-pipe tests: Avoid test failure on HP-UX 11.
15216         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15217         is closed.
15218
15219 2011-06-09  Bruno Haible  <bruno@clisp.org>
15220
15221         acl tests: Fix compilation error on HP-UX 11.
15222         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15223
15224 2011-06-09  Bruno Haible  <bruno@clisp.org>
15225
15226         rmdir: Avoid test failure on HP-UX 10.20.
15227         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15228         EEXIST.
15229
15230 2011-06-08  Eric Blake  <eblake@redhat.com>
15231
15232         perror: fix test on mingw
15233         * modules/perror-tests (Depends-on): Add dup2.
15234
15235         strerror_r-posix: fix on MacOS
15236         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15237         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15238         logic bug.
15239         * lib/strerror_r.c (strerror_r): Fix the bug.
15240         * lib/strerror.c (strerror): Likewise.
15241         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15242         problem.
15243         * doc/posix-functions/strerror.texi (strerror): Likewise.
15244         * doc/posix-functions/perror.texi (perror): Likewise.
15245         * tests/test-strerror.c (main): Enhance test.
15246         * tests/test-strerror_r.c (main): Likewise.
15247
15248 2011-06-08  Bruno Haible  <bruno@clisp.org>
15249
15250         gnulib-tool: Better isolation between different gnulib-tool invocations.
15251         * gnulib-tool: New option --witness-c-macro.
15252         (witness_c_macro): New variable.
15253         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15254         AM_CPPFLAGS define it as a C macro.
15255         (func_emit_tests_Makefile_am): Likewise.
15256         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15257         read it from there.
15258         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15259         m4_define, not AC_DEFUN.
15260         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15261         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15262         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15263         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15264         s|...|...|, to substitute the values of the GNULIB_* module indicator
15265         variables.
15266         * modules/dirent (Makefile.am): Likewise.
15267         * modules/fcntl-h (Makefile.am): Likewise.
15268         * modules/iconv-h (Makefile.am): Likewise.
15269         * modules/langinfo (Makefile.am): Likewise.
15270         * modules/locale (Makefile.am): Likewise.
15271         * modules/math (Makefile.am): Likewise.
15272         * modules/netdb (Makefile.am): Likewise.
15273         * modules/poll-h (Makefile.am): Likewise.
15274         * modules/pty (Makefile.am): Likewise.
15275         * modules/search (Makefile.am): Likewise.
15276         * modules/signal (Makefile.am): Likewise.
15277         * modules/spawn (Makefile.am): Likewise.
15278         * modules/stdio (Makefile.am): Likewise.
15279         * modules/stdlib (Makefile.am): Likewise.
15280         * modules/string (Makefile.am): Likewise.
15281         * modules/sys_ioctl (Makefile.am): Likewise.
15282         * modules/sys_select (Makefile.am): Likewise.
15283         * modules/sys_socket (Makefile.am): Likewise.
15284         * modules/sys_stat (Makefile.am): Likewise.
15285         * modules/sys_times (Makefile.am): Likewise.
15286         * modules/sys_utsname (Makefile.am): Likewise.
15287         * modules/sys_wait (Makefile.am): Likewise.
15288         * modules/termios (Makefile.am): Likewise.
15289         * modules/time (Makefile.am): Likewise.
15290         * modules/unistd (Makefile.am): Likewise.
15291         * modules/wchar (Makefile.am): Likewise.
15292
15293 2011-06-08  Eric Blake  <eblake@redhat.com>
15294
15295         strerror: simplify replacement
15296         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15297         * modules/strerror (configure.ac): No prereqs needed here...
15298         * modules/strerror-override (configure.ac): ...but this needs it.
15299         (Files): Add file for needed prereq macro.
15300
15301 2011-06-08  Bruno Haible  <bruno@clisp.org>
15302
15303         strerror_r-posix: Tweaks.
15304         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15305         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15306         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15307         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15308         (gl_FUNC_STRERROR_R): ... to here.
15309         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15310
15311 2011-06-07  Eric Blake  <eblake@redhat.com>
15312
15313         perror: document fixed bugs
15314         * doc/posix-functions/perror.texi (perror): Document recent
15315         patches.
15316
15317 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15318
15319         stat-time: get_stat_birthtime failure is better-defined
15320         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15321         return a timestamp whose tv_sec and tv_nsec values are both -1.
15322         Previously, the spec said only that the tv_nsec value was negative.
15323         This upward-compatible change simplifies GNU tar a bit.
15324
15325 2011-06-07  Eric Blake  <eblake@redhat.com>
15326
15327         strerror_r-posix: work around cygwin 1.7.9
15328         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15329         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15330         bug without replacing strerror_r.
15331         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15332         strerror_r is buggy, but without requiring strerror_r compilation.
15333         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15334
15335         test-perror: relax test to ignore cygwin bug
15336         * tests/test-perror2.c (main): Relax test on requiring detection
15337         of stream errors, and use unbuffered stream.
15338         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15339         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15340         * doc/posix-functions/fputc.texi (fputc): Likewise.
15341         * doc/posix-functions/fputs.texi (fputs): Likewise.
15342         * doc/posix-functions/fputws.texi (fputws): Likewise.
15343         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15344         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15345         * doc/posix-functions/getopt.texi (getopt): Likewise.
15346         * doc/posix-functions/perror.texi (perror): Likewise.
15347         * doc/posix-functions/printf.texi (printf): Likewise.
15348         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15349         * doc/posix-functions/psignal.texi (psignal): Likewise.
15350         * doc/posix-functions/putc.texi (putc): Likewise.
15351         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15352         Likewise.
15353         * doc/posix-functions/putchar.texi (putchar): Likewise.
15354         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15355         Likewise.
15356         * doc/posix-functions/puts.texi (puts): Likewise.
15357         * doc/posix-functions/putwc.texi (putwc): Likewise.
15358         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15359         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15360         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15361         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15362         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15363         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15364         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15365         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15366
15367 2011-05-22  Bruno Haible  <bruno@clisp.org>
15368
15369         strerror: Move AC_LIBOBJ invocations to module description.
15370         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15371         gl_PREREQ_STRERROR invocations from here...
15372         * modules/strerror (configure.ac): ... to here.
15373
15374 2011-05-21  Bruno Haible  <bruno@clisp.org>
15375
15376         perror: Use common idiom.
15377         * modules/perror (configure.ac): Reorder statements.
15378
15379 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15380
15381         tests: fix usage message in 'mktempd_'
15382         * tests/init.sh (mktempd_): In the usage message, use literal
15383         'mktempd_', not '$ME' (which is even undefined), as the name of
15384         the subroutine.
15385
15386 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15387
15388         tests init: new function 'fatal_', for hard errors
15389         Before this patch, the only way offered by tests/init.sh to
15390         properly signal a hard error was the `framework_failure_'
15391         function.  But the error message issued by that function,
15392         as its name would suggest, refers to a set-up failure in the
15393         testsuite, while hard errors can obviously also be due to
15394         other reasons.  The best way to fix this inconsistency is to
15395         introduce a new function with a more general error message.
15396         * tests/init.sh (fatal_): New function.
15397
15398 2011-06-06  Eric Blake  <eblake@redhat.com>
15399
15400         canonicalize-lgpl: use common idiom
15401         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15402         over newer POSIX -Rf.
15403         Reported by Bruno Haible.
15404
15405         canonicalize-lgpl: work around AIX realpath bug
15406         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15407         * doc/posix-functions/realpath.texi (realpath): Document it.
15408         Reported by Bruno Haible.
15409
15410         strerror: work around FreeBSD bug
15411         * lib/strerror.c (strerror): Special case 0.
15412         Reported by Bruno Haible.
15413
15414         strerror-override: avoid bloating errno module
15415         * modules/errno (Files, configure.ac): Move replacement strings...
15416         * modules/strerror-override: ...to new module.
15417         * modules/strerror (Depends-on): Add strerror-override.
15418         * modules/strerror_r-posix (Depends-on): Likewise.
15419         * MODULES.html.sh: Document new module.
15420         Reported by Bruno Haible.
15421
15422 2011-06-06  Bruno Haible  <bruno@clisp.org>
15423
15424         spawn-pipe tests: Rename program.
15425         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15426         * tests/test-spawn-pipe-child.c: Update comment.
15427         * tests/test-spawn-pipe.sh: Update.
15428         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15429
15430         spawn-pipe tests: Link the child program only against libc.
15431         * tests/test-spawn-pipe-child.c: New file, extracted from
15432         tests/test-spawn-pipe.c.
15433         (main): Expect only one argument.
15434         (is_open): New function, copied from tests/test-pipe.c.
15435         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15436         (child_main): Remove function.
15437         (test_pipe): Pass only one argument to the child program.
15438         (main): Remove child process code. Expect the child program's name as
15439         first argument.
15440         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15441         argument.
15442         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15443         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15444         test-spawn-pipe-child against no libraries.
15445
15446 2011-06-06  Bruno Haible  <bruno@clisp.org>
15447
15448         careadlinkat: Avoid mismatch between ssize_t and int.
15449         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15450         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15451
15452 2011-06-06  Jim Meyering  <meyering@redhat.com>
15453
15454         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15455         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15456         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15457
15458 2011-06-05  Bruno Haible  <bruno@clisp.org>
15459
15460         ansi-c++-opt: Interoperability with libtool.
15461         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15462         set the variable to "no", not to ":".
15463         * NEWS: Mention the change.
15464
15465 2011-06-05  Bruno Haible  <bruno@clisp.org>
15466
15467         acl: Fix test failure on AIX 7.
15468         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15469         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15470
15471 2011-06-05  Bruno Haible  <bruno@clisp.org>
15472
15473         pipe-filter-ii: Fix test failure on AIX and IRIX.
15474         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15475         with EAGAIN, retry with a smaller buffer size.
15476
15477 2011-06-05  Bruno Haible  <bruno@clisp.org>
15478
15479         localename: Fix link dependencies.
15480         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15481         * modules/localename-tests (Makefile.am): Link test-localename with
15482         $(LIBTHREAD).
15483
15484 2011-06-05  Bruno Haible  <bruno@clisp.org>
15485
15486         error: Avoid gcc warning.
15487         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15488
15489 2011-06-05  Bruno Haible  <bruno@clisp.org>
15490
15491         unsetenv: Avoid gcc warning.
15492         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15493
15494 2011-06-05  Bruno Haible  <bruno@clisp.org>
15495
15496         setenv: Avoid gcc warning.
15497         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15498
15499 2011-06-05  Bruno Haible  <bruno@clisp.org>
15500
15501         sys_select: Ensure memset is declared also on AIX 7.
15502         * lib/sys_select.in.h: Include <string.h> also on AIX.
15503         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15504         self-contained also on AIX 7.1.
15505
15506 2011-06-04  Jim Meyering  <meyering@redhat.com>
15507
15508         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15509         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15510         function name, "error".
15511         (_gl_translatable_diag_func_re): New configurable variable.
15512
15513 2011-06-04  Bruno Haible  <bruno@clisp.org>
15514
15515         getopt: Avoid gcc warning.
15516         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15517
15518 2011-06-04  Bruno Haible  <bruno@clisp.org>
15519
15520         strerror_r: Fix comments.
15521         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15522         commit.
15523
15524 2011-06-04  Bruno Haible  <bruno@clisp.org>
15525
15526         perror: Fix compilation error.
15527         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15528         Undefine fprintf, not sprintf.
15529         * modules/perror (Depends-on): Remove intprops, verify.
15530
15531 2011-06-04  Bruno Haible  <bruno@clisp.org>
15532
15533         setlocale: Enable replacement on Cygwin 1.5.
15534         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15535         Cygwin 1.5.x.
15536         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15537         LC_CTYPE category also exists on Cygwin 1.5.x.
15538
15539 2011-06-04  Bruno Haible  <bruno@clisp.org>
15540
15541         strerror-override: Don't disable symbol renamings.
15542         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15543         * lib/strerror-override.c: Include config.h.
15544         (strerror_override): Don't undefine.
15545
15546 2011-06-03  Bruno Haible  <bruno@clisp.org>
15547
15548         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15549         * lib/localename.h: Update copyright header.
15550         * lib/localename.c: Likewise.
15551         * lib/relocatable.h: Likewise.
15552         * lib/relocatable.c: Likewise.
15553
15554 2011-06-02  Bruno Haible  <bruno@clisp.org>
15555
15556         doc: Fix a module name.
15557         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15558
15559 2011-06-02  Bruno Haible  <bruno@clisp.org>
15560
15561         pipe2: Remove dependency on 'nonblocking' module.
15562         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15563         O_NONBLOCK is defined by gnulib.
15564         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15565         is zero.
15566         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15567         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15568         defined by gnulib.
15569         (get_nonblocking_flag): New function.
15570         (main): Test O_NONBLOCK flag only if it is nonzero.
15571         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15572
15573 2011-06-03  Jim Meyering  <meyering@redhat.com>
15574
15575         maint: three new prohibit-header-without-use rules
15576         Prohibit use of cloexec.h, posixver.h, same.h without use.
15577         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15578         (sc_prohibit_posixver_without_use): Likewise.
15579         (sc_prohibit_same_without_use): Likewise.
15580
15581 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15582
15583         allocator: 'die' routine is now given requested size
15584         * lib/allocator.h (struct allocator.die): New size arg.
15585         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15586         If the actual problem is an ssize_t limitation, not a size_t or
15587         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15588
15589 2011-06-01  Eric Blake  <eblake@redhat.com>
15590
15591         strerror: drop strerror_r dependency
15592         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15593         * lib/strerror-override.c (strerror_override): ...to new file.
15594         * lib/strerror-override.h: Add prototype.
15595         * lib/strerror-impl.h: Delete.
15596         * lib/strerror.c (strerror): New implementation.
15597         * modules/errno (Files): Add new files.
15598         (configure.ac): Compile new file as appropriate.
15599         * modules/strerror (Files): Drop unused file.
15600         (Depends-on): Drop strerror_r-posix.
15601         * MODULES.html.sh: Document strerror_r-posix.
15602         Requested by Sam Steingold.
15603
15604         perror: call strerror_r directly
15605         * modules/perror (Files): Drop strerror-impl.h.
15606         * lib/perror.c (perror): Use our own stack buffer, rather than
15607         calling a wrapper that uses static storage.
15608         * doc/posix-functions/perror.texi (perror): Document a limitation
15609         of our replacement.
15610
15611         strerror_r: fix includes for FreeBSD
15612         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15613         since we use abort on some platforms.
15614         Reported by Matthias Bolte.
15615
15616 2011-05-31  Bruno Haible  <bruno@clisp.org>
15617
15618         Fix link errors in tests: openat-die uses gettext-h.
15619         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15620         against $(LIBINTL).
15621         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15622         against $(LIBINTL).
15623         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15624         $(LIBINTL).
15625         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15626         against $(LIBINTL).
15627         * modules/linkat-tests (Makefile.am): Link test-linkat against
15628         $(LIBINTL).
15629         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15630         $(LIBINTL).
15631         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15632         against $(LIBINTL).
15633         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15634         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15635         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15636         $(LIBINTL).
15637         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15638         $(LIBINTL).
15639         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15640         $(LIBINTL).
15641         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15642
15643 2011-05-31  Bruno Haible  <bruno@clisp.org>
15644
15645         Fix link errors in tests: wait-process uses gettext-h.
15646         * modules/nonblocking-pipe-tests (Makefile.am): Set
15647         test_nonblocking_pipe_main_LDADD.
15648         * modules/nonblocking-socket-tests (Makefile.am): Link
15649         test-nonblocking-socket-main against $(LIBINTL).
15650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15651
15652 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15653
15654         assert-h: work around 'verify' incompatibility
15655         * lib/verify.h: Use @...@ directives, not ifdef.
15656         * modules/assert-h (assert.h): Implement the directives.
15657         (assert.h): Substitute the symbol-prefix more consistently.
15658
15659 2011-05-29  Jim Meyering  <meyering@redhat.com>
15660
15661         trim: remove three superfluous assignments
15662         * lib/trim.c (trim2): Remove three superfluous assignments
15663         and correct brace positioning.
15664
15665 2011-05-29  Bruno Haible  <bruno@clisp.org>
15666
15667         wctype-h: Avoid namespace pollution on Solaris 2.6.
15668         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15669         identifiers.
15670         * doc/posix-headers/wctype.texi: Mention the problem.
15671         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15672
15673 2011-05-28  Jim Meyering  <meyering@redhat.com>
15674
15675         parse-datetime.y: accommodate -Wstrict-overflow
15676         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15677         placate -Wstrict-overflow.
15678
15679         trim: avoid a warning from -O2 -Wstrict-overflow
15680         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15681
15682 2011-05-29  Bruno Haible  <bruno@clisp.org>
15683
15684         gnulib-tool: Fix bug in yesterday's commit.
15685         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15686         twice.
15687
15688 2011-05-29  Bruno Haible  <bruno@clisp.org>
15689
15690         Allow multiple gnulib generated include files to be combined.
15691         * gnulib-tool (func_compute_include_guard_prefix): New function.
15692         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15693         ${gl_include_guard_prefix} references.
15694         (func_import, func_create_testdir): Invoke
15695         func_compute_include_guard_prefix.
15696         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15697         * lib/ctype.in.h: Likewise.
15698         * lib/dirent.in.h: Likewise.
15699         * lib/errno.in.h: Likewise.
15700         * lib/fcntl.in.h: Likewise.
15701         * lib/float.in.h: Likewise.
15702         * lib/getopt.in.h: Likewise.
15703         * lib/iconv.in.h: Likewise.
15704         * lib/langinfo.in.h: Likewise.
15705         * lib/locale.in.h: Likewise.
15706         * lib/math.in.h: Likewise.
15707         * lib/netdb.in.h: Likewise.
15708         * lib/netinet_in.in.h: Likewise.
15709         * lib/poll.in.h: Likewise.
15710         * lib/pthread.in.h: Likewise.
15711         * lib/pty.in.h: Likewise.
15712         * lib/sched.in.h: Likewise.
15713         * lib/se-selinux.in.h: Likewise.
15714         * lib/search.in.h: Likewise.
15715         * lib/signal.in.h: Likewise.
15716         * lib/spawn.in.h: Likewise.
15717         * lib/stdarg.in.h: Likewise.
15718         * lib/stddef.in.h: Likewise.
15719         * lib/stdint.in.h: Likewise.
15720         * lib/stdio.in.h: Likewise.
15721         * lib/stdlib.in.h: Likewise.
15722         * lib/string.in.h: Likewise.
15723         * lib/strings.in.h: Likewise.
15724         * lib/sys_file.in.h: Likewise.
15725         * lib/sys_ioctl.in.h: Likewise.
15726         * lib/sys_select.in.h: Likewise.
15727         * lib/sys_socket.in.h: Likewise.
15728         * lib/sys_stat.in.h: Likewise.
15729         * lib/sys_time.in.h: Likewise.
15730         * lib/sys_times.in.h: Likewise.
15731         * lib/sys_uio.in.h: Likewise.
15732         * lib/sys_utsname.in.h: Likewise.
15733         * lib/sys_wait.in.h: Likewise.
15734         * lib/sysexits.in.h: Likewise.
15735         * lib/termios.in.h: Likewise.
15736         * lib/time.in.h: Likewise.
15737         * lib/unistd.in.h: Likewise.
15738         * lib/wchar.in.h: Likewise.
15739         * lib/wctype.in.h: Likewise.
15740         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15741         * modules/ctype (Makefile.am): Likewise.
15742         * modules/dirent (Makefile.am): Likewise.
15743         * modules/errno (Makefile.am): Likewise.
15744         * modules/fcntl-h (Makefile.am): Likewise.
15745         * modules/float (Makefile.am): Likewise.
15746         * modules/getopt-posix (Makefile.am): Likewise.
15747         * modules/iconv-h (Makefile.am): Likewise.
15748         * modules/langinfo (Makefile.am): Likewise.
15749         * modules/locale (Makefile.am): Likewise.
15750         * modules/math (Makefile.am): Likewise.
15751         * modules/netdb (Makefile.am): Likewise.
15752         * modules/netinet_in (Makefile.am): Likewise.
15753         * modules/poll-h (Makefile.am): Likewise.
15754         * modules/pthread (Makefile.am): Likewise.
15755         * modules/pty (Makefile.am): Likewise.
15756         * modules/sched (Makefile.am): Likewise.
15757         * modules/search (Makefile.am): Likewise.
15758         * modules/selinux-h (Makefile.am): Likewise.
15759         * modules/signal (Makefile.am): Likewise.
15760         * modules/spawn (Makefile.am): Likewise.
15761         * modules/stdarg (Makefile.am): Likewise.
15762         * modules/stddef (Makefile.am): Likewise.
15763         * modules/stdint (Makefile.am): Likewise.
15764         * modules/stdio (Makefile.am): Likewise.
15765         * modules/stdlib (Makefile.am): Likewise.
15766         * modules/string (Makefile.am): Likewise.
15767         * modules/strings (Makefile.am): Likewise.
15768         * modules/sys_file (Makefile.am): Likewise.
15769         * modules/sys_ioctl (Makefile.am): Likewise.
15770         * modules/sys_select (Makefile.am): Likewise.
15771         * modules/sys_socket (Makefile.am): Likewise.
15772         * modules/sys_stat (Makefile.am): Likewise.
15773         * modules/sys_time (Makefile.am): Likewise.
15774         * modules/sys_times (Makefile.am): Likewise.
15775         * modules/sys_uio (Makefile.am): Likewise.
15776         * modules/sys_utsname (Makefile.am): Likewise.
15777         * modules/sys_wait (Makefile.am): Likewise.
15778         * modules/sysexits (Makefile.am): Likewise.
15779         * modules/termios (Makefile.am): Likewise.
15780         * modules/time (Makefile.am): Likewise.
15781         * modules/unistd (Makefile.am): Likewise.
15782         * modules/wchar (Makefile.am): Likewise.
15783         * modules/wctype-h (Makefile.am): Likewise.
15784         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15785
15786 2011-05-29  Bruno Haible  <bruno@clisp.org>
15787
15788         assert-h: Allow multiple gnulib generated replacements to coexist.
15789         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15790
15791 2011-05-29  Bruno Haible  <bruno@clisp.org>
15792
15793         argp: Allow coexistence with strerror_r-posix module.
15794         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15795         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15796         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15797         not the glibc signature.
15798
15799 2011-05-28  Bruno Haible  <bruno@clisp.org>
15800
15801         gnulib-tool: Alternative structure of testdirs, similar to --import.
15802         * gnulib-tool: New option --single-configure.
15803         (func_usage): Document it.
15804         (single_configure): New variable.
15805         (func_modules_transitive_closure_separately,
15806         func_modules_transitive_closure_separately,
15807         func_determine_use_libtests, func_modules_add_dummy_separately,
15808         func_modules_to_filelist_separately): New functions, extracted from
15809         func_import.
15810         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15811         (func_import): Use the new functions.
15812         (func_create_testdir): Set final_modules. Handle $single_configure =
15813         true case.
15814
15815 2011-05-28  Bruno Haible  <bruno@clisp.org>
15816
15817         getloadavg: Remove an unreliable safety check.
15818         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15819         getloadavg.c is in place.
15820         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15821         Reported by Sam Steingold <sds@gnu.org>.
15822
15823 2011-05-28  Bruno Haible  <bruno@clisp.org>
15824
15825         doc: Cleanup yet another file produced by texinfo.tex.
15826         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15827
15828 2011-05-28  Bruno Haible  <bruno@clisp.org>
15829
15830         Finish the conditional dependencies mechanism.
15831         * gnulib-tool: New option --no-conditional-dependencies.
15832         (func_usage): Document it. Don't mark --conditional-dependencies as
15833         experimental.
15834         (cond_dependencies): The possible values can now be true, false, empty.
15835         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15836         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15837         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15838
15839 2011-05-28  Bruno Haible  <bruno@clisp.org>
15840
15841         doc: Use a recent texinfo.tex.
15842         * doc/Makefile (tex_opts): New variable.
15843         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15844
15845 2011-05-28  Jim Meyering  <meyering@redhat.com>
15846
15847         intprops.h: adjust comment to match code change
15848         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15849         only once, it *may* have side effects.  Also fix an unrelated typo.
15850         (_GL_INT_SIGNED): Likewise.
15851
15852 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15853
15854         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15855
15856 2011-05-26  Bruno Haible  <bruno@clisp.org>
15857
15858         mbsrchr: Avoid collision with system function on Interix.
15859         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15860         Reported by Markus Duft <mduft@gentoo.org>.
15861
15862 2011-05-15  James Youngman  <jay@gnu.org>
15863
15864         getopt: for ambiguous options, enumerate the possibilities.
15865         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15866         the ambiguous options when an ambiguous prefix is given. This was
15867         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15868         glibc change was
15869         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15870
15871 2011-05-25  Eric Blake  <eblake@redhat.com>
15872
15873         getcwd: work around mingw bug
15874         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15875         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15876         Reported by Matthias Bolte.
15877
15878 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15879
15880         test-intprops: disable -Wtype-limits diagnostics
15881         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15882         diagnostics.  Otherwise, the integer overflow macros generate many
15883         diagnostics.  Reported by Jim Meyering in
15884         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15885
15886         intprops: shorten, to pacify gcc -Woverlength-strings
15887         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15888         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15889         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15890         likely to run afoul of C compiler limits for string constant lengths.
15891         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15892
15893 2011-05-24  Eric Blake  <eblake@redhat.com>
15894
15895         docs: document recently fixed glibc printf bug
15896         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15897         * doc/posix-functions/printf.texi (printf): Likewise.
15898         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15899         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15900
15901         closein-tests: convert to init.sh
15902         * modules/closein-tests (Files): Add init.sh
15903         * tests/test-closein.sh Use it.
15904
15905         yesno-tests: convert to init.sh
15906         * modules/yesno-tests (Files): Add init.sh.
15907         * tests/test-yesno.sh: Use it.
15908
15909         atexit-tests: ensure reliable exit status
15910         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15911         Reported by Bruno Haible.
15912
15913 2011-05-24  Bruno Haible  <bruno@clisp.org>
15914
15915         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15916         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15917         gl_PREREQ_STRERROR_R invocations from here...
15918         * modules/strerror_r-posix (configure.ac): ... to here.
15919
15920 2011-05-24  Eric Blake  <eblake@redhat.com>
15921
15922         strerror_r: fix missing header
15923         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15924
15925         strerror_r: fix AIX test failures
15926         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15927         ERANGE failure.
15928
15929         strerror_r: fix Solaris test failures
15930         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15931         failures.
15932         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15933
15934         strerror_r: enforce POSIX recommendations
15935         * lib/strerror_r.c (safe_copy): New helper method.
15936         (strerror_r): Guarantee a non-empty string.
15937         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15938         recent POSIX rulings and to match our strerror guarantees.
15939         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15940
15941 2011-05-24  Jim Meyering  <meyering@redhat.com>
15942
15943         test-perror2.c: avoid warning about unused variable
15944         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15945
15946 2011-05-24  Eric Blake  <eblake@redhat.com>
15947
15948         perror: avoid spurious test failure on HP-UX
15949         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15950
15951         tests: fix logic bug in init.sh
15952         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15953         shell.
15954
15955 2011-05-24  Jim Meyering  <meyering@redhat.com>
15956
15957         utimensat: do not reference an out-of-scope buffer
15958         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15959         declared in an inner scope, yet "times" would be dereferenced outside
15960         the scope in which "ts" was valid.
15961         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15962         of ts[2] "out/up", so that the use of aliased "times" (via
15963         "times = ts;") does not end up referencing an out-of-scope "ts"
15964
15965         opendir-safer.c: don't clobber errno; don't close negative FD
15966         * lib/opendir-safer.c (opendir_safer):
15967         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15968         file descriptor, and more importantly, don't clobber the
15969         offending errno value with EINVAL.  Before, upon failure
15970         of dup_safer, we would pass the negative file descriptor to
15971         fdopendir, which would clobber errno.
15972
15973 2011-05-23  Bruno Haible  <bruno@clisp.org>
15974
15975         idcache: Fix module description.
15976         * modules/idcache (Include): Set to "idcache.h".
15977
15978 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15979
15980         gnulib-tool: fix portability problem with MacOS sed
15981         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15982         before the "}".  Problem reported by Leo in
15983         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15984         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15985         sed_extract_condition1, sed_extract_condition2.
15986
15987 2011-05-23  Bruno Haible  <bruno@clisp.org>
15988
15989         hash: Simplify autoconf macro.
15990         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15991
15992 2011-05-23  Bruno Haible  <bruno@clisp.org>
15993
15994         getugroups: Fix module description.
15995         * modules/getugroups (Include): Set to "getugroups.h".
15996
15997 2011-05-23  Bruno Haible  <bruno@clisp.org>
15998
15999         linkat: Simplify autoconf macro.
16000         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16001
16002 2011-05-23  Bruno Haible  <bruno@clisp.org>
16003             Eric Blake  <eblake@redhat.com>
16004
16005         linkat, renameat: Update dependencies.
16006         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16007         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16008         symlinkat.
16009
16010 2011-05-23  Jim Meyering  <meyering@redhat.com>
16011
16012         maint.mk: more tight_scope improvements
16013         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16014         (_gl_TS_headers): Define only in if-0'd block.
16015         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16016         sometimes we must *not* use it.  Adjust uses accordingly.
16017         (sc_tight_scope): Use much simpler grep-based test to determine
16018         whether we skip this rule.
16019
16020         maint.mk: generalize/improve the tight-scope rule
16021         * top/maint.mk: Emit a warning when the test is skipped.
16022         (_gl_TS_dir): Add $(srcdir)/ prefix.
16023         (_gl_TS_function_match): Simplify, rather than trying
16024         to enumerate common types.  Otherwise, it would fail to match an
16025         "extern unsigned char const *" declaration in idutils.
16026         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16027         a way to support use of that type of macro.
16028         (_gl_TS_var_match): Simplify regexp.
16029         (_gl_TS_obj_files): New configurable variable.
16030         (_gl_TS_headers): Likewise.
16031
16032 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16033
16034         verify: fix bug when gnulib <assert.h> is also included
16035         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16036         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16037         Perhaps there's a better way, but this fixes the immediate problem.
16038         Problem reported by Bruno Haible in
16039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16040
16041 2011-05-22  Bruno Haible  <bruno@clisp.org>
16042
16043         xgetcwd: Simplify autoconf macro.
16044         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16045
16046 2011-05-22  Bruno Haible  <bruno@clisp.org>
16047
16048         New module 'mktime-internal'.
16049         * modules/mktime-internal: New file.
16050         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16051         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16052         mktime_internal as a C macro if libc has __mktime_internal.
16053         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16054         conditions.
16055         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16056
16057 2011-05-22  Bruno Haible  <bruno@clisp.org>
16058
16059         timegm: Correct mktime replacement statements.
16060         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16061         defining mktime as a C macro. This completes a 2009-07-28 commit.
16062
16063 2011-05-22  Bruno Haible  <bruno@clisp.org>
16064
16065         timegm: Simplify autoconf macro.
16066         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16067
16068 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16069
16070         clock-time: change to LGPLv2+.
16071         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16072         BSD-like but we have no mark for that; this is good enough for now.
16073
16074 2011-05-21  Bruno Haible  <bruno@clisp.org>
16075
16076         strerror_r: Fix comments.
16077         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16078
16079 2011-05-21  Bruno Haible  <bruno@clisp.org>
16080
16081         relocatable-prog-wrapper: Fix possible link error.
16082         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16083         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16084         (gl_FUNC_SETENV): ... to here.
16085         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16086         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16087
16088 2011-05-21  Bruno Haible  <bruno@clisp.org>
16089
16090         relocatable-prog-wrapper: Assume strerror() exists.
16091         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16092         m4/strerror.m4.
16093         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16094         * lib/relocwrapper.c: Remove mention of strerror module.
16095         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16096         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16097         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16098         C macro.
16099
16100 2011-05-21  Bruno Haible  <bruno@clisp.org>
16101
16102         select: Simplify replacement idiom.
16103         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16104         Win32 platforms.
16105         * lib/sys_select.in.h (select): Simplify accordingly.
16106         * modules/select (Depends-on): Likewise.
16107
16108 2011-05-21  Bruno Haible  <bruno@clisp.org>
16109
16110         mkdir-p: Simplify autoconf macro.
16111         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16112         gl_FUNC_LCHOWN.
16113
16114 2011-05-21  Eric Blake  <eblake@redhat.com>
16115
16116         strerror_r: avoid clobbering strerror on cygwin
16117         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16118         fall back instead to sys_errlist.
16119         * modules/strerror (configure.ac): Add witness.
16120         * tests/test-strerror_r.c (main): Enhance test.
16121         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16122         * tests/test-perror2.c (main): Free memory before exit.
16123
16124 2011-05-21  Bruno Haible  <bruno@clisp.org>
16125
16126         mkdtemp: Use gnulib naming conventions.
16127         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16128         * modules/mkdtemp (configure.ac): Update.
16129
16130 2011-05-20  Eric Blake  <eblake@redhat.com>
16131
16132         strerror_r: avoid corrupting errno on Solaris
16133         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16134         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16135
16136         strerror_r: avoid compiler warning
16137         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16138
16139         strerror_r: simplify AIX code
16140         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16141
16142         test-perror: avoid spurious failure on FreeBSD
16143         * modules/perror-tests (Depends-on): Add strerror, now that
16144         strerror_r no longer pulls it in.
16145
16146 2011-05-20  Bruno Haible  <bruno@clisp.org>
16147
16148         strerror_r-posix: Remove unused dependencies.
16149         * modules/strerror_r-posix (Depends-on): Remove strerror.
16150         Reported by Eric Blake.
16151
16152 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16153
16154         intprops: remove assumption about A|B representation
16155         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16156         is a valid integer if both A and B are.  Although this is true for
16157         all known practical hosts, the C standard doesn't guarantee it,
16158         and the code need not assume it.  Also, this change may work around
16159         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16161
16162 2011-05-20  Eric Blake  <eblake@redhat.com>
16163
16164         perror: work around FreeBSD bug
16165         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16166         is broken.  Move AC_LIBOBJ...
16167         * modules/perror (configure.ac): Here.
16168         * doc/posix-functions/perror.texi (perror): Document this.
16169         * tests/test-perror2.c (main): Enhance test.
16170
16171         test-perror: check for strerror interactions
16172         * tests/macros.h (STREQ): Add macro.
16173         * modules/perror-tests (Files): Add second test.
16174         * tests/test-perror2.c (main): New file.
16175         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16176
16177         test-perror: rewrite to use init script
16178         * modules/perror-tests (Files): Add init.sh.
16179         * tests/test-perror.sh: Use temporary directory.
16180
16181 2011-05-20  Jim Meyering  <meyering@redhat.com>
16182
16183         maint: replace misused "a" with "an"
16184         * doc/intprops.texi: "a integer"
16185         * doc/regex.texi: "a explanation"
16186         * lib/alignof.h: "a object"
16187         * lib/argmatch.h: "a explanation"
16188         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16189         * lib/stdint.in.h: "a integer"
16190         * lib/userspec.c: "a owner"
16191         * doc/gnulib.texi: Fix "a idea", and reword.
16192
16193 2011-05-19  Jim Meyering  <meyering@redhat.com>
16194
16195         maint: correct misuse of "a" and "an"
16196         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16197         * lib/argp-help.c: "an docum...": s/an/a/
16198         * lib/argp-parse.c: "An vector": s/An/A/
16199         * lib/execute.c: "an native": s/an/a/
16200         * lib/spawn-pipe.c: Likewise.
16201         * lib/gc.h: "an Gc_rc": s/an/a/
16202         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16203         * lib/fts.c: "an stat.st_dev": s/an/a/
16204
16205 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16206
16207         intprops-tests: work around HP-UX 11.23 cc bug with constants
16208         * tests/test-intprops.c (VERIFY): New macro.
16209         (main): Use it, instead of verify, to work around the compiler bug; see
16210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16211
16212         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16213         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16214         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16215         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16216         (_GL_REMAINDER_OVERFLOW): Use it.
16217
16218         intprops-tests: revert unsigned part of previous change
16219         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16220         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16221         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16222         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16223
16224 2011-05-19  Bruno Haible  <bruno@clisp.org>
16225
16226         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16227         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16228         strerror_r() returned without filling the buffer.
16229         Reported by Eric Blake.
16230
16231 2011-05-19  Eric Blake  <eblake@redhat.com>
16232
16233         strerror_r: guarantee unchanged errno
16234         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16235         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16236         failure.
16237         * tests/test-strerror_r.c (main): Enhance test.
16238
16239 2011-05-19  Bruno Haible  <bruno@clisp.org>
16240
16241         strerror_r: Reorder #if blocks.
16242         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16243         for consistency with the previous commit.
16244
16245 2011-05-19  Bruno Haible  <bruno@clisp.org>
16246
16247         perror: Avoid clobbering the strerror buffer when possible.
16248         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16249         * lib/strerror.c: Include it.
16250         * modules/strerror (Files): Add lib/strerror-impl.h.
16251         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16252         (my_strerror): New function, defined through lib/strerror-impl.h.
16253         (perror): Use it instead of strerror.
16254         * modules/perror (Files): Add lib/strerror-impl.h.
16255         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16256
16257 2011-05-19  Eric Blake  <eblake@redhat.com>
16258
16259         strerror_r: fix on newer cygwin
16260         * lib/strerror_r.c (strerror_r): Cygwin now has
16261         __xpg_strerror_r, use it.
16262
16263 2011-05-19  Bruno Haible  <bruno@clisp.org>
16264
16265         strerror_r: Avoid clobbering the strerror buffer when possible.
16266         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16267         (sys_nerr, sys_errlist): New declarations.
16268         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16269         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16270         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16271
16272 2011-05-19  Bruno Haible  <bruno@clisp.org>
16273
16274         strerror_r: Fix test failure on mingw.
16275         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16276         EXTEND_STRERROR_R.
16277         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16278         macros from errno.in.h instead.
16279
16280 2011-05-19  Eric Blake  <eblake@redhat.com>
16281
16282         strerror: relax test for Solaris
16283         * tests/test-strerror.c (main): Permit Solaris behavior.
16284         * tests/test-strerror_r.c (main): Likewise.
16285
16286         strerror: enforce POSIX ruling on strerror(0)
16287         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16289         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16290         * doc/posix-functions/strerror.texi (strerror): Document it.
16291         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16292         * tests/test-strerror.c (main): Strengthen test.
16293         * tests/test-strerror_r.c (main): Likewise.
16294
16295 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16296
16297         intprop-tests: port to older and more-pedantic compilers
16298         * modules/intprops-tests (Files): Add tests/macros.h.
16299         * tests/test-intprops.c: Include macros.h.
16300         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16301         it's no longer documented to expand to an integer constant expression.
16302         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16303         argument is floating point, as it's no longer documented to expand
16304         to an integer constant expression in that case.
16305         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16306         compiler bugs reported by Bruno Haible.  See
16307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16308         (U0, U1): New constants, to work around the same bugs.  Also,
16309         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16310
16311         intprops: work around C compiler bugs
16312         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16313         bug in Sun C 5.11 2010/08/13 and other compilers; see
16314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16315
16316         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16317         * doc/intprops.texi (Integer Type Determination): Fix
16318         documentation for TYPE_IS_INTEGER: it returns an constant
16319         expression, not an integer constant expression.  Fix doc for
16320         TYPE_SIGNED: it returns an integer constant expression only if its
16321         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16322         hardly worth documented that way....)
16323
16324 2011-05-18  Bruno Haible  <bruno@clisp.org>
16325
16326         strerror_r: Avoid clobbering the strerror buffer when possible.
16327         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16328         Handle gnulib defined errno values here. When strerror() returns NULL
16329         or an empty string, return EINVAL.
16330         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16331         gnulib defined errno values here.
16332         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16333
16334 2011-05-18  Eric Blake  <eblake@redhat.com>
16335
16336         fnmatch: avoid compiler warning
16337         * lib/fnmatch_loop.c (FCT): Use correct type.
16338         Reported by Matthias Bolte.
16339
16340 2011-05-13  Jim Meyering  <meyering@redhat.com>
16341
16342         maint.mk: three new prohibit_<HDR>_without_use rules
16343         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16344         (sc_prohibit_stdio-safer_without_use): Likewise.
16345         (sc_prohibit_xfreopen_without_use): Likewise.
16346
16347 2011-05-17  Jim Meyering  <meyering@redhat.com>
16348
16349         announce-gen: fail if the NEWS delta is empty
16350         If there's nothing noteworthy in NEWS, then either you forgot
16351         or you shouldn't be releasing.
16352         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16353
16354 2011-05-17  Pádraig Brady <P@draigBrady.com>
16355
16356         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16357         reserved symbols starting with double underscore from the check.
16358
16359 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         intprops: add doc
16362         * doc/intprops.texi: New file, documenting intprops.
16363         * doc/gnulib.texi (Particular Modules): Include it.
16364
16365         verify: add doc to gnulib manual and fix example
16366         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16367         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16368         (Compile-time Assertions): Fix example so it can't overflow.
16369
16370 2011-05-17  Jim Meyering  <meyering@redhat.com>
16371
16372         warnings.m4: don't usurp save_CPPFLAGS variable name
16373         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16374
16375         doc: fix typo
16376         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16377
16378 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16379             Bruno Haible  <bruno@clisp.org>
16380
16381         doc: Tweak recent change.
16382         * README (Portability guidelines): Tweak new text.
16383         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16384         Interix 6.1.
16385
16386 2011-05-16  Eric Blake  <eblake@redhat.com>
16387
16388         inttypes: avoid autoconf warning
16389         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16390         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16391
16392 2011-05-16  Sam Steingold <sds@gnu.org>
16393         and Eric Blake  <eblake@redhat.com>
16394
16395         vc-list-files: accept multiple directory operands
16396         * build-aux/vc-list-files: Iterate over all remaining operands.
16397
16398 2011-05-16  Bruno Haible  <bruno@clisp.org>
16399
16400         Fix confusion regarding deprecated modules.
16401         * modules/calloc (Status, Notice): Mark module as deprecated, not
16402         obsolete.
16403         * modules/fnmatch-posix (Status, Notice): Likewise.
16404         * modules/getdate (Status, Notice): Likewise.
16405         * modules/getopt (Status, Notice): Likewise.
16406         * modules/malloc (Status, Notice): Likewise.
16407         * modules/pipe (Status, Notice): Likewise.
16408         * modules/realloc (Status, Notice): Likewise.
16409         * modules/rename-dest-slash (Status, Notice): Likewise.
16410         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16411         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16412         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16413         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16414         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16415
16416 2011-05-16  Bruno Haible  <bruno@clisp.org>
16417
16418         doc: List the target platforms.
16419         * doc/gnulib-intro.texi (Target Platforms): New section.
16420         * doc/gnulib.texi (Introduction): Update menu.
16421         * README (Portability guidelines): Refer to the new section. Update
16422         statement about oldest supported environment. Remove rationale why
16423         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16424         unportable C89 function.
16425         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16426         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16427
16428 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16429
16430         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16431
16432 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16433
16434         intprops-tests: new module
16435         * modules/intprops-tests, tests/test-intprops.c: New files.
16436
16437         intprops: add safe, portable integer overflow checking
16438         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16439         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16440         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16441         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16442         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16443         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16444         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16445         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16446         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16447         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16448         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16449
16450 2011-05-12  James Youngman  <jay@gnu.org>
16451
16452         Add a test for glibc's Bugzilla bug #12378.
16453         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16454         doesn't allow the literal matching of a lone "[" (which is
16455         required by POSIX).
16456         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16457
16458 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16459
16460         Sync glibc change fixing Bugzilla bug #12378.
16461         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16462         beginning and fall back to matching as normal character if the
16463         string ends before the matching ']' is found.  This is what POSIX
16464         requires.
16465
16466 2011-05-13  Eric Blake  <eblake@redhat.com>
16467
16468         getcwd-lgpl: relax test for FreeBSD
16469         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16470         issue.
16471         * tests/test-getcwd-lgpl.c (main): Relax test.
16472         Reported by Matthias Bolte.
16473
16474 2011-05-11  Eric Blake  <eblake@redhat.com>
16475
16476         test-fflush: silence compiler warning
16477         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16478
16479 2011-05-11  Bruno Haible  <bruno@clisp.org>
16480
16481         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16482         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16483         * modules/canonicalize (Depends-on): Add 'nocrash'.
16484         * modules/canonicalize-lgpl (Depends-on): Likewise.
16485         * doc/posix-functions/realpath.texi: Update platforms list.
16486         Reported by Ryan Schmidt <ryandesign@macports.org>.
16487
16488 2011-05-11  Bruno Haible  <bruno@clisp.org>
16489
16490         group-member: Declare function in <unistd.h>.
16491         * lib/unistd.in.h (group_member): New declaration.
16492         * lib/group-member.h: Remove file.
16493         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16494         * tests/test-unistd-c++.cc: Check signature of group_member.
16495         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16496         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16497         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16498         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16499         HAVE_GROUP_MEMBER.
16500         * modules/group-member (Files): Remove lib/group-member.h.
16501         (Depends-on): Add unistd. Specify conditions.
16502         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16503         (Include): Change to <unistd.h>.
16504         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16505         HAVE_GROUP_MEMBER.
16506         * NEWS: Mention the change.
16507         * lib/euidaccess.c: Don't include group-member.h.
16508
16509 2011-05-11  Bruno Haible  <bruno@clisp.org>
16510
16511         group-member: Document module.
16512         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16513         module.
16514
16515 2011-05-11  Bruno Haible  <bruno@clisp.org>
16516
16517         fclose: Fix mistake earlier today.
16518         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16519
16520 2011-05-11  Eric Blake  <eblake@redhat.com>
16521
16522         fclose: preserve fflush errors
16523         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16524         Reported by Jim Meyering.
16525
16526         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16527         * build-aux/bootstrap (check_versions): When no specific version
16528         is required, merely check that the app produces an exit status
16529         that indicates its existence.
16530
16531         maint.mk: drop redundant check
16532         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16533         the same but better.
16534
16535 2011-05-11  Bruno Haible  <bruno@clisp.org>
16536
16537         fclose: Fix possible link error.
16538         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16539         unregister_shadow_fd. Improve comments.
16540         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16541         Eric Blake.
16542
16543 2011-05-11  Jim Meyering  <meyering@redhat.com>
16544
16545         maint.mk: improve "can not" detection and generalize rule name
16546         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16547         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16548         Use the same technique as in sc_prohibit_doubled_word, so that
16549         we recognize "can not" also when the words are separated by a newline.
16550         Suggested by Eric Blake.
16551         (perl_filename_lineno_text_): Define.  Factored out of...
16552         (prohibit_doubled_word_): ...here.  Use the new definition.
16553         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16554         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16555         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16556
16557 2011-05-10  Eric Blake  <eblake@redhat.com>
16558
16559         fclose: avoid double close race when possible
16560         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16561         all but WINDOWS_SOCKETS.
16562
16563 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16564
16565         openat: correct new comment
16566         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16567
16568 2011-05-10  Jim Meyering  <meyering@redhat.com>
16569
16570         openat: add comments
16571         * lib/openat-proc.c (openat_proc_name): Add comments,
16572         mostly from Eric Blake.
16573
16574 2011-05-09  Eric Blake  <eblake@redhat.com>
16575
16576         openat: reduce syscalls in first probe of /proc
16577         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16578         be a directory.  Simplify the probe for .. bugs.
16579         * modules/openat (Depends-on): Drop same-inode.
16580         Reported by Bastien ROUCARIES.
16581
16582 2011-05-09  Jim Meyering  <meyering@redhat.com>
16583
16584         maint.mk: change semantics/name of tight_scope variables
16585         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16586         Rename variables to align with semantics that make them more useful.
16587
16588         maint.mk: tweak new rule's name not to impinge
16589         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16590         (sc_tight_scope): Use new rule name rather than $@-0.
16591
16592         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16593         * top/maint.mk (sc_tight_scope): New rule.
16594         (sc_tight_scope-0): New rule, ifdef'd out.
16595         (_gl_TS_dir): Default.
16596         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16597         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16598
16599 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16600
16601         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16602         Haible <bruno@clisp.org>.
16603
16604 2011-05-08  Bruno Haible  <bruno@clisp.org>
16605
16606         Comments.
16607         * m4/isnanf.m4: Add comment.
16608         * m4/isnanl.m4: Likewise.
16609
16610 2011-05-08  Bruno Haible  <bruno@clisp.org>
16611
16612         glob: Remove obsolete macro.
16613         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16614
16615 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16616
16617         intprops: Sun C 5.11 supports __typeof__
16618         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16619         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16620         which is new.
16621         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16622
16623         intprops: switch to usual gnulib indenting and naming
16624         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16625         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16626
16627         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16628
16629 2011-05-08  Jim Meyering  <meyering@redhat.com>
16630
16631         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16632         * top/maint.mk (release-prep): Use make's --no-print-directory
16633         option when generating the announcement.  This eliminates the
16634         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16635         generated announcement template.
16636
16637 2011-05-08  Bruno Haible  <bruno@clisp.org>
16638
16639         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16640         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16641         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16642
16643 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         ignore-value, verify: Omit include files from lib_SOURCES.
16646         * modules/ignore-value, modules/verify (Makefile.am):
16647         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16648         that leads Automake to duplicate use of am__objects_... variables
16649         in Makefile.in.  See
16650         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16651
16652 2011-05-07  Bruno Haible  <bruno@clisp.org>
16653
16654         fclose: Simplify autoconf macro.
16655         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16656         defined.
16657
16658 2011-05-07  Bruno Haible  <bruno@clisp.org>
16659
16660         canonicalize-lgpl: Fix autoconf macro ordering bug.
16661         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16662         gl_STDLIB_H_DEFAULTS.
16663
16664 2011-05-06  Eric Blake  <eblake@redhat.com>
16665
16666         maintainer-makefile: make sc_po_check easier to tune
16667         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16668         to probe for strings, such as an alternate location for gnulib.
16669
16670         fclose: guarantee behavior on seekable stdin
16671         * modules/fclose (Depends-on): Add fflush.
16672         * doc/posix-functions/fclose.texi (fclose): Document this.
16673         * tests/test-fclose.c (main): Make test for this unconditional.
16674
16675 2011-05-06  Bruno Haible  <bruno@clisp.org>
16676
16677         fflush, fpurge: Relicense under LGPLv2+.
16678         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16679         * modules/fpurge (License): Likewise.
16680         With permission from Eric Blake and Jim Meyering.
16681         Suggested by Eric Blake.
16682
16683 2011-05-06  Karl Berry  <karl@gnu.org>
16684
16685         * MODULES.html.sh (func_all_modules): remove exit.
16686
16687 2011-05-06  Jim Meyering  <meyering@redhat.com>
16688
16689         maint.mk: use info-gnu@ as the default only for a stable release
16690         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16691         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16692         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16693         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16694
16695 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16696
16697         assert-h: new module, which supports C1X-style static_assert
16698         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16699         * lib/verify.h: Revamp so that this can be copied into assert.h,
16700         while retaining the ability to use it standalone as before.
16701         Rename private identifiers so as not to encroach on the
16702         standard C namespace, since this is now used by assert.h.
16703         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16704         the old verify_true.
16705         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16706         the old verify_true.  Use _GL_VERIFY_TYPE.
16707         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16708         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16709         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16710         defined when this file is copied into the replacement assert.h.
16711         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16712         and _Static_assert is not built in.
16713         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16714         defined, and use the new macros mentioned above.
16715         * doc/posix-headers/assert.texi: Document this.
16716
16717 2011-05-05  Bruno Haible  <bruno@clisp.org>
16718
16719         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16720         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16721         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16722         gl_REPLACE_FCLOSE here.
16723         * modules/fflush (Depends-on): Remove fclose.
16724         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16725         combination with module 'fclose'.
16726
16727 2011-05-05  Bruno Haible  <bruno@clisp.org>
16728
16729         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16730         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16731         gl_FUNC_FFLUSH.
16732         (gl_FUNC_FFLUSH): Use it.
16733         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16735         gl_REPLACE_FSEEKO here.
16736
16737 2011-05-05  Bruno Haible  <bruno@clisp.org>
16738
16739         tzset: Relicense under LGPL.
16740         * modules/tzset (License): Change to LGPL.
16741         No agreement needed; it's a no-op.
16742
16743         strtoimax, strtoumax: Relicense under LGPL.
16744         * modules/strtoimax (License): Change to LGPL.
16745         * modules/strtoumax (License): Likewise.
16746         With permission from Jim Meyering, Paul Eggert:
16747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16749
16750         getgroups: Relicense under LGPL.
16751         * modules/getgroups (License): Change to LGPL.
16752         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16754         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16756
16757         nanosleep: Relicense under LGPL.
16758         * modules/nanosleep (License): Change to LGPL.
16759         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16760         Haible:
16761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16765
16766         futimens: Relicense under LGPL.
16767         * modules/futimens (License): Change to LGPL.
16768         With permission from Eric Blake:
16769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16770
16771         fflush: Relicense under LGPL.
16772         * modules/fflush (License): Change to LGPL.
16773         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16776         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16777
16778         tmpfile: Relicense under LGPL.
16779         * modules/tmpfile (License): Change to LGPL.
16780         With permission from Ben Pfaff:
16781         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16782
16783         isfinite: Relicense under LGPL.
16784         * modules/isfinite (License): Change to LGPL.
16785         With permission from Ben Pfaff, Bruno Haible:
16786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16788
16789         acosl..tanl: Relicense under LGPL.
16790         * modules/acosl (License): Change to LGPL.
16791         * modules/asinl (License): Likewise.
16792         * modules/atanl (License): Likewise.
16793         * modules/cosl (License): Likewise.
16794         * modules/expl (License): Likewise.
16795         * modules/logl (License): Likewise.
16796         * modules/sinl (License): Likewise.
16797         * modules/sqrtl (License): Likewise.
16798         * modules/tanl (License): Likewise.
16799         Source code originally from glibc and Paolo Bonzini. Agreements:
16800         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16801         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16802
16803 2011-05-05  Bruno Haible  <bruno@clisp.org>
16804
16805         signal: Define sighandler_t.
16806         * lib/signal.in.h (sighandler_t): New type.
16807         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16808         whether sighandler_t is defined.
16809         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16810         * modules/signal (Depends-on): Add extensions.
16811         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16812         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16813         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16814
16815 2011-05-05  Eric Blake  <eblake@redhat.com>
16816
16817         maint: remove useless REPLACE_*_H macros
16818         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16819         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16820         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16821         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16822         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16823         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16824         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16825         * m4/btowc.m4: Update callers.
16826         * m4/dirfd.m4: Likewise.
16827         * m4/duplocale.m4: Likewise.
16828         * m4/fchdir.m4: Likewise.
16829         * m4/fdopendir.m4: Likewise.
16830         * m4/inet_ntop.m4: Likewise.
16831         * m4/inet_pton.m4: Likewise.
16832         * m4/ioctl.m4: Likewise.
16833         * m4/mbrlen.m4: Likewise.
16834         * m4/mbrtowc.m4: Likewise.
16835         * m4/mbsinit.m4: Likewise.
16836         * m4/mbsnrtowcs.m4: Likewise.
16837         * m4/mbsrtowcs.m4: Likewise.
16838         * m4/poll.m4: Likewise.
16839         * m4/setlocale.m4: Likewise.
16840         * m4/wcrtomb.m4: Likewise.
16841         * m4/wcsnrtombs.m4: Likewise.
16842         * m4/wcsrtombs.m4: Likewise.
16843         * m4/wctob.m4: Likewise.
16844         * m4/wcwidth.m4: Likewise.
16845         * modules/posix_spawn: Likewise.
16846         * modules/posix_spawn_file_actions_addclose: Likewise.
16847         * modules/posix_spawn_file_actions_adddup2: Likewise.
16848         * modules/posix_spawn_file_actions_addopen: Likewise.
16849         * modules/posix_spawn_file_actions_destroy: Likewise.
16850         * modules/posix_spawn_file_actions_init: Likewise.
16851         * modules/posix_spawnattr_destroy: Likewise.
16852         * modules/posix_spawnattr_getflags: Likewise.
16853         * modules/posix_spawnattr_getpgroup: Likewise.
16854         * modules/posix_spawnattr_getschedparam: Likewise.
16855         * modules/posix_spawnattr_getschedpolicy: Likewise.
16856         * modules/posix_spawnattr_getsigdefault: Likewise.
16857         * modules/posix_spawnattr_getsigmask: Likewise.
16858         * modules/posix_spawnattr_init: Likewise.
16859         * modules/posix_spawnattr_setflags: Likewise.
16860         * modules/posix_spawnattr_setpgroup: Likewise.
16861         * modules/posix_spawnattr_setschedparam: Likewise.
16862         * modules/posix_spawnattr_setschedpolicy: Likewise.
16863         * modules/posix_spawnattr_setsigdefault: Likewise.
16864         * modules/posix_spawnattr_setsigmask: Likewise.
16865         * modules/posix_spawnp: Likewise.
16866
16867 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16868
16869         Add option to do-release-commit-and-tag to specify branch.
16870         * build-aux/do-release-commit-and-tag: Add --branch.
16871
16872 2011-05-03  Bruno Haible  <bruno@clisp.org>
16873
16874         Avoid unnecessary compilation units, through conditional dependencies.
16875         * modules/accept (Depends-on): Add conditions to the dependencies.
16876         * modules/acosl (Depends-on): Likewise.
16877         * modules/argz (Depends-on): Likewise.
16878         * modules/asinl (Depends-on): Likewise.
16879         * modules/atanl (Depends-on): Likewise.
16880         * modules/atoll (Depends-on): Likewise.
16881         * modules/bind (Depends-on): Likewise.
16882         * modules/btowc (Depends-on): Likewise.
16883         * modules/canonicalize-lgpl (Depends-on): Likewise.
16884         * modules/ceil (Depends-on): Likewise.
16885         * modules/ceilf (Depends-on): Likewise.
16886         * modules/ceill (Depends-on): Likewise.
16887         * modules/chdir-long (Depends-on): Likewise.
16888         * modules/chown (Depends-on): Likewise.
16889         * modules/close (Depends-on): Likewise.
16890         * modules/connect (Depends-on): Likewise.
16891         * modules/cosl (Depends-on): Likewise.
16892         * modules/dirfd (Depends-on): Likewise.
16893         * modules/dprintf (Depends-on): Likewise.
16894         * modules/dprintf-posix (Depends-on): Likewise.
16895         * modules/error (Depends-on): Likewise.
16896         * modules/euidaccess (Depends-on): Likewise.
16897         * modules/expl (Depends-on): Likewise.
16898         * modules/faccessat (Depends-on): Likewise.
16899         * modules/fchdir (Depends-on): Likewise.
16900         * modules/fclose (Depends-on): Likewise.
16901         * modules/fcntl (Depends-on): Likewise.
16902         * modules/fdopendir (Depends-on): Likewise.
16903         * modules/fflush (Depends-on): Likewise.
16904         * modules/floor (Depends-on): Likewise.
16905         * modules/floorf (Depends-on): Likewise.
16906         * modules/floorl (Depends-on): Likewise.
16907         * modules/fnmatch (Depends-on): Likewise.
16908         * modules/fopen (Depends-on): Likewise.
16909         * modules/fprintf-posix (Depends-on): Likewise.
16910         * modules/frexp (Depends-on): Likewise.
16911         * modules/frexp-nolibm (Depends-on): Likewise.
16912         * modules/frexpl (Depends-on): Likewise.
16913         * modules/frexpl-nolibm (Depends-on): Likewise.
16914         * modules/fseek (Depends-on): Likewise.
16915         * modules/fsusage (Depends-on): Likewise.
16916         * modules/ftell (Depends-on): Likewise.
16917         * modules/ftello (Depends-on): Likewise.
16918         * modules/futimens (Depends-on): Likewise.
16919         * modules/getcwd (Depends-on): Likewise.
16920         * modules/getcwd-lgpl (Depends-on): Likewise.
16921         * modules/getdelim (Depends-on): Likewise.
16922         * modules/getdomainname (Depends-on): Likewise.
16923         * modules/getgroups (Depends-on): Likewise.
16924         * modules/gethostname (Depends-on): Likewise.
16925         * modules/getline (Depends-on): Likewise.
16926         * modules/getlogin_r (Depends-on): Likewise.
16927         * modules/getopt-posix (Depends-on): Likewise.
16928         * modules/getpeername (Depends-on): Likewise.
16929         * modules/getsockname (Depends-on): Likewise.
16930         * modules/getsockopt (Depends-on): Likewise.
16931         * modules/getsubopt (Depends-on): Likewise.
16932         * modules/getusershell (Depends-on): Likewise.
16933         * modules/glob (Depends-on): Likewise.
16934         * modules/grantpt (Depends-on): Likewise.
16935         * modules/iconv_open (Depends-on): Likewise.
16936         * modules/iconv_open-utf (Depends-on): Likewise.
16937         * modules/inet_ntop (Depends-on): Likewise.
16938         * modules/inet_pton (Depends-on): Likewise.
16939         * modules/ioctl (Depends-on): Likewise.
16940         * modules/isapipe (Depends-on): Likewise.
16941         * modules/isfinite (Depends-on): Likewise.
16942         * modules/isinf (Depends-on): Likewise.
16943         * modules/lchown (Depends-on): Likewise.
16944         * modules/ldexpl (Depends-on): Likewise.
16945         * modules/link (Depends-on): Likewise.
16946         * modules/linkat (Depends-on): Likewise.
16947         * modules/listen (Depends-on): Likewise.
16948         * modules/logl (Depends-on): Likewise.
16949         * modules/lstat (Depends-on): Likewise.
16950         * modules/mbrlen (Depends-on): Likewise.
16951         * modules/mbrtowc (Depends-on): Likewise.
16952         * modules/mbsinit (Depends-on): Likewise.
16953         * modules/mbsnrtowcs (Depends-on): Likewise.
16954         * modules/mbsrtowcs (Depends-on): Likewise.
16955         * modules/mbtowc (Depends-on): Likewise.
16956         * modules/memcmp (Depends-on): Likewise.
16957         * modules/mkdir (Depends-on): Likewise.
16958         * modules/mkdtemp (Depends-on): Likewise.
16959         * modules/mkfifo (Depends-on): Likewise.
16960         * modules/mkfifoat (Depends-on): Likewise.
16961         * modules/mknod (Depends-on): Likewise.
16962         * modules/mkostemp (Depends-on): Likewise.
16963         * modules/mkostemps (Depends-on): Likewise.
16964         * modules/mkstemp (Depends-on): Likewise.
16965         * modules/mkstemps (Depends-on): Likewise.
16966         * modules/mktime (Depends-on): Likewise.
16967         * modules/nanosleep (Depends-on): Likewise.
16968         * modules/open (Depends-on): Likewise.
16969         * modules/openat (Depends-on): Likewise.
16970         * modules/perror (Depends-on): Likewise.
16971         * modules/poll (Depends-on): Likewise.
16972         * modules/popen (Depends-on): Likewise.
16973         * modules/posix_spawn (Depends-on): Likewise.
16974         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16975         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16976         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16977         * modules/posix_spawnp (Depends-on): Likewise.
16978         * modules/pread (Depends-on): Likewise.
16979         * modules/printf-posix (Depends-on): Likewise.
16980         * modules/ptsname (Depends-on): Likewise.
16981         * modules/putenv (Depends-on): Likewise.
16982         * modules/pwrite (Depends-on): Likewise.
16983         * modules/readline (Depends-on): Likewise.
16984         * modules/readlink (Depends-on): Likewise.
16985         * modules/readlinkat (Depends-on): Likewise.
16986         * modules/recv (Depends-on): Likewise.
16987         * modules/recvfrom (Depends-on): Likewise.
16988         * modules/regex (Depends-on): Likewise.
16989         * modules/remove (Depends-on): Likewise.
16990         * modules/rename (Depends-on): Likewise.
16991         * modules/renameat (Depends-on): Likewise.
16992         * modules/rmdir (Depends-on): Likewise.
16993         * modules/round (Depends-on): Likewise.
16994         * modules/roundf (Depends-on): Likewise.
16995         * modules/roundl (Depends-on): Likewise.
16996         * modules/rpmatch (Depends-on): Likewise.
16997         * modules/select (Depends-on): Likewise.
16998         * modules/send (Depends-on): Likewise.
16999         * modules/sendto (Depends-on): Likewise.
17000         * modules/setenv (Depends-on): Likewise.
17001         * modules/setlocale (Depends-on): Likewise.
17002         * modules/setsockopt (Depends-on): Likewise.
17003         * modules/shutdown (Depends-on): Likewise.
17004         * modules/sigaction (Depends-on): Likewise.
17005         * modules/signbit (Depends-on): Likewise.
17006         * modules/sigprocmask (Depends-on): Likewise.
17007         * modules/sinl (Depends-on): Likewise.
17008         * modules/sleep (Depends-on): Likewise.
17009         * modules/snprintf (Depends-on): Likewise.
17010         * modules/snprintf-posix (Depends-on): Likewise.
17011         * modules/socket (Depends-on): Likewise.
17012         * modules/sprintf-posix (Depends-on): Likewise.
17013         * modules/sqrtl (Depends-on): Likewise.
17014         * modules/stat (Depends-on): Likewise.
17015         * modules/strchrnul (Depends-on): Likewise.
17016         * modules/strdup-posix (Depends-on): Likewise.
17017         * modules/strerror (Depends-on): Likewise.
17018         * modules/strerror_r-posix (Depends-on): Likewise.
17019         * modules/strndup (Depends-on): Likewise.
17020         * modules/strnlen (Depends-on): Likewise.
17021         * modules/strptime (Depends-on): Likewise.
17022         * modules/strsep (Depends-on): Likewise.
17023         * modules/strsignal (Depends-on): Likewise.
17024         * modules/strstr-simple (Depends-on): Likewise.
17025         * modules/strtod (Depends-on): Likewise.
17026         * modules/strtoimax (Depends-on): Likewise.
17027         * modules/strtok_r (Depends-on): Likewise.
17028         * modules/strtoumax (Depends-on): Likewise.
17029         * modules/symlink (Depends-on): Likewise.
17030         * modules/symlinkat (Depends-on): Likewise.
17031         * modules/tanl (Depends-on): Likewise.
17032         * modules/tcgetsid (Depends-on): Likewise.
17033         * modules/tmpfile (Depends-on): Likewise.
17034         * modules/trunc (Depends-on): Likewise.
17035         * modules/truncf (Depends-on): Likewise.
17036         * modules/truncl (Depends-on): Likewise.
17037         * modules/uname (Depends-on): Likewise.
17038         * modules/unlink (Depends-on): Likewise.
17039         * modules/unlockpt (Depends-on): Likewise.
17040         * modules/unsetenv (Depends-on): Likewise.
17041         * modules/usleep (Depends-on): Likewise.
17042         * modules/utimensat (Depends-on): Likewise.
17043         * modules/vasprintf (Depends-on): Likewise.
17044         * modules/vdprintf (Depends-on): Likewise.
17045         * modules/vdprintf-posix (Depends-on): Likewise.
17046         * modules/vfprintf-posix (Depends-on): Likewise.
17047         * modules/vprintf-posix (Depends-on): Likewise.
17048         * modules/vsnprintf (Depends-on): Likewise.
17049         * modules/vsnprintf-posix (Depends-on): Likewise.
17050         * modules/vsprintf-posix (Depends-on): Likewise.
17051         * modules/wcrtomb (Depends-on): Likewise.
17052         * modules/wcscasecmp (Depends-on): Likewise.
17053         * modules/wcscspn (Depends-on): Likewise.
17054         * modules/wcsdup (Depends-on): Likewise.
17055         * modules/wcsncasecmp (Depends-on): Likewise.
17056         * modules/wcsnrtombs (Depends-on): Likewise.
17057         * modules/wcspbrk (Depends-on): Likewise.
17058         * modules/wcsrtombs (Depends-on): Likewise.
17059         * modules/wcsspn (Depends-on): Likewise.
17060         * modules/wcsstr (Depends-on): Likewise.
17061         * modules/wcstok (Depends-on): Likewise.
17062         * modules/wcswidth (Depends-on): Likewise.
17063         * modules/wctob (Depends-on): Likewise.
17064         * modules/wctomb (Depends-on): Likewise.
17065         * modules/wctype (Depends-on): Likewise.
17066         * modules/wcwidth (Depends-on): Likewise.
17067         * modules/write (Depends-on): Likewise.
17068
17069 2011-05-03  Bruno Haible  <bruno@clisp.org>
17070
17071         Support for conditional dependencies.
17072         * doc/gnulib.texi (Module description): Document the syntax of
17073         conditional dependencies.
17074         * gnulib-tool: New option --conditional-dependencies.
17075         (func_usage): Document it.
17076         (cond_dependencies): New variable.
17077         (func_get_automake_snippet_conditional,
17078         func_get_automake_snippet_unconditional): New functions, extracted from
17079         func_get_automake_snippet.
17080         (func_get_automake_snippet): Use them.
17081         (sed_first_32_chars): New variable.
17082         (func_module_shellfunc_name): New function.
17083         (func_module_shellvar_name): New function.
17084         (func_module_conditional_name): New function.
17085         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17086         func_cond_module_condition): New functions.
17087         (func_modules_transitive_closure): Add support for conditional
17088         dependencies.
17089         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17090         conditional automake snippet in an automake conditional.
17091         (func_emit_autoconf_snippets): Emit shell functions that contain the
17092         code for conditional modules.
17093         (func_import, func_create_testdir): Update specification.
17094
17095 2011-05-03  Eric Blake  <eblake@redhat.com>
17096
17097         test-getaddrinfo: report error information
17098         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17099
17100 2011-05-03  Jim Meyering  <meyering@redhat.com>
17101
17102         bootstrap: avoid build failure when $GZIP is set
17103         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17104         program name.  If defined at all, it is supposed to list gzip options.
17105         Reported by Alan Curry in http://debbugs.gnu.org/8609
17106
17107 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17108
17109         readme-release: new module with release instructions
17110         * modules/readme-release: New module.
17111         * top/README-release: New file, from coreutils, grep, diffutils.
17112         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17113
17114 2011-05-02  Eric Blake  <eblake@redhat.com>
17115
17116         fflush: also replace fclose when fixing fflush
17117         * modules/fflush (Depends-on): Add fclose.
17118         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17119         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17120         memstreams with no backing fd.
17121         * doc/posix-functions/fclose.texi (fclose): Document the use of
17122         fflush module to fix the bug.
17123         * tests/test-fclose.c (main): Relax test when fclose is used in
17124         isolation.
17125
17126         fclose: add some tests
17127         * modules/fclose-tests: New test module.
17128         * tests/test-fclose.c: New file.
17129         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17130
17131         fclose: reduced dependencies
17132         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17133         simpler lseek.
17134         * lib/fclose.c (rpl_fclose): Likewise.
17135         Reported by Simon Josefsson.
17136
17137         exit: drop remaining clients
17138         * modules/argmatch (Depends-on): Replace exit with stdlib.
17139         * modules/copy-file (Depends-on): Likewise.
17140         * modules/execute (Depends-on): Likewise.
17141         * modules/exitfail (Depends-on): Likewise.
17142         * modules/obstack (Depends-on): Likewise.
17143         * modules/pagealign_alloc (Depends-on): Likewise.
17144         * modules/pipe-filter-gi (Depends-on): Likewise.
17145         * modules/pipe-filter-ii (Depends-on): Likewise.
17146         * modules/savewd (Depends-on): Likewise.
17147         * modules/spawn-pipe (Depends-on): Likewise.
17148         * modules/wait-process (Depends-on): Likewise.
17149         * modules/xsetenv (Depends-on): Likewise.
17150         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17151         * modules/git-merge-changelog (Depends-on): Likewise.
17152         * modules/long-options (Depends-on): Likewise.
17153         * modules/pt_chown (Depends-on): Likewise.
17154         * modules/sysexits (Depends-on): Likewise.
17155
17156         freading: relax license from LGPLv3+ to LGPLv2+
17157         * modules/freading (License): Relax LGPL version.
17158
17159 2011-05-02  Bruno Haible  <bruno@clisp.org>
17160
17161         fchdir: Remove unused dependencies.
17162         * modules/fchdir (Depends-on): Remove include_next.
17163
17164 2011-05-02  Bruno Haible  <bruno@clisp.org>
17165
17166         gnulib-tool: Refactor.
17167         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17168         from func_emit_autoconf_snippets.
17169         (func_emit_autoconf_snippets): Use it.
17170
17171 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17172
17173         * NEWS: Document removal of 'exit'.
17174         * modules/exit: Remove file.
17175
17176 2011-05-01  Bruno Haible  <bruno@clisp.org>
17177
17178         Update DEPENDENCIES.
17179         * DEPENDENCIES (gettext): Recommend the newest release.
17180         Reported by Simon Josefsson.
17181
17182 2011-05-01  Bruno Haible  <bruno@clisp.org>
17183
17184         gnulib-tool: Reduce code duplication.
17185         * gnulib-tool (func_emit_autoconf_snippets): New function.
17186         (func_import, func_create_testdir): Use it.
17187
17188 2011-04-30  Eric Blake  <eblake@redhat.com>
17189
17190         fclose: don't fail on non-seekable input stream
17191         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17192         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17193         since fflush is allowed to fail in that case.
17194
17195 2011-04-30  Bruno Haible  <bruno@clisp.org>
17196
17197         dup3: cleanup
17198         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17199
17200 2011-04-30  Bruno Haible  <bruno@clisp.org>
17201
17202         netdb: Make it work in C++ mode.
17203         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17204         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17205         module.
17206         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17207         gl_MODULE_INDICATOR_FOR_TESTS.
17208         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17209         * modules/netdb-c++-tests: New file.
17210         * tests/test-netdb-c++.cc: New file.
17211
17212 2011-04-30  Bruno Haible  <bruno@clisp.org>
17213
17214         New modules 'vfscanf', 'vscanf'.
17215         * modules/vfscanf: New file.
17216         * modules/vscanf: New file.
17217         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17218         here.
17219         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17220         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17221
17222 2011-04-30  Bruno Haible  <bruno@clisp.org>
17223
17224         passfd: Add comments.
17225         * lib/passfd.c: Add comments about platforms.
17226
17227 2011-04-30  Bruno Haible  <bruno@clisp.org>
17228
17229         sys_uio: Make <sys/uio.h> self-contained.
17230         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17231         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17232
17233 2011-04-30  Bruno Haible  <bruno@clisp.org>
17234
17235         sys_socket: Ensure 'struct iovec' definition.
17236         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17237         <sys/socket.h>.
17238         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17239
17240 2011-04-30  Bruno Haible  <bruno@clisp.org>
17241
17242         sys_uio: Protect definition of 'struct iovec'.
17243         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17244         it as a C struct.
17245
17246 2011-04-30  Bruno Haible  <bruno@clisp.org>
17247
17248         manywarnings: fix indentation
17249         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17250
17251 2011-04-30  Pádraig Brady <P@draigBrady.com>
17252
17253         manywarnings: add -Wno-missing-field-initializers if needed.
17254         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17255         option if it's needed to allow initialization with { 0, }
17256
17257 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17258
17259         announce-gen: cosmetic improvement
17260         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17261
17262 2011-04-29  Jim Meyering  <meyering@redhat.com>
17263
17264         vc-list-files: indent with spaces, not TABs
17265         * build-aux/vc-list-files: Convert leading TABs to spaces,
17266         to match the style of most other files in gnulib.
17267
17268         announce-gen: indent with spaces, not TABs
17269         * build-aux/announce-gen: Convert all TABs to spaces, to match
17270         the style of most other files in gnulib.
17271
17272 2011-04-29  Eric Blake  <eblake@redhat.com>
17273
17274         quotearg: avoid uninitialized variable use
17275         * lib/quotearg.c (quoting_options_from_style): Initialize
17276         remaining fields, and ensure that custom styles are only used via
17277         quoting_options rather than quoting_style.
17278
17279 2011-04-29  Jim Meyering  <meyering@redhat.com>
17280
17281         maint.mk: remove unused VC-tag variable
17282         * top/maint.mk (VC-tag): Remove unused variable.
17283
17284 2011-04-29  Bruno Haible  <bruno@clisp.org>
17285
17286         netdb: fix gai_strerror replacements
17287         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17288         * modules/netdb: Substitute it.
17289
17290 2011-04-29  Jim Meyering  <meyering@redhat.com>
17291
17292         test-getcwd.c: avoid new set-but-not-used warning
17293         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17294         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17295         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17296         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17297
17298         test-hash.c: avoid a new shadowing warning
17299         * tests/test-hash.c (main): Don't shadow "dup".
17300
17301 2011-04-28  Eric Blake  <eblake@redhat.com>
17302
17303         getaddrinfo: fix gai_strerror signature
17304         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17305         and work around mingw with UNICODE defined.
17306         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17307         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17308         * modules/netdb (Makefile.am): Substitute it.
17309         * lib/netdb.in.h (gai_strerror): Declare replacement.
17310         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17311         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17312         the fix.
17313
17314         getsockopt: avoid compiler warning
17315         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17316         Reported by Matthias Bolte.
17317
17318         tests: drop unused link dependency
17319         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17320         * modules/dirent-safer-tests (Makefile.am): Likewise.
17321         * modules/fdopendir-tests (Makefile.am): Likewise.
17322         * modules/mkfifoat-tests (Makefile.am): Likewise.
17323         * modules/openat-safer-tests (Makefile.am): Likewise.
17324         * modules/openat-tests (Makefile.am): Likewise.
17325         * modules/readlinkat-tests (Makefile.am): Likewise.
17326         * modules/symlinkat-tests (Makefile.am): Likewise.
17327         * modules/linkat-tests (Makefile.am): Likewise.
17328         (Depends-on): Switch to filenamecat-lgpl.
17329         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17330         LIBINTL.
17331         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17332         * tests/test-linkat.c (main): Don't require xalloc.
17333
17334         hash, mgetgroups: drop xalloc dependency
17335         * lib/hash.c (includes): Adjust includes.
17336         * lib/mgetgroups.c (includes): Likewise.
17337         (xgetgroups): Move...
17338         * lib/xgetgroups.c: ...to new file.
17339         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17340         * modules/xgetgroups: New file, split from...
17341         * modules/mgetgroups: ...here.
17342         (Depends-on): Add xalloc-oversized.
17343         * modules/hash (Depends-on): Likewise.
17344         * modules/hash-tests (Depends-on): Drop xalloc.
17345         (test_hash_LDADD): Drop unused library.
17346         * tests/test-hash.c (main): Break xalloc dependency.
17347         (includes): Drop unused include.
17348
17349         xalloc-oversized: new module
17350         * modules/xalloc-oversized: New module.
17351         * modules/xalloc (Depends-on): Add it.
17352         * lib/xalloc.h (xalloc_oversized): Move...
17353         * lib/xalloc-oversized.h: ...into new file.
17354
17355         utimecmp: drop dependency on xmalloc
17356         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17357         due to memory pressure.
17358         * modules/utimecmp (Depends-on): Drop xalloc.
17359
17360 2011-04-27  Eric Blake  <eblake@redhat.com>
17361
17362         getcwd: fix mingw bugs
17363         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17364         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17365         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17366
17367 2011-04-27  Bruno Haible  <bruno@clisp.org>
17368
17369         mkstemps: Ensure declaration on MacOS X 10.5.
17370         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17371         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17372         MacOS X.
17373
17374 2011-04-27  Bruno Haible  <bruno@clisp.org>
17375
17376         mkstemp: More documentation.
17377         * doc/posix-functions/mkstemp.texi: Document header file problem on
17378         MacOS X.
17379
17380 2011-04-27  Bruno Haible  <bruno@clisp.org>
17381
17382         mkstemp: Tweak configure message when cross-compiling.
17383         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17384         result as a guess.
17385
17386 2011-04-27  Bruno Haible  <bruno@clisp.org>
17387
17388         clean-temp: Clarify what it does.
17389         * lib/clean-temp.h: Add more comments.
17390         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17391         module.
17392         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17393         * doc/glibc-functions/mkstemps.texi: Likewise.
17394         * doc/glibc-functions/mkostemps.texi: Likewise.
17395
17396 2011-04-27  Eric Blake  <eblake@redhat.com>
17397
17398         fchdir: avoid extra chdir and fix test
17399         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17400         getcwd-lgpl.
17401         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17402         have to be canonical.
17403         (canonicalize_file_name): Drop unused macro.
17404         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17405
17406         filenamecat-lgpl: fix licence
17407         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17408         when it was first created.
17409
17410         linkat, renameat: add missing dependency
17411         * modules/linkat (Depends-on): Require getcwd-lgpl.
17412         * modules/renameat (Depends-on): Likewise.
17413
17414         tests: reduce dependencies
17415         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17416         * tests/test-renameat.c (main): Likewise.
17417         * modules/linkat-tests (Depends-on): Relax dependency.
17418         * modules/renameat-tests (Depends-on): Likewise.
17419         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17420         dependency explicit.
17421
17422         save-cwd: reduce default dependency
17423         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17424         * lib/save-cwd.c: Update comments.
17425         * NEWS: Document the semantic change.
17426
17427         getcwd: enhance tests
17428         * tests/test-getcwd-lgpl.c: New file, taken from...
17429         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17430         repeat long path stress tests from m4 probe.
17431         * modules/getcwd-lgpl-tests: New module.
17432         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17433         * m4/getcwd-abort-bug.m4: Update comment.
17434         * m4/getcwd-path-max.m4: Likewise.
17435
17436         getcwd-lgpl: new module
17437         * modules/getcwd-lgpl: New module.
17438         * lib/getcwd-lgpl.c: New file.
17439         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17440         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17441         * modules/getcwd (configure.ac): Set C witness.
17442         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17443
17444         getcwd: tweak comments
17445         * m4/getcwd-abort-bug.m4: Fix comments.
17446         * m4/getcwd-path-max.m4: Likewise.
17447         * m4/getcwd.m4: Likewise.
17448
17449 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17450         and Eric Blake  <eblake@redhat.com>
17451
17452         mkstemp: replace if system version uses wrong permissions
17453         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17454         read/write mode bits set in file created by mkstemp.
17455         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17456
17457 2011-04-27  Eric Blake  <eblake@redhat.com>
17458
17459         passfd: avoid compiler warning
17460         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17461         Reported by Laine Stump.
17462
17463 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17464
17465         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17466         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17467
17468 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17469         and Eric Blake  <eblake@redhat.com>
17470
17471         mkstemp: mention clean-temp module
17472         * lib/mkstemp.c: Add comment.
17473         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17474
17475 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17476
17477         inttypes: also provide default values for 32-bit tests
17478         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17479         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17480
17481 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17482
17483         strtoumax: remove dependency on strtoimax
17484         This is like the strtoull change of yesterday.
17485         * modules/strtoumax (Files): Add lib/strtoimax.c.
17486         (Depends-on): Remove strtoimax and add verify.
17487
17488         inttypes-incomplete: new module
17489         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17490         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17491         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17492         of gl_INTTYPES_H.
17493         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17494         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17495         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17496         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17497         * modules/strtoumax, modules/xstrtol (Depends-on):
17498         Depend on inttypes-incomplete, not inttypes.
17499         * modules/inttypes-incomplete: New module, containing the contents
17500         of the old modules/inttypes module, except that the Files: section
17501         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17502         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17503         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17504         (Depends-on): Depend only on inttypes-incomplete.
17505         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17506
17507         inttypes: omit now-redundant strtoimax and strtoumax work
17508         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17509         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17510
17511         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17512         This supports apps that need pointers to strtoimax and strtoumax,
17513         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17514         nonexistent functions.  See
17515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17516         et seq.
17517         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17518         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17519         a macro.
17520         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17521
17522 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17523
17524         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17525
17526 2011-04-25  Bruno Haible  <bruno@clisp.org>
17527
17528         strtol, strtoul: Mark modules as obsolete.
17529         * modules/strtol (Status, Notice): New sections.
17530         * modules/strtoul (Status, Notice): New sections.
17531
17532 2011-04-25  Bruno Haible  <bruno@clisp.org>
17533
17534         strtod: Remove check for strtod, unless supporting old platforms.
17535         * modules/strtod-obsolete: New file.
17536         * m4/strtod-obsolete.m4: New file.
17537         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17538         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17539         * modules/strtod (Depends-on): Add strtod-obsolete.
17540         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17541
17542 2011-04-25  Bruno Haible  <bruno@clisp.org>
17543
17544         strcase: Make module obsolete.
17545         * modules/strcase (Status, Notice): New sections.
17546
17547 2011-04-25  Bruno Haible  <bruno@clisp.org>
17548
17549         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17550         * modules/dup2-obsolete: New file.
17551         * m4/dup2-obsolete.m4: New file.
17552         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17553         gl_FUNC_DUP2_OBSOLETE is not also defined.
17554         * modules/dup2 (Depends-on): Add dup2-obsolete.
17555         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17556
17557 2011-04-25  Bruno Haible  <bruno@clisp.org>
17558
17559         strnlen: Avoid memchr related link error on old obsolete platforms.
17560         * modules/memchr-obsolete: New file.
17561         * m4/memchr-obsolete.m4: New file.
17562         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17563         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17564         * modules/memchr (Depends-on): Add memchr-obsolete.
17565         * modules/strnlen (Depends-on): Likewise.
17566         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17567
17568 2011-04-25  Jim Meyering  <meyering@redhat.com>
17569
17570         maint.mk: makefile_at_at_check extend and clean up
17571         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17572         in addition to */Makefile.am.
17573         Exempt legitimate uses of @VAR@ notation, e.g.,
17574         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17575         Remove obsolete coreutils-specific comment.
17576         Prompted by discussion here:
17577         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17578
17579 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17580
17581         strtoul: remove dependency on strtol
17582         This is so that 'configure' need not check for strtol merely because
17583         the application needs strtoul.
17584         * modules/strtoul (Files): Add lib/strtol.c.
17585         (Depends-on): Remove strtol.
17586
17587         strtoull: remove dependency on strtoul
17588         This is like the strtoll change.
17589         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17590         (Depends-on): Remove strtoul.
17591
17592         strtoll: remove dependency on strtol
17593         This is so that 'configure' need not check for strtol merely because
17594         the application needs strtoll.
17595         * modules/strtoll (Files): Add lib/strtol.c.
17596         (Depends-on): Remove strtol.
17597
17598 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17599
17600         inttypes: Move some configure check to module 'imaxdiv'.
17601         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17602         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17603         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17604
17605 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17606
17607         inttypes: Move some configure check to module 'imaxabs'.
17608         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17609         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17610         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17611
17612 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17613
17614         inttypes: Remove configure tests that are not needed since 2009-12-31.
17615         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17616         gl_cv_header_working_inttypes_h.
17617
17618 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17619
17620         * modules/strnlen (Depends-on): Remove memchr.
17621         The strnlen implementation doesn't need the memchr module's fixes; see
17622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17623
17624         strtol: remove dependency on wchar
17625         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17626         * modules/strtol (Depends-on): Remove wchar.
17627
17628 2011-04-21  Eric Blake  <eblake@redhat.com>
17629
17630         passfd: fix test regression on Linux
17631         * modules/passfd-tests (configure.ac): Correct socketpair check.
17632
17633         passfd: speed up configure and drop unused code
17634         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17635         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17636         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17637         Instead of probing at configure for unix_scm_rights_bsd44_way,
17638         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17639         check to a struct member probe.
17640         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17641         (sendfd, recvfd): Update preprocessor checks.
17642         * modules/passfd (Files): Reflect rename, and drop unused file.
17643         (Depends-on): Drop unused dependency.
17644
17645         passfd: allow compilation on mingw
17646         * modules/sys_socket (Depends-on): Add sys_uio.
17647         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17648         iovec and a minimal struct msghdr.
17649         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17650         * tests/test-sys_socket.c (main): Enhance test.
17651         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17652         guaranteed to provide what we need.
17653         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17654         * modules/passfd-tests (Depends-on): Add sys_wait.
17655         * tests/test-passfd.c (main): Skip test on mingw, for now.
17656         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17657         partial 'struct msghdr' implementation.
17658
17659         sys_uio: new module
17660         * modules/sys_uio: New module.
17661         * modules/sys_uio-tests: Likewise.
17662         * lib/sys_uio.in.h: New file.
17663         * m4/sys_uio_h.m4: Likewise.
17664         * tests/test-sys_uio.c: Likewise.
17665         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17666         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17667
17668 2011-04-20  Jim Meyering  <meyering@redhat.com>
17669
17670         useless-if-before-free: avoid false-positive
17671         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17672         disjunct so that it too requires a terminating ";".  Without that,
17673         this script would identify as useless one statement from gcc that
17674         was not:
17675           if (aligned_ptr)
17676             free (((void **) aligned_ptr) [-1]);
17677
17678 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17679
17680         doc: update users.txt.
17681         * users.txt: Add barcode.
17682
17683 2011-04-19  Bruno Haible  <bruno@clisp.org>
17684
17685         ioctl: Remove link dependency on native Windows.
17686         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17687         (gl_close_fn, gl_ioctl_fn): New types.
17688         (struct fd_hook): Renamed from struct close_hook. Change type of
17689         private_close_fn field. Add private_ioctl_fn field.
17690         (close_hook_fn): Add parameter for primary close method.
17691         (execute_close_hooks, execute_all_close_hooks): Likewise.
17692         (ioctl_hook_fn): New type.
17693         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17694         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17695         argument.
17696         (unregister_fd_hook): Renamed from unregister_close_hook.
17697         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17698         Don't include <unistd.h>.
17699         (close): Remove undef.
17700         (anchor): Update.
17701         (execute_close_hooks): Add argument for primary close method.
17702         (execute_all_close_hooks): Likewise.
17703         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17704         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17705         argument. Allow each argument to be NULL.
17706         (unregister_fd_hook): Renamed from unregister_close_hook.
17707         * lib/close.c (rpl_close): Pass 'close' function pointer to
17708         execute_all_close_hooks.
17709         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17710         (primary_ioctl): New function.
17711         (ioctl): Don't call ioctlsocket here. Instead, call
17712         execute_all_ioctl_hooks.
17713         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17714         close method.
17715         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17716         (fd_sockets_hook): Renamed from close_sockets_hook.
17717         (gl_sockets_startup, gl_sockets_cleanup): Update.
17718         * modules/fd-hook: Renamed from modules/close-hook. Update.
17719         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17720         * modules/sockets (Depends-on): Likewise.
17721         * modules/ioctl (Depends-on): Add fd-hook.
17722         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17723         GNULIB_SOCKET.
17724
17725 2011-04-19  Bruno Haible  <bruno@clisp.org>
17726
17727         Move the support of O_NONBLOCK in open() to the 'open' module.
17728         * modules/nonblocking (Depends-on): Remove 'open'.
17729         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17730         gl_cv_have_open_O_NONBLOCK.
17731         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17732         O_NONBLOCK support.
17733         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17734
17735 2011-04-17  Bruno Haible  <bruno@clisp.org>
17736
17737         pipe2: Simplify code.
17738         * lib/pipe2.c (pipe2): Reduce code duplication.
17739
17740 2011-04-17  Bruno Haible  <bruno@clisp.org>
17741
17742         nonblocking: Add comment.
17743         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17744
17745 2011-04-17  Bruno Haible  <bruno@clisp.org>
17746
17747         nonblocking: Add tests for sockets.
17748         * tests/test-nonblocking-socket.sh: New file.
17749         * tests/test-nonblocking-socket-main.c: New file.
17750         * tests/test-nonblocking-socket-child.c: New file.
17751         * tests/test-nonblocking-socket.h: New file.
17752         * tests/socket-server.h: New file.
17753         * tests/socket-client.h: New file.
17754         * modules/nonblocking-socket-tests: New file.
17755         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17756
17757 2011-04-17  Bruno Haible  <bruno@clisp.org>
17758
17759         nonblocking: Add tests for pipes.
17760         * tests/test-nonblocking-pipe.sh: New file.
17761         * tests/test-nonblocking-pipe-main.c: New file.
17762         * tests/test-nonblocking-pipe-child.c: New file.
17763         * tests/test-nonblocking-pipe.h: New file.
17764         * tests/test-nonblocking-writer.h: New file.
17765         * tests/test-nonblocking-reader.h: New file.
17766         * tests/test-nonblocking-misc.h: New file.
17767         * modules/nonblocking-pipe-tests: New file.
17768         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17769
17770 2011-04-16  Bruno Haible  <bruno@clisp.org>
17771
17772         gettext: Clarify the needed programmer actions.
17773         * modules/gettext (Notice): New field.
17774         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17775
17776 2011-04-16  Bruno Haible  <bruno@clisp.org>
17777
17778         strchrnul: Tweak last commit.
17779         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17780         bug.
17781         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17782         as in _GL_FUNCDECL_SYS.
17783         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17784         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17785
17786 2011-04-15  Eric Blake  <eblake@redhat.com>
17787
17788         strchrnul: work around cygwin bug
17789         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17790         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17792         * modules/string (Makefile.am): Substitute it.
17793         * lib/string.in.h (strchrnul): Use it.
17794
17795 2011-04-15  Bruno Haible  <bruno@clisp.org>
17796
17797         Don't require lib/stdio-write.c when only module 'stdio' is used.
17798         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17799         invocation.
17800         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17801
17802 2011-04-14  Bruno Haible  <bruno@clisp.org>
17803
17804         Support non-blocking pipe I/O in read() on native Windows.
17805         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17806         (read): New declaration.
17807         * lib/read.c: New file.
17808         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17809         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17810         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17811         vscanf): New declarations.
17812         * lib/stdio-read.c: New file.
17813         * m4/read.m4: New file.
17814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17815         REPLACE_READ.
17816         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17817         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17818         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17819         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17820         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17821         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17822         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17823         * modules/read: New file.
17824         * modules/nonblocking (Files): Add lib/stdio-read.c.
17825         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17826         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17827         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17828         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17829         * modules/pread (Depends-on): Add read.
17830         * modules/safe-read (Depends-on): Likewise.
17831         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17832         gets, scanf, vfscanf, vscanf): Verify signatures.
17833         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17834         problem with non-blocking pipes.
17835         * doc/posix-functions/fgetc.texi: Likewise.
17836         * doc/posix-functions/fgets.texi: Likewise.
17837         * doc/posix-functions/fread.texi: Likewise.
17838         * doc/posix-functions/fscanf.texi: Likewise.
17839         * doc/posix-functions/getc.texi: Likewise.
17840         * doc/posix-functions/getchar.texi: Likewise.
17841         * doc/posix-functions/gets.texi: Likewise.
17842         * doc/posix-functions/scanf.texi: Likewise.
17843         * doc/posix-functions/vfscanf.texi: Likewise.
17844         * doc/posix-functions/vscanf.texi: Likewise.
17845
17846 2011-04-14  Bruno Haible  <bruno@clisp.org>
17847
17848         Support non-blocking pipe I/O in write() on native Windows.
17849         * lib/write.c (rpl_write): Split a write request that failed merely
17850         because the byte count was larger than the pipe buffer's size.
17851         * doc/posix-functions/write.texi: Mention the problem with large byte
17852         counts.
17853
17854 2011-04-14  Bruno Haible  <bruno@clisp.org>
17855
17856         wchar: Ensure that wchar_t gets defined on uClibc.
17857         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17858         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17859
17860 2011-04-13  Bruno Haible  <bruno@clisp.org>
17861
17862         safe-write, full-read: Avoid unnecessary compilation units.
17863         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17864         (Depends-on): Remove safe-read. Add ssize_t.
17865         * modules/full-read (Files): Add lib/full-write.c.
17866         (Depends-on): Add full-write.
17867
17868 2011-04-13  Bruno Haible  <bruno@clisp.org>
17869
17870         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17871         * modules/pwrite (Depends-on): Add 'write'.
17872
17873 2011-04-13  Bruno Haible  <bruno@clisp.org>
17874
17875         Support non-blocking pipe I/O in write() on native Windows.
17876         * lib/unistd.in.h (write): Enable replacement also if
17877         GNULIB_UNISTD_H_NONBLOCKING is 1.
17878         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17879         (rpl_write): When failing to write on a non-blocking pipe, change
17880         errno from ENOSPC to EAGAIN.
17881         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17882         putchar, puts, vfprintf, vprintf): Enable replacement also if
17883         GNULIB_STDIO_H_NONBLOCKING is 1.
17884         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17885         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17886         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17887         CALL_WITH_SIGPIPE_EMULATION.
17888         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17889         * m4/nonblocking.m4: New file.
17890         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17891         for non-blocking I/O support.
17892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17893         GNULIB_UNISTD_H_NONBLOCKING.
17894         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17895         required for non-blocking I/O support.
17896         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17897         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17898         lib/stdio-write.c, m4/asm-underscore.m4.
17899         (Depends-on): Add stdio, unistd.
17900         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17901         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17902         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17903         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17904         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17905         problem with non-blocking pipes.
17906         * doc/posix-functions/fputc.texi: Likewise.
17907         * doc/posix-functions/fputs.texi: Likewise.
17908         * doc/posix-functions/fwrite.texi: Likewise.
17909         * doc/posix-functions/printf.texi: Likewise.
17910         * doc/posix-functions/putc.texi: Likewise.
17911         * doc/posix-functions/putchar.texi: Likewise.
17912         * doc/posix-functions/puts.texi: Likewise.
17913         * doc/posix-functions/vfprintf.texi: Likewise.
17914         * doc/posix-functions/vprintf.texi: Likewise.
17915         * doc/posix-functions/write.texi: Likewise.
17916
17917 2011-04-10  Jim Meyering  <meyering@redhat.com>
17918
17919         maint.mk: prohibit doubled words
17920         Detect them also when they're separated by a newline.
17921         There are 3 ways to customize it:
17922           - disable the test on a per file basis, as usual with rules using
17923             $(VC_LIST_EXCEPT)
17924           - replace the default doubled-word-selecting regexp (affects all files)
17925           - ignore a particular file-vs-doubled-word match
17926         I nearly used that last one to ignore the "is is" match in
17927         coreutils' NEWS file, since the text was "ls -is is ..."
17928         To do that, I would have added this line to cfg.mk:
17929           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17930         but it would have ignored any "is is" match in NEWS.
17931         Low probability, but still...
17932         Instead, I changed the text, slightly:
17933           -  ls -is is now consistent with ls -lis in ignoring values returned
17934           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17935         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17936         (prohibit_doubled_word_): Define.
17937         (sc_prohibit_doubled_word): New rule.
17938         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17939
17940 2011-04-10  Jim Meyering  <meyering@redhat.com>
17941
17942         maint: fix doubled-word typo in comment
17943         * m4/gethostname.m4: s/is is/it is/
17944         * m4/getdomainname.m4: Likewise.
17945
17946 2011-04-10  Jim Meyering  <meyering@redhat.com>
17947
17948         maint: remove doubled word: s/it it/it/
17949         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17950
17951 2011-04-10  Jim Meyering  <meyering@redhat.com>
17952
17953         maint.mk: remove useless semicolon and backslash
17954         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17955         semicolon and backslash.
17956
17957 2011-04-10  Bruno Haible  <bruno@clisp.org>
17958
17959         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17960         * modules/stdint-tests (Depends-on): Add wchar.
17961
17962 2011-04-10  Jim Meyering  <meyering@redhat.com>
17963
17964         maint: remove doubled words in comments, e.g., s/a a/a/
17965         * lib/strptime.c (day_of_the_week): s/the the/the/
17966         * tests/test-chown.h (test_chown): s/a a/a/
17967
17968         test-chown.h: correct a cast
17969         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17970         when the destination is a stat.st_gid.
17971
17972 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17973
17974         getaddrinfo: Fix test for sa_len member.
17975         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17976         include <sys/types.h> before <sys/socket.h>.
17977
17978 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17979
17980         maint: change "can not" to "cannot"
17981         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17982         boundaries.
17983
17984 2011-04-09  Jim Meyering  <meyering@redhat.com>
17985
17986         maint: change "a a" to "a"
17987         * tests/test-lchown.h (test_lchown): s/a a/a/
17988
17989         maint.mk: prohibit \<the the\>
17990         * top/maint.mk (sc_prohibit_the_the): New rule.
17991
17992         maint: fix "the the" in comment
17993         * lib/count-one-bits.h: s/the the/the/
17994
17995         maint: change "can not" to "cannot"
17996         But do not change the occurrences in maintain.texi or in
17997         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17998         * doc/gnulib-tool.texi: s/can not/cannot/
17999         * doc/posix-functions/accept.texi (accept): Likewise.
18000         * doc/posix-functions/socket.texi (socket): Likewise.
18001         * lib/mbrtowc.c: Likewise.
18002
18003         maint.mk: prohibit use of "can not"
18004         * top/maint.mk (sc_prohibit_can_not): New rule.
18005         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18006
18007 2011-04-09  Bruno Haible  <bruno@clisp.org>
18008
18009         careadlinkat: Guard against misuse of careadlinkatcwd.
18010         * lib/careadlinkat.c: Include <stdlib.h>.
18011         (careadlinkatcwd): Check that the fd argument is as expected.
18012
18013 2011-04-09  Bruno Haible  <bruno@clisp.org>
18014
18015         careadlinkat: Use common coding style.
18016         * lib/careadlinkat.c: Move gnulib includes after system includes.
18017
18018 2011-04-09  Bruno Haible  <bruno@clisp.org>
18019
18020         careadlinkat: Clarify specification.
18021         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18022         (careadlinkatcwd): Add comment.
18023         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18024
18025 2011-04-09  Bruno Haible  <bruno@clisp.org>
18026
18027         areadlinkat: Avoid link error on many platforms.
18028         * modules/areadlinkat (Depends-on): Add areadlink.
18029
18030 2011-04-09  Bruno Haible  <bruno@clisp.org>
18031
18032         allocator, careadlinkat: Fix double-inclusion guard.
18033         * lib/allocator.h: Fix double-inclusion guard.
18034         * lib/careadlinkat.h: Likewise.
18035
18036 2011-04-09  Bruno Haible  <bruno@clisp.org>
18037
18038         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18039         * lib/relocwrapper.c: Update dependencies hierarchy.
18040         * build-aux/install-reloc: Update list of files to be compiled.
18041         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18042         lib/allocator.[hc].
18043
18044 2011-04-08  Eric Blake  <eblake@redhat.com>
18045
18046         strftime: silence gnulib-tool warning
18047         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18048
18049 2011-04-08  Bruno Haible  <bruno@clisp.org>
18050
18051         verify: Fix syntax error with GCC 4.6 in C++ mode.
18052         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18053         (HAVE_STATIC_ASSERT): New macro.
18054         (verify_true, verify): Use 'static_assert' if it is supported and
18055         '_Static_assert' is not supported.
18056
18057 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18058
18059         allocator: New module.
18060         * modules/allocator, lib/allocator.c: New files.
18061         * lib/allocator.h (stdlib_allocator): New decl.
18062         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18063         Remove.  Do not include <stdlib.h>.
18064         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18065         * modules/careadlinkat (Files): Remove lib/allocator.h.
18066         (Depends-on): Add allocator.
18067
18068         stdlib: let modules use system malloc, realloc
18069         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18070         if !_GL_USE_STDLIB_ALLOC.
18071         (malloc, realloc): Limit this change to a smaller scope.
18072
18073         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18074         (malloc, realloc): Don't #undef; no longer needed.
18075         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18076         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18077         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18078         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18079         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18080         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18081         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18082         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18083
18084         careadlinkat: rename members to avoid problem
18085         * lib/allocator.h (struct allocator): Rename members from
18086         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18087         and realloc are #define'd.  Reported by Eric Blake in
18088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18089         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18090
18091 2011-04-08  Eric Blake  <eblake@redhat.com>
18092
18093         nonblocking: reduce dependency
18094         * tests/test-nonblocking.c: Only test sockets when in use.
18095         * modules/nonblocking-tests (Depends-on): Drop socket.
18096         (Makefile.am): Link even if sockets are not present.
18097         * modules/pipe2-tests (Makefile.am): Likewise.
18098         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18099
18100         pipe2: fix O_NONBLOCK support on mingw
18101         * modules/pipe2 (Depends-on): Add nonblocking.
18102         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18103         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18104         * tests/test-nonblocking.c (main): Likewise.
18105         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18106
18107         fcntl-h: fix O_ACCMODE on cygwin
18108         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18109         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18110
18111         pipe-filter: drop O_NONBLOCK workarounds
18112         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18113         * modules/pipe-filter-ii (Depends-on): Likewise.
18114         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18115
18116         nonblocking: provide O_NONBLOCK for mingw
18117         * modules/nonblocking (Depends-on): Add open.
18118         (configure.ac): Set new witness macro.
18119         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18120         * modules/fcntl-h (Makefile.am): Substitute it.
18121         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18122         nonblocking module is in use.
18123         * lib/nonblocking.c: Adjust portability test.
18124         * lib/open.c (open): Don't let native open see gnulib flag.
18125         * tests/test-fcntl-h.c (main): Enhance test.
18126         * tests/test-open.h (test_open): Likewise.
18127         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18128
18129         careadlinkat: fix compilation error on mingw
18130         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18131         within struct allocator.
18132
18133 2011-04-06  Eric Blake  <eblake@redhat.com>
18134
18135         binary-io: relicense under LGPLv2+
18136         * modules/binary-io (License): Relax to LGPLv2+.
18137         Requested for libvirt, and required by pipe2.
18138
18139 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18140
18141         verify: use _Static_assert if available
18142         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18143         (verify_true, verify): Use it if available.  This generates better
18144         diagnostics with GCC 4.6.0 and later.
18145
18146 2011-04-05  Bruno Haible  <bruno@clisp.org>
18147
18148         Remove leftover generated .h files after config.status changed.
18149
18150         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18151         GL_GENERATE_ALLOCA_H.
18152         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18153         GL_GENERATE_ALLOCA_H evaluates to false.
18154
18155         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18156         GL_GENERATE_ARGZ_H.
18157         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18158         evaluates to false.
18159
18160         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18161         GL_GENERATE_BYTESWAP_H.
18162         * modules/byteswap (Makefile.am): Remove byteswap.h if
18163         GL_GENERATE_BYTESWAP_H evaluates to false.
18164
18165         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18166         GL_GENERATE_ERRNO_H.
18167         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18168         evaluates to false.
18169
18170         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18171         GL_GENERATE_FLOAT_H.
18172         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18173         evaluates to false.
18174
18175         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18176         GL_GENERATE_FNMATCH_H.
18177         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18178         GL_GENERATE_FNMATCH_H evaluates to false.
18179
18180         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18181         GL_GENERATE_GLOB_H.
18182         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18183         evaluates to false.
18184
18185         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18186         automake conditional GL_GENERATE_ICONV_H.
18187         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18188         evaluates to false.
18189
18190         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18191         GL_GENERATE_NETINET_IN_H.
18192         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18193         GL_GENERATE_NETINET_IN_H evaluates to false.
18194
18195         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18196         conditional GL_GENERATE_PTHREAD_H.
18197         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18198         * modules/pthread (Makefile.am): Remove pthread.h if
18199         GL_GENERATE_PTHREAD_H evaluates to false.
18200
18201         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18202         GL_GENERATE_SCHED_H.
18203         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18204         evaluates to false.
18205
18206         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18207         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18208         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18209         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18210
18211         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18212         GL_GENERATE_STDARG_H.
18213         * modules/stdarg (Makefile.am): Remove stdarg.h if
18214         GL_GENERATE_STDARG_H evaluates to false.
18215
18216         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18217         GL_GENERATE_STDBOOL_H.
18218         * modules/stdbool (Makefile.am): Remove stdbool.h if
18219         GL_GENERATE_STDBOOL_H evaluates to false.
18220
18221         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18222         conditional GL_GENERATE_STDDEF_H.
18223         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18224         * modules/stddef (Makefile.am): Remove stddef.h if
18225         GL_GENERATE_STDDEF_H evaluates to false.
18226
18227         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18228         GL_GENERATE_STDINT_H.
18229         * modules/stdint (Makefile.am): Remove stdint.h if
18230         GL_GENERATE_STDINT_H evaluates to false.
18231
18232         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18233         GL_GENERATE_SYSEXITS_H.
18234         * modules/sysexits (Makefile.am): Remove sysexits.h if
18235         GL_GENERATE_SYSEXITS_H evaluates to false.
18236
18237         Reported by Karl Berry and Ralf Wildenhues.
18238
18239 2011-04-05  Bruno Haible  <bruno@clisp.org>
18240
18241         Ensure to rebuild generated .h files when config.status has changed.
18242         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18243         config.status.
18244         * modules/ctype (Makefile.am): Likewise.
18245         * modules/dirent (Makefile.am): Likewise.
18246         * modules/errno (Makefile.am): Likewise.
18247         * modules/fcntl-h (Makefile.am): Likewise.
18248         * modules/float (Makefile.am): Likewise.
18249         * modules/getopt-posix (Makefile.am): Likewise.
18250         * modules/glob (Makefile.am): Likewise.
18251         * modules/iconv-h (Makefile.am): Likewise.
18252         * modules/inttypes (Makefile.am): Likewise.
18253         * modules/langinfo (Makefile.am): Likewise.
18254         * modules/locale (Makefile.am): Likewise.
18255         * modules/math (Makefile.am): Likewise.
18256         * modules/netdb (Makefile.am): Likewise.
18257         * modules/netinet_in (Makefile.am): Likewise.
18258         * modules/poll-h (Makefile.am): Likewise.
18259         * modules/pthread (Makefile.am): Likewise.
18260         * modules/pty (Makefile.am): Likewise.
18261         * modules/sched (Makefile.am): Likewise.
18262         * modules/search (Makefile.am): Likewise.
18263         * modules/selinux-h (Makefile.am): Likewise.
18264         * modules/signal (Makefile.am): Likewise.
18265         * modules/spawn (Makefile.am): Likewise.
18266         * modules/stdarg (Makefile.am): Likewise.
18267         * modules/stdbool (Makefile.am): Likewise.
18268         * modules/stddef (Makefile.am): Likewise.
18269         * modules/stdint (Makefile.am): Likewise.
18270         * modules/stdio (Makefile.am): Likewise.
18271         * modules/stdlib (Makefile.am): Likewise.
18272         * modules/string (Makefile.am): Likewise.
18273         * modules/strings (Makefile.am): Likewise.
18274         * modules/sys_file (Makefile.am): Likewise.
18275         * modules/sys_ioctl (Makefile.am): Likewise.
18276         * modules/sys_select (Makefile.am): Likewise.
18277         * modules/sys_socket (Makefile.am): Likewise.
18278         * modules/sys_stat (Makefile.am): Likewise.
18279         * modules/sys_time (Makefile.am): Likewise.
18280         * modules/sys_times (Makefile.am): Likewise.
18281         * modules/sys_utsname (Makefile.am): Likewise.
18282         * modules/sys_wait (Makefile.am): Likewise.
18283         * modules/sysexits (Makefile.am): Likewise.
18284         * modules/termios (Makefile.am): Likewise.
18285         * modules/time (Makefile.am): Likewise.
18286         * modules/unistd (Makefile.am): Likewise.
18287         * modules/wchar (Makefile.am): Likewise.
18288         * modules/wctype-h (Makefile.am): Likewise.
18289         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18290
18291 2011-04-05  Bruno Haible  <bruno@clisp.org>
18292
18293         pipe2: Relicense under LGPLv2+.
18294         * modules/pipe2 (License): Change to LGPLv2+.
18295         Requested by Eric Blake, for libvirt.
18296
18297 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18298
18299         bootstrap: compute gnulib_extra_files after updating build_aux
18300         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18301         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18302
18303 2011-04-05  Eric Blake  <eblake@redhat.com>
18304
18305         bootstrap: preserve git whitelist item sorting
18306         * build-aux/bootstrap (sort_patterns): New function.
18307         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18308
18309 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18310
18311         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18312         sc_space_tab check.
18313
18314 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18315
18316         areadlink, areadlinkat: rewrite in terms of careadlinkat
18317         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18318         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18319         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18320         (malloc, realloc): Remove #undefs.
18321         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18322         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18323         readlink, ssize_t, stdint, unistd.
18324         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18325         areadlink, stdint.
18326
18327         careadlinkat: new module
18328         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18329         * modules/careadlinkat: New files, written by me with
18330         a review and feedback from Ben Pfaff in
18331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18332
18333 2011-04-01  Bruno Haible  <bruno@clisp.org>
18334
18335         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18336         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18337         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18338         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18339         Reported by Bruce Korb <bruce.korb@gmail.com>.
18340
18341 2011-04-01  Bruno Haible  <bruno@clisp.org>
18342
18343         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18344         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18345         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18346         * modules/wcpcpy (Depends-on): Add extensions.
18347         * modules/wcpncpy (Depends-on): Likewise.
18348         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18349         systems.
18350         * doc/posix-functions/wcpncpy.texi: Likewise.
18351         * doc/posix-functions/wcwidth.texi: Likewise.
18352
18353 2011-03-31  Eric Blake  <eblake@redhat.com>
18354
18355         nonblocking: fix mingw test failures
18356         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18357         non-blocking flag on regular file.
18358         (get_nonblocking_flag): Set errno on invalid fd.
18359         * tests/test-nonblocking.c (main): Avoid test failure on
18360         directories if fchdir is not active.
18361         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18362
18363 2011-03-31  Bruno Haible  <bruno@clisp.org>
18364
18365         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18366         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18367         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18368         Reported by Simon Josefsson <simon@josefsson.org>.
18369
18370 2011-03-31  Bruno Haible  <bruno@clisp.org>
18371         and Eric Blake  <eblake@redhat.com>
18372
18373         nonblocking: new module
18374         * modules/nonblocking: New module.
18375         * modules/nonblocking-tests: Likewise.
18376         * lib/nonblocking.h: New file.
18377         * lib/nonblocking.c: Likewise.
18378         * tests/test-nonblocking.c: New test.
18379         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18380
18381 2011-03-30  Bruno Haible  <bruno@clisp.org>
18382
18383         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18384         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18385         instead of 'printf' format for GCC >= 4.4.
18386         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18387         (fprintf, printf, vfprintf, vprintf): Declare with
18388         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18389         the system's vfprintf() function.
18390         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18391
18392 2011-03-30  Eric Blake  <eblake@redhat.com>
18393
18394         passfd: fix scoping bug
18395         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18396         before sendmsg/recvmsg.
18397
18398         passfd: standardize coding conventions
18399         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18400         can be learned at compile time.
18401         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18402         ifdefs.
18403         (sendfd, recvfd): Follow gnulib code conventions.
18404
18405         passfd: fix incorrect sendmsg arguments
18406         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18407         incorrect msg_controllen value.
18408         * modules/passfd-tests (Depends-on): Check for alarm.
18409         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18410         Reported by Bastien ROUCARIES.
18411
18412 2011-03-30  Bruno Haible  <bruno@clisp.org>
18413
18414         c-strcasestr: Relicense under LGPLv2+.
18415         * modules/c-strcasestr (License): Change to LGPLv2+.
18416         Requested by Eric Blake, for libvirt.
18417
18418 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18419
18420         * users.txt: Add libidn2.  Fix libtasn1 link.
18421
18422 2011-03-30  Jim Meyering  <meyering@redhat.com>
18423
18424         tests: readlink* ("",... fails with EINVAL on newer kernels
18425         readlink and readlinkat have typically failed with ENOENT for
18426         the invalid, empty file name,  "".  However, with the advent
18427         of linux-2.6.39, they fail with EINVAL.
18428         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18429         when operating on the empty file name.
18430         * tests/test-readlink.h (test_readlink): Likewise.
18431
18432 2011-03-29  Bruno Haible  <bruno@clisp.org>
18433
18434         Relicense some modules under LGPLv2+, for libidn2.
18435         * modules/array-mergesort (License): Change to LGPLv2+.
18436         * modules/c-strcaseeq (License): Likewise.
18437         * modules/striconveh (License): Likewise.
18438         * modules/striconveha (License): Likewise.
18439         * modules/uniconv/base (License): Likewise.
18440         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18441         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18442         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18443         * modules/unictype/base (License): Likewise.
18444         * modules/unictype/bidiclass-of (License): Likewise.
18445         * modules/unictype/category-M (License): Likewise.
18446         * modules/unictype/category-none (License): Likewise.
18447         * modules/unictype/category-of (License): Likewise.
18448         * modules/unictype/category-test (License): Likewise.
18449         * modules/unictype/category-test-withtable (License): Likewise.
18450         * modules/unictype/combining-class (License): Likewise.
18451         * modules/unictype/joiningtype-of (License): Likewise.
18452         * modules/unictype/scripts (License): Likewise.
18453         * modules/uninorm/base (License): Likewise.
18454         * modules/uninorm/canonical-decomposition (License): Likewise.
18455         * modules/uninorm/composition (License): Likewise.
18456         * modules/uninorm/decompose-internal (License): Likewise.
18457         * modules/uninorm/decomposition-table (License): Likewise.
18458         * modules/uninorm/nfc (License): Likewise.
18459         * modules/uninorm/nfd (License): Likewise.
18460         * modules/uninorm/u32-normalize (License): Likewise.
18461         * modules/unistr/base (License): Likewise.
18462         * modules/unistr/u32-cpy (License): Likewise.
18463         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18464         * modules/unistr/u32-to-u8 (License): Likewise.
18465         * modules/unistr/u32-uctomb (License): Likewise.
18466         * modules/unistr/u8-check (License): Likewise.
18467         * modules/unistr/u8-mblen (License): Likewise.
18468         * modules/unistr/u8-mbtouc (License): Likewise.
18469         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18470         * modules/unistr/u8-mbtoucr (License): Likewise.
18471         * modules/unistr/u8-prev (License): Likewise.
18472         * modules/unistr/u8-strlen (License): Likewise.
18473         * modules/unistr/u8-to-u32 (License): Likewise.
18474         * modules/unistr/u8-uctomb (License): Likewise.
18475         * modules/unitypes (License): Likewise.
18476         Requested by Simon Josefsson.
18477
18478 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18479
18480         lib-symbol-visibility: Add a notice.
18481         * modules/lib-symbol-visibility (Notice): New field.
18482
18483 2011-03-29  Bruno Haible  <bruno@clisp.org>
18484
18485         getaddrinfo: Doc fix.
18486         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18487         section "fixed in Gnulib".
18488
18489 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18490
18491         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18492         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18493
18494 2011-03-26  Bruno Haible  <bruno@clisp.org>
18495
18496         unictype/property-byname: Reduce the number of load-time relocations.
18497         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18498         (UC_PROPERTY_INDEX_*): New enumeration values.
18499         (uc_property_byname): Convert an index from the lookup table to an
18500         uc_property_t.
18501         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18502         values.
18503
18504 2011-03-26  Bruno Haible  <bruno@clisp.org>
18505
18506         unictype/property-byname: Allow omitted word separators and aliases.
18507         * lib/unictype/pr_byname.gperf: Add property names without word
18508         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18509         for 'space'.
18510
18511 2011-03-26  Bruno Haible  <bruno@clisp.org>
18512
18513         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18514         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18515         also hyphens to space.
18516         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18517         without spaces.
18518         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18519
18520 2011-03-26  Bruno Haible  <bruno@clisp.org>
18521
18522         unictype/joiningtype-byname: Recognize long names as well.
18523         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18524         a long name.
18525         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18526         unictype/joiningtype_byname.h.
18527         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18528         * lib/unictype/joiningtype_byname.gperf: New file.
18529         * modules/unictype/joiningtype-byname (Files): Add
18530         lib/unictype/joiningtype_byname.gperf.
18531         (Depends-on): Add gperf.
18532         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18533         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18534         long names.
18535
18536         Tests for module 'unictype/joiningtype-longname'.
18537         * modules/unictype/joiningtype-longname-tests: New file.
18538         * tests/unictype/test-joiningtype_longname.c: New file.
18539
18540         New module 'unictype/joiningtype-longname'.
18541         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18542         * lib/unictype/joiningtype_longname.c: New file.
18543         * modules/unictype/joiningtype-longname: New file.
18544         * modules/unictype/joiningtype-all (Depends-on): Add
18545         unictype/joiningtype-longname.
18546
18547 2011-03-26  Bruno Haible  <bruno@clisp.org>
18548
18549         unictype/bidiclass-byname: Recognize long names as well.
18550         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18551         name.
18552         * lib/unictype/bidi_byname.c: Include <string.h>,
18553         unictype/bidi_byname.h.
18554         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18555         * lib/unictype/bidi_byname.gperf: New file.
18556         * modules/unictype/bidiclass-byname (Files): Add
18557         lib/unictype/bidi_byname.gperf.
18558         (Depends-on): Add gperf.
18559         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18560         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18561         long names.
18562
18563         Tests for module 'unictype/bidiclass-longname'.
18564         * modules/unictype/bidiclass-longname-tests: New file.
18565         * tests/unictype/test-bidi_longname.c: New file.
18566
18567         New module 'unictype/bidiclass-longname'.
18568         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18569         * lib/unictype/bidi_longname.c: New file.
18570         * modules/unictype/bidiclass-longname: New file.
18571         * modules/unictype/bidiclass-all (Depends-on): Add
18572         unictype/bidiclass-longname.
18573
18574 2011-03-26  Bruno Haible  <bruno@clisp.org>
18575
18576         unictype/bidi*: Rename modules.
18577         * modules/unictype/bidiclass-all: Renamed from
18578         modules/unictype/bidicategory-all.
18579         * modules/unictype/bidiclass-name: Renamed from
18580         modules/unictype/bidiclass-name.
18581         (Description): Update.
18582         * modules/unictype/bidiclass-name-tests: Renamed from
18583         modules/unictype/bidicategory-name-tests.
18584         * modules/unictype/bidiclass-byname: Renamed from
18585         modules/unictype/bidicategory-byname.
18586         (Description): Update.
18587         * modules/unictype/bidiclass-byname-tests: Renamed from
18588         modules/unictype/bidicategory-byname-tests.
18589         * modules/unictype/bidiclass-of: Renamed from
18590         modules/unictype/bidicategory-of.
18591         (Description): Update.
18592         * modules/unictype/bidiclass-of-tests: Renamed from
18593         modules/unictype/bidicategory-of-tests.
18594         * modules/unictype/bidiclass-test: Renamed from
18595         modules/unictype/bidicategory-test.
18596         (Description): Update.
18597         * modules/unictype/bidiclass-test-tests: Renamed from
18598         modules/unictype/bidicategory-test-tests.
18599         * modules/unictype/bidicategory-all: New file, a simple redirection.
18600         * modules/unictype/bidicategory-name: Likewise.
18601         * modules/unictype/bidicategory-byname: Likewise.
18602         * modules/unictype/bidicategory-of: Likewise.
18603         * modules/unictype/bidicategory-test: Likewise.
18604         * modules/unictype/property-bidi-* (Dependencies): Update.
18605         * lib/unictype/bidi_*.c: Update comment.
18606
18607 2011-03-26  Bruno Haible  <bruno@clisp.org>
18608
18609         unictype/bidi*: Rename functions, part 2.
18610         * modules/unictype/bidicategory-name (configure.ac): Update required
18611         libunistring version.
18612         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18613
18614 2011-03-25  Bruno Haible  <bruno@clisp.org>
18615
18616         New module 'unictype/combining-class-all'.
18617         * modules/unictype/combining-class-all: New file.
18618
18619         Tests for module 'unictype/combining-class-byname'.
18620         * modules/unictype/combining-class-byname-tests: New file.
18621         * tests/unictype/test-combiningclass_byname.c: New file.
18622
18623         New module 'unictype/combining-class-byname'.
18624         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18625         * lib/unictype/combiningclass_byname.c: New file.
18626         * lib/unictype/combiningclass_byname.gperf: New file.
18627         * modules/unictype/combining-class-byname: New file.
18628
18629         Tests for module 'unictype/combining-class-longname'.
18630         * modules/unictype/combining-class-longname-tests: New file.
18631         * tests/unictype/test-combiningclass_longname.c: New file.
18632
18633         New module 'unictype/combining-class-longname'.
18634         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18635         * lib/unictype/combiningclass_longname.c: New file.
18636         * modules/unictype/combining-class-longname: New file.
18637
18638         Tests for module 'unictype/combining-class-name'.
18639         * modules/unictype/combining-class-name-tests: New file.
18640         * tests/unictype/test-combiningclass_name.c: New file.
18641
18642         New module 'unictype/combining-class-name'.
18643         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18644         * lib/unictype/combiningclass_name.c: New file.
18645         * modules/unictype/combining-class-name: New file.
18646
18647 2011-03-25  Bruno Haible  <bruno@clisp.org>
18648
18649         unictype/combining-class: Rename source files.
18650         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18651         of unictype/combining.h.
18652         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18653         Update.
18654         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18655         * modules/unictype/combining-class (Description): Fix.
18656         (Files, Makefile.am): Update.
18657         * tests/unictype/test-combiningclass.c: Renamed from
18658         tests/unictype/test-combining.c.
18659         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18660
18661 2011-03-25  Bruno Haible  <bruno@clisp.org>
18662
18663         unictype: Update list of canonical combining classes.
18664         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18665
18666 2011-03-25  Bruno Haible  <bruno@clisp.org>
18667
18668         unictype/category-byname: Recognize long names as well.
18669         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18670         a long name.
18671         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18672         unictype/categ_byname.h.
18673         (UC_CATEGORY_INDEX_*): New enumeration values.
18674         (uc_general_category_byname): Use uc_general_category_lookup and
18675         convert from index to value.
18676         * lib/unictype/categ_byname.gperf: New file.
18677         * modules/unictype/category-byname (Files): Add
18678         lib/unictype/categ_byname.gperf.
18679         (Depends-on): Add gperf.
18680         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18681         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18682         long names.
18683
18684         Tests for module 'unictype/category-longname'.
18685         * modules/unictype/category-longname-tests: New file.
18686         * tests/unictype/test-categ_longname.c: New file.
18687
18688         New module 'unictype/category-longname'.
18689         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18690         * lib/unictype/categ_longname.c: New file.
18691         * modules/unictype/category-longname: New file.
18692         * modules/unictype/category-all (Depends-on): Add it.
18693
18694 2011-03-25  Bruno Haible  <bruno@clisp.org>
18695
18696         Tests for module 'unictype/category-LC'.
18697         * modules/unictype/category-LC-tests: New file.
18698         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18699
18700         New module 'unictype/category-LC'.
18701         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18702         (UC_CATEGORY_LC): New declaration.
18703         (UC_CASED_LETTER): New macro.
18704         * lib/gen-uni-tables.c (is_category_LC): New function.
18705         (output_categories): Also handle category LC.
18706         (UC_CATEGORY_MASK_LC): New enumeration value.
18707         (general_category_byname): Also handle category LC.
18708         * lib/unictype/categ_LC.c: New file.
18709         * lib/unictype/categ_LC.h: New file, automatically generated.
18710         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18711         category LC.
18712         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18713         * modules/unictype/category-LC: New file.
18714         * modules/unictype/category-byname (Depends-on): Add
18715         unictype/category-LC.
18716         * modules/unictype/category-all (Depends-on): Likewise.
18717
18718 2011-03-25  Eric Blake  <eblake@redhat.com>
18719
18720         xmalloc: revert yesterday's regression
18721         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18722         realloc's underlying behavior (allowing allocation of zero-size
18723         objects, especially if malloc-gnu is also in use).
18724
18725 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18726
18727         maint.mk: add missing version to VC-tag
18728         * top/maint.mk: git tag was missing actual tag name; add it.
18729
18730         valgrind: do leak checking, and exit with code 1 on error (not 0)
18731         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18732         to VALGRIND.
18733
18734 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18735
18736         posix-modules: say what it does.
18737         * posix-modules: Add a line to the --help output saying what it does.
18738
18739 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18740
18741         xmalloc: Do not leak if underlying realloc is C99 compatible.
18742         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18743         This avoids a leak on C99-based systems.  See
18744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18745
18746 2011-03-24  Eric Blake  <eblake@redhat.com>
18747
18748         realloc: document portability problem
18749         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18750         passing 0 size to realloc.
18751
18752 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18753
18754         doc: update users.txt
18755         * users.txt: Add cvsps, tmpwatch
18756
18757 2011-03-23  Matt Rice  <ratmice@gmail.com>
18758
18759         doc: update users.txt
18760         * users.txt: Add gdb.
18761
18762 2011-03-23  Jim Meyering  <meyering@redhat.com>
18763
18764         doc: update users.txt
18765         Looking through matches up to the following URL (there are still
18766         several more pages), I found several projects that use gnulib:
18767         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18768         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18769         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18770
18771 2011-03-22  Bruno Haible  <bruno@clisp.org>
18772
18773         unictype/bidi*: Rename functions.
18774         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18775         uc_bidi_class, uc_is_bidi_class): New declarations.
18776         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18777         uc_bidi_category_byname.
18778         (uc_bidi_category_byname): New function.
18779         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18780         u_bidi_category_name.
18781         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18782         (uc_bidi_category_name): New function.
18783         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18784         uc_bidi_category.
18785         (uc_bidi_category): New function.
18786         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18787         uc_is_bidi_category. Invoke uc_bidi_class.
18788         (uc_is_bidi_category): New function.
18789         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18790         instead of uc_bidi_category_byname.
18791         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18792         instead of uc_bidi_category_name.
18793         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18794         uc_bidi_category.
18795         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18796         instead of uc_is_bidi_category.
18797
18798 2011-03-21  Bruno Haible  <bruno@clisp.org>
18799
18800         New module 'unictype/joininggroup-all'.
18801         * modules/unictype/joininggroup-all: New file.
18802
18803         Tests for module 'unictype/joininggroup-of'.
18804         * modules/unictype/joininggroup-of-tests: New file.
18805         * tests/unictype/test-joininggroup_of.c: New file.
18806         * tests/unictype/test-joininggroup_of.h: New file, automatically
18807         generated by gen-uni-tables.
18808
18809         New module 'unictype/joininggroup-of'.
18810         * modules/unictype/joininggroup-of: New file.
18811         * lib/unictype/joininggroup_of.c: New file.
18812         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18813         gen-uni-tables.
18814
18815         Tests for module 'unictype/joininggroup-byname'.
18816         * modules/unictype/joininggroup-byname-tests: New file.
18817         * tests/unictype/test-joininggroup_byname.c: New file.
18818
18819         New module 'unictype/joininggroup-byname'.
18820         * modules/unictype/joininggroup-byname: New file.
18821         * lib/unictype/joininggroup_byname.c: New file.
18822         * lib/unictype/joininggroup_byname.gperf: New file.
18823
18824         Tests for module 'unictype/joininggroup-name'.
18825         * modules/unictype/joininggroup-name-tests: New file.
18826         * tests/unictype/test-joininggroup_name.c: New file.
18827
18828         New module 'unictype/joininggroup-name'.
18829         * modules/unictype/joininggroup-name: New file.
18830         * lib/unictype/joininggroup_name.c: New file.
18831         * lib/unictype/joininggroup_name.h: New file.
18832
18833         New module 'unictype/joiningtype-all'.
18834         * modules/unictype/joiningtype-all: New file.
18835
18836         Tests for module 'unictype/joiningtype-of'.
18837         * modules/unictype/joiningtype-of-tests: New file.
18838         * tests/unictype/test-joiningtype_of.c: New file.
18839         * tests/unictype/test-joiningtype_of.h: New file, automatically
18840         generated by gen-uni-tables.
18841
18842         New module 'unictype/joiningtype-of'.
18843         * modules/unictype/joiningtype-of: New file.
18844         * lib/unictype/joiningtype_of.c: New file.
18845         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18846         gen-uni-tables.
18847
18848         Tests for module 'unictype/joiningtype-byname'.
18849         * modules/unictype/joiningtype-byname-tests: New file.
18850         * tests/unictype/test-joiningtype_byname.c: New file.
18851
18852         New module 'unictype/joiningtype-byname'.
18853         * modules/unictype/joiningtype-byname: New file.
18854         * lib/unictype/joiningtype_byname.c: New file.
18855
18856         Tests for module 'unictype/joiningtype-name'.
18857         * modules/unictype/joiningtype-name-tests: New file.
18858         * tests/unictype/test-joiningtype_name.c: New file.
18859
18860         New module 'unictype/joiningtype-name'.
18861         * modules/unictype/joiningtype-name: New file.
18862         * lib/unictype/joiningtype_name.c: New file.
18863
18864         unictype: Add support for Arabic shaping properties.
18865         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18866         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18867         declarations.
18868         (UC_JOINING_GROUP_*): New enumeration values.
18869         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18870         declarations.
18871         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18872         (unicode_joining_type): New variable.
18873         (UC_JOINING_GROUP_*): New enumeration values.
18874         (unicode_joining_group): New variable.
18875         (fill_arabicshaping, joining_type_as_c_identifier,
18876         output_joining_type_test, output_joining_type,
18877         joining_group_as_c_identifier, output_joining_group_test,
18878         output_joining_group): New functions.
18879         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18880         fill_arabicshaping and output_joining_type_test, output_joining_type,
18881         output_joining_group_test, output_joining_group.
18882         Reported by Simon Josefsson.
18883
18884 2011-03-21  Jim Meyering  <meyering@redhat.com>
18885
18886         strftime: fix a bug in yesterday's change
18887         * lib/strftime.c (add): Accommodate width's initial value of -1.
18888         Otherwise, nstrftime would copy uninitialized data into
18889         the result buffer.
18890
18891 2011-03-21  Jim Meyering  <meyering@redhat.com>
18892
18893         tests: add strftime-tests module
18894         * tests/test-strftime.c: New file.
18895         * modules/strftime-tests: New module.
18896
18897 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18898
18899         strftime: don't assume a byte count fits in 'int'
18900         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18901         found this problem by static analysis, using gcc -Wstrict-overflow
18902         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18903         on an integer overflow having undefined behavior, but it turns out
18904         that the argument is a size, which might not fit in 'int' anyway,
18905
18906 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18907
18908         stdio: don't require ignore_value around fwrite
18909
18910         This patch works around libc bug 11959
18911         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18912         Without this patch, applications must often write
18913         ignore_value (fwrite (...)) even though the ignore_value is
18914         not helpful here.  It's common to write many objects, using
18915         fwrite/printf/etc., and then use ferror to detect output error.
18916
18917         I considered making this patch optional, but decided against it,
18918         because libc is obviously being inconsistent here: there is no
18919         reason libc should insist that user code must inspect fwrite
18920         return's value without also insisting that it inspect printf's,
18921         putchar's, etc.  If user code wants to have a strict style where
18922         all these functions' values are checked (so that ferror need not
18923         be checked), we could add support for that style in a new gnulib
18924         module, but in the meantime it's better to be consistent and to
18925         support common usage.
18926
18927         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18928         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18929         that we are compiling in checking mode, and if not C++, and
18930         if not already wrapping fwrite for some other reason.
18931         (fwrite): #define to rpl_fwrite if the latter is defined.
18932
18933 2011-03-20  Bruno Haible  <bruno@clisp.org>
18934
18935         verror: Fix compilation error introduced on 2011-02-13.
18936         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18937         instead of __attribute__.
18938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18939
18940 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18941             Bruno Haible  <bruno@clisp.org>
18942
18943         socklen: do not depend on sys_socket
18944         While trying to modify Emacs to use gnulib's socklen module,
18945         I discovered a circular dependency: socklen depends on sys_socket
18946         and vice versa.  Emacs can use socklen, but it does not need
18947         sys_socket because it has its own substitute for sys/socket.h.
18948         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18949         gl_TYPE_SOCKLEN_T.
18950         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18951         gl_PREREQ_SYS_H_SOCKET.
18952         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18953         gl_PREREQ_SYS_H_SOCKET.
18954         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18955         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18956         * modules/socklen (Depends-on): Do not depend on sys_socket.
18957         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18958
18959 2011-03-20  Jim Meyering  <meyering@redhat.com>
18960
18961         maint.mk: sort file names *after* new transformation
18962         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18963         prefix would have led to an unwarranted failure in GNU parted.
18964         Sort after that transformation.
18965
18966 2011-03-19  Jim Meyering  <meyering@redhat.com>
18967
18968         maint.mk: fix po-file syntax-check rule
18969         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18970         Patch by Bruno Haible.
18971
18972 2011-03-19  Bruno Haible  <bruno@clisp.org>
18973
18974         socklen: Update comment.
18975         * m4/socklen.m4: Update comment about platforms.
18976
18977 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18978             Bruno Haible  <bruno@clisp.org>
18979
18980         inet_ntop, inet_pton: Simplify.
18981         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18982         documented to provide socklen_t and we already depend on sys_socket.
18983         * modules/inet_pton (Depends-on): Likewise.
18984         * lib/arpa_inet.in.h: Adjust comment.
18985
18986 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18987             Bruno Haible  <bruno@clisp.org>
18988
18989         netdb: Simplify.
18990         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18991         documented to provide socklen_t and we already depend on sys_socket.
18992         * lib/netdb.in.h: Adjust comment.
18993
18994 2011-03-19  Bruno Haible  <bruno@clisp.org>
18995
18996         sys_socket, netdb: Document problem with socklen_t.
18997         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18998         platforms.
18999         * doc/posix-headers/netdb.texi: Likewise.
19000
19001 2011-03-18  Eric Blake  <eblake@redhat.com>
19002
19003         maint.mk: let po check work in VPATH build
19004         * top/maint.mk (po_file): Allow cfg.mk override.
19005         (sc_po_check): Allow VPATH use.
19006         Reported by Jiri Denemark.
19007
19008 2011-03-16  Jim Meyering  <meyering@redhat.com>
19009
19010         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19011         Before, you would have had to create one .x-sc_ file per rule in order
19012         to exempt offending files.  Now, you may instead use a Make variable --
19013         usually defined in cfg.mk -- whose name identifies the affected rule.
19014         * top/maint.mk (_sc_excl): Define.
19015         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19016         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19017
19018 2011-03-13  Bruno Haible  <bruno@clisp.org>
19019
19020         ignore-value tests: Avoid warnings.
19021         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19022         empty for gcc < 3.4.
19023
19024 2011-03-13  Bruno Haible  <bruno@clisp.org>
19025
19026         passfd: Fix link error on Solaris.
19027         * modules/passfd (Description): Correct.
19028         (Depends-on): Add socketlib.
19029         (Link): New section.
19030         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19031
19032 2011-03-13  Bruno Haible  <bruno@clisp.org>
19033
19034         passfd: Fix link error on AIX 5.2.
19035         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19036
19037 2011-03-13  Bruno Haible  <bruno@clisp.org>
19038
19039         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19040         * lib/sys_socket.in.h: Include <stddef.h>.
19041         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19042         CMSG_FIRSTHDR. Remove unused variable.
19043
19044 2011-03-13  Bruno Haible  <bruno@clisp.org>
19045
19046         passfd: Fix compilation error on OpenBSD.
19047         * lib/passfd.c: Include <sys/uio.h>.
19048
19049 2011-03-13  Bruno Haible  <bruno@clisp.org>
19050
19051         passfd test: Fix warnings.
19052         * tests/test-passfd.c: Include <sys/wait.h>.
19053         (main): Fix typo.
19054
19055 2011-03-13  Bruno Haible  <bruno@clisp.org>
19056
19057         passfd module, part 4, tweaks.
19058         * tests/test-passfd.c: Reorder includes.
19059         (main): Fix perror and printf calls.
19060
19061 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19062
19063         passfd module, part 4.
19064         * modules/passfd-tests: New file.
19065         * tests/test-passfd.c: New file.
19066
19067 2011-03-13  Jim Meyering  <meyering@redhat.com>
19068
19069         Makefile: rely on GNU make; derive syntax-check rule names
19070         Rather than requiring that each sc_ rule be listed as a dependent
19071         of "check", use features of GNU make to derive the list.
19072         * Makefile (syntax-check-rules): Define.
19073         (check): Depend on the new variable, not the hard-coded list.
19074
19075 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19076             Bruno Haible  <bruno@clisp.org>
19077
19078         passfd module, part 3.
19079         * lib/passfd.h (recvfd): Add a flags argument.
19080         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19081         (recvfd): Add a flags argument.
19082         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19083         exists.
19084         * modules/passfd (Depends-on): Add cloexec.
19085         Suggested by Eric Blake.
19086
19087 2011-03-13  Bruno Haible  <bruno@clisp.org>
19088
19089         passfd module, part 2, tweaks.
19090         * modules/passfd (Files): Reorder.
19091         (Depends-on): Remove errno.
19092         (Include): Remove <sys/socket.h>, <sys/un.h>.
19093         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19094         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19095         specification header. Include <sys/socket.h> always. Don't include
19096         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19097         (sendfd): Clarify that it sets errno when it fails.
19098         (recvfd): Fix specification.
19099
19100 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19101
19102         passfd module, part 2.
19103         * modules/passfd: New file.
19104         * lib/passfd.h: New file.
19105         * lib/passfd.c: New file.
19106
19107 2011-03-12  Bruno Haible  <bruno@clisp.org>
19108
19109         wcswidth, mbswidth: Avoid integer overflow.
19110         * lib/wcswidth.c: Include <limits.h>.
19111         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19112         * lib/mbswidth.c: Include <limits.h>.
19113         (mbsnwidth): Avoid 'int' overflow.
19114         Reported by Jim Meyering.
19115
19116 2011-03-12  Bruno Haible  <bruno@clisp.org>
19117
19118         futimens, utimensat: Avoid endless recursion on Solaris 10.
19119         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19120         Solaris.
19121         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19122         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19123
19124 2011-03-11  Jim Meyering  <meyering@redhat.com>
19125
19126         maint.mk: relax a regexp to accommodate other formatting styles
19127         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19128         between "ngettext" and the following "(".
19129
19130 2011-03-11  Pádraig Brady <P@draigBrady.com>
19131
19132         maint.mk: suppress a false positive warning
19133         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19134         diagnostics are marked with ngettext.
19135
19136 2011-03-10  Eric Blake  <eblake@redhat.com>
19137
19138         wchar: add explicit dependencies, for Tru64
19139         * modules/mbmemcasecoll (Depends-on): Add wchar.
19140         * modules/mbtowc (Depends-on): Likewise.
19141         * modules/vasnprintf (Depends-on): Likewise.
19142         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19143         * modules/wctomb (Depends-on): Likewise.
19144         Reported by Peter O'Gorman.
19145
19146 2011-03-08  Bruno Haible  <bruno@clisp.org>
19147
19148         passfd module, part 1, tweaks.
19149         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19150         Improve indentation. Improve AC_MSG_CHECKING messages.
19151         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19152         gl_SOCKET_FAMILIES.
19153
19154 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19155
19156         passfd module, part 1.
19157         * m4/afunix.m4: New file.
19158         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19159         sockets.
19160
19161 2011-03-08  Bruno Haible  <bruno@clisp.org>
19162
19163         regex-quote: New API.
19164         * lib/regex-quote.h: Include <stdbool.h>.
19165         (struct regex_quote_spec): New type.
19166         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19167         New declarations.
19168         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19169         'const struct regex_quote_spec *' argument.
19170         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19171         (pcre_special): New constant.
19172         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19173         New functions.
19174         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19175         'const struct regex_quote_spec *' argument.
19176         * modules/regex-quote (Depends-on): Add stdbool.
19177         * tests/test-regex-quote.c (check): Update for new API. Add test for
19178         anchored results.
19179         * NEWS: Mention the API change.
19180         Reported by Reuben Thomas and Eric Blake.
19181
19182 2011-03-06  Bruno Haible  <bruno@clisp.org>
19183
19184         regex-quote: Fix creation of POSIX extended regular expressions.
19185         * lib/regex-quote.c (ere_special): Add grouping and alternation
19186         operators.
19187
19188 2011-03-05  Bruno Haible  <bruno@clisp.org>
19189
19190         doc: Improve doc regarding autopoint vs. gnulib.
19191         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19192         disable autopoint while running autoreconf.
19193         Suggested by Ralf Wildenhues.
19194
19195 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19196
19197         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19198         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19199
19200 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19201
19202         parse-duration: remove xalloc.h dependency
19203         * lib/parse-duration.c (parse_period): handle NULL return from
19204         strdup instead of calling xstrdup().
19205         * modules/parse-duration: remove "xalloc" dependency
19206
19207 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19208
19209         bootstrap: honor m4_base when running aclocal
19210         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19211
19212 2011-03-02  Jim Meyering  <meyering@redhat.com>
19213
19214         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19215         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19216         on request from Matt Booth.
19217
19218 2011-03-01  Eric Blake  <eblake@redhat.com>
19219
19220         test-link: work on Hurd
19221         * tests/test-link.h (test_link): Hurd rejects linking directories
19222         with EISDIR instead of the POSIX-mandated EPERM.
19223
19224 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19225
19226         stdio: simplify by moving files to printf-posix, sigpipe
19227         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19228         since this symbol is needed only if printf is replaced.
19229         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19230         Require gl_ASM_SYMBOL_PREFIX.
19231         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19232         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19233         (Depends-on): Add 'raise'.
19234         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19235         * modules/stdio (Files): Remove lib/stdio-write.c,
19236         m4/asm-underscore.m4.
19237         (Depends-on): Remove 'raise'.
19238
19239         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19240         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19241         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19242         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19243
19244 2011-02-28  Bruno Haible  <bruno@clisp.org>
19245
19246         localcharset: Assume ANSI C behaviour of free().
19247         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19248         calling free().
19249         Suggested by Simon Josefsson <simon@josefsson.org>.
19250
19251 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19252             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19253             Bruno Haible  <bruno@clisp.org>  (tiny change)
19254
19255         On Cygwin, use /proc file system instead of win32 API.
19256         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19257         Win32 file names.
19258         (DllMain): Simplify by removing Cygwin specific code.
19259         (find_shared_library_fullname): Use Linux specific implementation also
19260         for Cygwin.
19261         (get_shared_library_fullname): Update accordingly.
19262         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19263         Win32 file names.
19264         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19265         Cygwin specific code.
19266
19267 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19268             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19269
19270         Fix OpenMP flag detection for various Fortran compilers.
19271         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19272         OpenMP-conditional compilation construct, to force compile
19273         failure with missing OpenMP flag.
19274         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19275
19276 2011-02-25  Eric Blake  <eblake@redhat.com>
19277
19278         strstr: expand test coverage
19279         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19280         compilation.
19281         * tests/test-memmem.c (main): Duplicate tests.
19282         * tests/test-strcasestr.c (main): Likewise.
19283         * tests/test-c-strcasestr.c (main): Likewise.
19284
19285 2011-02-25  Jim Meyering  <meyering@redhat.com>
19286
19287         maint.mk: detect missing-NL-at-EOF, too
19288         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19289         it also detects when a file lacks a newline at EOF.
19290         (require_exactly_one_NL_at_EOF_): Renamed from
19291         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19292         since people may well have .x-sc_... file names tied to the
19293         existing name.  Suggested by Eric Blake.
19294
19295 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19296
19297         dirname: move m4/dos.m4 functionality into lib/dosname.h
19298
19299         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19300         extracts symbols from it, puts them into config.h; but it's much
19301         easier to use the symbols directly.  filename.h already does this,
19302         but it disagrees with dos.m4 in some respects.  This patch
19303         introduces a different include file dosname.h that packages up
19304         dos.m4, and then later we can work on merging filename.h and
19305         dosname.h.  Applications that need only the easy-to-configure
19306         symbols should consider including dosname.h rather than dirname.h.
19307         * NEWS: Mention incompatible changes.
19308         * m4/dos.m4: Remove.
19309         * lib/dosname.h, modules/dosname: New files.
19310         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19311         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19312         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19313         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19314         Include dosname.h, not dirname.h.
19315         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19316         Include dosname.h, for definitions of symbols like ISSLASH
19317         that used to be in config.h.
19318         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19319         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19320         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19321         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19322         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19323         * modules/rmdir (Files): Likewise.
19324         * modules/stat (Files): Likewise.
19325         * modules/unlink (Files): Likewise.
19326         * modules/dirname-lgpl (Depends-on): Add dosname.
19327         * modules/lstat (Depends-on): Likewise.
19328         * modules/openat (Depends-on): Likewise.
19329         * modules/rmdir (Depends-on): Likewise.
19330         * modules/savewd (Depends-on): Likewise.
19331         * modules/stat (Depends-on): Likewise.
19332         * modules/unlink (Depends-on): Likewise.
19333         * modules/openat (Depends-on): Remove dirname-lgpl.
19334         * modules/savewd (Depends-on): Likewise.
19335         * tests/test-dirname.c: Do not use removed symbols like
19336         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19337         the remaining symbols, e.g., ISSLASH ('\\').
19338
19339 2011-02-25  Eric Blake  <eblake@redhat.com>
19340
19341         strstr: revert patches that introduced bug and pessimization
19342         * lib/str-two-way.h: Add another reference.
19343         (two_way_short_needle, two_way_long_needle): Revert changes from
19344         2011-02-24; they pessimize search speed.
19345         (critical_factorization): Partially revert changes from
19346         2010-06-22; they violate the requirement that the left half of the
19347         needle be smaller than the period of the needle.
19348
19349 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19350
19351         filenamecat: remove unnecessary dependency on dirname-lgpl
19352         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19353         is no direct dependency, just an indirect one via filenamecat-lgpl.
19354
19355         remove: remove unnecessary use of m4/dos.m4
19356         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19357         * modules/remove (FILES): Remove m4/dos.m4.
19358
19359         * lib/openat-proc.c: Don't include dirname.h; not needed.
19360
19361         backupfile: remove unnecessary use of m4/dos.m4
19362         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19363         of its symbols are used by the backupfile code.  backupfile.c does
19364         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19365         for the rare case of programs that want all their backup file
19366         names to live within 8+3 limits, and dos.m4 doesn't address that.
19367         * modules/backupfile (Files): Remove m4/dos.m4.
19368
19369 2011-02-24  Jim Meyering  <meyering@redhat.com>
19370
19371         strstr: fix a bug whereby strstr would mistakenly return NULL
19372         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19373         in period calculation.
19374         (two_way_long_needle): Likewise.
19375         The original problem was reported by Mike Stump in
19376         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19377         Ralf Wildenhues provided the short needle and haystack.
19378         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19379         Add a more involved test to trigger the bug in two_way_long_needle.
19380
19381 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19382
19383         gnulib-tool: remove use of bold display in help screen
19384         * gnulib-tool (func_usage): Do not use bold display anymore in the
19385         help screen.  That was just meant to be a temporary emphasis for a
19386         backward-incompatible change.
19387
19388 2011-02-23  Bruno Haible  <bruno@clisp.org>
19389
19390         Fix misindentation of preprocessor directives.
19391         * lib/argp-namefrob.h: Reindent preprocessor directives.
19392         * lib/getopt_int.h (struct _getopt_data): Likewise.
19393         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19394         * lib/vasnprintf.c (decode_long_double): Likewise.
19395         * tests/test-argmatch.c: Insert blank lines, for clarity.
19396         * tests/test-exclude.c: Likewise.
19397
19398 2011-02-22  Bruno Haible  <bruno@clisp.org>
19399
19400         ioctl: Fix for MacOS X in 64-bit mode.
19401         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19402         value.
19403         Suggested by Eric Blake.
19404         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19405
19406 2011-02-22  Jim Meyering  <meyering@redhat.com>
19407
19408         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19409         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19410         in lib/.
19411
19412 2011-02-22  Eric Blake  <eblake@redhat.com>
19413
19414         maint: avoid any CDPATH issue
19415         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19416
19417         maint: adjust cpp indentation for my modules, as well
19418         * Makefile (sc_cpp_indent_check): Add my name.
19419         * lib/fbufmode.c: Filter through cppi.
19420         * lib/fpurge.c: Likewise.
19421         * lib/freadable.c: Likewise.
19422         * lib/freading.c: Likewise.
19423         * lib/fwritable.c: Likewise.
19424         * lib/fwriting.c: Likewise.
19425         * lib/sigaction.c: Likewise.
19426
19427 2011-02-22  Jim Meyering  <meyering@redhat.com>
19428
19429         maint: adjust cpp indentation to reflect nesting depth
19430         I.e., in a block of code that begins with an unnested "#if",
19431         put one space between the "#" in column 1 and following token.
19432         For example,
19433         -#include <sys/vfs.h>
19434         +# include <sys/vfs.h>
19435         Do this only in .c files that are part of a module I maintain.
19436         * lib/linkat.c: Filter through cppi.
19437         * lib/nanosleep.c: Likewise.
19438         * lib/openat.c: Likewise.
19439         * lib/openat-die.c: Likewise.
19440         * lib/dup3.c: Likewise.
19441         * lib/fchownat.c: Likewise.
19442         * lib/flock.c: Likewise.
19443         * lib/fsync.c: Likewise.
19444         * lib/fts.c: Likewise.
19445         * lib/getpass.c: Likewise.
19446         * lib/gettimeofday.c: Likewise.
19447         * lib/userspec.c: Likewise.
19448         * Makefile (sc_cpp_indent_check): New rule, to check this.
19449
19450 2011-02-22  Bruno Haible  <bruno@clisp.org>
19451
19452         New module 'wctomb'.
19453         * lib/stdlib.in.h (wctomb): New declaration.
19454         * lib/wctomb.c: New file.
19455         * lib/wctomb-impl.h: New file.
19456         * m4/wctomb.m4: New file.
19457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19458         REPLACE_WCTOMB.
19459         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19460         REPLACE_WCTOMB.
19461         * modules/wctomb: New file.
19462         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19463         * doc/posix-functions/wctomb.texi: Mention the new module.
19464         * modules/wctob (Depends-on): Add wctomb.
19465
19466 2011-02-22  Bruno Haible  <bruno@clisp.org>
19467
19468         New module 'mbtowc'.
19469         * lib/stdlib.in.h (mbtowc): New declaration.
19470         * lib/mbtowc.c: New file.
19471         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19472         * m4/mbtowc.m4: New file.
19473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19474         REPLACE_MBTOWC.
19475         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19476         REPLACE_MBTOWC.
19477         * modules/mbtowc: New file.
19478         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19479         * doc/posix-functions/mbtowc.texi: Mention the new module.
19480         * modules/btowc (Depends-on): Add mbtowc.
19481
19482 2011-02-22  Bruno Haible  <bruno@clisp.org>
19483
19484         wcrtomb: Add more tests for native Windows platforms.
19485         * tests/test-wcrtomb-w32-1.sh: New file.
19486         * tests/test-wcrtomb-w32-2.sh: New file.
19487         * tests/test-wcrtomb-w32-3.sh: New file.
19488         * tests/test-wcrtomb-w32-4.sh: New file.
19489         * tests/test-wcrtomb-w32-5.sh: New file.
19490         * tests/test-wcrtomb-w32.c: New file.
19491         * modules/wcrtomb-tests (Files): Add them.
19492         (Makefile.am): Arrange to run these tests.
19493         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19494         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19495
19496 2011-02-20  Bruno Haible  <bruno@clisp.org>
19497
19498         wcrtomb: Enhance test.
19499         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19500
19501 2011-02-20  Bruno Haible  <bruno@clisp.org>
19502
19503         mbrtowc: Tiny optimization.
19504         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19505
19506 2011-02-20  Jim Meyering  <meyering@redhat.com>
19507
19508         test-exclude.c: remove unmatched #endif
19509         * tests/test-exclude.c: Remove stray #endif, left over from
19510         the change of a week ago.
19511
19512 2011-02-19  Jim Meyering  <meyering@redhat.com>
19513
19514         git-version-gen: skip "-dirty" check when appropriate
19515         * build-aux/git-version-gen: Don't run any git commands when the
19516         version string comes from .tarball-version.  Prior to this, we
19517         would run git update-index --refresh even from a just-unpacked
19518         tarball directory, and that could affect a .git/ directory in a
19519         parent of the build directory.  Reported by Mike Frysinger.
19520
19521 2011-02-19  Bruno Haible  <bruno@clisp.org>
19522
19523         unictype/property-byname: Reduce the size of the 'data' segment.
19524         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19525
19526 2011-02-19  Bruno Haible  <bruno@clisp.org>
19527
19528         unictype/scripts: Reduce the size of the 'data' segment.
19529         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19530         '%pic'.
19531         * lib/unictype/scripts_byname.gperf: Regenerated.
19532
19533 2011-02-19  Bruno Haible  <bruno@clisp.org>
19534
19535         stdint: Update documentation.
19536         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19537
19538 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19539
19540         stdint: omit redundant check for wchar.h
19541         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19542         always tests whether wchar.h exists, so remove the now-redundant test.
19543
19544 2011-02-18  Bruno Haible  <bruno@clisp.org>
19545
19546         stdint: Cut dependency to module 'wchar'.
19547         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19548         include the necessary prerequisites.
19549         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19550         * modules/stdint (Depends-on): Remove wchar.
19551         (Makefile.am): Substitute HAVE_WCHAR_H.
19552         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19553
19554 2011-02-18  Eric Blake  <eblake@redhat.com>
19555
19556         longlong: skip, rather than fail, on cross-compilation
19557         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19558         when cross-compiling; regression from 2011-02-16.
19559
19560 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19561
19562         * NEWS: Mention 2011-02-08 change to stdlib.
19563
19564 2011-02-17  Bruno Haible  <bruno@clisp.org>
19565
19566         getloadavg: Add comments about platforms.
19567         * m4/getloadavg.m4: Add comment.
19568         * lib/getloadavg.c: Likewise.
19569
19570 2011-02-17  Bruno Haible  <bruno@clisp.org>
19571
19572         getloadavg: Fix link error on Solaris 2.6.
19573         * modules/getloadavg (Link): New section.
19574         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19575         linking test-getloadavg.
19576         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19577         getloadavg.
19578
19579 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19580
19581         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19582         It was 'int', but this doesn't match the IRIX 6.5 manual.
19583         Suggested by Bruno Haible in
19584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19585
19586 2011-02-17  Bruno Haible  <bruno@clisp.org>
19587
19588         havelib: Fix comments.
19589         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19590         change.
19591
19592 2011-02-17  Bruno Haible  <bruno@clisp.org>
19593
19594         havelib: Update config.rpath.
19595         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19596
19597 2011-02-17  Bruno Haible  <bruno@clisp.org>
19598
19599         getloadavg test: Add some plausibility checks.
19600         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19601         is improbable.
19602
19603 2011-02-16  Eric Blake  <eblake@redhat.com>
19604
19605         maintainer-makefile: make syntax-check a no-op from tarballs
19606         * top/maint.mk (no-vc-detected): New rule.
19607         (local-checks-available): Use it to avoid hanging if someone tries
19608         'make syntax-check' from a tarball.  Also append to any non-syntax
19609         checks already defined in cfg.mk.
19610
19611 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19612
19613         longlong: tune, particularly for common case of c99
19614
19615         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19616         or running anything if c99, or if unsigned long long int does not
19617         work.  In either case, we know the answer without further tests.
19618         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19619         it at most once, and use its results for both long long int and
19620         unsigned long long int.  This is more likely to be efficient in
19621         the common case where the program wants to check for both long
19622         long int and unsigned long long int.
19623         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19624         since the answer is already known.
19625
19626 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19627
19628         getloadavg: set errno
19629         * lib/getloadavg.c: Set errno when returning -1.  If no other
19630         error number looks appropriate, set it to ENOSYS if the getloadavg
19631         looks like it can't possibly ever work, ENOTSUP otherwise.
19632         Suggested by Bruno Haible in
19633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19634
19635         getloadavg: trim unused parts and speed up 'configure'
19636         * NEWS: Document this.
19637         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19638         always compiled if getloadavg is absent.
19639         Move test code to ...
19640         * tests/test-getloadavg.c: New file, containing previous
19641         contents of test from lib/getloadavg.c.  It also contains
19642         suggestions by Bruno Haible in
19643         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19644         * modules/getloadavg-tests: New file.
19645         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19646         Do tests in the same order as they're needed for getloadavg.c.
19647         Omit setgid-related tests that generate symbols KMEM_GROUP,
19648         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19649         Do only the tests that are needed to see whether the system has
19650         getloadavg, moving the other tests into ...
19651         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19652         NLIST_NAME_UNION; nobody should be using it.  Do not define
19653         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19654         relevant, as the user of this module shouldn't care how getloadavg
19655         is implemented.
19656
19657         getloadavg: omit unused var
19658         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19659
19660 2011-02-15  Jim Meyering  <meyering@redhat.com>
19661
19662         doc: update users.txt
19663         * users.txt: Update iwhd's URL.
19664
19665 2011-02-13  Bruno Haible  <bruno@clisp.org>
19666
19667         Consistent macro naming for macros that use GCC __attribute__.
19668         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19669         _ATTRIBUTE_NONNULL_.
19670         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19671         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19672         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19673         ATTRIBUTE_DEPRECATED.
19674         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19675         ATTRIBUTE_NORETURN.
19676         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19677         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19678         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19679         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19680         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19681         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19682         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19683         ATTRIBUTE_SENTINEL.
19684         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19685         ATTRIBUTE_RETURN_CHECK.
19686         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19687         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19688         ATTRIBUTE_NORETURN.
19689         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19690         Reported by Paul Eggert.
19691
19692 2011-02-13  Bruno Haible  <bruno@clisp.org>
19693
19694         Don't interfere with a program's definition of __attribute__.
19695         * lib/argp.h (__attribute__): Remove definition.
19696         (_GL_ATTRIBUTE_FORMAT): New macro.
19697         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19698         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19699         (_GL_ATTRIBUTE_FORMAT): New macro.
19700         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19701         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19702         GCC 3 or newer.
19703         * lib/error.h (__attribute__): Remove definition.
19704         (_GL_ATTRIBUTE_FORMAT): New macro.
19705         (error, error_at_line): Use it.
19706         * lib/hash.h (__attribute__): Remove definition.
19707         (ATTRIBUTE_WUR): Update definition. Define always.
19708         * lib/openat.h (__attribute__): Remove definition.
19709         (ATTRIBUTE_NORETURN): Update definition. Define always.
19710         * lib/sigpipe-die.h (__attribute__): Remove definition.
19711         (ATTRIBUTE_NORETURN): Update definition. Define always.
19712         * lib/vasnprintf.h (__attribute__): Remove definition.
19713         (_GL_ATTRIBUTE_FORMAT): New macro.
19714         (asnprintf, vasnprintf): Use it.
19715         * lib/xalloc.h (__attribute__): Remove definition.
19716         (ATTRIBUTE_NORETURN): Update definition. Define always.
19717         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19718         * lib/xmemdup0.h (__attribute__): Remove definition.
19719         (ATTRIBUTE_NORETURN): Update definition. Define always.
19720         * lib/xprintf.h (__attribute__): Remove definition.
19721         (_GL_ATTRIBUTE_FORMAT): New macro.
19722         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19723         * lib/xstrtol.h (__attribute__): Remove definition.
19724         (ATTRIBUTE_NORETURN): Update definition. Define always.
19725         * lib/xvasprintf.h (__attribute__): Remove definition.
19726         (_GL_ATTRIBUTE_FORMAT): New macro.
19727         (xasprintf, xvasprintf): Use it.
19728         * tests/test-argmatch.c (__attribute__): Remove definition.
19729         (ATTRIBUTE_NORETURN): Update definition. Define always.
19730         * tests/test-exclude.c (__attribute__): Remove definition.
19731         (ATTRIBUTE_NORETURN): Update definition. Define always.
19732         Reported by Paul Eggert.
19733
19734 2011-02-13  Bruno Haible  <bruno@clisp.org>
19735
19736         mbrtowc: Add more tests for native Windows platforms.
19737         * tests/test-mbrtowc-w32-1.sh: New file.
19738         * tests/test-mbrtowc-w32-2.sh: New file.
19739         * tests/test-mbrtowc-w32-3.sh: New file.
19740         * tests/test-mbrtowc-w32-4.sh: New file.
19741         * tests/test-mbrtowc-w32-5.sh: New file.
19742         * tests/test-mbrtowc-w32.c: New file.
19743         * modules/mbrtowc-tests (Files): Add them.
19744         (Makefile.am): Arrange to run these tests.
19745         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19746         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19747
19748 2011-02-13  Bruno Haible  <bruno@clisp.org>
19749
19750         mbrtowc: Work around native Windows bug.
19751         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19752         guess when no suitable locale for testing was found.
19753         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19754
19755 2011-02-13  Bruno Haible  <bruno@clisp.org>
19756
19757         mbsinit: Work around mingw bug.
19758         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19759         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19760         Windows.
19761         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19762
19763 2011-02-13  Bruno Haible  <bruno@clisp.org>
19764
19765         mbsinit: Don't crash for a NULL argument.
19766         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19767         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19768
19769 2011-02-13  Bruno Haible  <bruno@clisp.org>
19770
19771         Don't interfere with a program's definition of __attribute__.
19772         * lib/stdio.in.h (__attribute__): Remove definition.
19773         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19774         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19775         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19776         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19777         * lib/string.in.h (__attribute__): Remove definition.
19778         Reported by Paul Eggert.
19779
19780 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19781
19782         stdlib: don't get in the way of non-GCC __attribute__
19783         See thread starting at
19784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19785         Revert previous stdlib change, installing the following instead:
19786         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19787         to get in the way of a non-GCC compiler that supports __attribute__.
19788         (_GL_ATTRIBUTE_RETURN): New macro.
19789         (_Exit): Use it instead of __attribute__.
19790
19791 2011-02-12  Bruno Haible  <bruno@clisp.org>
19792
19793         quotearg test: Avoid test failure on mingw.
19794         * tests/test-quotearg.sh: Convert the locale identifier from native
19795         Windows syntax to Unix syntax.
19796
19797 2011-02-12  Bruno Haible  <bruno@clisp.org>
19798
19799         setlocale: Prefer gnulib's override over libintl's override.
19800         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19801         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19802         GNULIB_defined_setlocale is set.
19803
19804 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19805
19806         stdlib: support non-GCC __attribute__
19807
19808         Fix a serious and tricky problem encountered when attempting to
19809         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19810         5.5, but it crashed due to memory corruption on Solaris 10 with
19811         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19812         bits that are otherwise zero.  This tagging is optional inside
19813         Emacs but is preferred and is used when __attribute__ ((__aligned
19814         (8))) works, as it does with both recent-enough GCC and with Sun C
19815         5.11.  However, Sun C 5.11 is not GCC and does not #define
19816         __GNUC__ and __GNUC_MINOR__.
19817
19818         When I added the getloadavg module to Emacs, it brought in
19819         stdlib.in.h, which contained this fragment:
19820
19821            #ifndef __attribute__
19822            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19823            #  define __attribute__(Spec)   /* empty */
19824            # endif
19825            #endif
19826
19827         When files that include <stdlib.h> were compiled with Sun C 5.11,
19828         the above code disabled __attribute__ ((__aligned (8))), which
19829         caused variables to not be properly aligned, which eventually led
19830         to the pointer corruption mentioned above.  (This was a bit hard
19831         to diagnose, unfortunately.)
19832
19833         Several "#define __attribute__(X) /* empty */" code snippets need
19834         to be eradicated from Gnulib to work with non-GCC compilers that
19835         support __attribute__.  The Autoconf way to do this is to test for
19836         each kind of attribute that we want support for, and selectively
19837         enable that in source code.
19838
19839         Fix this problem just for stdlib.h, by adding a test for the
19840         __noreturn__ attribute, and change stdlib.in.h to use that test
19841         when needed.  This technique can be easily generalized to the
19842         other *.in.h files and attributes, and a similar technique can be
19843         used for *.h and *.c files.  This patch is enough to solve the
19844         problem for Emacs + getloadavg, and I thought I'd publish it for
19845         feedback before undertaking further, similar fixes in other
19846         modules.
19847
19848         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19849         because it's not needed for stdlib.h.  It merely substitutes the
19850         value directly into stdlib.h.  We may well need to #define it, or
19851         similar symbols, for other modules, but it's nice to also have an
19852         option to not #define it for applications like Emacs that do not
19853         need it.
19854
19855         * lib/stdlib.in.h (__attribute__): Do not #define.
19856         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19857         be defined only if the _Exit module is also used.
19858         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19860         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19861         platforms.
19862         * modules/_Exit (Files): Add m4/attribute.m4.
19863         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19864         * m4/attribute.m4: New file.
19865
19866 2011-02-12  Bruno Haible  <bruno@clisp.org>
19867
19868         wcsrtombs: Work around bug on native Windows.
19869         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19870         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19871         instead of len.
19872         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19873
19874 2011-02-12  Bruno Haible  <bruno@clisp.org>
19875
19876         mbsrtowcs: Work around bug on native Windows.
19877         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19878         against mingw bug.
19879         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19880
19881 2011-02-12  Bruno Haible  <bruno@clisp.org>
19882
19883         Avoid setlocale bugs in tests.
19884         * modules/btowc (Dependencies): Add setlocale.
19885         * modules/c-strcase (Dependencies): Likewise.
19886         * modules/mbmemcasecmp (Dependencies): Likewise.
19887         * modules/mbmemcasecoll (Dependencies): Likewise.
19888         * modules/mbrtowc (Dependencies): Likewise.
19889         * modules/mbscasecmp (Dependencies): Likewise.
19890         * modules/mbscasestr (Dependencies): Likewise.
19891         * modules/mbschr (Dependencies): Likewise.
19892         * modules/mbscspn (Dependencies): Likewise.
19893         * modules/mbsinit (Dependencies): Likewise.
19894         * modules/mbsncasecmp (Dependencies): Likewise.
19895         * modules/mbsnrtowcs (Dependencies): Likewise.
19896         * modules/mbspbrk (Dependencies): Likewise.
19897         * modules/mbspcasecmp (Dependencies): Likewise.
19898         * modules/mbsrchr (Dependencies): Likewise.
19899         * modules/mbsrtowcs (Dependencies): Likewise.
19900         * modules/mbsspn (Dependencies): Likewise.
19901         * modules/mbsstr (Dependencies): Likewise.
19902         * modules/nl_langinfo (Dependencies): Likewise.
19903         * modules/quotearg (Dependencies): Likewise.
19904         * modules/unicase/locale-language (Dependencies): Likewise.
19905         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19906         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19907         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19908         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19909         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19910         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19911         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19912         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19913         * modules/vasnprintf-posix (Dependencies): Likewise.
19914         * modules/wcrtomb (Dependencies): Likewise.
19915         * modules/wcsnrtombs (Dependencies): Likewise.
19916         * modules/wcsrtombs (Dependencies): Likewise.
19917
19918 2011-02-12  Bruno Haible  <bruno@clisp.org>
19919
19920         setlocale: Workaround native Windows bug.
19921         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19922         succeeds but sets LC_CTYPE to "C", report a failure.
19923         * tests/test-setlocale2.sh: New file.
19924         * tests/test-setlocale2.c: New file.
19925         * modules/setlocale-tests (Files): Add the new files.
19926         (Makefile.am): Enable test-setlocale2.sh test.
19927         * doc/posix-functions/setlocale.texi: Mention workaround.
19928
19929 2011-02-11  Bruno Haible  <bruno@clisp.org>
19930
19931         Tests for module 'setlocale'.
19932         * modules/setlocale-tests: New file.
19933         * tests/test-setlocale1.sh: New file.
19934         * tests/test-setlocale1.c: New file.
19935
19936         New module 'setlocale'.
19937         * lib/locale.in.h (setlocale): New declaration.
19938         * lib/setlocale.c: New file, based on
19939         gettext/gettext-runtime/intl/setlocale.c.
19940         * m4/setlocale.m4: New file.
19941         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19942         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19943         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19944         REPLACE_SETLOCALE.
19945         * modules/setlocale: New file.
19946         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19947         * doc/posix-functions/setlocale.texi: Mention the new module.
19948
19949 2011-02-11  Bruno Haible  <bruno@clisp.org>
19950
19951         Prepare for locale dependent tests on mingw.
19952         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19953         because it has the wrong locale encoding.
19954         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19955         French_France.1252 instead of "fr".
19956         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19957         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19958         because it has the wrong locale encoding.
19959         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19960         native Windows, try Turkish_Turkey.65001.
19961         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19962         Chinese_China.54936.
19963
19964         Prepare for locale dependent tests on mingw.
19965         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19966         differently.
19967         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19968         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19969         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19970         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19971
19972 2011-02-11  Eric Blake  <eblake@redhat.com>
19973
19974         strptime: avoid compiler warnings
19975         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19976         compiler warnings about dead code.
19977         Reported by Daniel P. Berrange.
19978
19979 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19980
19981         doc: update users.txt
19982         * users.txt: Add rcs.
19983
19984 2011-02-10  John W. Eaton  <jwe@gnu.org>
19985
19986         doc: update users.txt
19987         * users.txt: Add octave.
19988
19989 2011-02-10  Jim Meyering  <meyering@redhat.com>
19990
19991         doc: update users.txt
19992         * users.txt: Add iwhd.
19993
19994 2011-02-09  Bruno Haible  <bruno@clisp.org>
19995
19996         gnulib-tool: Make copyright notice adjustment more robust.
19997         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19998         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19999         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20000         License".
20001         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20002
20003 2011-02-06  Bruno Haible  <bruno@clisp.org>
20004
20005         New module 'towctrans'.
20006         * modules/towctrans: New file.
20007         * lib/wctype.in.h (towctrans): New declaration.
20008         * lib/towctrans.c: New file.
20009         * lib/towctrans-impl.h: New file.
20010         * m4/towctrans.m4: New file.
20011         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20012         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20013         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20014         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20015         * doc/posix-functions/towctrans.texi: Mention the new module.
20016
20017 2011-02-06  Bruno Haible  <bruno@clisp.org>
20018
20019         New module 'wctrans'.
20020         * modules/wctrans: New file.
20021         * lib/wctype.in.h (wctrans): New declaration.
20022         * lib/wctrans.c: New file.
20023         * lib/wctrans-impl.h: New file.
20024         * m4/wctrans.m4: New file.
20025         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20026         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20027         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20028         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20029         * doc/posix-functions/wctrans.texi: Mention the new module.
20030
20031 2011-02-06  Bruno Haible  <bruno@clisp.org>
20032
20033         New module 'iswctype'.
20034         * modules/iswctype: New file.
20035         * lib/wctype.in.h (iswctype): New declaration.
20036         * lib/iswctype.c: New file.
20037         * lib/iswctype-impl.h: New file.
20038         * m4/iswctype.m4: New file.
20039         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20040         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20041         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20042         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20043         * doc/posix-functions/iswctype.texi: Mention the new module and the
20044         HP-UX 11.00 problem.
20045
20046 2011-02-06  Bruno Haible  <bruno@clisp.org>
20047
20048         New module 'wctype'.
20049         * modules/wctype: Change to represent the wctype() substitute.
20050         * lib/wctype.in.h (wctype): New declaration.
20051         * lib/wctype.c: New file.
20052         * lib/wctype-impl.h: New file.
20053         * m4/wctype.m4: New file.
20054         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20055         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20056         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20057         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20058         * doc/posix-functions/wctype.texi: Mention the new module and the
20059         HP-UX 11.00 problem.
20060
20061 2011-02-06  Bruno Haible  <bruno@clisp.org>
20062
20063         wctype-h: Ensure wctype_t and wctrans_t are defined.
20064         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20065         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20066         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20067         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20068         HAVE_WCTRANS_T.
20069         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20070
20071 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20072
20073         flock: fix license typo
20074
20075         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20076         omitted.
20077
20078 2011-02-08  Bruno Haible  <bruno@clisp.org>
20079
20080         Split large sed scripts, for HP-UX sed.
20081         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20082         to avoid HP-UX limit of 99 commands, in the near future.
20083         * modules/stdlib (Makefile.am): Likewise.
20084         * modules/unistd (Makefile.am): Likewise.
20085         * modules/wchar (Makefile.am): Likewise.
20086         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20087         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20088         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20089
20090 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20091             Bruno Haible  <bruno@clisp.org>
20092
20093         stdlib: improve random_r modularization
20094         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20095         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20096         you also need the random_r module to get this material right.
20097         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20098         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20099         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20100
20101 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20102
20103         stdlib: don't depend on stdint
20104         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20105         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20106         be independent of whether stdint.h is needed.
20107         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20108         here, instead of ...
20109         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20110         struct random_data should be using the random_r module, not just
20111         the stdlib module (which wouldn't make sense: what package needs
20112         just struct random_data without also needing random_r?).
20113         * modules/stdlib (Depends-on): Remove stdint.
20114
20115         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20116         See the thread rooted at
20117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20118         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20119         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20120         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20121         __VMS)); previously it was always included (via fcntl--.h).
20122         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20123         hand; this is good enough for load averages.  Also, do not use
20124         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20125         flags directly if available and don't bother otherwise.  (Packages
20126         that need the extra reliability should use the modules that define
20127         these flags on older platforms that lack them.)
20128         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20129         fcntl-safer.
20130
20131 2011-02-08  Jim Meyering  <meyering@redhat.com>
20132
20133         di-set.h, ino-map.h: add multiple-inclusion guard
20134         Technically, the guard is required only for ino-map.h, due to its
20135         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20136         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20137         * lib/ino-map.h: Likewise.
20138
20139 2011-02-06  Bruno Haible  <bruno@clisp.org>
20140
20141         iswblank: Ensure declaration on glibc systems.
20142         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20143         * modules/iswblank (Dependencies): Add 'extensions'.
20144         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20145
20146 2011-02-06  Bruno Haible  <bruno@clisp.org>
20147
20148         New module 'iswblank'.
20149         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20150         * modules/iswblank: New file.
20151         * modules/wctype-h (Files): Remove lib/iswblank.c.
20152         (Makefile.am): Substitute GNULIB_ISWBLANK.
20153         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20154         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20155         (gl_WCTYPE_H_DEFAULTS): New macro.
20156         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20157         * modules/iswblank-tests: New file.
20158         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20159         * tests/test-wctype-h.c (main): Remove iswblank tests.
20160         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20161         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20162         of 'wctype-h'.
20163         * NEWS: Mention the change.
20164         * modules/mbchar (Depends-on): Add iswblank.
20165
20166 2011-02-08  Bruno Haible  <bruno@clisp.org>
20167
20168         di-set tests: Refactor.
20169         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20170         unnecessary includes.
20171         (ASSERT): Remove macro.
20172         (main): Make C90 compliant by avoiding variable declaration after
20173         statement.
20174         * modules/di-set-tests (Files): Add tests/macros.h.
20175
20176 2011-02-08  Bruno Haible  <bruno@clisp.org>
20177
20178         ino-map tests: Refactor.
20179         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20180         unnecessary includes.
20181         (ASSERT): Remove macro.
20182         (main): Make C90 compliant by avoiding variable declaration after
20183         statement.
20184         * modules/ino-map-tests (Files): Add tests/macros.h.
20185
20186 2011-02-08  Jim Meyering  <meyering@redhat.com>
20187
20188         di-set: add "const" to a cast
20189         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20190         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20191
20192 2011-02-06  Bruno Haible  <bruno@clisp.org>
20193
20194         Rename module 'wctype' to 'wctype-h'.
20195         * modules/wctype-h: Renamed from modules/wctype.
20196         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20197         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20198         (Files, Depends-on, Makefile.am): Update.
20199         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20200         (Files, Makefile.am): Update.
20201         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20202         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20203         * doc/posix-headers/wctype.texi: Update.
20204         * doc/posix-functions/iswalnum.texi: Update.
20205         * doc/posix-functions/iswalpha.texi: Update.
20206         * doc/posix-functions/iswblank.texi: Update.
20207         * doc/posix-functions/iswcntrl.texi: Update.
20208         * doc/posix-functions/iswdigit.texi: Update.
20209         * doc/posix-functions/iswgraph.texi: Update.
20210         * doc/posix-functions/iswlower.texi: Update.
20211         * doc/posix-functions/iswprint.texi: Update.
20212         * doc/posix-functions/iswpunct.texi: Update.
20213         * doc/posix-functions/iswspace.texi: Update.
20214         * doc/posix-functions/iswupper.texi: Update.
20215         * doc/posix-functions/iswxdigit.texi: Update.
20216         * doc/posix-functions/towlower.texi: Update.
20217         * doc/posix-functions/towupper.texi: Update.
20218         * NEWS: Mention the change.
20219         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20220         * modules/mbchar (Dependencies): Likewise.
20221         * modules/mbswidth (Dependencies): Likewise.
20222         * modules/quotearg (Dependencies): Likewise.
20223         * modules/regex (Dependencies): Likewise.
20224         * modules/wcscasecmp (Dependencies): Likewise.
20225         * modules/wcsncasecmp (Dependencies): Likewise.
20226         * modules/wcwidth (Dependencies): Likewise.
20227
20228 2011-02-06  Bruno Haible  <bruno@clisp.org>
20229
20230         New module 'wcswidth'.
20231         * modules/wcswidth: New file.
20232         * lib/wchar.in.h (wcswidth): New declaration.
20233         * lib/wcswidth.c: New file.
20234         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20235         * m4/wcswidth.m4: New file.
20236         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20237         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20238         REPLACE_WCSWIDTH.
20239         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20240         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20241         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20242         * doc/posix-functions/wcswidth.texi: Mention the new module.
20243
20244 2011-02-06  Bruno Haible  <bruno@clisp.org>
20245
20246         New module 'wcstok'.
20247         * modules/wcstok: New file.
20248         * lib/wchar.in.h (wcstok): New declaration.
20249         * lib/wcstok.c: New file.
20250         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20251         * m4/wcstok.m4: New file.
20252         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20253         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20255         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20256         * doc/posix-functions/wcstok.texi: Mention the new module.
20257
20258 2011-02-06  Bruno Haible  <bruno@clisp.org>
20259
20260         New module 'wcsstr'.
20261         * modules/wcsstr: New file.
20262         * lib/wchar.in.h (wcsstr): New declaration.
20263         * lib/wcsstr.c: New file.
20264         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20265         * m4/wcsstr.m4: New file.
20266         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20267         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20268         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20269         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20270         * doc/posix-functions/wcsstr.texi: Mention the new module.
20271
20272 2011-02-06  Bruno Haible  <bruno@clisp.org>
20273
20274         New module 'wcspbrk'.
20275         * modules/wcspbrk: New file.
20276         * lib/wchar.in.h (wcspbrk): New declaration.
20277         * lib/wcspbrk.c: New file.
20278         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20279         * m4/wcspbrk.m4: New file.
20280         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20281         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20282         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20283         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20284         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20285
20286 2011-02-06  Bruno Haible  <bruno@clisp.org>
20287
20288         New module 'wcsspn'.
20289         * modules/wcsspn: New file.
20290         * lib/wchar.in.h (wcsspn): New declaration.
20291         * lib/wcsspn.c: New file.
20292         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20293         * m4/wcsspn.m4: New file.
20294         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20295         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20296         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20297         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20298         * doc/posix-functions/wcsspn.texi: Mention the new module.
20299
20300 2011-02-06  Bruno Haible  <bruno@clisp.org>
20301
20302         New module 'wcscspn'.
20303         * modules/wcscspn: New file.
20304         * lib/wchar.in.h (wcscspn): New declaration.
20305         * lib/wcscspn.c: New file.
20306         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20307         * m4/wcscspn.m4: New file.
20308         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20309         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20310         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20311         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20312         * doc/posix-functions/wcscspn.texi: Mention the new module.
20313
20314 2011-02-06  Bruno Haible  <bruno@clisp.org>
20315
20316         New module 'wcsrchr'.
20317         * modules/wcsrchr: New file.
20318         * lib/wchar.in.h (wcsrchr): New declaration.
20319         * lib/wcsrchr.c: New file.
20320         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20321         * m4/wcsrchr.m4: New file.
20322         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20323         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20324         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20325         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20326         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20327
20328 2011-02-06  Bruno Haible  <bruno@clisp.org>
20329
20330         New module 'wcschr'.
20331         * modules/wcschr: New file.
20332         * lib/wchar.in.h (wcschr): New declaration.
20333         * lib/wcschr.c: New file.
20334         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20335         * m4/wcschr.m4: New file.
20336         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20337         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20338         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20339         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20340         * doc/posix-functions/wcschr.texi: Mention the new module.
20341
20342 2011-02-06  Bruno Haible  <bruno@clisp.org>
20343
20344         New module 'wcsdup'.
20345         * modules/wcsdup: New file.
20346         * lib/wchar.in.h (wcsdup): New declaration.
20347         * lib/wcsdup.c: New file.
20348         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20349         * m4/wcsdup.m4: New file.
20350         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20351         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20353         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20354         * doc/posix-functions/wcsdup.texi: Mention the new module.
20355
20356 2011-02-06  Bruno Haible  <bruno@clisp.org>
20357
20358         New module 'wcsxfrm'.
20359         * modules/wcsxfrm: New file.
20360         * lib/wchar.in.h (wcsxfrm): New declaration.
20361         * lib/wcsxfrm.c: New file.
20362         * lib/wcsxfrm-impl.h: New file.
20363         * m4/wcsxfrm.m4: New file.
20364         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20365         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20367         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20368         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20369
20370 2011-02-06  Bruno Haible  <bruno@clisp.org>
20371
20372         New module 'wcscoll'.
20373         * modules/wcscoll: New file.
20374         * lib/wchar.in.h (wcscoll): New declaration.
20375         * lib/wcscoll.c: New file.
20376         * lib/wcscoll-impl.h: New file.
20377         * m4/wcscoll.m4: New file.
20378         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20379         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20381         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20382         * doc/posix-functions/wcscoll.texi: Mention the new module.
20383
20384 2011-02-06  Bruno Haible  <bruno@clisp.org>
20385
20386         New module 'wcsncasecmp'.
20387         * modules/wcsncasecmp: New file.
20388         * lib/wchar.in.h (wcsncasecmp): New declaration.
20389         * lib/wcsncasecmp.c: New file.
20390         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20391         * m4/wcsncasecmp.m4: New file.
20392         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20393         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20394         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20395         HAVE_WCSNCASECMP.
20396         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20397         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20398
20399 2011-02-06  Bruno Haible  <bruno@clisp.org>
20400
20401         New module 'wcscasecmp'.
20402         * modules/wcscasecmp: New file.
20403         * lib/wchar.in.h (wcscasecmp): New declaration.
20404         * lib/wcscasecmp.c: New file.
20405         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20406         * m4/wcscasecmp.m4: New file.
20407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20410         HAVE_WCSCASECMP.
20411         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20412         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20413
20414 2011-02-05  Bruno Haible  <bruno@clisp.org>
20415
20416         New module 'wcsncmp'.
20417         * modules/wcsncmp: New file.
20418         * lib/wchar.in.h (wcsncmp): New declaration.
20419         * lib/wcsncmp.c: New file.
20420         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20421         * m4/wcsncmp.m4: New file.
20422         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20423         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20424         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20425         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20426         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20427
20428 2011-02-05  Bruno Haible  <bruno@clisp.org>
20429
20430         New module 'wcscmp'.
20431         * modules/wcscmp: New file.
20432         * lib/wchar.in.h (wcscmp): New declaration.
20433         * lib/wcscmp.c: New file.
20434         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20435         * m4/wcscmp.m4: New file.
20436         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20437         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20438         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20439         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20440         * doc/posix-functions/wcscmp.texi: Mention the new module.
20441
20442 2011-02-05  Bruno Haible  <bruno@clisp.org>
20443
20444         New module 'wcsncat'.
20445         * modules/wcsncat: New file.
20446         * lib/wchar.in.h (wcsncat): New declaration.
20447         * lib/wcsncat.c: New file.
20448         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20449         * m4/wcsncat.m4: New file.
20450         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20451         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20452         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20453         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20454         * doc/posix-functions/wcsncat.texi: Mention the new module.
20455
20456 2011-02-05  Bruno Haible  <bruno@clisp.org>
20457
20458         New module 'wcscat'.
20459         * modules/wcscat: New file.
20460         * lib/wchar.in.h (wcscat): New declaration.
20461         * lib/wcscat.c: New file.
20462         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20463         * m4/wcscat.m4: New file.
20464         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20465         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20466         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20467         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20468         * doc/posix-functions/wcscat.texi: Mention the new module.
20469
20470 2011-02-05  Bruno Haible  <bruno@clisp.org>
20471
20472         New module 'wcpncpy'.
20473         * modules/wcpncpy: New file.
20474         * lib/wchar.in.h (wcpncpy): New declaration.
20475         * lib/wcpncpy.c: New file.
20476         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20477         * m4/wcpncpy.m4: New file.
20478         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20479         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20480         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20481         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20482         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20483
20484 2011-02-05  Bruno Haible  <bruno@clisp.org>
20485
20486         New module 'wcsncpy'.
20487         * modules/wcsncpy: New file.
20488         * lib/wchar.in.h (wcsncpy): New declaration.
20489         * lib/wcsncpy.c: New file.
20490         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20491         * m4/wcsncpy.m4: New file.
20492         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20493         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20494         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20495         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20496         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20497
20498 2011-02-05  Bruno Haible  <bruno@clisp.org>
20499
20500         New module 'wcpcpy'.
20501         * modules/wcpcpy: New file.
20502         * lib/wchar.in.h (wcpcpy): New declaration.
20503         * lib/wcpcpy.c: New file.
20504         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20505         * m4/wcpcpy.m4: New file.
20506         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20507         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20508         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20509         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20510         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20511
20512 2011-02-05  Bruno Haible  <bruno@clisp.org>
20513
20514         New module 'wcscpy'.
20515         * modules/wcscpy: New file.
20516         * lib/wchar.in.h (wcscpy): New declaration.
20517         * lib/wcscpy.c: New file.
20518         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20519         * m4/wcscpy.m4: New file.
20520         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20521         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20522         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20523         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20524         * doc/posix-functions/wcscpy.texi: Mention the new module.
20525
20526 2011-02-05  Bruno Haible  <bruno@clisp.org>
20527
20528         New module 'wcsnlen'.
20529         * modules/wcsnlen: New file.
20530         * lib/wchar.in.h (wcsnlen): New declaration.
20531         * lib/wcsnlen.c: New file.
20532         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20533         * m4/wcsnlen.m4: New file.
20534         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20535         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20536         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20537         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20538         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20539
20540 2011-02-05  Bruno Haible  <bruno@clisp.org>
20541
20542         New module 'wcslen'.
20543         * modules/wcslen: New file.
20544         * lib/wchar.in.h (wcslen): New declaration.
20545         * lib/wcslen.c: New file.
20546         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20547         * m4/wcslen.m4: New file.
20548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20551         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20552         * doc/posix-functions/wcslen.texi: Mention the new module.
20553
20554 2011-02-05  Bruno Haible  <bruno@clisp.org>
20555
20556         New module 'wmemset'.
20557         * modules/wmemset: New file.
20558         * lib/wchar.in.h (wmemset): New declaration.
20559         * lib/wmemset.c: New file.
20560         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20561         * m4/wmemset.m4: New file.
20562         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20563         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20564         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20565         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20566         * doc/posix-functions/wmemset.texi: Mention the new module.
20567
20568 2011-02-05  Bruno Haible  <bruno@clisp.org>
20569
20570         New module 'wmemmove'.
20571         * modules/wmemmove: New file.
20572         * lib/wchar.in.h (wmemmove): New declaration.
20573         * lib/wmemmove.c: New file.
20574         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20575         * m4/wmemmove.m4: New file.
20576         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20577         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20578         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20579         HAVE_WMEMMOVE.
20580         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20581         * doc/posix-functions/wmemmove.texi: Mention the new module.
20582
20583 2011-02-05  Bruno Haible  <bruno@clisp.org>
20584
20585         New module 'wmemcpy'.
20586         * modules/wmemcpy: New file.
20587         * lib/wchar.in.h (wmemcpy): New declaration.
20588         * lib/wmemcpy.c: New file.
20589         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20590         * m4/wmemcpy.m4: New file.
20591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20593         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20594         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20595         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20596
20597 2011-02-05  Bruno Haible  <bruno@clisp.org>
20598
20599         New module 'wmemcmp'.
20600         * modules/wmemcmp: New file.
20601         * lib/wchar.in.h (wmemcmp): New declaration.
20602         * lib/wmemcmp.c: New file.
20603         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20604         * m4/wmemcmp.m4: New file.
20605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20607         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20608         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20609         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20610
20611 2011-02-07  Jim Meyering  <meyering@redhat.com>
20612
20613         di-set, ino-map: new modules, from coreutils
20614         * lib/di-set.c: New file.
20615         * lib/di-set.h: Likewise.
20616         * lib/ino-map.c: Likewise.
20617         * lib/ino-map.h: Likewise.
20618         * modules/di-set: Likewise.
20619         * modules/di-set-tests: Likewise.
20620         * modules/ino-map: Likewise.
20621         * modules/ino-map-tests: Likewise.
20622         * tests/test-di-set.c: Likewise.
20623         * tests/test-ino-map.c: Likewise.
20624
20625 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20626
20627         getloadavg: merge minor changes from Emacs
20628
20629         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20630         (getloadavg): Use memset, not bzero.
20631
20632         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20633         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20634         clash (bug#86).
20635
20636 2010-11-14  Bruno Haible  <bruno@clisp.org>
20637
20638         Allow multiple gnulib generated replacements to coexist.
20639         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20640         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20641         * lib/langinfo.in.h (nl_item): Likewise.
20642         * lib/math.in.h (_NaN, NAN): Likewise.
20643         * lib/netdb.in.h (struct addrinfo): Likewise.
20644         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20645         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20646         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20647         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20648         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20649         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20650         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20651         pthread_mutexattr_init, pthread_mutexattr_settype,
20652         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20653         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20654         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20655         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20656         * lib/sched.in.h (struct sched_param): Likewise.
20657         * lib/se-selinux.in.h (security_class_t, security_context_t,
20658         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20659         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20660         lsetfilecon, fsetfilecon, security_check_context,
20661         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20662         Likewise.
20663         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20664         Likewise.
20665         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20666         _gl_function_taking_int_returning_void_t, union sigval,
20667         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20668         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20669         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20670         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20671         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20672         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20673         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20674         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20675         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20676         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20677         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20678         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20679         socklen_t, rpl_fd_isset): Likewise.
20680         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20681         * lib/sys_time.in.h (struct timeval): Likewise.
20682         * lib/sys_times.in.h (struct tms): Likewise.
20683         * lib/sys_utsname.in.h (struct utsname):
20684         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20685         * lib/unistd.in.h (getpagesize): Likewise.
20686         * lib/wchar.in.h (mbstate_t): Likewise.
20687         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20688         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20689         towlower, towupper): Likewise.
20690         Reported by Sam Steingold <sds@gnu.org>.
20691
20692 2011-02-05  Eric Blake  <eblake@redhat.com>
20693
20694         unsetenv: work around Haiku issues
20695         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20696         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20697
20698 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20699
20700         libposix: avoid calling error() within libposix
20701         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20702         is defined.
20703
20704 2011-02-05  Eric Blake  <eblake@redhat.com>
20705
20706         strerror_r-posix: port to cygwin
20707         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20708         implementation.
20709         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20710         * tests/test-strerror_r.c (main): Fix test.
20711         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20712         issue.
20713
20714 2011-02-05  Bruno Haible  <bruno@clisp.org>
20715
20716         New module 'wmemchr'.
20717         * modules/wmemchr: New file.
20718         * lib/wchar.in.h (wmemchr): New declaration.
20719         * lib/wmemchr.c: New file.
20720         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20721         * m4/wmemchr.m4: New file.
20722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20724         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20725         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20726         * doc/posix-functions/wmemchr.texi: Mention the new module.
20727
20728 2011-02-04  Eric Blake  <eblake@redhat.com>
20729
20730         fdopendir: detect FreeBSD bug
20731         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20732         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20733
20734 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20735
20736         stdbool: do not define HAVE_STDBOOL_H
20737         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20738         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20739         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20740         imported from the latest Autoconf git.  It was motivated by Emacs,
20741         which uses gnulib but does not need HAVE_STDBOOL_H.
20742
20743 2011-02-04  Bruno Haible  <bruno@clisp.org>
20744
20745         wcsnrtombs: Prepare for new module wwcsnrtombs.
20746         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20747         * lib/wcsnrtombs.c: Include it.
20748         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20749
20750         wcsrtombs: Prepare for new module wwcsrtombs.
20751         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20752         * lib/wcsrtombs.c: Include it.
20753         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20754
20755         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20756         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20757         * lib/mbsnrtowcs.c: Include it.
20758         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20759
20760         mbsrtowcs: Prepare for new module mbsrtowwcs.
20761         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20762         * lib/mbsrtowcs.c: Include it.
20763         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20764
20765 2011-02-04  Bruno Haible  <bruno@clisp.org>
20766
20767         vasnprintf: Reduce use of malloc for small format strings.
20768         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20769         (arguments): Add room for the first 7 arguments.
20770         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20771         (char_directives, u8_directives, u16_directives, u32_directives): Add
20772         room for the first 7 directives.
20773         * lib/printf-parse.c: Include <string.h>.
20774         (PRINTF_PARSE): Change memory handling code so that it uses the first
20775         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20776         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20777         Reported by Pádraig Brady <P@draigbrady.com>.
20778
20779 2011-01-31  Eric Blake  <eblake@redhat.com>
20780
20781         dup2: work around Haiku bug
20782         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20783         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20784         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20785         * tests/test-dup2.c (main): Enhance test.
20786
20787 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20788
20789         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20790         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20791         declared by eglibc 2.11.2.
20792         * lib/stdio.in.h: Likewise.
20793
20794 2011-01-31  Eric Blake  <eblake@redhat.com>
20795
20796         ignore-value: add missing test dependency
20797         * tests/test-ignore-value.c: Revert previous change; stdio.h
20798         provides off_t.
20799         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20800
20801 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20802
20803         mktime: clarify long_int width checking
20804         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20805         the top level, to make it clearer that the assumption about
20806         long_int width is being checked.  See
20807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20808
20809 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20810
20811         ignore-value: Fix self-test.
20812         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20813
20814 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20815
20816         TYPE_MAXIMUM: avoid theoretically undefined behavior
20817         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20818         negative number, which the C Standard says has undefined behavior.
20819         In practice this is not a problem, but might as well do it by the book.
20820         Reported by Rich Felker and Eric Blake; see
20821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20822         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20823         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20825         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20826         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20827         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20828
20829         mktime: #undef mktime before #defining it
20830         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20831
20832         mktime: systematically normalize tm_isdst comparisons
20833         * lib/mktime.c (isdst_differ): New function.
20834         (__mktime_internal): Use it systematically for all isdst comparisons.
20835         This completes the fix for libc BZ #6723, and removes the need for
20836         normalizing tm_isdst.  See
20837         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20838         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20839
20840         mktime: fix some integer overflow issues and sidestep the rest
20841
20842         This was prompted by a bug report by Benjamin Lindner for MinGW
20843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20844         His bug is due to signed integer overflow (0 - INT_MIN), and I
20845         I scanned through mktime.c looking for other integer overflow
20846         problems, fixing all the bugs I found.
20847
20848         Although the C Standard says the resulting code is still not safe
20849         in the presence of integer overflow, in practice it should be good
20850         enough for all real-world two's-complement implementations, except
20851         for debugging environments that deliberately trap on integer
20852         overflow (e.g., gcc -ftrapv).
20853
20854         * lib/mktime.c (WRAPV): New macro.
20855         (SHR): Also check that long_int and time_t shift right in the
20856         usual way, before using the fast-but-unportable method.
20857         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20858         used.  The code already assumed two's complement, so there's
20859         no need to test for alternatives.  All uses removed.
20860         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20861         the C standard.  Problem reported by Rich Felker in
20862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20863         (twos_complement_arithmetic): Also check long_int and time_t.
20864         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20865         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20866         (__mktime_internal): Avoid integer overflow with unary subtraction
20867         in two instances where -1 - X is an adequate replacement for -X,
20868         since the calculations are approximate.
20869
20870 2011-01-29  Eric Blake  <eblake@redhat.com>
20871
20872         mktime: avoid infinite loop
20873         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20874         type; behavior is still undefined but portable to all known targets.
20875         Reported by Rich Felker.
20876
20877 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20878
20879         rename, unlink, same-inode: Relicense.
20880         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20881         * modules/unlink (License): Likewise.
20882         * modules/same-inode (License): Likewise.
20883
20884 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20885
20886         mktime: avoid problems on NetBSD 5 / i386
20887         * lib/mktime.c (long_int): New type.  This works around a problem
20888         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20889         but time_t is 64 bits, and where I expect the existing code is
20890         wrong in some cases.
20891         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20892         (ydhms_diff): Bring back the compile-time check for wide-enough
20893         year and yday.
20894
20895         mktime: fix misspelling in comment
20896         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20897         This merges all recent glibc changes of importance.
20898
20899 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20900
20901         move-if-change: cope with concurrent mv of identical file.
20902         * build-aux/move-if-change (CMPPROG): Accept environment
20903         variable as an override for `cmp'.
20904         (usage): Document CMPPROG.
20905         Adjust comparison to drop stdout.  Cope with failure of mv if
20906         the target file exists and is identical to the source, for
20907         parallel builds.
20908         Report from H.J. Lu against binutils in PR binutils/12283.
20909
20910 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20911
20912         * users.txt: Mention sharutils.
20913
20914 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20915
20916         * users.txt: Mention OATH Toolkit.
20917
20918 2011-01-27  Bruno Haible  <bruno@clisp.org>
20919
20920         Prepare for supporting FreeBSD 10.
20921         * build-aux/config.libpath: Remove handling of freebsd1*.
20922
20923 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20924
20925         Prepare for supporting FreeBSD 10.
20926         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20927         match FreeBSD 10.0.
20928
20929 2011-01-27  Bruno Haible  <bruno@clisp.org>
20930
20931         vma-iter, get-rusage-as: Add OpenBSD support.
20932         * modules/vma-iter (configure.ac): Test for mquery.
20933         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20934         * lib/vma-iter.c: Include <sys/mman.h>.
20935         (vma_iterate): Add an implementation based on mquery().
20936         * lib/resource-ext.h (get_rusage_as): Update comments.
20937         * lib/get-rusage-as.c: Likewise.
20938         * lib/get-rusage-data.c: Likewise.
20939
20940 2011-01-26  Karl Berry  <karl@gnu.org>
20941
20942         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20943         variables to make it easier to override the makeinfo program used.
20944
20945 2011-01-26  Eric Blake  <eblake@redhat.com>
20946
20947         fcntl: work around Haiku F_DUPFD bugs
20948         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20949         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20950         cloexec bit on duplication.
20951         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20952
20953 2011-01-26  Bruno Haible  <bruno@clisp.org>
20954
20955         Enable memory leak tests on AIX.
20956         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20957         * tests/test-fprintf-posix3.c (main): Likewise.
20958
20959 2011-01-26  Bruno Haible  <bruno@clisp.org>
20960
20961         Tests for module 'get-rusage-data'.
20962         * modules/get-rusage-data-tests: New file.
20963         * tests/test-get-rusage-data.c: New file.
20964
20965         New module 'get-rusage-data'.
20966         * lib/resource-ext.h (get_rusage_data): New declaration.
20967         * lib/get-rusage-data.c: New file.
20968         * modules/get-rusage-data: New file.
20969
20970 2011-01-25  Bruno Haible  <bruno@clisp.org>
20971
20972         get-rusage-as: Allow for easier testing.
20973         * lib/resource-ext.h (get_rusage_as): Add comment.
20974         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20975         (main): New function for interactive testing.
20976
20977 2011-01-25  Bruno Haible  <bruno@clisp.org>
20978
20979         vma-iter: Treat Haiku like BeOS.
20980         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20981         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20982
20983 2011-01-25  Eric Blake  <eblake@redhat.com>
20984
20985         c-stack: fix regression on cygwin when libsigsegv is present
20986         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20987
20988 2011-01-24  Bruno Haible  <bruno@clisp.org>
20989
20990         vma-iter: Avoid empty intervals.
20991         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20992         on an empty interval.
20993
20994 2011-01-24  Jim Meyering  <meyering@redhat.com>
20995
20996         u64: remove unnecessary #include
20997         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20998
20999 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21000
21001         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21002         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21003
21004 2011-01-23  Bruno Haible  <bruno@clisp.org>
21005
21006         New module 'vma-iter'.
21007         * lib/vma-iter.h: New file.
21008         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21009         * modules/vma-iter: New file.
21010         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21011         for get_rusage_as_via_iterator.
21012         (vma_iterate_callback): New function.
21013         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21014         * modules/get-rusage-as (Depends-on): Add vma-iter.
21015
21016 2011-01-23  Bruno Haible  <bruno@clisp.org>
21017
21018         uninorm: Tweak includes.
21019         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21020         Reported by Jim Meyering.
21021
21022 2011-01-23  Bruno Haible  <bruno@clisp.org>
21023
21024         get-rusage-as: Improve on NetBSD.
21025         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21026         /proc, like on FreeBSD.
21027
21028 2011-01-23  Jim Meyering  <meyering@redhat.com>
21029
21030         xreadlink.h: remove unnecessary #include
21031         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21032
21033         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21034         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21035
21036 2011-01-23  Bruno Haible  <bruno@clisp.org>
21037
21038         get-rusage-as: Fix bug.
21039         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21040         original limit when aborting the first loop.
21041
21042 2011-01-23  Bruno Haible  <bruno@clisp.org>
21043
21044         wctype: Ensure valid C syntax.
21045         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21046         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21047
21048 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21049
21050         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21052         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21053         as they are needed only for configure's test case.
21054         This removes two unnecessary symbols from config.h.
21055
21056         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21057         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21058         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21059         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21060         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21061         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21062         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21063         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21064         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21065         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21066         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21067         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21068         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21069         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21070         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21071         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21072         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21073         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21074
21075 2011-01-21  Eric Blake  <eblake@redhat.com>
21076
21077         maintainer-makefile: work with older git for submodule check
21078         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21079         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21080         Reported by Matthias Bolte.
21081
21082         bootstrap: minor portability fixes
21083         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21084         (usage): Omit leading capital and trailing . on help phrases, per
21085         GNU Coding Standards.
21086         (check_versions, top level): Prefix messages with script name.
21087
21088 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21089
21090         bootstrap: support --no-git option
21091         * build-aux/bootstrap: Add --no-git option, to be used when
21092         --gnulib-srcdir points to the exact desired checkout.
21093
21094 2011-01-21  Eric Blake  <eblake@redhat.com>
21095
21096         strerror_r-posix: work with glibc 2.13
21097         * lib/strerror_r.c (strerror_r): Fix return type.
21098
21099 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21100             Bruno Haible  <bruno@clisp.org>
21101
21102         uN_strstr: New unit tests.
21103         * modules/unistr/u8-strstr-tests: New file.
21104         * modules/unistr/u16-strstr-tests: New file.
21105         * modules/unistr/u32-strstr-tests: New file.
21106         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21107         * tests/unistr/test-u8-strstr.c: New file.
21108         * tests/unistr/test-u16-strstr.c: New file.
21109         * tests/unistr/test-u32-strstr.c: New file.
21110
21111 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21112             Bruno Haible  <bruno@clisp.org>
21113
21114         Make uN_strstr functions O(n) worst-case.
21115         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21116         16-bit and 32-bit unit cases, use the unibyte algorithm from
21117         lib/mbsstr.c.
21118         * lib/unistr/u8-strstr.c: Include <string.h>.
21119         (UNIT_IS_UINT8_T): New macro.
21120         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21121         (U_STRLEN, U_STRNLEN): New macros.
21122         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21123         (U_STRLEN, U_STRNLEN): New macros.
21124         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21125         (configure.ac): Update required libunistring version.
21126         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21127         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21128         malloca.
21129         (configure.ac): Update required libunistring version.
21130         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21131         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21132         malloca.
21133         (configure.ac): Update required libunistring version.
21134
21135 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21136             Bruno Haible  <bruno@clisp.org>
21137
21138         Prepare for faster uN_strstr functions.
21139         * lib/str-kmp.h: Support definable UNITs.
21140         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21141         needle_len argument.
21142         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21143         * lib/mbscasestr.c (mbscasestr): Likewise.
21144
21145 2011-01-21  Pádraig Brady <P@draigBrady.com>
21146
21147         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21148         * tests/test-malloca.c (main): Unset the environment variable
21149         to greatly speed up the test.
21150         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21151         * modules/malloca-tests: Depend on unsetenv.
21152
21153 2011-01-21  Pádraig Brady <P@draigBrady.com>
21154
21155         ignore-value: remove stdint dependency
21156         * lib/ignore-value.h: Remove <stdint.h>
21157         * modules/ignore-value: Remove stdint dependency.
21158
21159 2011-01-21  Jim Meyering  <meyering@redhat.com>
21160
21161         maint.mk: adjust variable name to be consistent with other gl_ vars
21162         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21163         to be lower case.
21164
21165 2011-01-20  Jim Meyering  <meyering@redhat.com>
21166
21167         maint.mk: make "check" depend on public-submodule-commit by default
21168         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21169
21170 2011-01-20  Bruno Haible  <bruno@clisp.org>
21171
21172         mbfile, mbiter: Complete change from 2008-12-21.
21173         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21174         * m4/mbiter.m4 (gl_MBITER): Likewise.
21175
21176 2011-01-20  Jim Meyering  <meyering@redhat.com>
21177
21178         init.sh: insert space between each function name and "()"
21179         * tests/init.sh: Make it a little easier to see that a function's
21180         name is "warn_", and not "warn" when looking at the first part of
21181         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21182
21183 2011-01-20  Jim Meyering  <meyering@redhat.com>
21184
21185         mountlist: clean up code formatting
21186         * lib/mountlist.c (read_file_system_list): Split a long line,
21187         correct bracing style, use NULL in place of "(struct statfs *)0",
21188         don't parenthesize return value, add spaces around "=" and after
21189         ";-in-for-stmt".
21190
21191 2011-01-14  Markus Duft <mduft@gentoo.org>
21192
21193         mountlist: add support for Interix
21194         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21195         Apply statvfs to all entries of /dev/fs.
21196         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21197         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21198
21199 2011-01-20  Jim Meyering  <meyering@redhat.com>
21200
21201         maint.mk: improve the public-submodule-commit rule
21202         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21203         to suppress printing of its commands... unless V=1.
21204         Add git submodule's --quiet option to suppress printing of e.g.,
21205         "Entering gnulib" output.
21206         "cd" into $(srcdir) before running git submodule.
21207
21208 2011-01-20  Bruno Haible  <bruno@clisp.org>
21209
21210         include_next: Fix bug introduced on 2011-01-18.
21211         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21212         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21213         ac_cv_header_... variable if the second argument is not 'check'.
21214         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21215         gl_NEXT_HEADERS_INTERNAL.
21216
21217 2011-01-20  Bruno Haible  <bruno@clisp.org>
21218
21219         Allow the user to avoid the GNULIB_TEST_* macros.
21220         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21221         Suggested by Paul Eggert.
21222
21223 2011-01-14  Jim Meyering  <meyering@redhat.com>
21224
21225         bootstrap: avoid failure when there is no .gitmodules file
21226         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21227         has been assigned to, even when its value is the empty string.
21228         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21229         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21230         Reported by John W. Eaton <jwe@gnu.org>.
21231
21232 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21233
21234         assume <ctype.h>, ..., <time.h> exist
21235         For years gnulib has been assuming the existence of the headers
21236         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21237         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21238         them, since they don't appear to be needed.
21239         * README (Portability guidelines): Document this.
21240         * lib/flock.c: Assume <fcntl.h> exists.
21241         * lib/regex_internal.h: Assume <locale.h> exists.
21242         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21243         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21244         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21245         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21246         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21247         * m4/regex.m4 (gl_REGEX): Likewise.
21248         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21249         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21250         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21251         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21252         * tests/test-argp.c: Likewise.
21253         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21254
21255         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21256         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21257         AA_APPLE_UNIVERSAL_BUILD.  See
21258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21259         * NEWS: Document this.
21260
21261 2011-01-19  Eric Blake  <eblake@redhat.com>
21262
21263         c-stack: assume stack overflow if SA_SIGINFO unsupported
21264         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21265         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21266         sigaction will work.
21267         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21268         behavior match Linux.
21269         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21270
21271         stdbool-tests: accomodate Haiku
21272         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21273
21274         binary-io: fix O_TEXT on Haiku
21275         * modules/binary-io (Depends-on): Add fcntl-h.
21276         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21277         than blindly undefining O_TEXT.
21278         Reported by Scott McCreary.
21279
21280 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21281
21282         include_next: do not check for standard headers like stddef.h
21283
21284         I found this problem when modifying Emacs to use gnulib.
21285         I noticed that it added HAVE_STDDEF_H to config.h, even though
21286         gnulib always assumes <stddef.h> exists as per README and this
21287         symbol is unnecessary.
21288         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21289         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21290         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21291         faster for headers like stddef.h that are known to exist.
21292         (gl_CHECK_NEXT_HEADERS): Use it.
21293         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21294         rather than gl_CHECK_NEXT_HEADERS.
21295         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21296         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21297
21298 2011-01-18  Eric Blake  <eblake@redhat.com>
21299
21300         ansi-c++-opt: skip C++ dependency style if C++ is unused
21301         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21302         tests when we know C++ compilation is not desired.
21303         Reported by Scott McCreary.
21304
21305 2011-01-18  Bruno Haible  <bruno@clisp.org>
21306
21307         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21308         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21309         (main): Perform test also when getrlimit and setrlimit don't exist or
21310         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21311         limiting the address space size using setrlimit, compare the address
21312         space size before and after the the test.
21313         * tests/test-dprintf-posix2.c: Likewise.
21314         * tests/test-fprintf-posix3.sh: Update skip messages.
21315         * tests/test-dprintf-posix2.sh: Likewise.
21316         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21317         * modules/dprintf-posix-tests (Depends-on): Likewise.
21318         Reported by Bruce Korb <bkorb@gnu.org> and
21319         Gary V. Vaughan <gary@gnu.org>.
21320
21321 2011-01-18  Bruno Haible  <bruno@clisp.org>
21322
21323         get-rusage-as: Improvement for Cygwin.
21324         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21325         areas that are merely reserved.
21326
21327 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21328
21329         strftime: remove dependencies on multibyte modules
21330
21331         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21332         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21333         only if __osf__ is defined, and I suspect OSF doesn't need these
21334         other modules.  If my guess is wrong, we'll need to come up with a
21335         variant of strftime that doesn't need the multibyte modules.
21336
21337         I discovered this problem when attempting modify Emacs to use the
21338         strftime module.  With the previous gnulib, this caused Emacs to
21339         need 31 new files, ranging from lib/config.charset to
21340         m4/wint_t.m4.  This was overkill and I expect would be offputting
21341         to the Emacs maintainers.  After this change, only 6 new files are
21342         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21343         stdbool.m4, and tm_gmtoff.m4.
21344
21345         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21346         Suggested by Bruno Haible in
21347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21348         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21349         and do not check for wchar.h.
21350         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21351         (Depends-on): Remove mbrlen, mbsinit, wchar.
21352
21353 2011-01-18  Bruno Haible  <bruno@clisp.org>
21354
21355         Tests for module 'get-rusage-as'.
21356         * modules/get-rusage-as-tests: New file.
21357         * tests/test-get-rusage-as.c: New file.
21358
21359         New module 'get-rusage-as'.
21360         * modules/get-rusage-as: New file.
21361         * lib/resource-ext.h: New file.
21362         * lib/get-rusage-as.c: New file.
21363
21364 2011-01-17  Eric Blake  <eblake@redhat.com>
21365
21366         sigaction: relax license from LGPLv3+ to LGPLv2+
21367         * modules/sigaction (License): Relax to LGPLv2+.
21368
21369 2011-01-14  Bruno Haible  <bruno@clisp.org>
21370
21371         filemode: Make function declarations usable in C++ mode.
21372         * lib/filemode.h: Enclose function declarations in extern "C" block.
21373         Reported by John W. Eaton <jwe@gnu.org>.
21374
21375 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21376
21377         save-cwd: no longer include "xgetcwd.h"
21378         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21379         This avoids a compilation failure in projects that use save-cwd
21380         without also using the xgetcwd module.
21381
21382 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21383
21384         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21385         This is so that a program like Emacs, which needs only dtoastr,
21386         does not have to bother with distributing and compiling ftoastr
21387         and ldtoastr.
21388         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21389         * modules/dtoastr, modules/ldtoastr: New files.
21390         * modules/ftoastr: Now works just for 'float'.
21391         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21392         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21393         dtoastr.c, ldtoastr.c.
21394
21395 2011-01-11  Jim Meyering  <meyering@redhat.com>
21396
21397         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21398         There is no need to work around the lack of the fchdir function,
21399         since gnulib can now provide a replacement when required.
21400         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21401         * modules/save-cwd (Depends-on): Add fchdir.
21402
21403 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21404
21405         openat, save-cwd: avoid xmalloc
21406
21407         This removes a direct (but undocumented) dependency of openat on
21408         xalloc, along with an indirect dependency via save-cwd.  It also
21409         removes a dependency of save-cwd on xgetcwd, and thereby
21410         indirectly on xalloc.  This change causes the openat substitute
21411         to fall back on save_cwd when memory is tight, and for save_cwd to
21412         fail instead of dying when memory is tight, but that's good enough.
21413         Problem and initial idea for fix reported by Bastien Roucaries in
21414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21415
21416         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21417         xalloc.h (for xmalloc).
21418         (openat_proc_name): Use malloc, not xmalloc.
21419         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21420         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21421
21422         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21423         This avoids heap allocation for file names whose lengths are in
21424         the range 512..1023, with the upper bound increasing to at most
21425         4031 depending on the platform's PATH_MAX.  (We do not want
21426         pathmax.h here as it might supply a non-constant PATH_MAX.)
21427         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21428         Perhaps they should be moved to malloca.h?
21429         (OPENAT_BUFFER_SIZE): Use them.
21430
21431 2011-01-10  Bruno Haible  <bruno@clisp.org>
21432
21433         doc: Update users.txt.
21434         * users.txt: Add recutils.
21435
21436 2011-01-09  Karl Berry  <karl@gnu.org>
21437
21438         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21439
21440         * doc/configmake.texi: New file.
21441         * doc/gnulib.texi: Include it.
21442         * modules/configmake: Move documentation from here.
21443
21444 2011-01-09  Bruno Haible  <bruno@clisp.org>
21445
21446         Update to Unicode 6.0.0.
21447         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21448         (get_lbp): Update for Unicode 6.0.0.
21449         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21450         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21451         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21452         U+11001, U+11038..U+11046. Remove U+06DE.
21453         (uc_width): Fix bounds of planes.
21454         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21455         lib/uniwidth/width.c.
21456         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21457         trailing whitespace removed.
21458         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21459         without comments, but with the original copyright notice.
21460         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21461         * lib/unicase/ignorable.h: Likewise.
21462         * lib/unicase/tocasefold.h: Likewise.
21463         * lib/unicase/tolower.h: Likewise.
21464         * lib/unicase/totitle.h: Likewise.
21465         * lib/unicase/toupper.h: Likewise.
21466         * lib/unictype/bidi_of.h: Likewise.
21467         * lib/unictype/blocks.h: Likewise.
21468         * lib/unictype/categ_C.h: Likewise.
21469         * lib/unictype/categ_Cn.h: Likewise.
21470         * lib/unictype/categ_L.h: Likewise.
21471         * lib/unictype/categ_Ll.h: Likewise.
21472         * lib/unictype/categ_Lm.h: Likewise.
21473         * lib/unictype/categ_Lo.h: Likewise.
21474         * lib/unictype/categ_Lu.h: Likewise.
21475         * lib/unictype/categ_M.h: Likewise.
21476         * lib/unictype/categ_Mc.h: Likewise.
21477         * lib/unictype/categ_Me.h: Likewise.
21478         * lib/unictype/categ_Mn.h: Likewise.
21479         * lib/unictype/categ_N.h: Likewise.
21480         * lib/unictype/categ_Nd.h: Likewise.
21481         * lib/unictype/categ_No.h: Likewise.
21482         * lib/unictype/categ_P.h: Likewise.
21483         * lib/unictype/categ_Po.h: Likewise.
21484         * lib/unictype/categ_S.h: Likewise.
21485         * lib/unictype/categ_Sc.h: Likewise.
21486         * lib/unictype/categ_Sk.h: Likewise.
21487         * lib/unictype/categ_Sm.h: Likewise.
21488         * lib/unictype/categ_So.h: Likewise.
21489         * lib/unictype/categ_of.h: Likewise.
21490         * lib/unictype/combining.h: Likewise.
21491         * lib/unictype/ctype_alnum.h: Likewise.
21492         * lib/unictype/ctype_alpha.h: Likewise.
21493         * lib/unictype/ctype_graph.h: Likewise.
21494         * lib/unictype/ctype_lower.h: Likewise.
21495         * lib/unictype/ctype_print.h: Likewise.
21496         * lib/unictype/ctype_punct.h: Likewise.
21497         * lib/unictype/ctype_upper.h: Likewise.
21498         * lib/unictype/decdigit.h: Likewise.
21499         * lib/unictype/digit.h: Likewise.
21500         * lib/unictype/numeric.h: Likewise.
21501         * lib/unictype/pr_alphabetic.h: Likewise.
21502         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21503         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21504         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21505         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21506         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21507         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21508         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21509         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21510         * lib/unictype/pr_case_ignorable.h: Likewise.
21511         * lib/unictype/pr_cased.h: Likewise.
21512         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21513         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21514         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21515         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21516         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21517         * lib/unictype/pr_combining.h: Likewise.
21518         * lib/unictype/pr_composite.h: Likewise.
21519         * lib/unictype/pr_currency_symbol.h: Likewise.
21520         * lib/unictype/pr_decimal_digit.h: Likewise.
21521         * lib/unictype/pr_deprecated.h: Likewise.
21522         * lib/unictype/pr_format_control.h: Likewise.
21523         * lib/unictype/pr_grapheme_base.h: Likewise.
21524         * lib/unictype/pr_grapheme_extend.h: Likewise.
21525         * lib/unictype/pr_grapheme_link.h: Likewise.
21526         * lib/unictype/pr_id_continue.h: Likewise.
21527         * lib/unictype/pr_id_start.h: Likewise.
21528         * lib/unictype/pr_ideographic.h: Likewise.
21529         * lib/unictype/pr_lowercase.h: Likewise.
21530         * lib/unictype/pr_math.h: Likewise.
21531         * lib/unictype/pr_numeric.h: Likewise.
21532         * lib/unictype/pr_other_alphabetic.h: Likewise.
21533         * lib/unictype/pr_other_id_continue.h: Likewise.
21534         * lib/unictype/pr_other_math.h: Likewise.
21535         * lib/unictype/pr_punctuation.h: Likewise.
21536         * lib/unictype/pr_sentence_terminal.h: Likewise.
21537         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21538         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21539         * lib/unictype/pr_unified_ideograph.h: Likewise.
21540         * lib/unictype/pr_uppercase.h: Likewise.
21541         * lib/unictype/pr_xid_continue.h: Likewise.
21542         * lib/unictype/pr_xid_start.h: Likewise.
21543         * lib/unictype/scripts.h: Likewise.
21544         * lib/unictype/scripts_byname.gperf: Likewise.
21545         * lib/unictype/sy_java_ident.h: Likewise.
21546         * lib/unigbrk/gbrkprop.h: Likewise.
21547         * lib/unilbrk/lbrkprop1.h: Likewise.
21548         * lib/unilbrk/lbrkprop2.h: Likewise.
21549         * lib/uninorm/decomposition-table2.h: Likewise.
21550         * lib/uniwbrk/wbrkprop.h: Likewise.
21551         * tests/unicase/test-cased.c: Likewise.
21552         * tests/unicase/test-ignorable.c: Likewise.
21553         * tests/unicase/test-uc_tolower.c: Likewise.
21554         * tests/unicase/test-uc_totitle.c: Likewise.
21555         * tests/unicase/test-uc_toupper.c: Likewise.
21556         * tests/unictype/test-categ_C.c: Likewise.
21557         * tests/unictype/test-categ_Cn.c: Likewise.
21558         * tests/unictype/test-categ_L.c: Likewise.
21559         * tests/unictype/test-categ_Ll.c: Likewise.
21560         * tests/unictype/test-categ_Lm.c: Likewise.
21561         * tests/unictype/test-categ_Lo.c: Likewise.
21562         * tests/unictype/test-categ_Lu.c: Likewise.
21563         * tests/unictype/test-categ_M.c: Likewise.
21564         * tests/unictype/test-categ_Mc.c: Likewise.
21565         * tests/unictype/test-categ_Me.c: Likewise.
21566         * tests/unictype/test-categ_Mn.c: Likewise.
21567         * tests/unictype/test-categ_N.c: Likewise.
21568         * tests/unictype/test-categ_Nd.c: Likewise.
21569         * tests/unictype/test-categ_No.c: Likewise.
21570         * tests/unictype/test-categ_P.c: Likewise.
21571         * tests/unictype/test-categ_Po.c: Likewise.
21572         * tests/unictype/test-categ_S.c: Likewise.
21573         * tests/unictype/test-categ_Sc.c: Likewise.
21574         * tests/unictype/test-categ_Sk.c: Likewise.
21575         * tests/unictype/test-categ_Sm.c: Likewise.
21576         * tests/unictype/test-categ_So.c: Likewise.
21577         * tests/unictype/test-ctype_alnum.c: Likewise.
21578         * tests/unictype/test-ctype_alpha.c: Likewise.
21579         * tests/unictype/test-ctype_graph.c: Likewise.
21580         * tests/unictype/test-ctype_lower.c: Likewise.
21581         * tests/unictype/test-ctype_print.c: Likewise.
21582         * tests/unictype/test-ctype_punct.c: Likewise.
21583         * tests/unictype/test-ctype_upper.c: Likewise.
21584         * tests/unictype/test-decdigit.h: Likewise.
21585         * tests/unictype/test-digit.h: Likewise.
21586         * tests/unictype/test-numeric.h: Likewise.
21587         * tests/unictype/test-pr_alphabetic.c: Likewise.
21588         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21589         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21590         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21591         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21592         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21593         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21594         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21595         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21596         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21597         * tests/unictype/test-pr_cased.c: Likewise.
21598         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21599         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21600         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21601         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21602         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21603         * tests/unictype/test-pr_combining.c: Likewise.
21604         * tests/unictype/test-pr_composite.c: Likewise.
21605         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21606         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21607         * tests/unictype/test-pr_deprecated.c: Likewise.
21608         * tests/unictype/test-pr_format_control.c: Likewise.
21609         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21610         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21611         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21612         * tests/unictype/test-pr_id_continue.c: Likewise.
21613         * tests/unictype/test-pr_id_start.c: Likewise.
21614         * tests/unictype/test-pr_ideographic.c: Likewise.
21615         * tests/unictype/test-pr_lowercase.c: Likewise.
21616         * tests/unictype/test-pr_math.c: Likewise.
21617         * tests/unictype/test-pr_numeric.c: Likewise.
21618         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21619         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21620         * tests/unictype/test-pr_other_math.c: Likewise.
21621         * tests/unictype/test-pr_punctuation.c: Likewise.
21622         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21623         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21624         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21625         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21626         * tests/unictype/test-pr_uppercase.c: Likewise.
21627         * tests/unictype/test-pr_xid_continue.c: Likewise.
21628         * tests/unictype/test-pr_xid_start.c: Likewise.
21629         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21630         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21631         changes.
21632         * lib/unictype/categ_Cc.h: Likewise.
21633         * lib/unictype/categ_Cf.h: Likewise.
21634         * lib/unictype/categ_Co.h: Likewise.
21635         * lib/unictype/categ_Cs.h: Likewise.
21636         * lib/unictype/categ_Lt.h: Likewise.
21637         * lib/unictype/categ_Nl.h: Likewise.
21638         * lib/unictype/categ_Pc.h: Likewise.
21639         * lib/unictype/categ_Pd.h: Likewise.
21640         * lib/unictype/categ_Pe.h: Likewise.
21641         * lib/unictype/categ_Pf.h: Likewise.
21642         * lib/unictype/categ_Pi.h: Likewise.
21643         * lib/unictype/categ_Ps.h: Likewise.
21644         * lib/unictype/categ_Z.h: Likewise.
21645         * lib/unictype/categ_Zl.h: Likewise.
21646         * lib/unictype/categ_Zp.h: Likewise.
21647         * lib/unictype/categ_Zs.h: Likewise.
21648         * lib/unictype/ctype_blank.h: Likewise.
21649         * lib/unictype/ctype_cntrl.h: Likewise.
21650         * lib/unictype/ctype_digit.h: Likewise.
21651         * lib/unictype/ctype_space.h: Likewise.
21652         * lib/unictype/ctype_xdigit.h: Likewise.
21653         * lib/unictype/mirror.h: Likewise.
21654         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21655         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21656         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21657         * lib/unictype/pr_bidi_control.h: Likewise.
21658         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21659         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21660         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21661         * lib/unictype/pr_bidi_pdf.h: Likewise.
21662         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21663         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21664         * lib/unictype/pr_dash.h: Likewise.
21665         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21666         * lib/unictype/pr_diacritic.h: Likewise.
21667         * lib/unictype/pr_extender.h: Likewise.
21668         * lib/unictype/pr_hex_digit.h: Likewise.
21669         * lib/unictype/pr_hyphen.h: Likewise.
21670         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21671         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21672         * lib/unictype/pr_ignorable_control.h: Likewise.
21673         * lib/unictype/pr_iso_control.h: Likewise.
21674         * lib/unictype/pr_join_control.h: Likewise.
21675         * lib/unictype/pr_left_of_pair.h: Likewise.
21676         * lib/unictype/pr_line_separator.h: Likewise.
21677         * lib/unictype/pr_logical_order_exception.h: Likewise.
21678         * lib/unictype/pr_non_break.h: Likewise.
21679         * lib/unictype/pr_not_a_character.h: Likewise.
21680         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21681         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21682         * lib/unictype/pr_other_id_start.h: Likewise.
21683         * lib/unictype/pr_other_lowercase.h: Likewise.
21684         * lib/unictype/pr_other_uppercase.h: Likewise.
21685         * lib/unictype/pr_paired_punctuation.h: Likewise.
21686         * lib/unictype/pr_paragraph_separator.h: Likewise.
21687         * lib/unictype/pr_pattern_syntax.h: Likewise.
21688         * lib/unictype/pr_pattern_white_space.h: Likewise.
21689         * lib/unictype/pr_private_use.h: Likewise.
21690         * lib/unictype/pr_quotation_mark.h: Likewise.
21691         * lib/unictype/pr_radical.h: Likewise.
21692         * lib/unictype/pr_soft_dotted.h: Likewise.
21693         * lib/unictype/pr_space.h: Likewise.
21694         * lib/unictype/pr_titlecase.h: Likewise.
21695         * lib/unictype/pr_variation_selector.h: Likewise.
21696         * lib/unictype/pr_white_space.h: Likewise.
21697         * lib/unictype/pr_zero_width.h: Likewise.
21698         * lib/unictype/sy_c_ident.h: Likewise.
21699         * lib/unictype/sy_c_whitespace.h: Likewise.
21700         * lib/unictype/sy_java_whitespace.h: Likewise.
21701         * lib/uninorm/composition-table.gperf: Likewise.
21702         * lib/uninorm/decomposition-table1.h: Likewise.
21703         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21704         LB8.
21705         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21706         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21707         * modules/unictype/*: Bump version number of expected libunistring
21708         version.
21709
21710 2011-01-09  Bruno Haible  <bruno@clisp.org>
21711
21712         Update to Unicode 5.2.0.
21713         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21714         trailing whitespace removed.
21715
21716 2011-01-09  Bruno Haible  <bruno@clisp.org>
21717
21718         New Unicode character properties, from Unicode 5.2.0.
21719         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21720         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21721         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21722         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21723         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21724         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21725         uc_is_property_cased, uc_is_property_case_ignorable,
21726         uc_is_property_changes_when_lowercased,
21727         uc_is_property_changes_when_uppercased,
21728         uc_is_property_changes_when_titlecased,
21729         uc_is_property_changes_when_casefolded,
21730         uc_is_property_changes_when_casemapped): New declarations.
21731         * lib/unictype/pr_byname.gperf: Add the new properties.
21732         * modules/unictype/property-byname (Depends-on): Depend on the new
21733         properties modules.
21734         * modules/unictype/property-all (Depends-on): Likewise.
21735         * MODULES.html.sh (Unicode string functions): Add
21736         unictype/property-case-ignorable, unictype/property-cased,
21737         unictype/property-changes-when-casefolded,
21738         unictype/property-changes-when-casemapped,
21739         unictype/property-changes-when-lowercased,
21740         unictype/property-changes-when-titlecased,
21741         unictype/property-changes-when-uppercased.
21742
21743         New module 'unictype/property-changes-when-casemapped'.
21744         * modules/unictype/property-changes-when-casemapped: New file.
21745         * lib/unictype/pr_changes_when_casemapped.c: New file.
21746         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21747         generated by gen-uni-tables.
21748         * modules/unictype/property-changes-when-casemapped-tests: New file.
21749         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21750         automatically generated by gen-uni-tables.
21751
21752         New module 'unictype/property-changes-when-casefolded'.
21753         * modules/unictype/property-changes-when-casefolded: New file.
21754         * lib/unictype/pr_changes_when_casefolded.c: New file.
21755         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21756         generated by gen-uni-tables.
21757         * modules/unictype/property-changes-when-casefolded-tests: New file.
21758         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21759         automatically generated by gen-uni-tables.
21760
21761         New module 'unictype/property-changes-when-titlecased'.
21762         * modules/unictype/property-changes-when-titlecased: New file.
21763         * lib/unictype/pr_changes_when_titlecased.c: New file.
21764         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21765         generated by gen-uni-tables.
21766         * modules/unictype/property-changes-when-titlecased-tests: New file.
21767         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21768         automatically generated by gen-uni-tables.
21769
21770         New module 'unictype/property-changes-when-uppercased'.
21771         * modules/unictype/property-changes-when-uppercased: New file.
21772         * lib/unictype/pr_changes_when_uppercased.c: New file.
21773         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21774         generated by gen-uni-tables.
21775         * modules/unictype/property-changes-when-uppercased-tests: New file.
21776         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21777         automatically generated by gen-uni-tables.
21778
21779         New module 'unictype/property-changes-when-lowercased'.
21780         * modules/unictype/property-changes-when-lowercased: New file.
21781         * lib/unictype/pr_changes_when_lowercased.c: New file.
21782         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21783         generated by gen-uni-tables.
21784         * modules/unictype/property-changes-when-lowercased-tests: New file.
21785         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21786         automatically generated by gen-uni-tables.
21787
21788         New module 'unictype/property-case-ignorable'.
21789         * modules/unictype/property-case-ignorable: New file.
21790         * lib/unictype/pr_case_ignorable.c: New file.
21791         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21792         by gen-uni-tables.
21793         * modules/unictype/property-case-ignorable-tests: New file.
21794         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21795         generated by gen-uni-tables.
21796
21797         New module 'unictype/property-cased'.
21798         * modules/unictype/property-cased: New file.
21799         * lib/unictype/pr_cased.c: New file.
21800         * lib/unictype/pr_cased.h: New file, automatically generated by
21801         gen-uni-tables.
21802         * modules/unictype/property-cased-tests: New file.
21803         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21804         gen-uni-tables.
21805
21806 2011-01-09  Bruno Haible  <bruno@clisp.org>
21807
21808         Update to Unicode 5.2.0.
21809         * lib/gen-uni-tables.c (output_predicate, output_category,
21810         output_combclass, output_bidi_category, output_decimal_digit_test,
21811         output_decimal_digit, output_digit_test, output_digit,
21812         output_numeric_test, output_numeric, output_mirror, output_scripts,
21813         output_scripts_byname, output_blocks, output_ident_category): Fix
21814         comment header.
21815         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21816         get_wbp.
21817         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21818         items.
21819         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21820         Changes_When_Lowercased, Changes_When_Uppercased,
21821         Changes_When_Titlecased, Changes_When_Casefolded,
21822         Changes_When_Casemapped.
21823         (is_property_alphabetic, is_property_default_ignorable_code_point):
21824         Update for Unicode 5.2.0.
21825         (is_property_cased, is_property_case_ignorable,
21826         is_property_changes_when_lowercased,
21827         is_property_changes_when_uppercased,
21828         is_property_changes_when_titlecased,
21829         is_property_changes_when_casefolded,
21830         is_property_changes_when_casemapped): New functions.
21831         (output_properties): Output also the properties cased, case_ignorable,
21832         changes_when_lowercased, changes_when_uppercased,
21833         changes_when_titlecased, changes_when_casefolded,
21834         changes_when_casemapped.
21835         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21836         Unicode TR#11 revision 17 -> 19.
21837         (LBP_CP): New enumeration value.
21838         (LBP_*): Adjust values accordingly.
21839         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21840         TR#14 revision 22 -> 24.
21841         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21842         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21843         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21844         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21845         is_WBP_MIDLETTER.
21846         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21847         the code1 and code2 of each composition rule.
21848         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21849         * lib/unicase/ignorable.h: Likewise.
21850         * lib/unicase/tocasefold.h: Likewise.
21851         * lib/unicase/tolower.h: Likewise.
21852         * lib/unicase/totitle.h: Likewise.
21853         * lib/unicase/toupper.h: Likewise.
21854         * lib/unictype/bidi_of.h: Likewise.
21855         * lib/unictype/blocks.h: Likewise.
21856         * lib/unictype/categ_C.h: Likewise.
21857         * lib/unictype/categ_Cf.h: Likewise.
21858         * lib/unictype/categ_Cn.h: Likewise.
21859         * lib/unictype/categ_L.h: Likewise.
21860         * lib/unictype/categ_Ll.h: Likewise.
21861         * lib/unictype/categ_Lm.h: Likewise.
21862         * lib/unictype/categ_Lo.h: Likewise.
21863         * lib/unictype/categ_Lu.h: Likewise.
21864         * lib/unictype/categ_M.h: Likewise.
21865         * lib/unictype/categ_Mc.h: Likewise.
21866         * lib/unictype/categ_Mn.h: Likewise.
21867         * lib/unictype/categ_N.h: Likewise.
21868         * lib/unictype/categ_Nd.h: Likewise.
21869         * lib/unictype/categ_Nl.h: Likewise.
21870         * lib/unictype/categ_No.h: Likewise.
21871         * lib/unictype/categ_P.h: Likewise.
21872         * lib/unictype/categ_Pd.h: Likewise.
21873         * lib/unictype/categ_Po.h: Likewise.
21874         * lib/unictype/categ_S.h: Likewise.
21875         * lib/unictype/categ_Sc.h: Likewise.
21876         * lib/unictype/categ_So.h: Likewise.
21877         * lib/unictype/categ_of.h: Likewise.
21878         * lib/unictype/combining.h: Likewise.
21879         * lib/unictype/ctype_alnum.h: Likewise.
21880         * lib/unictype/ctype_alpha.h: Likewise.
21881         * lib/unictype/ctype_graph.h: Likewise.
21882         * lib/unictype/ctype_lower.h: Likewise.
21883         * lib/unictype/ctype_print.h: Likewise.
21884         * lib/unictype/ctype_punct.h: Likewise.
21885         * lib/unictype/ctype_upper.h: Likewise.
21886         * lib/unictype/decdigit.h: Likewise.
21887         * lib/unictype/digit.h: Likewise.
21888         * lib/unictype/numeric.h: Likewise.
21889         * lib/unictype/pr_alphabetic.h: Likewise.
21890         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21891         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21892         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21893         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21894         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21895         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21896         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21897         * lib/unictype/pr_combining.h: Likewise.
21898         * lib/unictype/pr_composite.h: Likewise.
21899         * lib/unictype/pr_currency_symbol.h: Likewise.
21900         * lib/unictype/pr_dash.h: Likewise.
21901         * lib/unictype/pr_decimal_digit.h: Likewise.
21902         * lib/unictype/pr_deprecated.h: Likewise.
21903         * lib/unictype/pr_diacritic.h: Likewise.
21904         * lib/unictype/pr_extender.h: Likewise.
21905         * lib/unictype/pr_grapheme_base.h: Likewise.
21906         * lib/unictype/pr_grapheme_extend.h: Likewise.
21907         * lib/unictype/pr_grapheme_link.h: Likewise.
21908         * lib/unictype/pr_id_continue.h: Likewise.
21909         * lib/unictype/pr_id_start.h: Likewise.
21910         * lib/unictype/pr_ideographic.h: Likewise.
21911         * lib/unictype/pr_ignorable_control.h: Likewise.
21912         * lib/unictype/pr_logical_order_exception.h: Likewise.
21913         * lib/unictype/pr_lowercase.h: Likewise.
21914         * lib/unictype/pr_numeric.h: Likewise.
21915         * lib/unictype/pr_other_alphabetic.h: Likewise.
21916         * lib/unictype/pr_punctuation.h: Likewise.
21917         * lib/unictype/pr_sentence_terminal.h: Likewise.
21918         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21919         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21920         * lib/unictype/pr_unified_ideograph.h: Likewise.
21921         * lib/unictype/pr_uppercase.h: Likewise.
21922         * lib/unictype/pr_xid_continue.h: Likewise.
21923         * lib/unictype/pr_xid_start.h: Likewise.
21924         * lib/unictype/pr_zero_width.h: Likewise.
21925         * lib/unictype/scripts.h: Likewise.
21926         * lib/unictype/scripts_byname.gperf: Likewise.
21927         * lib/unictype/sy_java_ident.h: Likewise.
21928         * lib/unigbrk/gbrkprop.h: Likewise.
21929         * lib/unilbrk/lbrkprop1.h: Likewise.
21930         * lib/unilbrk/lbrkprop2.h: Likewise.
21931         * lib/unilbrk/lbrktables.h: Likewise.
21932         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21933         LBP_CP. Implement rule LB30.
21934         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21935         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21936         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21937         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21938         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21939         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21940         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21941         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21942         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21943         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21944         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21945         bits instead of 16 bits in the code1 and code2 of each composition
21946         rule.
21947         (uc_composition): Update for Unicode 5.2.0.
21948         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21949         * lib/uninorm/decomposition-table2.h: Likewise.
21950         * lib/uniwbrk/wbrkprop.h: Likewise.
21951         * tests/unicase/test-cased.c: Likewise.
21952         * tests/unicase/test-ignorable.c: Likewise.
21953         * tests/unicase/test-uc_tolower.c: Likewise.
21954         * tests/unicase/test-uc_totitle.c: Likewise.
21955         * tests/unicase/test-uc_toupper.c: Likewise.
21956         * tests/unictype/test-categ_C.c: Likewise.
21957         * tests/unictype/test-categ_Cf.c: Likewise.
21958         * tests/unictype/test-categ_Cn.c: Likewise.
21959         * tests/unictype/test-categ_L.c: Likewise.
21960         * tests/unictype/test-categ_Ll.c: Likewise.
21961         * tests/unictype/test-categ_Lm.c: Likewise.
21962         * tests/unictype/test-categ_Lo.c: Likewise.
21963         * tests/unictype/test-categ_Lu.c: Likewise.
21964         * tests/unictype/test-categ_M.c: Likewise.
21965         * tests/unictype/test-categ_Mc.c: Likewise.
21966         * tests/unictype/test-categ_Mn.c: Likewise.
21967         * tests/unictype/test-categ_N.c: Likewise.
21968         * tests/unictype/test-categ_Nd.c: Likewise.
21969         * tests/unictype/test-categ_Nl.c: Likewise.
21970         * tests/unictype/test-categ_No.c: Likewise.
21971         * tests/unictype/test-categ_P.c: Likewise.
21972         * tests/unictype/test-categ_Pd.c: Likewise.
21973         * tests/unictype/test-categ_Po.c: Likewise.
21974         * tests/unictype/test-categ_S.c: Likewise.
21975         * tests/unictype/test-categ_Sc.c: Likewise.
21976         * tests/unictype/test-categ_So.c: Likewise.
21977         * tests/unictype/test-ctype_alnum.c: Likewise.
21978         * tests/unictype/test-ctype_alpha.c: Likewise.
21979         * tests/unictype/test-ctype_graph.c: Likewise.
21980         * tests/unictype/test-ctype_lower.c: Likewise.
21981         * tests/unictype/test-ctype_print.c: Likewise.
21982         * tests/unictype/test-ctype_punct.c: Likewise.
21983         * tests/unictype/test-ctype_upper.c: Likewise.
21984         * tests/unictype/test-decdigit.h: Likewise.
21985         * tests/unictype/test-digit.h: Likewise.
21986         * tests/unictype/test-numeric.h: Likewise.
21987         * tests/unictype/test-pr_alphabetic.c: Likewise.
21988         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21989         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21990         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21991         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21992         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21993         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21994         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21995         * tests/unictype/test-pr_combining.c: Likewise.
21996         * tests/unictype/test-pr_composite.c: Likewise.
21997         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21998         * tests/unictype/test-pr_dash.c: Likewise.
21999         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22000         * tests/unictype/test-pr_deprecated.c: Likewise.
22001         * tests/unictype/test-pr_diacritic.c: Likewise.
22002         * tests/unictype/test-pr_extender.c: Likewise.
22003         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22004         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22005         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22006         * tests/unictype/test-pr_id_continue.c: Likewise.
22007         * tests/unictype/test-pr_id_start.c: Likewise.
22008         * tests/unictype/test-pr_ideographic.c: Likewise.
22009         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22010         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22011         * tests/unictype/test-pr_lowercase.c: Likewise.
22012         * tests/unictype/test-pr_numeric.c: Likewise.
22013         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22014         * tests/unictype/test-pr_punctuation.c: Likewise.
22015         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22016         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22017         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22018         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22019         * tests/unictype/test-pr_uppercase.c: Likewise.
22020         * tests/unictype/test-pr_xid_continue.c: Likewise.
22021         * tests/unictype/test-pr_xid_start.c: Likewise.
22022         * tests/unictype/test-pr_zero_width.c: Likewise.
22023         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22024         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22025         changed behaviour: line breaking is now disallowed between a letter
22026         or '=' and '('.
22027         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22028         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22029         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22030         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22031         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22032         lib/uniwidth/width.c.
22033         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22034         without comments, but with the original copyright notice.
22035         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22036         changes.
22037         * lib/unictype/categ_Cc.h: Likewise.
22038         * lib/unictype/categ_Co.h: Likewise.
22039         * lib/unictype/categ_Cs.h: Likewise.
22040         * lib/unictype/categ_Lt.h: Likewise.
22041         * lib/unictype/categ_Me.h: Likewise.
22042         * lib/unictype/categ_Pc.h: Likewise.
22043         * lib/unictype/categ_Pe.h: Likewise.
22044         * lib/unictype/categ_Pf.h: Likewise.
22045         * lib/unictype/categ_Pi.h: Likewise.
22046         * lib/unictype/categ_Ps.h: Likewise.
22047         * lib/unictype/categ_Sk.h: Likewise.
22048         * lib/unictype/categ_Sm.h: Likewise.
22049         * lib/unictype/categ_Z.h: Likewise.
22050         * lib/unictype/categ_Zl.h: Likewise.
22051         * lib/unictype/categ_Zp.h: Likewise.
22052         * lib/unictype/categ_Zs.h: Likewise.
22053         * lib/unictype/ctype_blank.h: Likewise.
22054         * lib/unictype/ctype_cntrl.h: Likewise.
22055         * lib/unictype/ctype_digit.h: Likewise.
22056         * lib/unictype/ctype_space.h: Likewise.
22057         * lib/unictype/ctype_xdigit.h: Likewise.
22058         * lib/unictype/mirror.h: Likewise.
22059         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22060         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22061         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22062         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22063         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22064         * lib/unictype/pr_bidi_control.h: Likewise.
22065         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22066         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22067         * lib/unictype/pr_bidi_pdf.h: Likewise.
22068         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22069         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22070         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22071         * lib/unictype/pr_format_control.h: Likewise.
22072         * lib/unictype/pr_hex_digit.h: Likewise.
22073         * lib/unictype/pr_hyphen.h: Likewise.
22074         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22075         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22076         * lib/unictype/pr_iso_control.h: Likewise.
22077         * lib/unictype/pr_join_control.h: Likewise.
22078         * lib/unictype/pr_left_of_pair.h: Likewise.
22079         * lib/unictype/pr_line_separator.h: Likewise.
22080         * lib/unictype/pr_math.h: Likewise.
22081         * lib/unictype/pr_non_break.h: Likewise.
22082         * lib/unictype/pr_not_a_character.h: Likewise.
22083         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22084         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22085         * lib/unictype/pr_other_id_continue.h: Likewise.
22086         * lib/unictype/pr_other_id_start.h: Likewise.
22087         * lib/unictype/pr_other_lowercase.h: Likewise.
22088         * lib/unictype/pr_other_math.h: Likewise.
22089         * lib/unictype/pr_other_uppercase.h: Likewise.
22090         * lib/unictype/pr_paired_punctuation.h: Likewise.
22091         * lib/unictype/pr_paragraph_separator.h: Likewise.
22092         * lib/unictype/pr_pattern_syntax.h: Likewise.
22093         * lib/unictype/pr_pattern_white_space.h: Likewise.
22094         * lib/unictype/pr_private_use.h: Likewise.
22095         * lib/unictype/pr_quotation_mark.h: Likewise.
22096         * lib/unictype/pr_radical.h: Likewise.
22097         * lib/unictype/pr_soft_dotted.h: Likewise.
22098         * lib/unictype/pr_space.h: Likewise.
22099         * lib/unictype/pr_titlecase.h: Likewise.
22100         * lib/unictype/pr_variation_selector.h: Likewise.
22101         * lib/unictype/pr_white_space.h: Likewise.
22102         * lib/unictype/sy_c_ident.h: Likewise.
22103         * lib/unictype/sy_c_whitespace.h: Likewise.
22104         * lib/unictype/sy_java_whitespace.h: Likewise.
22105         * modules/uni*/*: Bump version number of expected libunistring version.
22106         Reported by Simon Josefsson.
22107
22108 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22109
22110         useless-if-before-free: fix typo in --help and make the internal,
22111         automatic version date update process work once again.
22112         --help output contained a NUL character instead of the
22113         backslash-zero that was intended.  Also, the "must lie within
22114         the first 8 lines" line is on line 9, and hence not getting
22115         automatically updated.
22116         * build-aux/useless-if-before-free: Fix the former by adding a
22117         backslash, and the latter by condensing the three lines of what-it-does
22118         to a single line, leaving one line of slack for the future.
22119
22120 2011-01-09  Bruno Haible  <bruno@clisp.org>
22121
22122         uniwidth/width: Fix width of U+1D173..U+1D17A.
22123         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22124         symbolic_width, output_width_property_test): New functions.
22125         (main): Invoke output_nonspacing_property, output_width_property_test.
22126         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22127         U+1D173..U+1D17A.
22128         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22129         1.
22130         * modules/uniwidth/*: Bump version number of expected libunistring
22131         version.
22132         * modules/unilbrk/*: Likewise.
22133
22134 2011-01-08  Bruno Haible  <bruno@clisp.org>
22135
22136         uninorm tests: Preserve copyright of Unicode data file.
22137         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22138         Mention modifications.
22139
22140 2011-01-08  Bruno Haible  <bruno@clisp.org>
22141
22142         gen-uni-tables: Prepare for Unicode 5.2.0.
22143         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22144         (debug_output_lbp, output_lbp): Update.
22145
22146 2011-01-08  Bruno Haible  <bruno@clisp.org>
22147
22148         unilbrk: Clarify gen-uni-tables.c code.
22149         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22150         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22151         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22152
22153 2011-01-07  Bruno Haible  <bruno@clisp.org>
22154
22155         strtod: Restore errno when successfully parsing Infinity or NaN.
22156         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22157         restore the original errno.
22158
22159 2011-01-07  Bruno Haible  <bruno@clisp.org>
22160
22161         remove test: Avoid failure on HP-UX 11.
22162         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22163
22164 2011-01-07  Bruno Haible  <bruno@clisp.org>
22165
22166         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22167         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22168         error code.
22169
22170 2011-01-07  Pádraig Brady <P@draigBrady.com>
22171
22172         ignore-value: fixup comments, and add Eric Blake
22173         as an author since he rewrote the macros.
22174         * lib/ignore-value.h (ignore_value):  State that
22175         we now support aggregates.  Also specify exactly
22176         when the GCC warn_unused_result feature was added.
22177
22178 2011-01-06  Eric Blake  <eblake@redhat.com>
22179
22180         ignore-value: support aggregate types
22181         * lib/ignore-value.h (ignore_value): Provide separate gcc
22182         definition.
22183         * modules/ignore-value-tests: New test module.
22184         * tests/test-ignore-value.c: New test.
22185
22186         maint.mk: improve sc_prohibit_strcmp regex
22187         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22188         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22189         definition of STRNEQ.
22190
22191         signal: work around Haiku issue with SIGBUS
22192         * lib/siglist.h: Add comment.
22193         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22194         strsignal's favoring of SIGSEGV.
22195         * tests/test-signal.c (main): Avoid test failure.
22196         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22197         Reported by Scott McCreary.
22198
22199         maint.mk: add pre-release check to ensure submodule commits are public
22200         * top/maint.mk (public-submodule-commit): New rule.
22201         (submodule-checks): New variable.
22202         (alpha beta stable): Depend on the variable.
22203
22204 2011-01-05  Pádraig Brady <P@draigBrady.com>
22205         and Jim Meyering  <meyering@redhat.com>
22206
22207         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22208         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22209         (ATTRIBUTE_DEPRECATED): Define.
22210         (_ignore_case): New function.
22211         (ignore_value): New macro, to replace the old function.
22212         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22213         * modules/ignore-value (Depends-on): Add stdint.
22214
22215 2011-01-04  Eric Blake  <eblake@redhat.com>
22216
22217         doc: regenerate INSTALL
22218         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22219         @firstparagraphindent support, now that autoconf dropped it.
22220         (INSTALL_PRELUDE): Reinstate old macro.
22221         * doc/install.texi: Resync from autoconf.
22222         * doc/INSTALL: Reflect recent autoconf update.
22223         * doc/INSTALL.ISO: Likewise.
22224         * doc/INSTALL.UTF-8: Likewise.
22225         Reported by Karl Berry.
22226
22227 2011-01-04  Bruce Korb  <address@hidden>
22228
22229         git-version-gen: avoid a sub-shell
22230         * build-aux/git-version-gen: Redirect stderr in `...` via
22231         "exec 2>...", rather than via an added sub-shell.
22232
22233 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22234
22235         git-version-gen: use (...) rather than sh -c '...'
22236         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22237         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22238
22239 2011-01-03  Jim Meyering  <meyering@redhat.com>
22240
22241         git-version-gen: convert leading TABs to spaces
22242         * build-aux/git-version-gen: Expand leading TABs.
22243
22244         git-version-gen: handle failed "git rev-list"
22245         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22246         from git and proceeding as if it had succeeded but printed no SHA1
22247         checksums, suppress the diagnostic and handle the failure.
22248         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22249
22250         git-version-gen: include command name in one more diagnostic
22251         * build-aux/git-version-gen: When the required .tarball-version file
22252         was missing or unreadable, you might see the diagnostic from "cat",
22253         but no trace of the name of the invoking script.  Now, you still see
22254         the diagnostic from cat, but also get one from "git-version-gen: ".
22255         Inspired by a patch from Bruce Korb.
22256
22257         update-copyright: adjust test to match changed code
22258         * tests/test-update-copyright.sh: Change test's expected output
22259         to match new actual output.
22260
22261 2011-01-02  Bruno Haible  <bruno@clisp.org>
22262
22263         getlogin_r: Avoid test failure on HP-UX 11.
22264         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22265         ERANGE when the second argument is zero.
22266         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22267         portability problem.
22268
22269 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22270
22271         * build-aux/update-copyright: doc Simon's changes
22272
22273 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22274
22275         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22276         environment variable.
22277
22278 2011-01-02  Bruno Haible  <bruno@clisp.org>
22279
22280         unigbrk: Avoid gcc warnings.
22281         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22282         unused variable.
22283         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22284         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22285         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22286         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22287         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22288         Change type of first argument to 'const char *'.
22289         (main): Remove unused variable.
22290         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22291         type of first argument to 'const char *'.
22292         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22293         Likewise.
22294         (main): Change type of variable 's'.
22295         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22296         to 'int'.
22297
22298 2011-01-02  Bruno Haible  <bruno@clisp.org>
22299
22300         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22301         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22302         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22303         bug.
22304         * lib/pwrite.c: Undo 2010-12-31 patch.
22305         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22306
22307 2011-01-02  Bruno Haible  <bruno@clisp.org>
22308
22309         pread: Fix test whether it works.
22310         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22311
22312 2011-01-02  Bruno Haible  <bruno@clisp.org>
22313
22314         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22315         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22316         ends in "6". Don't require a specific month name. Try also the locale
22317         names found on HP-UX 11 and Solaris 7.
22318
22319 2011-01-02  Bruno Haible  <bruno@clisp.org>
22320
22321         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22322         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22323         C linkage.
22324         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22325
22326 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22327
22328         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22329         for consistency, since the "cluster" term is not used elsewhere.
22330         * lib/unigbrk.in.h: Update name.
22331         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22332         * lib/unigbrk/u16-grapheme-next.c: Update name.
22333         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22334         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22335         * lib/unigbrk/u32-grapheme-next.c: Update name.
22336         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22337         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22338         * lib/unigbrk/u8-grapheme-next.c: Update name.
22339         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22340         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22341         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22342         Suggested by Bruno Haible.
22343
22344 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22345
22346         Remove module 'u8-grapheme-len' as too redundant with
22347         'u8-grapheme-next'.
22348         * modules/unigbrk/u8-grapheme-len: Delete file.
22349         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22350         * lib/unigbrk.in.h: Remove prototype for deleted function.
22351         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22352         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22353
22354         Remove module 'u16-grapheme-len' as too redundant with
22355         'u16-grapheme-next'.
22356         * modules/unigbrk/u16-grapheme-len: Delete file.
22357         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22358         * lib/unigbrk.in.h: Remove prototype for deleted function.
22359         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22360         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22361
22362         Remove module 'u32-grapheme-len' as too redundant with
22363         'u32-grapheme-next'.
22364         * modules/unigbrk/u32-grapheme-len: Delete file.
22365         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22366         * lib/unigbrk.in.h: Remove prototype for deleted function.
22367         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22368         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22369
22370         Suggested by Bruno Haible.
22371
22372 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22373
22374         * unigbrk.in.h: Fix typo: "ben" => "been".
22375         Reported by Bruno Haible.
22376
22377 2011-01-01  Jim Meyering  <meyering@redhat.com>
22378
22379         maint: update almost all copyright ranges to include 2011
22380         Run the new "make update-copyright" rule.
22381
22382 2011-01-01  Jim Meyering  <meyering@redhat.com>
22383
22384         maint: update-copyright: exempt doc/INSTALL*
22385         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22386         since they are generated.  Suggested by Bruno Haible.
22387
22388 2011-01-01  Jim Meyering  <meyering@redhat.com>
22389
22390         maint: refine the update-copyright rule
22391         * Makefile (update-copyright): Also exclude any file that includes
22392         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22393         code that merely generates the comment.
22394
22395 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22396
22397         New module 'u8-grapheme-len'.
22398         * modules/unigbrk/u8-grapheme-len: New file.
22399         * modules/unigbrk/u8-grapheme-len-tests: New file.
22400         * lib/unigbrk.in.h: Add prototype for new function.
22401         * lib/unigbrk/u8-grapheme-len.c: New file.
22402         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22403
22404         New module 'u16-grapheme-len'.
22405         * modules/unigbrk/u16-grapheme-len: New file.
22406         * modules/unigbrk/u16-grapheme-len-tests: New file.
22407         * lib/unigbrk.in.h: Add prototype for new function.
22408         * lib/unigbrk/u16-grapheme-len.c: New file.
22409         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22410
22411         New module 'u32-grapheme-len'.
22412         * modules/unigbrk/u32-grapheme-len: New file.
22413         * modules/unigbrk/u32-grapheme-len-tests: New file.
22414         * lib/unigbrk.in.h: Add prototype for new function.
22415         * lib/unigbrk/u32-grapheme-len.c: New file.
22416         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22417
22418         New module 'u8-grapheme-next'.
22419         * modules/unigbrk/u8-grapheme-next: New file.
22420         * modules/unigbrk/u8-grapheme-next-tests: New file.
22421         * lib/unigbrk.in.h: Add prototype for new function.
22422         * lib/unigbrk/u8-grapheme-next.c: New file.
22423         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22424
22425         New module 'u16-grapheme-next'.
22426         * modules/unigbrk/u16-grapheme-next: New file.
22427         * modules/unigbrk/u16-grapheme-next-tests: New file.
22428         * lib/unigbrk.in.h: Add prototype for new function.
22429         * lib/unigbrk/u16-grapheme-next.c: New file.
22430         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22431
22432         New module 'u32-grapheme-next'.
22433         * modules/unigbrk/u32-grapheme-next: New file.
22434         * modules/unigbrk/u32-grapheme-next-tests: New file.
22435         * lib/unigbrk.in.h: Add prototype for new function.
22436         * lib/unigbrk/u32-grapheme-next.c: New file.
22437         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22438
22439         New module 'u8-grapheme-prev'.
22440         * modules/unigbrk/u8-grapheme-prev: New file.
22441         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22442         * lib/unigbrk.in.h: Add prototype for new function.
22443         * lib/unigbrk/u8-grapheme-prev.c: New file.
22444         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22445
22446         New module 'u16-grapheme-prev'.
22447         * modules/unigbrk/u16-grapheme-prev: New file.
22448         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22449         * lib/unigbrk.in.h: Add prototype for new function.
22450         * lib/unigbrk/u16-grapheme-prev.c: New file.
22451         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22452
22453         New module 'u32-grapheme-prev'.
22454         * modules/unigbrk/u32-grapheme-prev: New file.
22455         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22456         * lib/unigbrk.in.h: Add prototype for new function.
22457         * lib/unigbrk/u32-grapheme-prev.c: New file.
22458         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22459
22460         New module 'u8-grapheme-breaks'.
22461         * modules/unigbrk/u8-grapheme-breaks: New file.
22462         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22463         * lib/unigbrk.in.h: Add prototype for new function.
22464         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22465         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22466
22467         New module 'u16-grapheme-breaks'.
22468         * modules/unigbrk/u16-grapheme-breaks: New file.
22469         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22470         * lib/unigbrk.in.h: Add prototype for new function.
22471         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22472         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22473
22474         New module 'u32-grapheme-breaks'.
22475         * modules/unigbrk/u32-grapheme-breaks: New file.
22476         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22477         * lib/unigbrk.in.h: Add prototype for new function.
22478         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22479         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22480
22481         New module 'ulc-grapheme-breaks'.
22482         * modules/unigbrk/ulc-grapheme-breaks: New file.
22483         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22484         * m4/locale-ar.m4: New file.
22485         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22486         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22487         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22488
22489 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22490
22491         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22492         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22493         modified how this file was generated before I initially submitted
22494         the module, but failed to regenerate it.  This meant that several
22495         of the level2 entries were wrong.
22496         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22497         Remove the division-by-2 that is folded into the table now that
22498         gbrkprop.h has been regenerated properly.  Now -1 entries are
22499         handled correctly.
22500
22501         New module 'unigbrk/uc-gbrk-prop-tests'.
22502         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22503         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22504         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22505         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22506
22507 2011-01-01  Bruno Haible  <bruno@clisp.org>
22508
22509         Avoid use of hexadecimal escapes.
22510         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22511         instead of hexadecimal escapes.
22512
22513 2011-01-01  Jim Meyering  <meyering@redhat.com>
22514
22515         maint: new rule to update copyright year ranges
22516         * Makefile (update-copyright): New rule.
22517
22518         maint: indent with TABs in Makefile
22519         * Makefile: Expand leading sequences of spaces to TABs
22520
22521         version-etc: update the copyright year it reports
22522         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22523
22524 2010-12-31  Bruno Haible  <bruno@clisp.org>
22525
22526         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22527         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22528         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22529         zero.
22530
22531 2010-12-31  Bruno Haible  <bruno@clisp.org>
22532
22533         pwrite: Work around HP-UX 11.11 bug.
22534         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22535         works and set REPLACE_PWRITE if not.
22536         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22537         function.
22538         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22539
22540 2010-12-31  Bruno Haible  <bruno@clisp.org>
22541
22542         pread: Work around HP-UX 11 bugs.
22543         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22544         and set REPLACE_PREAD if not.
22545         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22546
22547 2010-12-31  Eric Blake  <eblake@redhat.com>
22548
22549         nl_langinfo: fix YESEXPR on Irix 6.5
22550         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22551         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22552         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22553         it.
22554
22555 2010-12-31  Bruno Haible  <bruno@clisp.org>
22556
22557         iconv: Document HP-UX 11 bug.
22558         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22559
22560 2010-12-31  Bruno Haible  <bruno@clisp.org>
22561
22562         ldexpl: Fix link error on HP-UX 11.
22563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22564         LDEXPL_LIBM, using $ISNANL_LIBM.
22565
22566 2010-12-31  Eric Blake  <eblake@redhat.com>
22567
22568         ftello: avoid compilation failure with SunStudio c89
22569         * lib/ftello.c (ftello): Use lseek, not llseek.
22570
22571         tests: avoid failing coreutils tests on cygwin
22572         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22573         (create_exe_shims_): Return 0 when skipping.
22574
22575 2010-12-31  Bruno Haible  <bruno@clisp.org>
22576
22577         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22578         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22579
22580 2010-12-31  Bruno Haible  <bruno@clisp.org>
22581
22582         waitpid: Fix link error in C++ mode.
22583         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22584
22585 2010-12-31  Bruno Haible  <bruno@clisp.org>
22586
22587         isnan: Use GCC built-ins when possible.
22588         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22589         __builtin_isnan.
22590         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22591         (isnan): Define using GCC built-ins for GCC >= 4.0.
22592
22593 2010-12-31  Bruno Haible  <bruno@clisp.org>
22594
22595         isnand: Fix mistake.
22596         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22597         __builtin_isnand.
22598
22599 2010-12-31  Bruno Haible  <bruno@clisp.org>
22600
22601         open: Avoid C++ error on HP-UX 11.
22602         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22603
22604 2010-12-31  Bruno Haible  <bruno@clisp.org>
22605
22606         time_r: Add missing declarations on HP-UX 11.
22607         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22608         instead of HAVE_LOCALTIME_R.
22609         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22610         HAVE_LOCALTIME_R always.
22611         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22612         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22613         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22614         HAVE_LOCALTIME_R.
22615         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22616         * doc/posix-functions/localtime_r.texi: Likewise.
22617
22618 2010-12-29  Eric Blake  <eblake@redhat.com>
22619
22620         mountlist: tweak previous commit
22621         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22622         Reported by Paul Eggert.
22623
22624         mountlist: fix local drive detection on cygwin
22625         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22626         that works for cygwin.
22627
22628 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22629
22630         ftoastr, snprintf: ftoastr + snprintf module
22631         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22632         since the snprintf module now should be good enough here.
22633         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22634         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22635         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22636         GNULIB_SNPRINTF only for the test directory, and the latter
22637         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22638         seems to suffice by itself.
22639
22640 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22641
22642         alloca: one step towards thread-safety
22643         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22644         need for a static variable.  All callers changed.  This does not
22645         make the alloca replacement thread-safe, but it's one step.
22646
22647         tests: minor indenting change
22648         * tests/init.sh: Sync from coreutils housekeeping patch
22649         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22650         to keep lines within 80 columns.
22651
22652 2010-12-28  Jim Meyering  <meyering@redhat.com>
22653
22654         regex: don't infloop on persistent failing calloc
22655         * lib/regexec.c (build_trtable): Return failure indication upon
22656         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22657         In glibc, this was fixed for version 2.13:
22658         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22659
22660 2010-12-28  Bruno Haible  <bruno@clisp.org>
22661             Paul Eggert <eggert@cs.ucla.edu>
22662
22663         linkat: Make implementation robust against system behaviour variations.
22664         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22665         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22666         way, and to -2 if it needs a generic runtime test.
22667         * lib/linkat.c (solaris_optimized_link_immediate,
22668         solaris_optimized_link_follow): New functions.
22669         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22670         (check_same_link): Use it.
22671
22672 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22673
22674         New module 'unigbrk/base'.
22675         * modules/unigbrk/base: New file.
22676         * lib/unigbrk.in.h: New file.
22677
22678         New module 'unigbrk/uc-gbrk-prop'.
22679         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22680         * modules/unigbrk/uc-gbrk-prop: New file.
22681         * lib/unigbrk/gbrkprop.h: New file.
22682         * lib/unigbrk/uc-gbrk-prop.c: New file.
22683
22684         New module 'unigbrk/uc-is-grapheme-break'.
22685         * modules/unigbrk/uc-is-grapheme-break: New file.
22686         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22687         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22688         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22689         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22690         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22691
22692         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22693
22694 2010-12-27  Bruno Haible  <bruno@clisp.org>
22695
22696         linkat test: Avoid failure on Solaris 11 2010-11.
22697         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22698
22699 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22700
22701         utimens: work around glibc rounding bug on more platforms
22702         * lib/utimens.c (fdutimens): Work around rounding bug even if
22703         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22705
22706 2010-12-27  Bruno Haible  <bruno@clisp.org>
22707
22708         select tests: Improve comments.
22709         * tests/test-select.c (do_select): Add comments.
22710
22711 2010-12-27  Bruno Haible  <bruno@clisp.org>
22712
22713         select tests: Safer way of handling timeout.
22714         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22715         at every invocation.
22716
22717 2010-12-27  Bruno Haible  <bruno@clisp.org>
22718
22719         select tests: Use 'bool' where appropriate.
22720         * tests/test-select.c (connect_to_socket): Change argument type to
22721         'bool'.
22722
22723 2010-12-27  Bruno Haible  <bruno@clisp.org>
22724
22725         select tests: Use existing modules.
22726         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22727         (configure.ac): Don't test for unistd.h.
22728         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22729         declared in <unistd.h>.
22730
22731 2010-12-27  Bruno Haible  <bruno@clisp.org>
22732
22733         mbrtowc: Work around a Solaris 7 bug.
22734         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22735         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22736         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22737         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22738         MBRTOWC_NULL_ARG1_BUG.
22739         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22740         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22741         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22742         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22743
22744 2010-12-27  Jim Meyering  <meyering@redhat.com>
22745
22746         read-file.c: tweak syntax
22747         * lib/read-file.c (fread_file): Remove space after "*" in function
22748         definitions.
22749
22750 2010-12-27  Bruno Haible  <bruno@clisp.org>
22751
22752         times test: Avoid gcc warnings on OSF/1.
22753         * tests/test-times.c (main): Cast printf arguments from clock_t to
22754         'long int'.
22755
22756 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22757
22758         utimens: work around glibc rounding bug on older Linux kernels
22759         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22760         on Linux with a glibc whose utimes might not work, then work
22761         around a longstanding glibc bug involving rounding rather than
22762         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22764
22765 2010-12-26  Bruno Haible  <bruno@clisp.org>
22766
22767         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22768         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22769         _GL_CXXALIAS_SYS.
22770         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22771
22772 2010-12-26  Bruno Haible  <bruno@clisp.org>
22773
22774         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22775         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22776         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22777         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22778         looking for the declaration.
22779         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22780         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22781         problem.
22782         * doc/posix-functions/inet_pton.texi: Likewise.
22783
22784 2010-12-26  Bruno Haible  <bruno@clisp.org>
22785
22786         arpa_inet: Use the common idioms with C++ support.
22787         * lib/arpa_inet.in.h: Include c++defs.h.
22788         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22789         support.
22790         * modules/arpa_inet (Depends-on): Add c++defs.
22791         (Makefile.am): Substitute the contents of c++defs.h.
22792         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22793         * modules/arpa_inet-c++-tests: New file.
22794         * tests/test-arpa_inet-c++.cc: New file.
22795
22796 2010-12-25  Bruno Haible  <bruno@clisp.org>
22797
22798         Fix more C++ link errors on Solaris 8.
22799         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22800         $(LIB_EACCESS).
22801         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22802         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22803         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22804         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22805         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22806
22807 2010-12-25  Bruno Haible  <bruno@clisp.org>
22808
22809         printf-posix: Fix link error when a non-GCC compiler is used.
22810         * lib/stdio.in.h (printf): When not using GCC, override printf
22811         correctly.
22812         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22813
22814 2010-12-25  Bruno Haible  <bruno@clisp.org>
22815
22816         strerror_r-posix: Update doc.
22817         * doc/posix-functions/strerror_r.texi: Update doc about the return
22818         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22819
22820 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22821
22822         utimens: simplify the logic of the previous change
22823         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22824         This should not affect whether the test succeeds or fails.
22825
22826         utimens: configure better on hosts with NFS clock skew
22827         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22828         uses the clock of the local host.  It might use the clock of the
22829         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22830         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22831
22832 2010-12-25  Bruno Haible  <bruno@clisp.org>
22833
22834         ptsname test: Avoid failure on Solaris.
22835         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22836         open a pseudo-terminal; don't use BSD-style ptys.
22837         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22838
22839 2010-12-25  Bruno Haible  <bruno@clisp.org>
22840
22841         ptsname: Avoid ERANGE failure on some systems.
22842         * lib/ptsname.c (buffer): Increase size.
22843
22844 2010-12-25  Bruno Haible  <bruno@clisp.org>
22845
22846         rename, renameat: Avoid test failures at NFS mounted locations.
22847         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22848         so that subsequent mkdir calls succeed.
22849
22850 2010-12-25  Bruno Haible  <bruno@clisp.org>
22851
22852         iswblank: Fix C++ link error on Solaris 8.
22853         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22854         _GL_FUNCDECL_SYS.
22855
22856 2010-12-25  Bruno Haible  <bruno@clisp.org>
22857
22858         unistd: Fix C++ link error on Solaris 8.
22859         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22860
22861 2010-12-25  Bruno Haible  <bruno@clisp.org>
22862
22863         readlink doc: Mention an old glibc bug.
22864         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22865
22866 2010-12-25  Bruno Haible  <bruno@clisp.org>
22867
22868         fcntl-h: Fix for use of C++ on glibc systems.
22869         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22870         also on glibc systems in C++ mode.
22871         Reported by Gary V. Vaughan <gary@gnu.org>.
22872
22873 2010-12-25  Bruno Haible  <bruno@clisp.org>
22874
22875         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22876         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22877
22878 2010-12-25  Bruno Haible  <bruno@clisp.org>
22879
22880         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22881         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22882         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22883         test whether truncl works according to ISO C 99 with IEC 60559.
22884         * m4/truncl-ieee.m4: New file.
22885         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22886         m4/signbit.m4.
22887         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22888
22889 2010-12-25  Bruno Haible  <bruno@clisp.org>
22890
22891         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22892         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22893         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22894         test whether ceill works according to ISO C 99 with IEC 60559.
22895         * m4/ceill-ieee.m4: New file.
22896         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22897         m4/signbit.m4.
22898         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22899
22900 2010-12-25  Bruno Haible  <bruno@clisp.org>
22901
22902         Ensure all prerequisites of <wchar.h> are included.
22903         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22904         before <wchar.h>.
22905         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22906         gl_MBRLEN_NUL_RETVAL): Likewise.
22907         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22908         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22909         AC_FUNC_MBRTOWC): Likewise.
22910         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22911         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22912         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22913         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22914         Likewise.
22915         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22916         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22917         (gl_WCHAR_H): Improve comments.
22918         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22919
22920 2010-12-25  Bruno Haible  <bruno@clisp.org>
22921
22922         strtok_r: Fix C syntax error in autoconf macro.
22923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22924         characters in test program.
22925
22926 2010-12-24  Bruno Haible  <bruno@clisp.org>
22927
22928         ceil, trunc, round: Fix gcc warnings.
22929         * lib/ceil.c (MIN): Undefine before redefining.
22930         * lib/trunc.c (MIN): Likewise.
22931         * lib/round.c (MIN): Likewise.
22932         Include <math.h> first.
22933
22934 2010-12-24  Bruno Haible  <bruno@clisp.org>
22935
22936         select tests: Avoid failures on OSF/1 5.1.
22937         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22938         failure of closing the last socket; it may fail with ECONNRESET.
22939
22940 2010-12-24  Eric Blake  <eblake@redhat.com>
22941
22942         stdint: avoid HP-UX 10.20 preprocessor bug
22943         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22944         than #if.
22945         * tests/test-floor2.c (main): Likewise.
22946         Reported by Peter O'Gorman.
22947
22948         pipe: make obsoletion transition easier
22949         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22950         * modules/pipe (Files): Include revived file.
22951         (Include): Drop reference, to mirror getdate's behavior.
22952
22953 2010-12-24  Bruno Haible  <bruno@clisp.org>
22954
22955         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22956         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22957         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22958         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22959
22960 2010-12-24  Bruno Haible  <bruno@clisp.org>
22961
22962         gethostname: Ensure declaration on NonStop Kernel.
22963         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22964         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22965
22966 2010-12-24  Bruno Haible  <bruno@clisp.org>
22967
22968         sys_select: Ensure all necessary types on NonStop Kernel.
22969         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22970         include <sys/time.h>.
22971         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22972         NonStop Kernel.
22973         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22974
22975 2010-12-24  Bruno Haible  <bruno@clisp.org>
22976
22977         sys_select: Remove unneeded include.
22978         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22979         have <sys/select.h>.
22980
22981 2010-12-24  Bruno Haible  <bruno@clisp.org>
22982
22983         gethostname: Provide a fallback for HOST_NAME_MAX.
22984         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22985         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22986         instead.
22987         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22988
22989 2010-12-24  Bruno Haible  <bruno@clisp.org>
22990
22991         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22992         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22993         (SA_RESTART): Likewise.
22994         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22995
22996 2010-12-24  Bruno Haible  <bruno@clisp.org>
22997
22998         signal: Define NSIG.
22999         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23000         * tests/test-signal.c (nsig): New variable.
23001         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23002
23003 2010-12-24  Bruno Haible  <bruno@clisp.org>
23004
23005         rename, renameat: Avoid test failures on OSF/1 5.1.
23006         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23007         alternative error codes.
23008         * tests/test-renameat.c (main): Likewise.
23009
23010 2010-12-24  Bruno Haible  <bruno@clisp.org>
23011
23012         *printf: Detect large precisions bug on Solaris 10/SPARC.
23013         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23014         by Paul Eggert.
23015         * tests/test-snprintf-posix.h (test_function): Add this test code here
23016         too.
23017         * tests/test-sprintf-posix.h (test_function): Likewise.
23018         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23019         * tests/test-vasprintf-posix.c (test_function): Likewise.
23020         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23021         around by gnulib.
23022         * doc/posix-functions/printf.texi: Likewise.
23023         * doc/posix-functions/snprintf.texi: Likewise.
23024         * doc/posix-functions/sprintf.texi: Likewise.
23025         * doc/posix-functions/vfprintf.texi: Likewise.
23026         * doc/posix-functions/vprintf.texi: Likewise.
23027         * doc/posix-functions/vsnprintf.texi: Likewise.
23028         * doc/posix-functions/vsprintf.texi: Likewise.
23029         * doc/posix-functions/dprintf.texi: Undo last commit.
23030         * doc/posix-functions/vdprintf.texi: Likewise.
23031
23032 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23033
23034         tests: port test-fdutimensat.c to Solaris 8
23035         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23036         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23037         On Solaris 8, it fails with errno == ENOSYS, because there is no
23038         futimens (so it can't use the fd), and there is no lutimens (so it
23039         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23040
23041         vsnprintf: make more consistent with snprintf; doc fixes
23042
23043         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23044         the byte count return problem was promoted from the snprintf-posix
23045         to the snprintf module.
23046         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23047         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23048         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23049         * tests/test-snprintf.c (main): Check the byte count returned.
23050         * tests/test-vsnprintf.c (main): Likewise.
23051
23052 2010-12-23  Eric Blake  <eblake@redhat.com>
23053
23054         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23055         * modules/sigpipe (License): Relax license.
23056
23057 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         doc: document Solaris printf bug with large float precisions
23060         * doc/posix-functions/dprintf.texi (dprintf):
23061         * doc/posix-functions/fprintf.texi (fprintf):
23062         * doc/posix-functions/printf.texi (printf):
23063         * doc/posix-functions/snprintf.texi (snprintf):
23064         * doc/posix-functions/sprintf.texi (sprintf):
23065         * doc/posix-functions/vdprintf.texi (vdprintf):
23066         * doc/posix-functions/vfprintf.texi (vfprintf):
23067         * doc/posix-functions/vprintf.texi (vprintf):
23068         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23069         * doc/posix-functions/vsprintf.texi (vsprintf):
23070         Mention that these functions mishandle large floating point
23071         precisions on Solaris 10.  The same bug is also present in Solaris
23072         8, and I assume earlier.  This causes "cd gnulib-tests; make
23073         check" to fail on Solaris 8 (and I assume, later) when building
23074         the latest coreutils, in test-vasprintf-posix's call to
23075         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23076         the wide flavors (e.g., wprintf) so this patch just updates the
23077         documentation for the narrow ones.
23078
23079         test-posixtm.c: add two tests
23080         * tests/test-posixtm.c: Add two tests, to highlight the
23081         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23082         around this bug; this is merely to document it.
23083
23084 2010-12-22  Bruno Haible  <bruno@clisp.org>
23085
23086         getlogin_r: Work around portability problem on OSF/1.
23087         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23088         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23089         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23090         test for a truncated result.
23091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23092         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23093         * modules/getlogin_r (Depends-on): Add memchr.
23094         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23095
23096 2010-12-22  Bruno Haible  <bruno@clisp.org>
23097
23098         ptsname: Avoid test failure on OSF/1 5.1.
23099         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23100         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23101         (same_slave): New function.
23102         (main): Use it to compare ptsname's result with the expected file name.
23103
23104 2010-12-22  Bruno Haible  <bruno@clisp.org>
23105
23106         Port extended stdio modules to HP NonStop Kernel.
23107         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23108         macros.
23109         * lib/fbufmode.c: Update comments.
23110         * lib/fflush.c: Likewise.
23111         * lib/fpurge.c: Likewise.
23112         * lib/freadable.c: Likewise.
23113         * lib/freadahead.c: Likewise.
23114         * lib/freading.c: Likewise.
23115         * lib/freadptr.c: Likewise.
23116         * lib/freadseek.c: Likewise.
23117         * lib/fseeko.c: Likewise.
23118         * lib/fseterr.c: Likewise.
23119         * lib/fwritable.c: Likewise.
23120         * lib/fwriting.c: Likewise.
23121         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23122
23123 2010-12-22  Bruno Haible  <bruno@clisp.org>
23124
23125         ttyname_r: Work around bug on OSF/1 5.1.
23126         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23127         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23128         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23129         present.
23130         * lib/ttyname_r.c (ttyname_r): Update comments.
23131
23132 2010-12-22  Bruno Haible  <bruno@clisp.org>
23133
23134         round: Implement result sign according to IEEE 754.
23135         * lib/round.c (MIN, MINUS_ZERO): New macros.
23136         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23137         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23138         * tests/test-round-ieee.c (main): Likewise.
23139         * tests/test-roundl-ieee.c (main): Likewise.
23140
23141         trunc: Implement result sign according to IEEE 754.
23142         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23143         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23144         * tests/test-trunc2.c: Include minus-zero.h.
23145         (MINUS_ZERO): New macro.
23146         (trunc_reference): Keep in sync with lib/trunc.c.
23147         * tests/test-truncf2.c: Include minus-zero.h.
23148         (MINUS_ZERO): New macro.
23149         (truncf_reference): Keep in sync with lib/trunc.c.
23150         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23151         * tests/test-trunc-ieee.c (main): Likewise.
23152         * tests/test-truncl-ieee.c (main): Likewise.
23153
23154         ceil: Implement result sign according to IEEE 754.
23155         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23156         (FUNC): Return -0.0 for -1 < x < 0.
23157         * tests/test-ceil2.c: Include minus-zero.h.
23158         (MINUS_ZERO): New macro.
23159         (ceil_reference): Keep in sync with lib/ceil.c.
23160         * tests/test-ceilf2.c: Include minus-zero.h.
23161         (MINUS_ZERO): New macro.
23162         (ceilf_reference): Keep in sync with lib/ceil.c.
23163         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23164         * tests/test-ceil-ieee.c (main): Likewise.
23165         * tests/test-ceill-ieee.c (main): Likewise.
23166
23167         floor: Implement result sign according to IEEE 754.
23168         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23169         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23170         * tests/test-floorf2.c (floorf_reference): Likewise.
23171         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23172         * tests/test-floor-ieee.c (main): Likewise.
23173         * tests/test-floorl-ieee.c (main): Likewise.
23174
23175 2010-12-22  Bruno Haible  <bruno@clisp.org>
23176
23177         getaddrinfo: Update doc.
23178         * doc/posix-functions/gai_strerror.texi: Return type is also different
23179         on AIX and HP-UX.
23180
23181 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23182
23183         getaddrinfo, inet_ntop: Update doc for Solaris.
23184         * doc/posix-functions/gai_strerror.texi: Return type is also an
23185         issue on Solaris 9 and earlier.
23186         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23187         on Solaris 10 and earlier.
23188
23189 2010-12-21  Bruno Haible  <bruno@clisp.org>
23190
23191         New module 'roundl-ieee'.
23192         * modules/roundl-ieee: New file.
23193         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23194         test whether roundl works according to ISO C 99 with IEC 60559.
23195         * m4/roundl-ieee.m4: New file.
23196         * modules/roundl-ieee-tests: New file.
23197         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23198         * tests/test-roundl.c (main): Remove signbit tests.
23199         * modules/roundl-tests (Depends-on): Remove signbit.
23200         * doc/posix-functions/roundl.texi: Mention the new module.
23201
23202 2010-12-21  Bruno Haible  <bruno@clisp.org>
23203
23204         New module 'truncl-ieee'.
23205         * modules/truncl-ieee: New file.
23206         * modules/truncl-ieee-tests: New file.
23207         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23208         * tests/test-truncl.c (main): Remove signbit tests.
23209         * modules/truncl-tests (Depends-on): Remove signbit.
23210         * doc/posix-functions/truncl.texi: Mention the new module.
23211
23212 2010-12-21  Bruno Haible  <bruno@clisp.org>
23213
23214         New module 'ceill-ieee'.
23215         * modules/ceill-ieee: New file.
23216         * modules/ceill-ieee-tests: New file.
23217         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23218         * tests/test-ceill.c (main): Remove signbit tests.
23219         * modules/ceill-tests (Depends-on): Remove signbit.
23220         * doc/posix-functions/ceill.texi: Mention the new module.
23221
23222 2010-12-21  Bruno Haible  <bruno@clisp.org>
23223
23224         New module 'floorl-ieee'.
23225         * modules/floorl-ieee: New file.
23226         * modules/floorl-ieee-tests: New file.
23227         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23228         * tests/test-floorl.c (main): Remove signbit tests.
23229         * modules/floorl-tests (Depends-on): Remove signbit.
23230         * doc/posix-functions/floorl.texi: Mention the new module.
23231
23232 2010-12-21  Bruno Haible  <bruno@clisp.org>
23233
23234         New module 'round-ieee'.
23235         * modules/round-ieee: New file.
23236         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23237         whether round works according to ISO C 99 with IEC 60559.
23238         * m4/round-ieee.m4: New file.
23239         * modules/round-ieee-tests: New file.
23240         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23241         * tests/test-round1.c (main): Remove signbit tests.
23242         * modules/round-tests (Depends-on): Remove 'signbit'.
23243         * doc/posix-functions/round.texi: Mention the new module.
23244
23245 2010-12-21  Bruno Haible  <bruno@clisp.org>
23246
23247         New module 'trunc-ieee'.
23248         * modules/trunc-ieee: New file.
23249         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23250         whether trunc works according to ISO C 99 with IEC 60559.
23251         * m4/trunc-ieee.m4: New file.
23252         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23254         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23255         * modules/trunc-ieee-tests: New file.
23256         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23257         * tests/test-trunc1.c (main): Remove signbit tests.
23258         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23259         * doc/posix-functions/trunc.texi: Mention the new module.
23260
23261 2010-12-21  Bruno Haible  <bruno@clisp.org>
23262
23263         New module 'ceil-ieee'.
23264         * modules/ceil-ieee: New file.
23265         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23266         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23267         ISO C 99 with IEC 60559.
23268         * m4/ceil-ieee.m4: New file.
23269         * modules/ceil (Files): Add lib/ceil.c.
23270         (Depends-on): Add 'float'.
23271         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23272         * lib/math.in.h (ceil): New declaration.
23273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23274         REPLACE_CEIL.
23275         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23276         * modules/ceil-ieee-tests: New file.
23277         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23278         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23279         * doc/posix-functions/ceil.texi: Mention the new module.
23280
23281 2010-12-21  Bruno Haible  <bruno@clisp.org>
23282
23283         New module 'floor-ieee'.
23284         * modules/floor-ieee: New file.
23285         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23286         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23287         ISO C 99 with IEC 60559.
23288         * m4/floor-ieee.m4: New file.
23289         * modules/floor (Files): Add lib/floor.c.
23290         (Depends-on): Add 'float'.
23291         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23292         * lib/math.in.h (floor): New declaration.
23293         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23294         REPLACE_FLOOR.
23295         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23296         * modules/floor-ieee-tests: New file.
23297         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23298         * tests/test-math-c++.cc: Check the signature of 'floor'.
23299         * doc/posix-functions/floor.texi: Mention the new module.
23300
23301 2010-12-21  Bruno Haible  <bruno@clisp.org>
23302
23303         New module 'roundf-ieee'.
23304         * modules/roundf-ieee: New file.
23305         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23306         test whether roundf works according to ISO C 99 with IEC 60559.
23307         * m4/roundf-ieee.m4: New file.
23308         * modules/roundf-ieee-tests: New file.
23309         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23310         * tests/test-roundf1.c (main): Remove signbit tests.
23311         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23312         * doc/posix-functions/roundf.texi: Mention the new module.
23313
23314 2010-12-21  Bruno Haible  <bruno@clisp.org>
23315
23316         New module 'truncf-ieee'.
23317         * modules/truncf-ieee: New file.
23318         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23319         test whether truncf works according to ISO C 99 with IEC 60559.
23320         * m4/truncf-ieee.m4: New file.
23321         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23323         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23324         * modules/truncf-ieee-tests: New file.
23325         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23326         * tests/test-truncf1.c (main): Remove signbit tests.
23327         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23328         * doc/posix-functions/truncf.texi: Mention the new module.
23329
23330 2010-12-21  Bruno Haible  <bruno@clisp.org>
23331
23332         New module 'ceilf-ieee'.
23333         * modules/ceilf-ieee: New file.
23334         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23335         test whether ceilf works according to ISO C 99 with IEC 60559.
23336         * m4/ceilf-ieee.m4: New file.
23337         * modules/ceilf-ieee-tests: New file.
23338         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23339         * tests/test-ceilf1.c (main): Remove signbit tests.
23340         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23341         * doc/posix-functions/ceilf.texi: Mention the new module.
23342
23343 2010-12-21  Bruno Haible  <bruno@clisp.org>
23344
23345         New module 'floorf-ieee'.
23346         * modules/floorf-ieee: New file.
23347         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23348         test whether floorf works according to ISO C 99 with IEC 60559.
23349         * m4/floorf-ieee.m4: New file.
23350         * modules/floorf-ieee-tests: New file.
23351         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23352         * tests/test-floorf1.c (main): Remove signbit tests.
23353         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23354         * doc/posix-functions/floorf.texi: Mention the new module.
23355
23356 2010-12-21  Bruno Haible  <bruno@clisp.org>
23357
23358         Support for minus zero in autoconf macros.
23359         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23360         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23361         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23362         * tests/minus-zero.h: Update comments.
23363
23364 2010-12-21  Bruno Haible  <bruno@clisp.org>
23365
23366         Tests for module 'ceil'.
23367         * modules/ceil-tests: New file.
23368         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23369         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23370
23371 2010-12-21  Bruno Haible  <bruno@clisp.org>
23372
23373         Tests for module 'floor'.
23374         * modules/floor-tests: New file.
23375         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23376         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23377
23378 2010-12-21  Bruno Haible  <bruno@clisp.org>
23379
23380         math: Fix indentation.
23381         * lib/math.in.h (floorf): Fix indentation.
23382
23383 2010-12-21  Bruno Haible  <bruno@clisp.org>
23384
23385         Fix cross-compilation guesses on Solaris.
23386         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23387         not match "solaris2.10".
23388         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23389         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23390         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23391
23392 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23393
23394         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23395         This fixes a problem observed with the latest coreutils snapshot
23396         that caused a test to fail on Solaris 8.  src/csplit.c's call
23397         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23398         earlier, instead of returning the number of bytes that would have
23399         been generated; this causes csplit to incorrectly report memory
23400         exhaustion.
23401         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23402         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23403         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23404         comments to match.
23405         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23406         Fix typo in matching older versions of Solaris: "solaris2.10"
23407         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23408         only for guessing while cross-compiling.
23409         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23410
23411 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23412
23413         ftoastr: fix comment again
23414         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23416         Also, simplify example a bit by using flags = 0.
23417
23418 2010-12-20  Bruno Haible  <bruno@clisp.org>
23419
23420         round*, trunc*: Update documentation regarding glibc.
23421         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23422         * doc/posix-functions/round.texi: Likewise.
23423         * doc/posix-functions/roundl.texi: Likewise.
23424         * doc/posix-functions/truncf.texi: Likewise.
23425         * doc/posix-functions/trunc.texi: Likewise.
23426         * doc/posix-functions/truncl.texi: Likewise.
23427
23428 2010-12-20  Bruno Haible  <bruno@clisp.org>
23429
23430         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23431         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23432         * doc/posix-functions/round.texi: Likewise.
23433         * doc/posix-functions/roundl.texi: Likewise.
23434
23435 2010-12-20  Bruno Haible  <bruno@clisp.org>
23436
23437         ttyname_r: Add missing declaration on HP-UX 11.
23438         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23439         HAVE_TTYNAME_R.
23440         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23441         declared. Set HAVE_TTYNAME_R always.
23442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23443         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23444         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23445         HAVE_TTYNAME_R.
23446         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23447
23448 2010-12-20  Bruno Haible  <bruno@clisp.org>
23449
23450         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23451         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23452         * doc/posix-functions/getlogin_r.texi: Likewise.
23453         * tests/test-getlogin.c: Include <errno.h>.
23454         (main): Avoid test failure on HP-UX 11.11.
23455         * tests/test-getlogin_r.c (main): Likewise.
23456
23457 2010-12-20  Bruno Haible  <bruno@clisp.org>
23458
23459         getlogin_r: Add missing declaration on HP-UX 11.
23460         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23461         declared also when it exists as a function.
23462         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23463
23464 2010-12-20  Bruno Haible  <bruno@clisp.org>
23465
23466         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23467         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23468         through wcrtomb.
23469
23470 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23471
23472         ftoastr: fix comment
23473         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23474         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23475
23476 2010-12-19  Bruno Haible  <bruno@clisp.org>
23477
23478         isnan: Ensure it is a macro.
23479         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23480         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23481         Solaris.
23482
23483 2010-12-19  Bruno Haible  <bruno@clisp.org>
23484
23485         ldexpl test: Fix link error on OSF/1 5.1.
23486         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23487
23488 2010-12-19  Bruno Haible  <bruno@clisp.org>
23489
23490         wctype: Make it work in C++ mode on OSF/1 5.1.
23491         * lib/wctype.in.h (iswblank): Declare but not define here.
23492         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23493         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23494         * modules/wctype (Files): Add lib/iswblank.c.
23495
23496 2010-12-19  Bruno Haible  <bruno@clisp.org>
23497
23498         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23499         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23500         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23501
23502 2010-12-19  Bruno Haible  <bruno@clisp.org>
23503
23504         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23506         _POSIX_PII_SOCKET.
23507         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23508         * doc/posix-functions/recvfrom.texi: Likewise.
23509         * doc/posix-functions/send.texi: Likewise.
23510         * doc/posix-functions/sendto.texi: Likewise.
23511
23512 2010-12-19  Bruno Haible  <bruno@clisp.org>
23513
23514         tcgetsid: Add missing declaration on OSF/1 5.1.
23515         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23516         HAVE_TCGETSID.
23517         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23518         Don't set HAVE_TCGETSID.
23519         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23520         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23521         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23522         HAVE_TCGETSID.
23523         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23524
23525 2010-12-19  Bruno Haible  <bruno@clisp.org>
23526
23527         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23528         * lib/stdio.in.h: During the include_next statement, let recursive
23529         includes of this file include only the system header file.
23530
23531 2010-12-19  Bruno Haible  <bruno@clisp.org>
23532
23533         iconv_open: Fix regression from 2010-12-04.
23534         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23535         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23536
23537 2010-12-19  Bruno Haible  <bruno@clisp.org>
23538
23539         stdbool test: Avoid a gcc warning.
23540         * tests/test-stdbool.c (main): Fail if e1 is false.
23541         Reported by Jim Meyering.
23542
23543 2010-12-19  Jim Meyering  <meyering@redhat.com>
23544
23545         setenv: restore to working order
23546         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23547         mistakenly removed.
23548         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23549         HAVE_SETENV.
23550         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23551         HAVE_SETENV.
23552
23553 2010-12-19  Bruno Haible  <bruno@clisp.org>
23554
23555         Document some different function declarations on OSF/1 5.1.
23556         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23557         * doc/posix-functions/inet_ntop.texi: Likewise.
23558         * doc/posix-functions/gethostname.texi: Likewise.
23559         * lib/unistd.in.h (gethostname): Update comment.
23560
23561 2010-12-19  Bruno Haible  <bruno@clisp.org>
23562
23563         doc: Mention vasprintf-posix module.
23564         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23565         the 'vasprintf-posix' module.
23566         * doc/glibc-functions/vasprintf.texi: Likewise.
23567
23568 2010-12-19  Bruno Haible  <bruno@clisp.org>
23569
23570         unsetenv: Add missing declaration on OSF/1 5.1.
23571         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23572         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23573         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23575         not HAVE_UNSETENV.
23576         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23577         HAVE_UNSETENV.
23578         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23579
23580 2010-12-19  Bruno Haible  <bruno@clisp.org>
23581
23582         setenv: Add missing declaration on OSF/1 5.1.
23583         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23584         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23585         declared. Don't set HAVE_SETENV.
23586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23587         not HAVE_SETENV.
23588         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23589         HAVE_SETENV.
23590         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23591
23592 2010-12-19  Bruno Haible  <bruno@clisp.org>
23593
23594         nl_langinfo tests: Avoid gcc warning.
23595         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23596
23597 2010-12-19  Bruno Haible  <bruno@clisp.org>
23598
23599         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23600         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23601         _GL_CXXALIAS_SYS.
23602
23603 2010-12-19  Bruno Haible  <bruno@clisp.org>
23604
23605         stdbool: Relax test.
23606         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23607         address to 'bool' work in static initializer, for compilers other than
23608         GCC.
23609
23610 2010-12-19  Bruno Haible  <bruno@clisp.org>
23611
23612         ftello: Add missing declaration on OSF/1 5.1.
23613         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23614         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23615         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23616         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23617         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23618
23619 2010-12-19  Bruno Haible  <bruno@clisp.org>
23620
23621         fseeko: Add missing declaration on OSF/1 5.1.
23622         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23623         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23625         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23626         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23627
23628 2010-12-19  Bruno Haible  <bruno@clisp.org>
23629
23630         fchdir: Add missing declaration on OSF/1 5.1.
23631         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23632         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23634         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23635         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23636
23637 2010-12-19  Bruno Haible  <bruno@clisp.org>
23638
23639         relocatable-prog-wrapper: Separate from relocatable-prog.
23640         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23641         uninstall-relocwrapper rule here.
23642         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23643         Reported by Ian Beckwith <ianb@erislabs.net>.
23644
23645 2010-12-19  Bruno Haible  <bruno@clisp.org>
23646
23647         unistr/u8-mbsnlen: Add missing dependency.
23648         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23649         Reported by Ian Beckwith <ianb@erislabs.net>.
23650
23651 2010-12-19  Bruno Haible  <bruno@clisp.org>
23652
23653         iconv: Make it possible again to use this module without 'iconv-h'.
23654         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23655         if it is not defined.
23656         Reported by Ian Beckwith <ianb@erislabs.net>.
23657
23658 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23659
23660         acl: port to Solaris 8 when copying from tmpfs to ufs
23661         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23662         error number.  Problem observed on Solaris 8 with latest
23663         coreutils, with "mv A B", where A is on a tmpfs file system and B
23664         is on a ufs file system.  This caused coreutils' mv/part-symlink
23665         test to fail.
23666
23667         tests: set fail=0 at start
23668         * tests/init.sh (setup_): Move fail=0 initialization here ...
23669         (mktempd_): ... from here, so that tests can rely on fail being
23670         set to 0 initially.  This fixes a problem in coreutils; see:
23671         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23672
23673 2010-12-18  Bruno Haible  <bruno@clisp.org>
23674
23675         memmem-simple: Stylistic changes.
23676         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23677         Fix preprocessor directive indentation.
23678
23679 2010-12-15  Pádraig Brady <P@draigBrady.com>
23680
23681         memmem, memmem-simple: reorganize and expand empty needle check
23682         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23683         functional checks to memmem-simple so that one has a fully functional
23684         memmem by using just this module.
23685         Restrict the performance only check to the memmem module.
23686         Also expand the empty needle check to ensure the correct
23687         pointer is returned, not just a non NULL pointer.
23688         * doc/glibc-functions/memmem.texi: Rearrange the portability
23689         documentation to correlate with the rearranged checks.
23690         Clarify exactly how the memmem and memmem-simple modules
23691         relate to each other.
23692
23693 2010-12-15  Pádraig Brady <P@draigBrady.com>
23694             Bruno Haible  <bruno@clisp.org>
23695
23696         Improve cross-compilation guesses for uClibc.
23697         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23698         that uClibc does not have the glibc bug.
23699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23700         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23701
23702 2010-12-14  Eric Blake  <eblake@redhat.com>
23703
23704         configmake: provide fallbacks for oldest supported autotools
23705         * m4/configmake.m4: New file.
23706         * modules/configmake (Files): Ship it.
23707         (configure.ac): Use it to guarantee fallbacks.
23708
23709 2010-12-13  Pádraig Brady <P@draigBrady.com>
23710
23711         read-file: Improve handling of large files
23712         * lib/read-file.c (fread_file): Minimize realloc()s
23713         for regular files, and better manage sizes around SIZE_MAX.
23714
23715 2010-12-13  Eric Blake  <eblake@redhat.com>
23716
23717         cloexec, fcntl: relax license
23718         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23719         consent from all contributors.
23720         * modules/fcntl (License): Likewise.
23721
23722 2010-12-10  Bruno Haible  <bruno@clisp.org>
23723
23724         Tests for module 'pipe-posix'.
23725         * modules/pipe-posix-tests: New file.
23726         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23727
23728 2010-12-10  Bruno Haible  <bruno@clisp.org>
23729
23730         pipe-posix: Make it work in C++ mode.
23731         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23732         (pipe): Use common idiom, not a macro definition.
23733         * lib/pipe.c: New file.
23734         * m4/pipe.m4: New file.
23735         * modules/pipe-posix (Description): Enhance.
23736         (Files): Add lib/pipe.c, m4/pipe.m4.
23737         (configure.ac): Invoke gl_FUNC_PIPE.
23738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23739         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23740         * tests/test-unistd-c++.cc: Check the signature of pipe.
23741
23742 2010-12-10  Bruno Haible  <bruno@clisp.org>
23743
23744         Rename module 'pipe' to 'spawn-pipe'.
23745         * modules/spawn-pipe: New file, renamed from modules/pipe.
23746         (Files, configure.ac, Makefile.am): Update.
23747         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23748         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23749         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23750         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23751         "spawn-pipe.h" instead of "pipe.h".
23752         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23753         to gl_SPAWN_PIPE.
23754         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23755         (Files, Makefile.am): Update.
23756         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23757         Update.
23758         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23759         Include "spawn-pipe.h" instead of "pipe.h".
23760         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23761         * lib/javacomp.c: Likewise.
23762         * lib/javaversion.c: Likewise.
23763         * lib/pipe-filter-gi.c: Likewise.
23764         * lib/pipe-filter-ii.c: Likewise.
23765         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23766         * modules/javacomp (Depends-on): Likewise.
23767         * modules/javaversion (Depends-on): Likewise.
23768         * modules/pipe-filter-gi (Depends-on): Likewise.
23769         * modules/pipe-filter-ii (Depends-on): Likewise.
23770         * MODULES.html.sh (Executing programs): Update.
23771         * NEWS: Mention the change.
23772
23773 2010-12-10  Eric Blake  <eblake@redhat.com>
23774
23775         pipe-posix: new module
23776         * modules/pipe-posix: New file.
23777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23778         (gl_UNISTD_H): Check for declaration.
23779         * modules/unistd (Makefile.am): Substitute it.
23780         * lib/unistd.in.h (pipe): Provide it for mingw.
23781         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23782         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23783
23784 2010-12-07  Bruno Haible  <bruno@clisp.org>
23785
23786         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23787         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23788         u8_strcmp_gnu.
23789         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23790
23791 2010-12-06  Bruno Haible  <bruno@clisp.org>
23792
23793         Update internal documentation.
23794         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23795
23796 2010-12-04  Bruno Haible  <bruno@clisp.org>
23797
23798         Put more information about failed tests into the test return codes.
23799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23800         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23801         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23802         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23803         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23804         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23805         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23806         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23807         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23808         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23809         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23810         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23811         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23812         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23813         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23814         returns a bit mask.
23815         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23816         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23817         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23818         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23819         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23823         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23824         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23825         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23826         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23827         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23828         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23829         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23830         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23831         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23832         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23833         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23834         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23835         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23836         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23837         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23838         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23839         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23840         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23841         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23842         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23843         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23844         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23845         gl_PRINTF_PRECISION): Likewise.
23846         * m4/regex.m4 (gl_REGEX): Likewise.
23847         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23848         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23850         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23851         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23853         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23854         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23855         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23856         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23857         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23858         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23859         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23860         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23861         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23862         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23863         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23864         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23866         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23867         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23868         enumerated value.
23869         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23870
23871 2010-12-04  Bruno Haible  <bruno@clisp.org>
23872
23873         Update for Solaris 11 2010-11.
23874         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23875         Express, released in November 2010.
23876
23877 2010-12-04  Bruno Haible  <bruno@clisp.org>
23878
23879         nproc: Relax license.
23880         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23881         and Paul Eggert.
23882         Requested by Ludovic Courtès <ludo@gnu.org>.
23883
23884 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23885
23886         utimecmp: fine-grained src to nearby coarse-grained dest
23887
23888         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23889         and the source is on a file system with higher-resolution time
23890         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23891         not work, and the time stamps are close together, the algorithm to
23892         determine the exact resolution from the read-back mtime was buggy:
23893         it had a "!=" where it should have had an "==".  This bug has been
23894         in the code ever since it was introduced to gnulib.
23895         Problem reported by Dan Jacobson in
23896         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23897
23898 2010-11-30  Bruno Haible  <bruno@clisp.org>
23899
23900         strerror_r-posix: Fix autoconf test.
23901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23902
23903 2010-11-28  Bruno Haible  <bruno@clisp.org>
23904             Paul Eggert  <eggert@cs.ucla.edu>
23905
23906         Tests for module 'getdomainname'.
23907         * modules/getdomainname-tests: New file.
23908         * tests/test-getdomainname.c: New file, based on
23909         tests/test-gethostname.c.
23910
23911 2010-11-28  Bruno Haible  <bruno@clisp.org>
23912             Paul Eggert  <eggert@cs.ucla.edu>
23913
23914         getdomainname: Use the system function when possible.
23915         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23916         (getdomainname): Replace if needed. Provide the declaration if it is
23917         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23918         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23919         (getdomainname): When the system has getdomainname, call the system
23920         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23921         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23922         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23923         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23924         the function if its second argument is of type 'int' or if it is found
23925         in libnsl.
23926         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23927         <sys/systeminfo.h> and sysinfo().
23928         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23930         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23931         HAVE_GETDOMAINNAME.
23932         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23933         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23934         * doc/glibc-functions/getdomainname.texi: Document the problems with
23935         the getdomainname declaration.
23936
23937 2010-11-28  Bruno Haible  <bruno@clisp.org>
23938
23939         sys_socket: Ensure ss_family field on AIX.
23940         * lib/sys_socket.in.h (ss_family): New macro definition.
23941         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23942         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23943         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23944         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23945         * modules/sys_socket (Makefile.am): Substitute
23946         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23947         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23948
23949 2010-11-27  Bruno Haible  <bruno@clisp.org>
23950
23951         readline: Improve configure output.
23952         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23953         "checking for readline..." result understandable.
23954
23955 2010-11-27  Bruno Haible  <bruno@clisp.org>
23956
23957         *printf-posix: Detect a bug on Solaris 10/x86.
23958         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23959         for floating-point output.
23960         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23961         directive.
23962         * tests/test-snprintf-posix.h (test_function): Likewise.
23963         * tests/test-sprintf-posix.h (test_function): Likewise.
23964         * tests/test-vasprintf-posix.c (test_function): Likewise.
23965         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23966         * doc/posix-functions/printf.texi: Likewise.
23967         * doc/posix-functions/snprintf.texi: Likewise.
23968         * doc/posix-functions/sprintf.texi: Likewise.
23969         * doc/posix-functions/vfprintf.texi: Likewise.
23970         * doc/posix-functions/vprintf.texi: Likewise.
23971         * doc/posix-functions/vsnprintf.texi: Likewise.
23972         * doc/posix-functions/vsprintf.texi: Likewise.
23973         * doc/glibc-functions/obstack_printf.texi: Likewise.
23974         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23975
23976 2010-11-27  Bruno Haible  <bruno@clisp.org>
23977
23978         Fix link error when module libunistring-optional is in use.
23979         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23980         * modules/striconveha-tests (Makefile.am): Likewise.
23981
23982 2010-11-27  Bruno Haible  <bruno@clisp.org>
23983
23984         regex: Mention link dependencies.
23985         * modules/regex (Link): New section.
23986         * modules/rpmatch (Link): Likewise.
23987         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23988
23989 2010-11-27  Bruno Haible  <bruno@clisp.org>
23990
23991         ftoastr: Fix compilation error on Solaris.
23992         * lib/ftoastr.c: Include <config.h>.
23993
23994 2010-11-27  Bruno Haible  <bruno@clisp.org>
23995
23996         getloadavg: Update documentation.
23997         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23998
23999 2010-11-27  Bruno Haible  <bruno@clisp.org>
24000
24001         sys_socket: Fix test whether the functions are declared.
24002         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24003         not <sys/select.h>.
24004
24005 2010-11-27  Bruno Haible  <bruno@clisp.org>
24006
24007         getpass: Make sure to get system declaration on some platforms.
24008         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24009         gl_USE_SYSTEM_EXTENSIONS.
24010         * modules/getpass (Depends-on): Add extensions.
24011
24012 2010-11-26  Bruno Haible  <bruno@clisp.org>
24013
24014         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24015         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24016         'iconv' module is present.
24017         (ICONV_CONST): New macro.
24018         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24019         ICONV_CONST.
24020         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24021         set ICONV_CONST.
24022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24023         here.
24024         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24025         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24026         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24027         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24028         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24029         present.
24030
24031 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24032
24033         ftoastr: comment fix
24034         * lib/ftoastr.c: "little" -> "little or no" in comment
24035
24036 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24037
24038         stdint: port to GCC 4.3 + OSX + Octave
24039         On this platform, stdint.h is buggy and defines int64_t to long
24040         long int.  The replacement defined it to long int, causing
24041         problems with C++ style name mangling.  Instead, trust the system
24042         definition if INT64_MAX is defined, and likewise for the unsigned
24043         variant.   Problem reported by Jarno Rajahalme in
24044         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24045         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24046         and don't mess with int64_t and INT64_MAX in this case.
24047         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24048
24049 2010-11-24  Bruno Haible  <bruno@clisp.org>
24050
24051         doc: Corrections regarding MacOS X 10.4 and 10.5.
24052         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24053         MacOS X.
24054         Reported by Simon Josefsson.
24055
24056 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24057
24058         Uninstall ".bin" files installed by relocwrapper.
24059         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24060         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24061         unless it is already there.
24062
24063 2010-11-21  Bruno Haible  <bruno@clisp.org>
24064
24065         Update for NetBSD 5.0.
24066         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24067         NetBSD; the test fails on NetBSD 5.0.
24068         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24069         about NetBSD.
24070
24071 2010-11-21  Bruno Haible  <bruno@clisp.org>
24072
24073         Update for HP-UX 11.23 and HP-UX 11.31.
24074         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24075         HP-UX.
24076
24077 2010-11-21  Bruno Haible  <bruno@clisp.org>
24078
24079         Update for MacOS X 10.5.
24080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24081         MacOS X; the test fails on MacOS X 10.5.8.
24082         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24083         about MacOS X.
24084
24085 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24086
24087         bootstrap: add bootstrap_sync option.
24088         See discussion at
24089         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24090         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24091         * build-aux/bootstrap: Accept --bootstrap-sync to update
24092         bootstrap if it is not identical to the local gnulib's
24093         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24094         enable this by default.  Accept --no-bootstrap-sync to disable
24095         it.
24096
24097 2010-11-20  Bruno Haible  <bruno@clisp.org>
24098
24099         Ensure that <features.h> is included before __GLIBC__ is tested.
24100         * lib/printf-parse.h: Include <features.h>.
24101         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24102         Reported by Mike Frysinger <vapier@gentoo.org>.
24103
24104         Ensure that <features.h> is included before __GLIBC__ is tested.
24105         * lib/wchar.in.h: Include <features.h>.
24106         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24107         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24108         Reported by Mike Frysinger <vapier@gentoo.org>.
24109
24110         Ensure that <features.h> is included before __GLIBC__ is tested.
24111         * lib/arpa_inet.in.h: Include <features.h>.
24112         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24113         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24114         Reported by Mike Frysinger <vapier@gentoo.org>.
24115
24116         Ensure that <features.h> is included before __GLIBC__ is tested.
24117         * build-aux/link-warning.h: Include <features.h>.
24118         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24119         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24120         Reported by Mike Frysinger <vapier@gentoo.org>.
24121
24122         Ensure that <features.h> is included before __GLIBC__ is tested.
24123         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24124         Reported by Mike Frysinger <vapier@gentoo.org>.
24125
24126 2010-11-20  Bruno Haible  <bruno@clisp.org>
24127
24128         memmem: Fix autoconf test.
24129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24130
24131 2010-11-20  Bruno Haible  <bruno@clisp.org>
24132
24133         Port to uClibc.
24134         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24135         * lib/fcntl.in.h: Likewise.
24136         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24137         * lib/mbrtowc.c (mbrtowc): Likewise.
24138         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24139         * lib/strerror_r.c: Likewise.
24140         * lib/unistr/u8-strnlen.c: Likewise.
24141         * lib/vasnprintf.c (decimal_point_char): Likewise.
24142         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24143         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24145         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24146         * tests/test-sigaction.c (handler, main): Likewise.
24147         * lib/freading.h: Treat uClibc like a non-glibc platform.
24148         * lib/freading.c: Likewise.
24149         * lib/gettext.h: Likewise.
24150         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24151         Likewise.
24152         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24153         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24154         * lib/propername.c (proper_name_utf8): Likewise.
24155         * lib/spawn.in.h: Likewise.
24156         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24157         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24158         mem_cd_iconveh_internal): Likewise.
24159         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24160         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24161         strstr, strcasestr): Likewise.
24162         * lib/unicodeio.c (unicode_to_mb): Likewise.
24163         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24164         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24165         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24166         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24167         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24168         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24169         * lib/unistr/u8-stpncpy.c: Likewise.
24170         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24171         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24172         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24173         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24174         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24175         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24176         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24177         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24179         Likewise.
24180         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24181         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24182         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24185         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24186         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24187         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24188         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24189         * tests/test-striconveha.c (main): Likewise.
24190         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24191         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24192         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24193         * doc/posix-functions/getline.texi: Likewise.
24194         Reported by Mike Frysinger <vapier@gentoo.org>.
24195
24196 2010-11-20  Bruno Haible  <bruno@clisp.org>
24197
24198         nproc: Fix condition.
24199         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24200         HAVE_PTHREAD_AFFINITY_NP.
24201
24202 2010-11-20  Bruno Haible  <bruno@clisp.org>
24203
24204         Fix a comment.
24205         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24206
24207 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24208
24209         ftoastr: don't assume snprintf
24210         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24211         Implement a subset of snprintf here, by using sprintf safely.
24212         * modules/ftoastr (Depends-on): Remove snprintf.
24213
24214 2010-11-19  Jim Meyering  <meyering@redhat.com>
24215
24216         test-rename.h: fix compilation failure
24217         * tests/test-rename.h (test_rename): Add omitted "}".
24218
24219 2010-11-17  Jim Meyering  <meyering@redhat.com>
24220
24221         maint.mk: add a URL discussing the no-@acronym policy
24222         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24223
24224 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24225
24226         ftoastr: depend on snprintf, improve comments
24227         * lib/ftoastr.c: Also mention Loitsch's draft.
24228         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24229         needed in the current implementation, but it might simplify
24230         speeding up the code later.
24231         * modules/ftoastr: Depend on snprintf; this improves portability.
24232         Suggested by Bruno Haible in the same email.
24233
24234         ftoastr: port to hosts lacking strtof and strtold
24235         Problem reported by Bruno Haible in
24236         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24237         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24238         environment and strtold (and presumably strtof) are not available.
24239         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24240         (configure.ac): Require gl_C99_STRTOLD.
24241
24242 2010-11-18  Bruno Haible  <bruno@clisp.org>
24243
24244         c-strtold: Avoid link error on AIX 7.
24245         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24246         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24247         (gl_C_STRTOLD): Test whether strtold_l exists.
24248         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24249
24250 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24251
24252         intprops: new macro INT_BITS_STRLEN_BOUND
24253         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24254         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24255         not exposed.  Also, it uses a slightly tighter bound than before;
24256         though this makes no practical difference, we might as well be as
24257         tight as we easily can.
24258
24259         ftoastr: new module, for lossless conversion of floats to short strings
24260         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24261         * modules/ftoastr: New files.
24262
24263 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24264
24265         bootstrap: port to Solaris sed
24266         * build-aux/bootstrap (get_version): Port to Solaris sed.
24267         See Ralf Wildenhues's note in
24268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24269
24270 2010-11-14  Jim Meyering  <meyering@redhat.com>
24271
24272         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24273         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24274         and move definition closer to sole use.
24275
24276 2010-11-13  Jim Meyering  <meyering@redhat.com>
24277
24278         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24279         Now we require at least autoconf-2.59, which means the work-around
24280         is no longer needed.
24281         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24283         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24284         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24285         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24286
24287 2010-11-13  Bruno Haible  <bruno@clisp.org>
24288
24289         rename, renameat: Avoid test failures at NFS mounted locations.
24290         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24291         functions.
24292         (test_rename): Use assert_nonexistent.
24293         * tests/test-rename.c: Include <dirent.h>.
24294         * tests/test-renameat.c: Likewise.
24295         Reported by Gary V. Vaughan <gary@gnu.org>.
24296
24297         rename, renameat: Document Linux bug with NFS
24298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24299         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24300         * doc/posix-functions/renameat.texi: Likewise.
24301         Suggested by Eric Blake.
24302
24303 2010-11-13  Bruno Haible  <bruno@clisp.org>
24304
24305         rename test: Add comments.
24306         * tests/test-rename.h (test_rename): Add structure and comments.
24307
24308 2010-11-13  Eric Blake  <eblake@redhat.com>
24309
24310         maintainer-makefile: cover a few more files
24311         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24312         scripts generated within C files, for libvirt.
24313
24314 2010-11-13  Bruno Haible  <bruno@clisp.org>
24315
24316         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24317         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24318         character, return the number of bytes that belong together, not always
24319         1.
24320         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24321         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24322         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24323         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24324         number of bytes of an invalid character.
24325         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24326         (main): Invoke it.
24327         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24328         results.
24329         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24330         malformed byte sequences.
24331         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24332         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24333         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24334         Reported by Ben Pfaff and Paolo Bonzini.
24335
24336 2010-11-13  Bruno Haible  <bruno@clisp.org>
24337
24338         openat: Work around glibc bug with fchownat() and empty file names.
24339         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24340         (gl_FUNC_FCHOWNAT): Invoke it.
24341         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24342         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24343         Reported by Gary V. Vaughan <gary@gnu.org>.
24344
24345 2010-11-13  Bruno Haible  <bruno@clisp.org>
24346
24347         openat: Ensure autoconf macro ordering.
24348         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24349         gl_USE_SYSTEM_EXTENSIONS.
24350         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24351
24352 2010-11-13  Bruno Haible  <bruno@clisp.org>
24353
24354         Update comments.
24355         * lib/unistr/u8-check.c: Update file name in comments.
24356         * lib/unistr/u8-mblen.c: Likewise.
24357         * lib/unistr/u8-prev.c: Likewise.
24358         * lib/unistr/u8-strmblen.c: Likewise.
24359         * lib/unistr/u8-strmbtouc.c: Likewise.
24360
24361 2010-11-13  Jim Meyering  <meyering@redhat.com>
24362
24363         tests: avoid test failure on Solaris 10 due to lack of PATH export
24364         * tests/test-update-copyright.sh: Don't forget to export PATH.
24365
24366         init.sh: ensure that IFS is defined, just in case...
24367         * tests/init.sh (setup_): Ensure that IFS is defined,
24368         so that saving and restoring it works as expected.  This
24369         appears to be useful at least for an old version of dash
24370         from a long time ago (RH 6).  See here for details:
24371         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24372
24373         maint.mk: tighten "test a == b" check
24374         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24375         test to files that contain something like #!/bin/sh.
24376         Without this, coreutils would get two false positives in
24377         the comments of C source files.
24378
24379 2010-11-12  Eric Blake  <eblake@redhat.com>
24380
24381         bootstrap: fix typo in previous attempt
24382         * build-aux/bootstrap (buildreq): Correct the grouping.
24383         Reported by Paul Eggert.
24384
24385         maintainer-makefile: prohibit test x == x
24386         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24387         Based on a report by Matthias Bolte.
24388
24389         bootstrap: allow FreeBSD gzip
24390         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24391         which has no '.' and goes to stderr.
24392         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24393         Reported by Matthias Bolte.
24394
24395         maintainer-makefile: check for i18n setup
24396         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24397         will likely work.
24398
24399 2010-11-12  Bruno Haible  <bruno@clisp.org>
24400
24401         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24402         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24403         * lib/nanosleep.c (nanosleep): Likewise.
24404
24405 2010-11-11  Bruno Haible  <bruno@clisp.org>
24406
24407         fcntl-h: Fix for use of C++ on glibc systems.
24408         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24409         also on glibc systems in C++ mode.
24410         Reported by Gary V. Vaughan <gary@gnu.org>.
24411
24412 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24413
24414         mknod: avoid false failure with dash
24415         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24416
24417 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24418
24419         unlink: Fix "is it should" typo in diagnostic.
24420         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24422
24423 2010-11-11  Bruno Haible  <bruno@clisp.org>
24424
24425         Tests for module 'strerror_r-posix'.
24426         * modules/strerror_r-posix-tests: New file.
24427         * tests/test-strerror_r.c: New file.
24428         * tests/test-string-c++.cc: Check the signature of strerror_r.
24429
24430         New module 'strerror_r-posix'.
24431         * lib/string.in.h (strerror_r): New declaration.
24432         * lib/strerror_r.c: New file.
24433         * m4/strerror_r.m4: New file.
24434         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24435         of strerror_r.
24436         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24437         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24438         * modules/strerror_r-posix: New file.
24439         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24440         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24441         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24442         portability problems.
24443
24444 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24445
24446         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24447         line is also considered for output. Quoted function name in shell
24448         command, so temporary files for functions like MyClass::operator()
24449         are removed correctly without errors.
24450
24451 2010-11-09  Bruno Haible  <bruno@clisp.org>
24452
24453         * doc/posix-functions/strerror.texi: List more failing platforms.
24454
24455         * doc/posix-functions/strerror.texi: Add a comment.
24456
24457 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24458
24459         fdopendir: fix bug on MacOS X when low on file descriptors
24460
24461         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24462         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24463         All callers changed.
24464         (fdopendir): Invoke save_cwd at the top level, not after using
24465         multiple dup() calls to use up file descriptors.  Then retry
24466         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24467         less than the maximum number of open file descriptors, because
24468         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24469         on Mac OS X 10.6.4 for tar 1.24
24470         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24471         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24472         and for tar 1.25
24473         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24474
24475 2010-11-07  Bruno Haible  <bruno@clisp.org>
24476
24477         vasnprintf: Support I flag on glibc systems.
24478         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24479         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24480         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24481         snprintf function.
24482         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24483         glibc systems.
24484         * tests/test-vasnprintf-posix3.c: New file.
24485         * modules/vasnprintf-posix-tests (Files): Add it.
24486         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24487
24488 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24489
24490         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24491         * MODULES.html.sh: For compiler warnings, use name
24492         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24493
24494 2010-11-05  Eric Blake  <eblake@redhat.com>
24495
24496         ceil, floor: avoid spurious failure with icc
24497         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24498         [denormals-as-zero] when optimizing without -mieee-fp option.
24499         * tests/test-floorf2.c (floorf_reference): Likewise.
24500         * tests/test-ceilf1.c (dummy): New function.
24501         (main): Use it to outsmart icc's optimization.
24502         * tests/test-floorf1.c (dummy, main): Likewise.
24503
24504         tests: require working signbit
24505         * modules/ceilf-tests (Depends-on): Add signbit.
24506         * modules/ceill-tests (Depends-on): Likewise.
24507         * modules/floorf-tests (Depends-on): Likewise.
24508         * modules/floorl-tests (Depends-on): Likewise.
24509         * modules/round-tests (Depends-on): Likewise.
24510         * modules/roundf-tests (Depends-on): Likewise.
24511         * modules/roundl-tests (Depends-on): Likewise.
24512         * modules/trunc-tests (Depends-on): Likewise.
24513         * modules/truncf-tests (Depends-on): Likewise.
24514         * modules/truncl-tests (Depends-on): Likewise.
24515
24516         strtod: work around icc bug
24517         * lib/strtod.c (minus_zero): Define to working value.
24518         (strtod): Use it to avoid icc bug.
24519
24520         copysign: enhance tests
24521         * modules/copysign-tests (Files): Add minus-zero.h.
24522         * tests/test-copysign.c (main): Also test zeros.
24523
24524 2010-11-04  Eric Blake  <eblake@redhat.com>
24525
24526         ceil, floor, round, trunc: enhance tests of -0
24527         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24528         * tests/test-ceill.c (main): Likewise.
24529         * tests/test-floorf1.c (main): Likewise.
24530         * tests/test-floorl.c (main): Likewise.
24531         * tests/test-round1.c (main): Likewise.
24532         * tests/test-roundf1.c (main): Likewise.
24533         * tests/test-roundl.c (main): Likewise.
24534         * tests/test-trunc1.c (main): Likewise.
24535         * tests/test-truncf1.c (main): Likewise.
24536         * tests/test-truncl.c (main): Likewise.
24537
24538 2010-11-04  Eric Blake  <eblake@redhat.com>
24539
24540         frexp, tests: work around ICC bug with -zero
24541         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24542         works with more compilers.
24543         * tests/minus-zero.h: New file.
24544         * modules/ceilf-tests (Files): Include it.
24545         * modules/ceill-tests (Files): Likewise.
24546         * modules/floorf-tests (Files): Likewise.
24547         * modules/floorl-tests (Files): Likewise.
24548         * modules/frexp-nolibm-tests (Files): Likewise.
24549         * modules/frexp-tests (Files): Likewise.
24550         * modules/frexpl-nolibm-tests (Files): Likewise.
24551         * modules/frexpl-tests (Files): Likewise.
24552         * modules/isnan-tests (Files): Likewise.
24553         * modules/isnand-nolibm-tests (Files): Likewise.
24554         * modules/isnand-tests (Files): Likewise.
24555         * modules/isnanf-nolibm-tests (Files): Likewise.
24556         * modules/isnanf-tests (Files): Likewise.
24557         * modules/isnanl-nolibm-tests (Files): Likewise.
24558         * modules/isnanl-tests (Files): Likewise.
24559         * modules/round-tests (Files): Likewise.
24560         * modules/roundf-tests (Files): Likewise.
24561         * modules/roundl-tests (Files): Likewise.
24562         * modules/ldexpl-tests (Files): Likewise.
24563         * modules/signbit-tests (Files): Likewise.
24564         * modules/snprintf-posix-tests (Files): Likewise.
24565         * modules/sprintf-posix-tests (Files): Likewise.
24566         * modules/strtod-tests (Files): Likewise.
24567         * modules/trunc-tests (Files): Likewise.
24568         * modules/truncf-tests (Files): Likewise.
24569         * modules/truncl-tests (Files): Likewise.
24570         * modules/vsnprintf-posix-tests (Files): Likewise.
24571         * modules/vsprintf-posix-tests (Files): Likewise.
24572         * modules/vasnprintf-posix-tests (Files): Likewise.
24573         * modules/vasprintf-posix-tests (Files): Likewise.
24574         * tests/test-ceilf1.c (main): Use it.
24575         * tests/test-ceill.c (main): Likewise.
24576         * tests/test-floorf1.c (main): Likewise.
24577         * tests/test-floorl.c (main): Likewise.
24578         * tests/test-frexp.c (main): Likewise.
24579         * tests/test-frexpl.c (main): Likewise.
24580         * tests/test-isnan.c (main): Likewise.
24581         * tests/test-isnand.h (main): Likewise.
24582         * tests/test-isnanf.h (main): Likewise.
24583         * tests/test-isnanl.h (main): Likewise.
24584         * tests/test-ldexpl.c (main): Likewise.
24585         * tests/test-round.c (main): Likewise.
24586         * tests/test-roundf.c (main): Likewise.
24587         * tests/test-roundl.c (main): Likewise.
24588         * tests/test-signbit.c (test_signbitf, test_signbitd)
24589         (test_signbitl): Likewise.
24590         * tests/test-snprintf-posix.h (test_function): Likewise.
24591         * tests/test-sprintf-posix.h (test_function): Likewise.
24592         * tests/test-strtod.c (main): Likewise.
24593         * tests/test-trunc1.c (main): Likewise.
24594         * tests/test-truncf1.c (main): Likewise.
24595         * tests/test-truncl.c (main): Likewise.
24596
24597         isnanl: work around icc bug
24598         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24599
24600 2010-11-03  Eric Blake  <eblake@redhat.com>
24601
24602         tests: fix compiler warnings
24603         * tests/test-getopt.h (test_getopt): Fix condition.
24604         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24605         * tests/test-pipe2.c (main): Likewise.
24606         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24607
24608         utimens: fix broken m4 test
24609         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24610
24611 2010-10-28  Bruno Haible  <bruno@clisp.org>
24612
24613         posix_spawn*, getdtablesize: Relax license.
24614         * modules/posix_spawn (License): Change to LGPLv2+.
24615         * modules/posix_spawnp (License): Likewise.
24616         * modules/posix_spawn-internal (License): Likewise.
24617         * modules/posix_spawnattr_init (License): Likewise.
24618         * modules/posix_spawnattr_getflags (License): Likewise.
24619         * modules/posix_spawnattr_setflags (License): Likewise.
24620         * modules/posix_spawnattr_getpgroup (License): Likewise.
24621         * modules/posix_spawnattr_setpgroup (License): Likewise.
24622         * modules/posix_spawnattr_getschedparam (License): Likewise.
24623         * modules/posix_spawnattr_setschedparam (License): Likewise.
24624         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24625         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24626         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24627         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24628         * modules/posix_spawnattr_getsigmask (License): Likewise.
24629         * modules/posix_spawnattr_setsigmask (License): Likewise.
24630         * modules/posix_spawnattr_destroy (License): Likewise.
24631         * modules/posix_spawn_file_actions_init (License): Likewise.
24632         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24633         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24634         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24635         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24636         * modules/getdtablesize (License): Likewise.
24637         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24638
24639 2010-10-26  Bruno Haible  <bruno@clisp.org>
24640
24641         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24642         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24643         Cygwin and mingw.
24644         Suggested by Eric Blake.
24645
24646 2010-10-26  Bruno Haible  <bruno@clisp.org>
24647
24648         stdio: Work around compilation error due to renameat() on Solaris 10.
24649         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24650         * lib/renameat.c: Don't include <unistd.h> here.
24651         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24652         Reported by Paul Eggert and Eric Blake.
24653
24654 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24655
24656         renameat: port to Solaris 10, which declares renameat in unistd.h
24657
24658         * lib/renameat.c: Include unistd.h before stdio.h, because
24659         Solaris 10 declares renameat in unistd.h.  Problem encountered
24660         when building GNU tar 1.24 on Solaris 10.
24661
24662 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24663
24664         fdopendir: fix C89 compilation
24665         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24666         compilers.
24667
24668 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24669
24670         inttostr: simplify by removing unnecessary redundancy
24671         * lib/anytostr.c: Don't include verify.h.
24672         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24673         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24674         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24675         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24676         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24677         Likewise.
24678         * modules/inttostr (Depends-on): Remove 'verify'.
24679
24680 2010-10-23  Bruno Haible  <bruno@clisp.org>
24681
24682         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24683         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24684         Reported by Eric Blake.
24685
24686 2010-10-23  Bruno Haible  <bruno@clisp.org>
24687
24688         Tests: Fix LOCALE_JA on MirBSD 10.
24689         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24690         to an UTF-8 locale.
24691         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24692         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24693         Reported by Eric Blake.
24694
24695 2010-10-21  Bruno Haible  <bruno@clisp.org>
24696
24697         nl_langinfo test: Avoid test failure on NetBSD 5.
24698         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24699         Reported by Eric Blake.
24700
24701 2010-10-21  Eric Blake  <eblake@redhat.com>
24702
24703         c-stack: work around libsigsegv 2.8 bug
24704         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24705         overflow on at least PowerPC64.
24706
24707 2010-10-17  Bruno Haible  <bruno@clisp.org>
24708
24709         userspec: Drop redundant file.
24710         * modules/userspec (Files): Remove lib/inttostr.h.
24711
24712 2010-10-17  Bruno Haible  <bruno@clisp.org>
24713
24714         nl_langinfo tests: Silence some warnings.
24715         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24716         Reported by Jim Meyering.
24717
24718 2010-10-17  Bruno Haible  <bruno@clisp.org>
24719
24720         Make use of GCC's attribute __alloc_size__.
24721         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24722         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24723         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24724         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24725         __alloc_size__.
24726         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24727         Suggested by Jim Meyering.
24728
24729 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24730
24731         bootstrap: anchor .gitignore entries.
24732         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24733         with...
24734         (insert_vc_ignore): ... this new function, which prepends `/' to
24735         all .gitignore entries before passing them to
24736         insert_sorted_if_absent.
24737
24738 2010-10-16  Bruno Haible  <bruno@clisp.org>
24739
24740         nextafter: Fix configure check.
24741         * modules/nextafter (configure.ac): Correct expected prototype.
24742
24743 2010-10-16  Bruno Haible  <bruno@clisp.org>
24744
24745         termios: Update documentation.
24746         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24747
24748 2010-10-16  Bruno Haible  <bruno@clisp.org>
24749
24750         tests: Make them compile with TinyCC.
24751         * tests/test-strstr.c (main): Remove parentheses around array
24752         initializer.
24753
24754 2010-10-15  Eric Blake  <eblake@redhat.com>
24755
24756         ignore-value: make header idempotent
24757         * lib/ignore-value.h: Add double-inclusion guards.
24758         Reported by Stefan Berger.
24759
24760 2010-10-15  Jim Meyering  <meyering@redhat.com>
24761
24762         GNUmakefile: handle "stable" target, not "major"
24763         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24764         lists in maint.mk and announce-gen.  Without this, "make stable"
24765         would fail to ensure that $(VERSION) is up to date.
24766
24767 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24768
24769         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24770         & co.
24771
24772 2010-10-14  Bruno Haible  <bruno@clisp.org>
24773
24774         vasnprintf: Don't set errno to 0.
24775         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24776         block that sets it to 0.
24777         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24778
24779 2010-10-14  Bruno Haible  <bruno@clisp.org>
24780
24781         socketlib: Fix.
24782         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24783         gl_PREREQ_SYS_H_WINSOCK2.
24784         Reported by Ian Beckwith <ianb@erislabs.net>.
24785
24786 2010-10-13  Jim Meyering  <meyering@redhat.com>
24787
24788         test-select-stdin.c: avoid warn_unused_result warnings
24789         * tests/test-select-stdin.c: Include "macros.h".
24790         ASSERT that read and fflush succeed.
24791
24792 2010-10-13  Jim Meyering  <meyering@redhat.com>
24793
24794         git-version-gen: do require git-VC'd files in cwd
24795         * build-aux/git-version-gen: Reject a git version string
24796         if there are no commits associated with the current directory.
24797         This avoids an unlikely false-positive (unrelated dir whose parent
24798         repository also contains a tag matching v*), as pointed out
24799         by Giuseppe Scrivano in
24800         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24801
24802 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24803
24804         argv-iter: omit nonconforming declaration
24805         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24806         enum arg_iter_err declaration, which doesn't conform to C99.
24807         Solaris 10 cc warns about this.
24808
24809 2010-10-13  Eric Blake  <eblake@redhat.com>
24810
24811         termios: fix compilation on mingw
24812         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24813         (gl_TERMIOS_H): Adjust it on mingw.
24814         * modules/termios (Makefile.am): Substitute new key.
24815         * lib/termios.in.h (includes): Make include_next conditional.
24816         * doc/posix-headers/termios.texi (termios.h): Update
24817         documentation.
24818         Reported by Daniel P. Berrange.
24819
24820 2010-10-13  Jim Meyering  <meyering@redhat.com>
24821
24822         git-version-gen: don't require that .git/ be in the current dir
24823         * build-aux/git-version-gen: Adjust this script so that it works
24824         when run from any working directory beneath the top-level .git/-
24825         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24826         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24827
24828         test-select: avoid warn_unused_result warnings
24829         * tests/test-select.c: Include "macros.h".
24830         ASSERT that each call to read, write, and pipe succeeds.
24831         While not technically required, also check each "close".
24832         * modules/select-tests (Files): Add tests/macros.h.
24833
24834         test-symlinkat: remove declaration of unused local
24835         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24836
24837         test-inttostr: avoid shadowing warnings
24838         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24839         and use malloc rather than the stack for the same reason as
24840         mentioned in the comment justifying the other allocation.
24841
24842 2010-10-11  Bruno Haible  <bruno@clisp.org>
24843
24844         stdlib: Allow multiple gnulib generated replacements to coexist.
24845         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24846         Reported by Sam Steingold <sds@gnu.org>.
24847
24848 2010-10-11  Jim Meyering  <meyering@redhat.com>
24849
24850         fix a documentation typo
24851         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24852
24853 2010-10-11  Eric Blake  <eblake@redhat.com>
24854
24855         futimens: work around Solaris 11 bug
24856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24857         * tests/test-futimens.h (test_futimens): Enhance, rather than
24858         weaken test.
24859         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24860
24861 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24862
24863         Indentation.
24864         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24865         higher-level operators more to the left.
24866
24867 2010-10-11  Jim Meyering  <meyering@redhat.com>
24868
24869         test-futimens: avoid unwarranted test failure on Solaris 5.11
24870         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24871         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24872         because it tries to dereference the NULL name argument.
24873
24874 2010-10-11  Bruno Haible  <bruno@clisp.org>
24875
24876         Indentation.
24877         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24878         indentation.
24879
24880 2010-10-11  Jim Meyering  <meyering@redhat.com>
24881
24882         spawn.in.h: make indentation consistent with parentheses
24883         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24884         Make indentation consistent with parentheses.
24885
24886 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24887
24888         Fix mismatched parens in previous commit
24889         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24890         parens.
24891
24892 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24893
24894         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24895
24896         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24897         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24898         * lib/malloca.c: Include "verify.h".
24899         (verify1): Remove, replacing with a verify call.
24900         * lib/relocwrapper.c (verify1): Likewise.
24901         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24902         Likewise.
24903         * modules/malloca (Depends-on): Add 'verify'.
24904         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24905         * modules/vasnprintf (Depends-on): Add 'verify'.
24906         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24907         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24908         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24909         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24910         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24911         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24912         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24913
24914         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24915
24916         Formerly the style was sometimes 2*X - 1, because the C standard
24917         was wrongly thought to disallow ?: in integral constant expressions.
24918         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24919         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24920         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24921         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24922         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24923         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24924         verify that time_t cannot be floating.
24925
24926 2010-10-08  Eric Blake  <eblake@redhat.com>
24927
24928         time: enforce recent POSIX ruling that time_t is integral
24929         * lib/time.in.h (__time_t_must_be_integral): Detect any
24930         problematic systems, allowing the rest of gnulib to assume POSIX.
24931
24932 2010-10-08  Jim Meyering  <meyering@redhat.com>
24933
24934         fdopendir: fix a bug on systems lacking openat and /proc support
24935         OpenBSD 4.7 is one such system.  The most noticeable effect was
24936         failure of any application making nontrivial use of fts: rm, du,
24937         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24938           ./rm: traversal failed: `a': Bad file descriptor
24939         Debugging that, you see that even though FD 6 was closed just
24940         prior to the opendir call in fd_clone_opendir, its resulting
24941         dir->dd_fd was 8, rather than the expected value of 6:
24942
24943         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24944         93                close (fd);
24945         (gdb) n
24946         94                dir = fd_clone_opendir (dupfd);
24947         (gdb) n
24948         95                saved_errno = errno;
24949         (gdb) p dir->dd_fd
24950         $11 = 8
24951
24952         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24953         The problem is that on OpenBSD, fd_clone_opendir has to resort
24954         to using the old-style save/restore CWD mechanism, due to its
24955         lack of openat/proc support, and *that* would steal the FD (6)
24956         that opendir was supposed to use.
24957
24958         The fix is to squirrel away the desired FD so that save_cwd uses a
24959         different one, and then free the dest FD right before calling opendir.
24960         That guarantees opendir will use the required file descriptor.
24961
24962         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24963
24964 2010-10-08  Bruno Haible  <bruno@clisp.org>
24965
24966         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24967         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24968
24969 2010-10-08  Bruno Haible  <bruno@clisp.org>
24970
24971         nanosleep: Make replacement POSIX compliant.
24972         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24973         is out of range.
24974         Reported by Jim Meyering.
24975
24976 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24977
24978         bootstrap: add hook for altering gnulib.mk, for Bison
24979         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24980         the Bison bootstrapping process can rewrite file names and variables
24981         in this file before later parts of 'bootstrap' use the file.
24982         Bison wants to include lib/gnulib.mk from the top-level makefile,
24983         so it needs the file names in this file to be relative to the top
24984         level, not relative to lib; plus it needs variable names to be
24985         rewritten.
24986         (slurp): Use the new function.
24987
24988         bootstrap: reformat for readability
24989         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24990
24991 2010-10-08  Eric Blake  <eblake@redhat.com>
24992
24993         docs: update cygwin progress
24994         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24995         1.7.7.
24996         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24997         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24998         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24999         * doc/posix-functions/carg.texi (carg): Likewise.
25000         * doc/posix-functions/cargf.texi (cargf): Likewise.
25001         * doc/posix-functions/casin.texi (casin): Likewise.
25002         * doc/posix-functions/casinf.texi (casinf): Likewise.
25003         * doc/posix-functions/casinh.texi (casinh): Likewise.
25004         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25005         * doc/posix-functions/catan.texi (catan): Likewise.
25006         * doc/posix-functions/catanf.texi (catanf): Likewise.
25007         * doc/posix-functions/catanh.texi (catanh): Likewise.
25008         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25009         * doc/posix-functions/ccos.texi (ccos): Likewise.
25010         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25011         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25012         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25013         * doc/posix-functions/cexp.texi (cexp): Likewise.
25014         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25015         * doc/posix-functions/cimag.texi (cimag): Likewise.
25016         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25017         * doc/posix-functions/clog.texi (clog): Likewise.
25018         * doc/posix-functions/clogf.texi (clogf): Likewise.
25019         * doc/posix-functions/conj.texi (conj): Likewise.
25020         * doc/posix-functions/conjf.texi (conjf): Likewise.
25021         * doc/posix-functions/cpow.texi (cpow): Likewise.
25022         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25023         * doc/posix-functions/cproj.texi (cproj): Likewise.
25024         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25025         * doc/posix-functions/creal.texi (creal): Likewise.
25026         * doc/posix-functions/crealf.texi (crealf): Likewise.
25027         * doc/posix-functions/csin.texi (csin): Likewise.
25028         * doc/posix-functions/csinf.texi (csinf): Likewise.
25029         * doc/posix-functions/csinh.texi (csinh): Likewise.
25030         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25031         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25032         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25033         * doc/posix-functions/ctan.texi (ctan): Likewise.
25034         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25035         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25036         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25037         * doc/posix-headers/complex.texi (complex.h): Likewise.
25038
25039 2010-10-07  Jim Meyering  <meyering@redhat.com>
25040
25041         parse-datetime: avoid compilation failure on OpenBSD 4.7
25042         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25043         This works around a compilation failure on OpenBSD 4.7:
25044         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25045
25046 2010-10-07  Eric Blake  <eblake@redhat.com>
25047
25048         docs: update cygwin progress
25049         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25050         1.7.6.
25051         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25052         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25053         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25054         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25055         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25056         Likewise.
25057         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25058         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25059         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25060         Likewise.
25061         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25062         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25063         Likewise.
25064         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25065         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25066         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25067         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25068         Likewise.
25069         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25070         Likewise.
25071         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25072
25073         docs: update parse-datetime history
25074         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25075         documentation of this function's history and alternatives.
25076
25077         cygwin: use more robust version check
25078         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25079         exclude an eventual cygwin 1.9.1.
25080         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25081         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25082         (gl_FUNC_STRCASESTR): Likewise.
25083         Reported by Bruno Haible.
25084
25085 2010-10-06  Bruno Haible  <bruno@clisp.org>
25086
25087         string, sys_select: Avoid #including large headers unless necessary.
25088         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25089         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25090         OSF/1, BeOS, Haiku.
25091         Reported by Jim Meyering.
25092
25093 2010-10-05  Eric Blake  <eblake@redhat.com>
25094
25095         memmem, strstr, strcasestr: fix bug with long periodic needle
25096         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25097         periodic needle having false positive.
25098         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25099         and cygwin 1.7.7.
25100         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25102         (gl_FUNC_STRCASESTR): Likewise.
25103         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25104         * tests/test-memmem.c (main): Expose the bug.
25105         * tests/test-strcasestr.c (main): Likewise.
25106         * tests/test-strstr.c (main): Likewise.
25107         * tests/test-c-strcasestr.c (main): Likewise.
25108         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25109         * doc/posix-functions/strstr.texi (strstr): Likewise.
25110         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25111         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25112
25113 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25114
25115         parse-datetime: do some more renaming
25116         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25117         parse_datetime, not get_date.  Mention the renaming.
25118         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25119         in comments.
25120         * m4/bison.m4: Likewise.
25121
25122 2010-10-05  Eric Blake  <eblake@redhat.com>
25123
25124         parse-datetime: better name than get_date
25125         * NEWS: Reword the deprecation notice.
25126         * modules/get_date: Rename to modules/parse-datetime.
25127         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25128         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25129         * lib/get_date.y: Rename to lib/parse-datetime.y.
25130         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25131         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25132         * doc/getdate.texi: Provide fallback wrapper.
25133         * lib/getdate.h: Move guts, and wrap...
25134         * lib/parse-datetime.h: ...new file.
25135         * lib/parse-datetime.y (get_date): Rename...
25136         (parse_datetime): ...to this.
25137         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25138         (gl_PARSE_DATETIME): ...to this.
25139         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25140         documentation.
25141         * modules/getdate (Files): Provide fallback docs and header.
25142         (Notice, Depends-on): Update references.
25143         * tests/test-parse-datetime.c: Likewise.
25144         * DEPENDENCIES: Likewise.
25145         * MODULES.html.sh (Date and time <time.h>): Likewise.
25146         * doc/parse-datetime.texi (Date input formats)
25147         (Authors of parse_datetime): Likewise.
25148         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25149         (Include): Likewise.
25150         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25151         * gnulib-tool: Likewise.
25152         * m4/bison.m4 (gl_BISON): Likewise.
25153         Suggested by Bruno Haible.
25154
25155 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25156
25157         more ports to Solaris tr, which needs [] around ranges
25158         * gnulib-tool: Solaris tr needs [] around ranges.
25159         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25160         * tests/test-pipe-filter-gi1.c (main): Likewise.
25161         * tests/test-pipe-filter-ii1.c (main): Likewise.
25162
25163 2010-10-05  Eric Blake  <eblake@redhat.com>
25164
25165         bootstrap: fix Solaris regression
25166         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25167         around ranges.
25168         Reported by Pádraig Brady.
25169
25170         bootstrap: work with pkg-config
25171         * build-aux/bootstrap (check_versions): Also transliterate - in
25172         prerequisite name.
25173         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25174         prerequisites that were already found, to avoid confusion.
25175         Reported by Justin Clift.
25176
25177         faccessat: remove unused wrappers
25178         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25179         presence of these wrappers dragged in -lgen on Solaris.
25180         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25181
25182 2010-10-05  Jim Meyering  <meyering@redhat.com>
25183
25184         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25185         * Makefile (sc_pragma_columns): New syntax-check rule.
25186
25187 2010-10-04  Bruno Haible  <bruno@clisp.org>
25188
25189         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25190         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25191         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25192         Reported by Bruce Korb and Eric Blake.
25193
25194 2010-10-04  Bruno Haible  <bruno@clisp.org>
25195
25196         threadlib: Make option --with-libpth-prefix work.
25197         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25198         use $LIBPTH, not just -lpth.
25199
25200 2010-10-04  Bruno Haible  <bruno@clisp.org>
25201
25202         Avoid line length limitation from HP NonStop system header files.
25203         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25204         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25205         * lib/ctype.in.h: Likewise.
25206         * lib/dirent.in.h: Likewise.
25207         * lib/errno.in.h: Likewise.
25208         * lib/fcntl.in.h: Likewise.
25209         * lib/float.in.h: Likewise.
25210         * lib/getopt.in.h: Likewise.
25211         * lib/iconv.in.h: Likewise.
25212         * lib/inttypes.in.h: Likewise.
25213         * lib/langinfo.in.h: Likewise.
25214         * lib/locale.in.h: Likewise.
25215         * lib/math.in.h: Likewise.
25216         * lib/netdb.in.h: Likewise.
25217         * lib/netinet_in.in.h: Likewise.
25218         * lib/poll.in.h: Likewise.
25219         * lib/pthread.in.h: Likewise.
25220         * lib/pty.in.h: Likewise.
25221         * lib/sched.in.h: Likewise.
25222         * lib/se-selinux.in.h: Likewise.
25223         * lib/search.in.h: Likewise.
25224         * lib/signal.in.h: Likewise.
25225         * lib/spawn.in.h: Likewise.
25226         * lib/stdarg.in.h: Likewise.
25227         * lib/stddef.in.h: Likewise.
25228         * lib/stdint.in.h: Likewise.
25229         * lib/stdio.in.h: Likewise.
25230         * lib/stdlib.in.h: Likewise.
25231         * lib/string.in.h: Likewise.
25232         * lib/strings.in.h: Likewise.
25233         * lib/sys_file.in.h: Likewise.
25234         * lib/sys_ioctl.in.h: Likewise.
25235         * lib/sys_select.in.h: Likewise.
25236         * lib/sys_socket.in.h: Likewise.
25237         * lib/sys_stat.in.h: Likewise.
25238         * lib/sys_time.in.h: Likewise.
25239         * lib/sys_times.in.h: Likewise.
25240         * lib/sys_utsname.in.h: Likewise.
25241         * lib/sys_wait.in.h: Likewise.
25242         * lib/sysexits.in.h: Likewise.
25243         * lib/termios.in.h: Likewise.
25244         * lib/time.in.h: Likewise.
25245         * lib/unistd.in.h: Likewise.
25246         * lib/wchar.in.h: Likewise.
25247         * lib/wctype.in.h: Likewise.
25248         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25249         * modules/ctype (Makefile.am): Likewise.
25250         * modules/dirent (Makefile.am): Likewise.
25251         * modules/errno (Makefile.am): Likewise.
25252         * modules/fcntl-h (Makefile.am): Likewise.
25253         * modules/float (Makefile.am): Likewise.
25254         * modules/getopt-posix (Makefile.am): Likewise.
25255         * modules/iconv-h (Makefile.am): Likewise.
25256         * modules/inttypes (Makefile.am): Likewise.
25257         * modules/langinfo (Makefile.am): Likewise.
25258         * modules/locale (Makefile.am): Likewise.
25259         * modules/math (Makefile.am): Likewise.
25260         * modules/netdb (Makefile.am): Likewise.
25261         * modules/netinet_in (Makefile.am): Likewise.
25262         * modules/poll-h (Makefile.am): Likewise.
25263         * modules/pthread (Makefile.am): Likewise.
25264         * modules/pty (Makefile.am): Likewise.
25265         * modules/sched (Makefile.am): Likewise.
25266         * modules/search (Makefile.am): Likewise.
25267         * modules/selinux-h (Makefile.am): Likewise.
25268         * modules/signal (Makefile.am): Likewise.
25269         * modules/spawn (Makefile.am): Likewise.
25270         * modules/stdarg (Makefile.am): Likewise.
25271         * modules/stddef (Makefile.am): Likewise.
25272         * modules/stdint (Makefile.am): Likewise.
25273         * modules/stdio (Makefile.am): Likewise.
25274         * modules/stdlib (Makefile.am): Likewise.
25275         * modules/string (Makefile.am): Likewise.
25276         * modules/strings (Makefile.am): Likewise.
25277         * modules/sys_file (Makefile.am): Likewise.
25278         * modules/sys_ioctl (Makefile.am): Likewise.
25279         * modules/sys_select (Makefile.am): Likewise.
25280         * modules/sys_socket (Makefile.am): Likewise.
25281         * modules/sys_stat (Makefile.am): Likewise.
25282         * modules/sys_time (Makefile.am): Likewise.
25283         * modules/sys_times (Makefile.am): Likewise.
25284         * modules/sys_utsname (Makefile.am): Likewise.
25285         * modules/sys_wait (Makefile.am): Likewise.
25286         * modules/sysexits (Makefile.am): Likewise.
25287         * modules/termios (Makefile.am): Likewise.
25288         * modules/time (Makefile.am): Likewise.
25289         * modules/unistd (Makefile.am): Likewise.
25290         * modules/wchar (Makefile.am): Likewise.
25291         * modules/wctype (Makefile.am): Likewise.
25292
25293 2010-10-04  Bruno Haible  <bruno@clisp.org>
25294
25295         read-file tests: Avoid a test failure on NonStop Kernel.
25296         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25297         a regular file.
25298         Reported by Joachim Schmitz <schmitz@hp.com>.
25299
25300 2010-10-03  Bruno Haible  <bruno@clisp.org>
25301
25302         gnulib-tool: Fixes for --create-testdir with --libtool.
25303         * gnulib-tool (func_get_automake_snippet): Don't augment
25304         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25305         an executable.
25306         (func_create_testdir): Handle module 'alloca' like func_import.
25307         Reported by Bruce Korb <bruce.korb@gmail.com>.
25308
25309 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25310
25311         Avoid some lines longer than 80 characters.
25312         * lib/stdint.in.h: Break long comment lines.
25313         * lib/math.in.h: Likewise.
25314         (_GL_NUM_UINT_WORDS): New macro, for readability.
25315         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25316         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25317         * lib/stdlib.in.h: Likewise.
25318         * lib/spawn.in.h: Likewise.
25319         * lib/sys_socket.in.h: Update an URL.
25320         * lib/sys_stat.in.h: Break long line.
25321
25322 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25323
25324         Improve pmccabe2html.
25325         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25326         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25327         when the sources change. Remove the line in the HTML about "Used
25328         ranges" (which implied that there might be other unused ranges),
25329         rename "Resume" to "Summary" (easier to understand for more users).
25330         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25331         styles, and some unnecessary blank lines.
25332
25333 2010-10-03  Bruno Haible  <bruno@clisp.org>
25334             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25335
25336         acl: Add support for ACLs on NonStop Kernel.
25337         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25338         Check whether the function aclsort() exists.
25339         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25340         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25341         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25342         (acl_nontrivial [HAVE_ACLSORT]: New function.
25343         (file_has_acl): Implement for NonStop Kernel.
25344         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25345         (qset_acl): Implement for NonStop Kernel.
25346         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25347         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25348         (main): Implement for NonStop Kernel.
25349         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25350         Kernel. Handle this flavor.
25351         * tests/test-set-mode-acl.sh: Likewise.
25352         * tests/test-copy-acl.sh: Likewise.
25353         * tests/test-copy-file.sh: Likewise.
25354
25355 2010-10-03  Bruno Haible  <bruno@clisp.org>
25356
25357         Info about ACLs on NonStop Kernel.
25358         * doc/acl-resources.txt: Add info about NonStop Kernel.
25359         References by Joachim Schmitz <schmitz@hp.com>.
25360
25361 2010-10-02  Bruno Haible  <bruno@clisp.org>
25362
25363         Define missing EDQUOT on NonStop Kernel.
25364         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25365         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25367         missing.
25368         * doc/posix-headers/errno.texi: Mention the NSK bug.
25369         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25370         Reported by Joachim Schmitz <schmitz@hp.com>.
25371
25372 2010-10-02  Bruno Haible  <bruno@clisp.org>
25373
25374         Update doc for POSIX:2008.
25375         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25376         Update URL of POSIX specification.
25377
25378 2010-10-02  Bruno Haible  <bruno@clisp.org>
25379
25380         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25381         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25382         from gnulib, not from Automake.
25383
25384 2010-10-02  Bruno Haible  <bruno@clisp.org>
25385
25386         New module 'system-posix'.
25387         * modules/system-posix: New file.
25388         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25389         module is present.
25390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25391         GNULIB_SYSTEM_POSIX.
25392         * modules/stdlib (Depends-on): Remove sys_wait.
25393         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25394         * doc/posix-functions/system.texi: Mention the new module.
25395         * doc/posix-headers/stdlib.texi: Likewise.
25396         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25397         define test_sys_wait_macros to a no-op.
25398         Reported by Sam Steingold <sds@gnu.org>.
25399
25400 2010-09-30  Bruno Haible  <bruno@clisp.org>
25401
25402         More renaming from 'getdate' to 'get_date'.
25403         * doc/get_date.texi: Renamed from doc/getdate.texi.
25404         * modules/get_date (Files): Update.
25405         * MODULES.html.sh (Date and time <time.h>): Update.
25406         * DEPENDENCIES: Update.
25407         * gnulib-tool: Update comment.
25408         * m4/bison.m4 (gl_BISON): Likewise.
25409         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25410
25411 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25412
25413         bootstrap: support ACLOCAL_FLAGS during aclocal
25414         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25415         can add additional -I dir for third-party .m4 files.
25416
25417 2010-09-30  Eric Blake  <eblake@redhat.com>
25418
25419         bootstrap: use glibtoolize on MacOS
25420         * build-aux/bootstrap (check_versions): Convert libtool into
25421         libtoolize.
25422         (tool search): Move libtool check earlier, and look for
25423         glibtoolize for MacOS.
25424         (gnulib_tool_options): Auto-add --libtool when appropriate.
25425         Reported by Justin Clift.
25426
25427         poll: fix typo that broke test on MacOS
25428         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25429         Reported by Justin Clift.
25430
25431         getdate: rename to get_date
25432         Note: getdate.h is not renamed, to minimize client impact.
25433         * modules/getdate: Mark obsolete.  Move old contents...
25434         * modules/get_date: ...to new module name.
25435         * modules/getdate-tests: Move...
25436         * modules/get_date-tests: ...here.
25437         * m4/getdate.m4: Move...
25438         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25439         * lib/getdate.y: Move...
25440         * lib/get_date.y: ...here.
25441         * tests/test-getdate.c: Move...
25442         * tests/test-get_date.c: ...here.
25443         * doc/posix-functions/getdate.texi (getdate): Update name.
25444         * NEWS: Mention the change.
25445
25446 2010-09-29  Bruno Haible  <bruno@clisp.org>
25447
25448         Separate the module 'waitpid' from the module 'sys_wait'.
25449         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25450         present.
25451         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25452         gl_MODULE_INDICATOR_FOR_TESTS.
25453         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25454         * modules/sys_wait (Depends-on): Remove waitpid.
25455         (Makefile.am): Substitute GNULIB_WAITPID.
25456         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25457         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25458         signature only if the 'waitpid' module is present.
25459         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25460         * NEWS: Mention the change.
25461         * modules/grantpt (Depends-on): Add waitpid.
25462         * modules/wait-process (Depends-on): Likewise.
25463
25464 2010-09-29  Bruno Haible  <bruno@clisp.org>
25465
25466         More tests for module 'sys_wait'.
25467         * modules/sys_wait-c++-tests: New file.
25468         * tests/test-sys_wait-c++.cc: New file.
25469         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25470         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25471
25472 2010-09-29  Bruno Haible  <bruno@clisp.org>
25473
25474         New module 'waitpid'.
25475         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25476         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25477         Don't include <process.h>.
25478         (waitpid): Declare only, using modern idiom.
25479         * m4/waitpid.m4: New file.
25480         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25481         * modules/waitpid: New file.
25482         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25483         (Makefile.am): Update.
25484         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25485
25486 2010-09-28  Bruno Haible  <bruno@clisp.org>
25487
25488         poll: Assume ANSI C.
25489         * lib/poll.c (poll): Use an ANSI C declaration.
25490
25491 2010-09-28  Bruno Haible  <bruno@clisp.org>
25492
25493         poll-h: Create poll.h on all platforms.
25494         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25495         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25496         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25497         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25498         (gl_REPLACE_POLL_H): Don't set POLL_H.
25499         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25500         * modules/poll-h (Depends-on): Add include_next.
25501         (Makefile.am): Create poll.h unconditionally. Substitute also
25502         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25503
25504 2010-09-28  Bruno Haible  <bruno@clisp.org>
25505
25506         Tests for module 'poll-h'.
25507         * modules/poll-h-c++-tests: New file.
25508         * tests/test-poll-h-c++.cc: New file.
25509
25510         Tests for module 'poll-h'.
25511         * modules/poll-h-tests: New file.
25512         * tests/test-poll-h.c: New file.
25513
25514 2010-09-28  Bruno Haible  <bruno@clisp.org>
25515
25516         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25517         * modules/poll-h (Depends-on): Add 'extensions'.
25518
25519 2010-09-28  Bruno Haible  <bruno@clisp.org>
25520
25521         New module 'poll-h'.
25522         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25523         (poll): Use modern idiom.
25524         * modules/poll-h: New file.
25525         * modules/poll (Files): Remove lib/poll.in.h.
25526         (Depends-on): Add poll-h.
25527         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25528         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25529         * m4/poll_h.m4: New file.
25530         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25531         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25532         and invoke gl_REPLACE_POLL_H.
25533         * lib/poll.c: Use common idiom.
25534         * tests/test-poll.c: Likewise.
25535         * doc/posix-headers/poll.texi: Mention the poll-h module.
25536         Suggested by Eric Blake.
25537
25538 2010-09-26  Bruno Haible  <bruno@clisp.org>
25539
25540         sys_wait: Implement WSTOPSIG.
25541         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25542         Reported by Simon Josefsson.
25543
25544 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25545
25546         stdlib, sys_wait: Avoid compilation error on mingw.
25547         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25548
25549 2010-09-26  Bruno Haible  <bruno@clisp.org>
25550
25551         stdlib tests: Avoid code duplication.
25552         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25553         * modules/sys_wait-tests (Files): Likewise.
25554         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25555         * tests/test-stdlib.c: Include test-sys_wait.h.
25556         (main): Invoke test_sys_wait_macros.
25557         * tests/test-sys_wait.c: Include test-sys_wait.h.
25558         (main): Invoke test_sys_wait_macros.
25559
25560 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25561
25562         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25563         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25564         sure Windows sockets are working before calling getaddrinfo.
25565         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25566         * doc/gnulib.texi (Windows sockets): Fix typo.
25567
25568 2010-09-25  Bruno Haible  <bruno@clisp.org>
25569
25570         Tests for module 'regex-quote'.
25571         * modules/regex-quote-tests: New file.
25572         * tests/test-regex-quote.c: New file.
25573
25574         New module 'regex-quote'.
25575         * lib/regex-quote.h: New file.
25576         * lib/regex-quote.c: New file.
25577         * modules/regex-quote: New file.
25578         Suggested by Reuben Thomas <rrt@sc3d.org>.
25579
25580 2010-09-24  Bruno Haible  <bruno@clisp.org>
25581
25582         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25583         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25584
25585 2010-09-23  Bruno Haible  <bruno@clisp.org>
25586
25587         setenv: Relax license.
25588         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25589         Blake.
25590         Requested by Eric Blake.
25591
25592 2010-09-22  Bruno Haible  <bruno@clisp.org>
25593
25594         termios: Relax license.
25595         * modules/termios (License): Change to LGPLv2+.
25596         Requested by Eric Blake.
25597
25598 2010-09-22  Bruno Haible  <bruno@clisp.org>
25599
25600         threadlib: Allow the package to change the default to 'no'.
25601         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25602         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25603         Reported by Paul Eggert.
25604
25605 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25606             Bruno Haible  <bruno@clisp.org>
25607
25608         Fix endless loop in mbmemcasecoll.
25609         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25610         byte.
25611         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25612
25613 2010-09-22  Bruno Haible  <bruno@clisp.org>
25614
25615         Tests for module 'memcoll'.
25616         * modules/memcoll-tests: New file.
25617         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25618
25619         memcoll, xmemcoll: Clarify size vs. length.
25620         * modules/memcoll.c (memcoll0): Clarify specification.
25621         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25622         passed to collate_error.
25623
25624 2010-09-22  Bruno Haible  <bruno@clisp.org>
25625
25626         Tests for module 'memcasecmp'.
25627         * modules/memcasecmp-tests: New file.
25628         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25629
25630 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25631
25632         * lib/pthread.in.h: Add split double-inclusion guard, and include
25633         system <pthread.h> if there is one.  Use @@-style as in other
25634         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25635         pthread.h doesn't.
25636         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25637         (pthread_mutexattr_settype, pthread_mutex_trylock):
25638         New static inline functions, if there's no system <pthread.h>.
25639         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25640         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25641         Approximate with mutexes if the system lacks spinlocks, as in
25642         MacOS.
25643         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25644         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25645         @@-style.  Check for spinlocks separately.
25646         (gl_PTHREAD_DEFAULTS): New macro.
25647         * modules/pthread: Redo to use a more typical style for in.h files.
25648
25649 2010-09-21  Eric Blake  <eblake@redhat.com>
25650
25651         net_if: enhance tests
25652         * tests/test-net_if.c (main): Move signature checks earlier.
25653         Print failures to stderr.
25654         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25655         Document the bug that we do not yet fix.
25656
25657 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25658
25659         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25660         about gnulib, not GSS.
25661
25662 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25663
25664         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25665         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25666         for Emacs.
25667         * build-aux/pmccabe2html: Make Makefile.am example code more
25668         cut-and-paste friendly.
25669
25670 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25671
25672         * tests/test-net_if.c: New file.
25673         * modules/net_if-tests: New file.
25674
25675 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25676
25677         pthread: add pthread_spin_destroy
25678         * lib/pthread.in.h (pthread_spin_destroy): New function.
25679
25680 2010-09-19  Bruno Haible  <bruno@clisp.org>
25681
25682         gnulib-tool: Fix --help output.
25683         * gnulib-tool (func_usage): Fix help message.
25684         Reported by Reuben Thomas <rrt@sc3d.org>.
25685
25686 2010-09-18  Jim Meyering  <meyering@redhat.com>
25687
25688         maint.mk: avoid unexpanded \n in two diagnostics
25689         * top/maint.mk (sc_prohibit_always_true_header_tests):
25690         Don't use a literal \n in a halt=... assignment.  It would not be
25691         expanded, and the two \n bytes would appear in the diagnostic output
25692         rather than the desired newline.  Use halt=$$(printf ... instead.
25693         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25694
25695 2010-09-18  Bruno Haible  <bruno@clisp.org>
25696
25697         netinet_in: Doc tweak.
25698         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25699         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25700
25701 2010-09-18  Jim Meyering  <meyering@redhat.com>
25702
25703         init.sh: correct an outdated comment
25704         * tests/init.sh (create_exe_shims_):  s/function/alias/
25705
25706         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25707         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25708         a file named "*.exe" is removed between the glob expansion and the
25709         processing of that oddly named file.
25710
25711 2010-09-17  Eric Blake  <eblake@redhat.com>
25712
25713         mirbsd: add some more support
25714         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25715         in BSD family.
25716         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25717         devices as OpenBSD.
25718         * m4/host-os.m4 (mirbsd): Add MirBSD.
25719
25720         tests: fix unportable assumption on sys/wait.h
25721         * tests/test-sys_wait.c (main): Relax test.
25722         * tests/test-stdlib.c (main): Likewise.
25723
25724         init.sh: accomodate directory with no .exes
25725         * tests/init.sh: Accomodate directory containing only scripts.
25726
25727         tests: avoid compiler warning
25728         * tests/test-stdlib.c (main): Use the variable.
25729
25730         fdutimens, fdutimensat: update signature, again
25731         * lib/utimens.h (gl_futimens): Delete, and move signature...
25732         (fdutimens): ...here.
25733         (fdutimensat): Rearrange signature.
25734         (lutimensat): Rename variable for clarity.
25735         * lib/fdutimensat.c (fdutimensat): Update signature.
25736         * lib/utimens.c (fdutimens): Likewise.
25737         (gl_futimens): Delete.
25738         (utimens, lutimens): Update callers.
25739         * lib/futimens.c (futimens): Likewise.
25740         * tests/test-fdutimensat.c: Likewise.
25741         * tests/test-utimens.c: Likewise.
25742         * tests/test-futimens.h: Update comment.
25743         * NEWS: Mention this.
25744         Suggested by Paul Eggert.
25745
25746 2010-09-17  Bruno Haible  <bruno@clisp.org>
25747
25748         Take over the maintenance of some older macros from Autoconf.
25749         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25750         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25751         GNU Autoconf.
25752         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25753         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25754
25755 2010-09-17  Eric Blake  <eblake@redhat.com>
25756
25757         fdutimensat: drop atflag validation
25758         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25759         with valid fd, to close a race scenario where futimens is
25760         unsupported and FILE was replaced by a symlink.
25761         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25762         accordingly.
25763         Suggested by Paul Eggert.
25764
25765 2010-09-16  Bruno Haible  <bruno@clisp.org>
25766
25767         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25768         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25769
25770 2010-09-16  Bruno Haible  <bruno@clisp.org>
25771
25772         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25773         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25774         login_tty exists.
25775         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25776
25777 2010-09-16  Bruno Haible  <bruno@clisp.org>
25778
25779         login_tty: Make the replacement code work on BSD systems.
25780         * lib/login_tty.c: Include <sys/ioctl.h>.
25781         (login_tty): Use ioctl TIOCSCTTY when available.
25782         * modules/login_tty (Depends-on): Add sys_ioctl.
25783         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25784
25785 2010-09-16  Bruno Haible  <bruno@clisp.org>
25786
25787         login_tty: Stricter unit test.
25788         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25789         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25790         and tcgetsid() after login_tty.
25791         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25792
25793 2010-09-16  Bruno Haible  <bruno@clisp.org>
25794
25795         New module 'tcgetsid'.
25796         * lib/tcgetsid.c: New file.
25797         * m4/tcgetsid.m4: New file.
25798         * modules/tcgetsid: New file.
25799         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25800         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25801         GNULIB_TCGETSID, HAVE_TCGETSID.
25802         * lib/termios.in.h: Include <sys/types.h>.
25803         (tcgetsid): New declaration.
25804         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25805         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25806         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25807         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25808
25809 2010-09-16  Bruno Haible  <bruno@clisp.org>
25810
25811         Tests for module 'termios'.
25812         * modules/termios-c++-tests: New file.
25813         * modules/termios-tests: New file.
25814         * tests/test-termios-c++.cc: New file.
25815         * tests/test-termios.c: New file.
25816
25817         New module 'termios'.
25818         * modules/termios: New file.
25819         * lib/termios.in.h: New file.
25820         * m4/termios_h.m4: New file.
25821         * doc/posix-headers/termios.texi: Mention the new module.
25822
25823 2010-09-16  Eric Blake  <eblake@redhat.com>
25824
25825         fdutimensat: add an atflag parameter
25826         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25827         * lib/utimens.h (fdutimensat): Update prototype.
25828         * tests/test-fdutimensat.c: Adjust test to match.
25829         * NEWS: Document the change.
25830         Suggested by Paul Eggert.
25831
25832 2010-09-16  Bruno Haible  <bruno@clisp.org>
25833
25834         Fix typos in comments.
25835         * lib/striconveh.h: Fix typo in comment.
25836         * lib/login_tty.c (login_tty): Likewise.
25837
25838 2010-09-15  Bruno Haible  <bruno@clisp.org>
25839
25840         stdlib: clarify MirBSD WEXITSTATUS bug
25841         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25842         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25843
25844 2010-09-15  Eric Blake  <eblake@redhat.com>
25845
25846         stdlib: work around MirBSD WEXITSTATUS bug
25847         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25848         * modules/stdlib (Depends-on): Add sys_wait.
25849         * tests/test-sys_wait.c (main): Enhance test.
25850         * tests/test-stdlib.c (main): Likewise.
25851         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25852
25853         docs: mention MacOS issue with WEXITSTATUS(constant)
25854         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25855         issue.
25856         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25857
25858         strnlen: add tests
25859         * modules/strnlen-tests: New file.
25860         * tests/test-strnlen.c: Likewise.
25861
25862 2010-09-14  Bruno Haible  <bruno@clisp.org>
25863
25864         unistr/base: Avoid link errors when module 'libunistring' is also used.
25865         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25866         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25867         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25868         Declare also when HAVE_LIBUNISTRING is set.
25869         Reported by Pádraig Brady <P@draigbrady.com>.
25870
25871 2010-09-14  Eric Blake  <eblake@redhat.com>
25872
25873         test-rawmemchr: make more robust
25874         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25875         (Depends-on, configure.ac): Add needed prerequisites to use it.
25876         * modules/memchr-tests (Files, Depends-on, configure.ac):
25877         Likewise, to avoid implicit reliance on memchr module prereqs.
25878         * tests/test-memchr.c (main): Ensure proper masking.
25879         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25880         reads.
25881
25882         memchr: detect glibc Alpha bug
25883         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25884         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25885         Alpha.
25886         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25887         * tests/test-memchr.c (main): Enhance test.
25888         Reported by Nelson H. F. Beebe.
25889
25890 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25891
25892         fts, getcwd, glob: audit for dirfd returning -1
25893         * lib/fts.c (opendir): Remove #define; no longer used.
25894         (opendirat): New arg PDIR_FD.  All callers changed.
25895         (fts_build, _opendir2): Use new opendirat to avoid the need for
25896         dirfd, or for checking whether dirfd returns a negative value.
25897         Don't use opendir; always use openat followed by fdopendir.
25898         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25899         it.
25900         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25901         returns -1 here.
25902         * modules/fts (Depends-on): Remove dirfd.
25903         * modules/getcwd (Depends-on): Likewise.
25904
25905 2010-09-13  Eric Blake  <eblake@redhat.com>
25906
25907         float: fix broken MirBSD header
25908         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25909         * doc/posix-headers/float.texi (float.h): Document it.
25910
25911 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25912
25913         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25914         * lib/fts.c (opendirat): New arg extra_flags.
25915         (__opendir2): Use it to avoid following symlinks when opening
25916         a directory, if symlinks are not supposed to be followed.  See
25917         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25918
25919         fdopendir: preserve argument fd before returning
25920         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25921         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25922         (fdopendir): Use them, arranging for FD to be open to the same
25923         directory that it was when it started.  (It might be temporarily
25924         closed while fdopendir is running, so this not thread- or
25925         signal-safe.)  Be careful to do the right thing even when file
25926         descriptors are scarce and dup fails with errno == EMFILE.  See
25927         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25928
25929 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25930
25931         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25932         * NEWS: Document change.
25933         * m4/regex.m4: Disable test for regoff_t size.
25934
25935 2010-09-13  Jim Meyering  <meyering@redhat.com>
25936
25937         fts: don't operate on an invalid file descriptor after failed dup
25938         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25939         negative file descriptor.
25940
25941 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25942
25943         savedir: add streamsavedir, deprecate fdsavedir
25944         * NEWS: Mention deprecation of fdsavedir.
25945         * lib/savedir.c (streamsavedir): New extern function, whose name
25946         ends in "savedir" to be consistent with the others.  This differs
25947         from savedirstream in that it doesn't close its argument.  The
25948         next version of GNU tar will use this instead of fdsavedir, to
25949         avoid some race conditions and conserve file descriptors.
25950         (savedirstream): Reimplement as a wrapper around streamsavedir.
25951         (fdsavedir): Add a comment deprecating this function.  As far as
25952         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25953         * lib/savedir.h (streamsavedir): New decl.
25954         (fdsavedir): Add a comment deprecating this.
25955
25956 2010-09-10  Bruno Haible  <bruno@clisp.org>
25957
25958         langinfo: Fix last commit.
25959         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25960         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25962
25963 2010-09-10  Bruno Haible  <bruno@clisp.org>
25964
25965         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25966         * lib/progreloc.c (O_EXEC): Define fallback.
25967
25968 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25969
25970         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25971         * NEWS: Document recent changes to fcntl-h.
25972         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25973         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25974         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25975         Similarly for O_SEARCH; this last was already true, but not documented.
25976         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25977         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25978         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25979         Likewise.
25980         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25981         is zero, not whether it is defined.
25982         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25983         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25984         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25985
25986 2010-09-10  Bruno Haible  <bruno@clisp.org>
25987
25988         langinfo, nl_langinfo: Fix for IRIX 5.3.
25989         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25990         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25991         HAVE_LANGINFO_YESEXPR.
25992         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25993         HAVE_LANGINFO_YESEXPR.
25994         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25995         HAVE_LANGINFO_T_FMT_AMPM is 0.
25996         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25997         HAVE_LANGINFO_YESEXPR is 0.
25998         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25999         NOEXPR.
26000         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26001         * doc/posix-functions/nl_langinfo.texi: Likewise.
26002         Reported by Eric Blake.
26003
26004 2010-09-10  Bruno Haible  <bruno@clisp.org>
26005
26006         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26007         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26008         on FreeBSD 8.0 and OpenBSD 4.6.
26009         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26010         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26011         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26012         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26013         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26014         ac_includes_default.
26015         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26016
26017 2010-09-09  Eric Blake  <eblake@redhat.com>
26018
26019         strsignal: work around NetBSD bug
26020         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26021         * lib/string.in.h (includes): Likewise.
26022         * doc/posix-functions/strsignal.texi (strsignal): Document the
26023         bug.
26024         Reported by Nelson H. F. Beebe.
26025
26026         gnulib-tool: work with NetBSD /bin/sh
26027         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26028         (func_get_description, func_get_comment, func_get_status)
26029         (func_get_notice, func_get_applicability, func_get_filelist)
26030         (func_get_dependencies, func_get_autoconf_early_snippet)
26031         (func_get_autoconf_snippet, func_get_automake_snippet)
26032         (func_get_include_directive, func_get_link_directive)
26033         (func_get_license, func_get_maintainer, func_import): Avoid
26034         shell syntax errors from parsing syntax extensions.
26035
26036 2010-09-09  Bruno Haible  <bruno@clisp.org>
26037
26038         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26039         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26040         a reliable way to determine whether the 'alias' command works.
26041
26042 2010-09-08  Jim Meyering  <meyering@redhat.com>
26043
26044         init.sh: penalize a set-x-impaired shell; don't disqualify it
26045         * tests/init.sh: Too many shells corrupt application stderr when
26046         you set -x, so we can't afford to disqualify them, since at least
26047         on Irix-6.5, that would disqualify all bourne shells.
26048         Instead, use a two-pass approach.
26049         On the first pass, try to find a shell that meets the stricter
26050         condition that set -x does not corrupt stderr.
26051         If no shell meets the stricter condition, retest each candidate
26052         shell, but without that extra condition.  Finally, when
26053         VERBOSE=yes is requested and set -x might cause trouble, simply
26054         issue a warning and refrain from enabling debug output.
26055
26056 2010-09-08  Eric Blake  <eblake@redhat.com>
26057
26058         unsetenv: fix OpenBSD bug
26059         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26060         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26061         documentation.
26062         Reported by Jim Meyering.
26063
26064         strtod: work around IRIX 6.5 bug
26065         * lib/strtod.c (strtod): Reparse number on shorter string if
26066         exponent parse was invalid.
26067         * tests/test-strtod.c (main): Add check for "0x1p 2".
26068         Reported by Tom G. Christensen.
26069
26070         getopt: optimize previous patch
26071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26072         empty variable.  Speed up awk script.
26073         Reported by Paolo Bonzini.
26074
26075 2010-09-08  Jim Meyering  <meyering@redhat.com>
26076
26077         test.sh: disqualify shells for which set -x corrupts stderr
26078         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26079         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26080         appear in stderr output.  For example, this command:
26081             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26082         prints "P=1" on those two systems:
26083
26084 2010-09-08  Bruno Haible  <bruno@clisp.org>
26085
26086         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26087         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26088         commands, because some shells ignore redirections when there is an
26089         error in the command lookup.
26090         Reported by Eric Blake.
26091
26092 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26093
26094         * lib/regex.h: Fix a mention of `regex_compile' (should be
26095         `re_compile_pattern').
26096         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26097         (re_set_registers): Correct name of parameter in comment.
26098
26099         * doc/regex.texi: Add documentation for missing syntax flags.
26100         Remove commented-out documentation of defunct syntax option
26101         RE_NO_EMPTY_ALTS.
26102         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26103         Add documentation of re_set_registers.
26104         Document trick to re-use a pattern buffer by setting fastmap manually.
26105         Update documentation of struct re_pattern_buffer per public members.
26106         Uncomment documentation of equivalence class operators and
26107         collating symbol operators, since they are now implemented,
26108         Explain leftmost-longest matching in relation to alternatives.
26109         Tidy documentation of substring matching.
26110         Remove POSIX documentation, which is done better in
26111         glibc, and refer the reader there. Keep BSD API documentation, as
26112         that is not readily available elsewhere.
26113
26114 2010-09-07  Eric Blake  <eblake@redhat.com>
26115
26116         getopt: handle POSIXLY_CORRECT set but not exported
26117         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26118         export state of POSIXLY_CORRECT, due to bash set -o posix.
26119         Reported by Dustin J. Mitchell.
26120
26121 2010-09-05  Bruno Haible  <bruno@clisp.org>
26122
26123         gnulib-tool: Highlight the changed options.
26124         * gnulib-tool (func_usage): Display the --import, --add-import,
26125         --remove-import explanations in bold font.
26126
26127 2010-09-06  Karl Berry  <karl@gnu.org>
26128
26129         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26130
26131 2010-09-05  Bruno Haible  <bruno@clisp.org>
26132
26133         uniwidth/width: Update comment.
26134         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26135         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26136
26137 2010-09-05  Bruno Haible  <bruno@clisp.org>
26138
26139         isinf, isnan: Relax license.
26140         * modules/isinf (License): Change from GPL to LGPL, with consent from
26141         Ben Pfaff.
26142         * modules/isnan (License): Likewise.
26143         Requested by Ludovic Courtès.
26144
26145 2010-09-04  Bruno Haible  <bruno@clisp.org>
26146
26147         gnulib-tool: Help migration from --import to --add-import or --update.
26148         * gnulib-tool: Emit a verbose error message when --import is used
26149         without any module name.
26150
26151 2010-09-04  Bruno Haible  <bruno@clisp.org>
26152
26153         Update doc about gnulib-tool.
26154         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26155         'gnulib-tool --update' in more detail.
26156         Reported by Eric Blake.
26157
26158 2010-09-04  Bruno Haible  <bruno@clisp.org>
26159
26160         gnulib-tool: Change --import. New options --add/remove-import.
26161         * gnulib-tool: New options --add-import, --remove-import.
26162         (func_usage): Document them.
26163         (have_associative): Define always.
26164         (func_import): In import mode, don't merge the specified settings with
26165         the cached settings. Implement remove-import mode.
26166         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26167         Explain when to use them versus --import.
26168         (Simple update): Use --add-import instead of --import.
26169         * NEWS: Mention the change.
26170
26171 2010-09-04  Bruno Haible  <bruno@clisp.org>
26172
26173         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26174         separate gnulib.mk.
26175
26176 2010-09-04  Bruno Haible  <bruno@clisp.org>
26177
26178         gnulib-tool: Don't talk about CVS any more.
26179         * gnulib-tool (func_usage, func_import): Write "version control"
26180         instead of CVS.
26181
26182 2010-09-04  Jim Meyering  <meyering@redhat.com>
26183
26184         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26185         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26186         false positives (whose names may be ill-chosen) when searching
26187         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26188         would cause a false-positive.
26189
26190         avoid coreutils "make distcheck" failure
26191         Coreutils tests with an absolute build directory name that contains
26192         a space.  Not quoting this directory name caused a failure.
26193         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26194         * tests/test-vc-list-files-cvs.sh: Likewise.
26195
26196 2010-09-04  Bruno Haible  <bruno@clisp.org>
26197
26198         gnulib-tool: Avoid error when run in a package without Makefile.am.
26199         * gnulib-tool: When collecting the m4dirs in a package that does not
26200         have a Makefile.am, eliminate those directories that contain no
26201         gnulib-cache.m4. Fix expression that counts these directories.
26202
26203 2010-09-04  Bruno Haible  <bruno@clisp.org>
26204
26205         update-copyright test: Improve output when perl is missing or too old.
26206         * tests/test-update-copyright.sh: Move test of Perl version down after
26207         the test whether Perl exists. Provide an explanation relating Perl's
26208         error message to Automake's SKIP: message.
26209
26210 2010-09-04  Bruno Haible  <bruno@clisp.org>
26211
26212         Don't augment PATH in TESTS_ENVIRONMENT.
26213         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26214         set abs_aux_dir instead of augmenting PATH.
26215         * modules/vc-list-files-tests (Makefile.am): Likewise.
26216         * tests/test-update-copyright.sh: Augment PATH here.
26217         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26218         path_prepend_.
26219         * tests/test-vc-list-files-git.sh: Likewise.
26220
26221 2010-09-04  Jim Meyering  <meyering@redhat.com>
26222
26223         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26224         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26225
26226 2010-09-04  Bruno Haible  <bruno@clisp.org>
26227
26228         strdup: Fix compilation error in C++ mode.
26229         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26230         the macro.
26231
26232 2010-09-04  Bruno Haible  <bruno@clisp.org>
26233
26234         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26235         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26236         macro into a function.
26237         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26238
26239 2010-09-04  Bruno Haible  <bruno@clisp.org>
26240
26241         Set PATH_SEPARATOR the same way autoconf does.
26242         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26243         the value of PATH_SEPARATOR the same way autoconf-generated configure
26244         scripts do.
26245         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26246         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26247
26248 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26249
26250         Set PATH_SEPARATOR the same way autoconf does.
26251         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26252         the same way autoconf-generated configure scripts do.
26253         * posix-modules: Likewise.
26254
26255 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26256
26257         hash: fix safe_hasher const typo
26258         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26259         const; otherwise, there is a type error later.
26260
26261 2010-09-02  Jim Meyering  <meyering@redhat.com>
26262
26263         test-update-copyright.sh: require perl 5.8.0
26264         * tests/test-update-copyright.sh: Require 5.8.0,
26265         which Tom G. Christensen has confirmed is adequate,
26266         while 5.6.1 is not.
26267
26268 2010-09-02  Eric Blake  <eblake@redhat.com>
26269
26270         tests: init.sh improvements for re-exec'ing with zsh
26271         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26272         -vx through shell re-exec.
26273         Reported by Tom G. Christensen.
26274
26275         wctype: fix typo in previous commit
26276         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26277         Reported by Ludovic Courtès.
26278
26279 2010-09-02  Jim Meyering  <meyering@redhat.com>
26280
26281         test-update-copyright.sh: skip test if Perl is too old
26282         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26283         Reported by Tom G. Christensen.
26284
26285 2010-09-02  Bruno Haible  <bruno@clisp.org>
26286
26287         wctype: Avoid compilation error on IRIX 6.5.30.
26288         * lib/wctype.in.h (iswblank): Declare with a replacement if
26289         REPLACE_ISWBLANK is set.
26290         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26291         declared. Set REPLACE_ISWBLANK.
26292         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26293         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26294         * doc/posix-headers/wctype.texi: Likewise.
26295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26296
26297 2010-09-01  Bruno Haible  <bruno@clisp.org>
26298
26299         New module 'socketlib'.
26300         * modules/socketlib: New file.
26301         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26302         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26303         * modules/sockets (Depends-on): Add socketlib.
26304         Suggested by Sam Steingold <sds@gnu.org>.
26305
26306 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26307
26308         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26309
26310         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26311         when one needs search access to a directory but not read access.
26312         On systems where it is available, it works in some cases where
26313         O_RDONLY does not, namely on directories that are searchable but
26314         not readable, and which need only to be searchable.  If O_SEARCH
26315         is not available, fall back to the traditional method of using
26316         O_RDONLY.
26317
26318         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26319         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26320         when opening a directory that needs only to be searchable.
26321         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26322         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26323         * lib/openat-proc.c (openat_proc_name): Likewise.
26324         * lib/openat.c (openat_needs_fchdir): Likewise.
26325         * lib/save-cwd.c (save_cwd): Likewise.
26326         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26327
26328 2010-08-28  Bruno Haible  <bruno@clisp.org>
26329
26330         New module 'host-cpu-c-abi'.
26331         * modules/host-cpu-c-abi: New file.
26332         * m4/host-cpu-c-abi.m4: New file, based on part of
26333         clisp/src/m4/general.m4.
26334         Requested by Sam Steingold <sds@gnu.org>.
26335
26336 2010-08-31  Eric Blake  <eblake@redhat.com>
26337         and Jim Meyering  <meyering@redhat.com>
26338
26339         hash: factor, and guard against misbehaving hasher function
26340         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26341         of table->hasher's return value.  Also protect against a hash value
26342         so large that adding it to table->bucket results in a NULL pointer.
26343         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26344         Use it in place of open-coded check-and-abort.
26345
26346 2010-08-30  Bruno Haible  <bruno@clisp.org>
26347
26348         hash: silence spurious clang warning
26349         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26350         Reported by Eric Blake.
26351
26352 2010-08-30  Eric Blake  <eblake@redhat.com>
26353
26354         strstr, memmem, strcasestr: avoid leaked shell message
26355         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26356         FreeBSD.
26357         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26358         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26359
26360         tests: silence clang warning
26361         * tests/test-malloca.c (do_allocation): Avoid dead store.
26362
26363 2010-08-29  Bruno Haible  <bruno@clisp.org>
26364
26365         gettext: Fix recent mistake.
26366         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26367
26368 2010-08-29  Bruno Haible  <bruno@clisp.org>
26369
26370         selinux-h: Offer a --without-selinux option.
26371         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26372         --without-selinux was specified, skip all tests and define
26373         HAVE_SELINUX_SELINUX_H to 0.
26374         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26375         set LIB_SELINUX to empty.
26376         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26377         gl_LIBSELINUX. If --without-selinux was specified, replace
26378         selinux/context.h.
26379         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26380
26381 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26382             Bruno Haible  <bruno@clisp.org>
26383
26384         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26385         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26386         of HAVE_REALLOC.
26387         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26388         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26389         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26390         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26391
26392 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26393             Bruno Haible  <bruno@clisp.org>
26394
26395         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26396         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26397         HAVE_CALLOC.
26398         * lib/xmalloc.c: Update accordingly.
26399         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26400         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26401         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26402
26403 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26404             Bruno Haible  <bruno@clisp.org>
26405
26406         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26407         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26408         HAVE_MALLOC.
26409         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26410         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26411         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26412
26413 2010-08-29  Bruno Haible  <bruno@clisp.org>
26414
26415         Update modules list.
26416         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26417         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26418         (String handling <string.h>): Add astrxfrm.
26419         (File system functions): Add readlinkat.
26420
26421 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26422
26423         Tests for module 'realloc-gnu'.
26424         * modules/realloc-gnu-tests: New file.
26425         * tests/test-realloc-gnu.c: New file.
26426
26427         Tests for module 'calloc-gnu'.
26428         * modules/calloc-gnu-tests: New file.
26429         * tests/test-calloc-gnu.c: New file.
26430
26431         Tests for module 'malloc-gnu'.
26432         * modules/malloc-gnu-tests: New file.
26433         * tests/test-malloc-gnu.c: New file.
26434
26435 2010-08-28  Bruno Haible  <bruno@clisp.org>
26436
26437         Rename module 'realloc' -> 'realloc-gnu'.
26438         * modules/realloc-gnu: New file, copied from modules/realloc.
26439         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26440         obsolete.
26441         * modules/mgetgroups (Depends-on): Update.
26442         * doc/posix-functions/realloc.texi: Update.
26443         * NEWS: Mention the change.
26444
26445         Rename module 'calloc' -> 'calloc-gnu'.
26446         * modules/calloc-gnu: New file, copied from modules/calloc.
26447         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26448         obsolete.
26449         * doc/posix-functions/calloc.texi: Update.
26450         * NEWS: Mention the change.
26451
26452         Rename module 'malloc' -> 'malloc-gnu'.
26453         * modules/malloc-gnu: New file, copied from modules/malloc.
26454         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26455         obsolete.
26456         * modules/argp (Depends-on): Update.
26457         * modules/regex (Depends-on): Update.
26458         * doc/posix-functions/malloc.texi: Update.
26459         * NEWS: Mention the change.
26460
26461 2010-08-28  Eric Blake  <eblake@redhat.com>
26462
26463         pread, pwrite: add missing dependency
26464         * modules/pread (Depends-on): Add extensions.
26465         * modules/pwrite (Depends-on): Likewise.
26466
26467 2010-08-28  Bruno Haible  <bruno@clisp.org>
26468
26469         unistr/u*-strchr: Fix tests dependencies.
26470         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26471         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26472         Reported by Ian Beckwith <ianb@erislabs.net>.
26473
26474 2010-08-28  Bruno Haible  <bruno@clisp.org>
26475
26476         read-file: Don't occupy too much unused memory.
26477         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26478
26479 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26480             Eric Blake  <eblake@redhat.com>
26481             Bruno Haible  <bruno@clisp.org>
26482
26483         read-file: Avoid memory reallocations with regular files.
26484         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26485         (fread_file): With regular files, use the remaining length as the
26486         initial buffer size.  Check against overflow.
26487         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26488         sys_stat.
26489
26490 2010-08-28  Bruno Haible  <bruno@clisp.org>
26491
26492         ftello: Relax license.
26493         * modules/ftello (License): Relax to LGPLv2+.
26494         Reported by Eric Blake.
26495
26496 2010-08-28  Bruno Haible  <bruno@clisp.org>
26497
26498         Avoid relocwrapper link errors due to gnulib replacement functions.
26499         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26500         function.
26501         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26502
26503 2010-08-28  Bruno Haible  <bruno@clisp.org>
26504
26505         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26506         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26507         defined.
26508         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26509         Suggested by Eric Blake.
26510
26511 2010-08-28  Bruno Haible  <bruno@clisp.org>
26512
26513         sys_socket, netdb: Ensure socklen_t gets defined.
26514         * modules/sys_socket (Depends-on): Add socklen.
26515         * modules/netdb (Depends-on): Likewise.
26516         * modules/getaddrinfo (Depends-on): Remove socklen.
26517         * modules/getsockopt (Depends-on): Likewise.
26518         * modules/setsockopt (Depends-on): Likewise.
26519         * tests/test-sys_socket.c: Check that socklen_t is defined.
26520         * tests/test-netdb.c: Likewise.
26521         * m4/socklen.m4: Update comments.
26522         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26523
26524 2010-08-27  Eric Blake  <eblake@redhat.com>
26525
26526         login_tty: add missing dependency
26527         * modules/login_tty (Depends-on): Add pty.
26528
26529 2010-08-26  Eric Blake  <eblake@redhat.com>
26530
26531         lib-symbol-versions: fix m4 quoting
26532         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26533         format for AC_LINK_IFELSE.
26534
26535         glob: fix compile test
26536         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26537
26538         btowc: fix missing file
26539         * modules/btowc (Files): Also ship locale-fr.m4.
26540
26541         lseek: fix link test
26542         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26543         AC_LINK_IFELSE.
26544
26545         include_next: silence autoconf 2.68 warning
26546         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26547         AC_COMPILE_IFELSE as special.
26548         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26549         autoconf < 2.68.
26550
26551         acl: fix compilation test
26552         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26553         AC_COMPILE_IFELSE.
26554
26555 2010-08-26  Bruno Haible  <bruno@clisp.org>
26556
26557         Modernize AC_TRY_RUN invocations.
26558         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26559         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26560         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26561         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26562         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26563         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26565         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26566         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26567         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26568         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26569         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26570         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26571         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26572         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26573         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26574         gl_MBRLEN_NUL_RETVAL): Likewise.
26575         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26576         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26577         Likewise.
26578         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26579         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26580         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26581         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26582         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26583         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26584         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26585         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26586         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26587         Likewise.
26588         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26589         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26591         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26592         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26593         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26594         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26595         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26596         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26597         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26598
26599 2010-08-26  Bruno Haible  <bruno@clisp.org>
26600
26601         Modernize AC_TRY_LINK invocations.
26602         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26603         AC_TRY_LINK.
26604         * m4/argp.m4 (gl_ARGP): Likewise.
26605         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26606         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26607         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26608         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26609         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26610         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26611         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26612         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26613         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26614         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26615         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26616         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26617         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26618         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26619         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26620         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26621         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26622         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26623         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26624         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26625         Likewise.
26626         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26627         Likewise.
26628         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26629         Likewise.
26630         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26632         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26633         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26634         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26635         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26636         * m4/servent.m4 (gl_SERVENT): Likewise.
26637         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26638         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26639         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26640         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26641         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26642         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26643         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26644         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26645         * modules/tsearch-tests (configure.ac): Likewise.
26646
26647 2010-08-26  Bruno Haible  <bruno@clisp.org>
26648
26649         Modernize AC_TRY_COMPILE invocations.
26650         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26651         AC_TRY_COMPILE.
26652         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26653         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26654         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26655         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26656         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26657         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26658         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26659         * m4/lock.m4 (gl_LOCK): Likewise.
26660         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26661         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26662         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26663         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26664         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26665         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26666         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26667         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26668         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26669         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26670         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26671         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26672         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26673         extraneous semicolon.
26674
26675 2010-08-26  Jim Meyering  <meyering@redhat.com>
26676
26677         stat-time: relax license LGPL
26678         * modules/stat-time (License): Change from GPL to LGPL,
26679         with consent from all contributors, for use in libguile.
26680         Requested by Ludovic Courtès.
26681
26682 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26683
26684         poll: return immediately on POLLHUP.
26685         * lib/poll.c (poll): Always set timeout before wait_timeout is
26686         computed.
26687
26688 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26689
26690         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26691         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26692         rmdir ("dir/.//"), unlinkat.
26693
26694 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26695
26696         stdbool: avoid spurious failure with modern xlc
26697         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26698
26699 2010-08-24  Bruno Haible  <bruno@clisp.org>
26700
26701         getloadavg: simplify code
26702         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26703         gl_have_func. Update comments.
26704
26705 2010-08-24  Eric Blake  <eblake@redhat.com>
26706
26707         getloadavg: don't define SVR4 on cygwin
26708         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26709         only define SVR4 when -lkvm is required.
26710         Reported by Yaakov Selkowitz.
26711
26712 2010-08-24  Bruno Haible  <bruno@clisp.org>
26713
26714         priv-set: fix comment
26715         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26716
26717 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26718
26719         priv-set: fix comments
26720         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26721         to match code, as suggested by David Bartley in:
26722         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26723
26724 2010-08-23  Eric Blake  <eblake@redhat.com>
26725
26726         stdbool: avoid rejecting clang
26727         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26728         * tests/test-stdbool.c: Enable more tests if using the system
26729         <stdbool.h> instead of the gnulib replacement.
26730         (main): Move xlc bug test to a runtime test for all compilers.
26731         Reported by Anders Kaseorg.
26732
26733         argz: fix shell quoting issue
26734         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26735         Reported by Charles Wilson.
26736
26737 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26738             Erik Faye-Lund <kusmabite@gmail.com>
26739
26740         poll, select: handle ERROR_BROKEN_PIPE.
26741         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26742         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26743         * lib/select.c (win32_compute_revents): Do not mark a pipe
26744         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26745
26746 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26747
26748         fts: allow compilation with C++
26749         * lib/fts_.h: Specify extern "C" linkage with C++.
26750
26751 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26752
26753         Fix gnulib-tool sed script de-commentation for AIX sed.
26754         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26755         sed.
26756
26757 2010-08-17  Eric Blake  <eblake@redhat.com>
26758
26759         test-stddef: test for (some) offsetof bugs
26760         * tests/test-stddef.c: Enhance test to ensure correct type of
26761         offsetof.
26762         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26763         that we are not fixing at this time.
26764
26765 2010-08-15  Bruno Haible  <bruno@clisp.org>
26766
26767         stpncpy: Allow stpncpy to be defined as a macro.
26768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26769         if it's already correctly declared.
26770         * lib/string.in.h (stpncpy): Undefine before redefining.
26771         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26772
26773 2010-08-14  Bruno Haible  <bruno@clisp.org>
26774
26775         Rename module 'memxfrm' to 'amemxfrm'.
26776         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26777         (amemxfrm): Renamed from memxfrm.
26778         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26779         (amemxfrm): Renamed from memxfrm.
26780         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26781         * NEWS: Mention the change.
26782         * MODULES.html.sh (String handling <string.h>): Update.
26783         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26784         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26785         * lib/unicase/u16-casexfrm.c: Likewise.
26786         * lib/unicase/u32-casexfrm.c: Likewise.
26787         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26788         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26789         * lib/uninorm/u16-normxfrm.c: Likewise.
26790         * lib/uninorm/u32-normxfrm.c: Likewise.
26791         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26792         memxfrm.
26793         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26794         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26795         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26796         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26797         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26798         Suggested by Paul Eggert.
26799
26800 2010-08-14  Bruno Haible  <bruno@clisp.org>
26801
26802         Tests for module 'astrxfrm'.
26803         * modules/astrxfrm-tests: New file.
26804         * tests/test-astrxfrm.c: New file.
26805
26806         New module 'astrxfrm'.
26807         * lib/astrxfrm.h: New file.
26808         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26809         * modules/astrxfrm: New file.
26810
26811 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26812
26813         regex: Tweak doc.
26814         * doc/regex.texi (Overview): Don't mention regex.c.
26815         (GNU Regular Expression Compiling): Likewise.
26816         (Match-end-of-line Operator): Mention 'not_eol'.
26817
26818 2010-08-14  Brian Gough  <bjg@gnu.org>
26819             Bruno Haible  <bruno@clisp.org>
26820
26821         git-merge-changelog: add doc relating to use with bzr and hg.
26822         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26823
26824 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26825
26826         pthread: fix pthread.h creation for srcdir != builddir
26827         * modules/pthread (Makefile.am): Fix the rule to work also in a
26828         non-srcdir build.
26829
26830 2010-08-13  Karl Berry  <karl@gnu.org>
26831
26832         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26833         * doc/posix-*/*: force line break before @url of POSIX
26834         specifications.
26835         Suggested by Werner Lemberg.
26836
26837 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26838
26839         strtod: fix const diagnostic
26840         * lib/strtod.c (strtod): Don't assign const char * to char *,
26841         as this elicits a warning from GCC when warnings are enabled.
26842
26843 2010-08-10  Pádraig Brady <P@draigbrady.com>
26844         and Eric Blake  <eblake@redhat.com>
26845
26846         copy-acl: ignore ENOTSUP on HP-UX
26847         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26848         so that it is available for HP-UX.
26849         * lib/copy-acl.c (qcopy_acl): Use it.
26850         Reported by Patrick M. Callahan.
26851
26852 2010-08-10  Eric Blake  <eblake@redhat.com>
26853
26854         open, chown: relax license
26855         * modules/open (License): Change to LGPLv2+, with consent by all
26856         authors, for use in augeas.
26857         * modules/chown (License): Likewise.
26858         * modules/lchown (Likewise): Likewise.
26859         Requested by Adam Stokes.
26860
26861 2010-08-09  Karl Berry  <karl@gnu.org>
26862
26863         * build-aux/ar-lib: new file, import from Automake.
26864         * config/srclist.txt: autocheck for updates.
26865
26866 2010-08-09  Eric Blake  <eblake@redhat.com>
26867
26868         readlinkat: adjust client modules
26869         * modules/areadlinkat (Depends-on): Use readlinkat, not
26870         symlinkat.
26871         * modules/areadlinkat-with-size (Depends-on): Likewise.
26872
26873         mknod: be more vocal about danger of running tests as root
26874         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26875         root, since that is just asking for problems.
26876         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26877
26878         readlinkat: split into its own module
26879         * modules/symlinkat: Split readlinkat...
26880         * modules/readlinkat: ...into separate module.
26881         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26882         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26883         * lib/symlinkat.c (readlinkat): Move...
26884         * lib/readlinkat.c: ...into new file.
26885         * modules/symlinkat-tests: Split readlinkat test...
26886         * modules/readlinkat-tests: ...into separate module.
26887         * tests/test-symlinkat.c: Split...
26888         * tests/test-readlinkat.c: ...into new file.
26889         * NEWS: Document the split.
26890         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26891         * lib/unistd.in.h (readlinkat): Likewise.
26892         Suggested by Bruno Haible.
26893
26894 2010-08-08  Bruno Haible  <bruno@clisp.org>
26895
26896         memxfrm: Speed up.
26897         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26898         that usually only one call to strxfrm is necessary for each string
26899         part.
26900         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26901
26902 2010-08-07  Karl Berry  <karl@gnu.org>
26903
26904         * doc/posix-headers/limits.texi,
26905         * doc/posix-functions/malloc.texi,
26906         * doc/posix-functions/strsignal.texi: missing @item.
26907         * doc/ld-version-script.texi: spurious leading i.
26908         * doc/regex.texi (Interval Operators): no commas inside @var.
26909
26910 2010-08-01  Bruno Haible  <bruno@clisp.org>
26911
26912         Integrate the regex documentation.
26913         * doc/gnulib.texi: Define 'cn' index.
26914         (Regular expressions): New a chapter that includes regex.texi and
26915         regexprops-generic.texi.
26916         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26917         syntax.
26918
26919         Whitespace cleanup.
26920         * doc/regex.texi: Remove trailing spaces.
26921
26922         Add regex documentation.
26923         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26924         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26925         Written by Kathy A. Hargreaves and Karl Berry.
26926
26927 2010-08-01  Bruno Haible  <bruno@clisp.org>
26928
26929         link: Update documentation.
26930         * doc/posix-functions/link.texi: Update regarding Solaris.
26931
26932 2010-07-31  Bruno Haible  <bruno@clisp.org>
26933
26934         Update modules list.
26935         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26936         (String handling <string.h>): Add memcmp2, memxfrm.
26937         (Container data structures): Add xlist, xsublist, xoset.
26938         (Core language properties): Add alignof, unused-parameter.
26939         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26940         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26941         (Unibyte characters <ctype.h>): New section.
26942         (String handling <string.h>): New section.
26943         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26944         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26945         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26946         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26947         tan, tanh, tanl, y0, y1, yn.
26948         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26949         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26950         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26951         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26952         unlockpt, vdprintf, vdprintf-posix.
26953         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26954         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26955         xconcat-filename.
26956         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26957         getdtablesize, pipe2, pipe2-safer.
26958         (Security): New section.
26959         (Networking functions): Add accept4.
26960         (Signal handling): Add sigpipe.
26961         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26962         mbmemcasecoll.
26963         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26964         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26965         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26966         pipe-filter-ii.
26967         (Misc): Add argp-version-etc, login_tty, parse-duration.
26968
26969 2010-07-31  Bruno Haible  <bruno@clisp.org>
26970
26971         Improve doc in MODULES.html.
26972         * modules/linkat (Description): Add the word "function".
26973         * modules/mkfifo (Description): Likewise.
26974         * modules/mknod (Description): Likewise.
26975         * modules/remove (Description): Likewise.
26976         * modules/renameat (Description): Likewise.
26977         * modules/stat (Description): Likewise.
26978         * modules/symlink (Description): Likewise.
26979         * modules/unlink (Description): Likewise.
26980
26981 2010-07-31  Bruno Haible  <bruno@clisp.org>
26982
26983         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26984         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26985         option --enable/disable-c++ instead of --enable/disable-cxx.
26986         * NEWS: Mention the change.
26987
26988 2010-07-31  Bruno Haible  <bruno@clisp.org>
26989
26990         readlink, areadlink: Relax test a bit.
26991         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26992         alternative to ENOTDIR.
26993         * tests/test-areadlink.h (test_areadlink): Likewise.
26994         Reported by Rainer Tammer.
26995
26996 2010-07-31  Bruno Haible  <bruno@clisp.org>
26997
26998         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26999         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27000         character, perform the search using U_STRCHR.
27001         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27002         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27003         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27004         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27005         Suggested by Paolo Bonzini.
27006
27007 2010-07-31  Bruno Haible  <bruno@clisp.org>
27008
27009         unistr/u*-strstr: Fix dependencies.
27010         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27011         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27012         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27013
27014 2010-07-31  Bruno Haible  <bruno@clisp.org>
27015
27016         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27017         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27018         the beginning of the loop.
27019         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27020         cases in 'switch' statement.
27021
27022         unistr/u8-strchr: Fix several bugs.
27023         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27024         the string. When not found, return NULL, not a pointer near the end.
27025
27026         More tests for unistr/u8-strchr.
27027         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27028         that the function does not read past the first occurrence of the byte
27029         being searched.
27030         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27031         * tests/unistr/test-u16-strchr.c (main): New function.
27032         * tests/unistr/test-u32-strchr.c (main): New function.
27033
27034 2010-07-31  Bruno Haible  <bruno@clisp.org>
27035
27036         posix-modules: Ignore backup files of documentation files.
27037         * posix-modules: grep only through files named *.texi.
27038
27039 2010-07-31  Bruno Haible  <bruno@clisp.org>
27040
27041         symlinkat: Fix documentation.
27042         * doc/posix-functions/readlinkat.texi: Fix module name.
27043
27044 2010-07-31  Bruno Haible  <bruno@clisp.org>
27045
27046         fchownat: Replace also when chown has the trailing slash bug.
27047         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27048         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27049         introduced on 2010-04-10.
27050         Reported by Rainer Tammer.
27051
27052 2010-07-31  Bruno Haible  <bruno@clisp.org>
27053
27054         linkat: Work around AIX 7.1 bug.
27055         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27056         whether linkat handles trailing slash correctly. If not, replace linkat
27057         and define LINKAT_TRAILING_SLASH_BUG.
27058         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27059         check whether (fd1,file1) points to a directory if file1 or file2 ends
27060         in a slash. Code taken from lib/link.c.
27061         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27062         Reported by Rainer Tammer.
27063
27064 2010-07-31  Bruno Haible  <bruno@clisp.org>
27065
27066         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27067         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27068         This disables an xlc optimization that was causing wrong test results.
27069         Reported by Rainer Tammer.
27070
27071 2010-07-31  Bruno Haible  <bruno@clisp.org>
27072
27073         iconv: Work around AIX 6.1..7.1 bug.
27074         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27075         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27076         cross-compiling, guess no on all versions of AIX.
27077         Reported by Rainer Tammer.
27078
27079 2010-07-31  Bruno Haible  <bruno@clisp.org>
27080
27081         readlink: Relax test a bit.
27082         * tests/test-readlink.h (test_readlink): Allow different errno value
27083         when readlink is called with a file name that ends in / and refers to
27084         a file.
27085         Suggested by Eric Blake.
27086         Reported by Rainer Tammer.
27087
27088 2010-07-31  Bruno Haible  <bruno@clisp.org>
27089
27090         copysign: Does not require -lm on glibc systems.
27091         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27092         gl_COMMON_DOUBLE_MATHFUNC.
27093         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27094
27095 2010-07-31  Bruno Haible  <bruno@clisp.org>
27096
27097         duplocale: Work around AIX 7.1 bug.
27098         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27099         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27100         * lib/duplocale.c (rpl_duplocale): Update comment.
27101         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27102         Reported by Rainer Tammer.
27103
27104 2010-07-30  Bruno Haible  <bruno@clisp.org>
27105
27106         dirfd: Avoid link error on AIX 7.1.
27107         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27108         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27109         exist, set REPLACE_DIRFD.
27110         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27111         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27112         * doc/posix-functions/dirfd.texi: Update.
27113         Reported by Rainer Tammer.
27114
27115 2010-07-30  Eric Blake  <eblake@redhat.com>
27116
27117         strtod: next round of AIX fixes
27118         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27119         exponent.
27120         * tests/test-strtod.c (main): Enhance tests.
27121         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27122         Reported by Rainer Tammer.
27123
27124         futimens: fix configure check
27125         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27126         Reported by Bruno Haible.
27127
27128 2010-07-30  Bruno Haible  <bruno@clisp.org>
27129
27130         getline: Update regarding AIX.
27131         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27132         Reported by Rainer Tammer.
27133
27134 2010-07-30  Bruno Haible  <bruno@clisp.org>
27135
27136         wcwidth: Drop replacement on AIX 7.
27137         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27138         AIX 7.
27139         Reported by Rainer Tammer.
27140
27141 2010-07-30  Bruno Haible  <bruno@clisp.org>
27142
27143         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27144         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27145         a 'char *'.
27146         Reported by Rainer Tammer.
27147
27148 2010-07-30  Bruno Haible  <bruno@clisp.org>
27149
27150         unlink: Update regarding AIX.
27151         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27152         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27153         Reported by Rainer Tammer.
27154
27155 2010-07-30  Bruno Haible  <bruno@clisp.org>
27156
27157         symlink: Update regarding AIX.
27158         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27159         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27160         Reported by Rainer Tammer.
27161
27162 2010-07-30  Bruno Haible  <bruno@clisp.org>
27163
27164         strndup: Update regarding AIX.
27165         * m4/strndup.m4 (gl_FUNC_STRNDUP): 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         stat: Update regarding AIX.
27172         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27173         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27174         Reported by Rainer Tammer.
27175
27176 2010-07-30  Bruno Haible  <bruno@clisp.org>
27177
27178         truncl: Fix autoconf test.
27179         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27180         whether truncl works.
27181         Reported by Rainer Tammer.
27182
27183 2010-07-30  Bruno Haible  <bruno@clisp.org>
27184
27185         round: Update regarding AIX.
27186         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27187         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27188         Reported by Rainer Tammer.
27189
27190 2010-07-30  Bruno Haible  <bruno@clisp.org>
27191
27192         rename: Update regarding AIX.
27193         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27194         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27195         Reported by Rainer Tammer.
27196
27197 2010-07-30  Bruno Haible  <bruno@clisp.org>
27198
27199         printf.m4: Update regarding AIX.
27200         * m4/printf.m4: Update comments regarding AIX.
27201         Reported by Rainer Tammer.
27202
27203 2010-07-30  Bruno Haible  <bruno@clisp.org>
27204
27205         iconv: Update regarding AIX.
27206         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27207         AIX 7.
27208         Reported by Rainer Tammer.
27209
27210 2010-07-30  Bruno Haible  <bruno@clisp.org>
27211
27212         getopt: Update regarding AIX.
27213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27214         no on AIX.
27215         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27216         Reported by Rainer Tammer.
27217
27218 2010-07-30  Bruno Haible  <bruno@clisp.org>
27219
27220         ldexpl; Update regarding AIX.
27221         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27222         on AIX 7.
27223         Reported by Rainer Tammer.
27224
27225 2010-07-30  Bruno Haible  <bruno@clisp.org>
27226
27227         frexpl: Update regarding AIX.
27228         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27229         on AIX 7.
27230         Reported by Rainer Tammer.
27231
27232 2010-07-30  Bruno Haible  <bruno@clisp.org>
27233
27234         open, fopen: Update regarding AIX.
27235         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27236         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27237         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27238         * doc/posix-functions/fopen.texi: Likewise.
27239         Reported by Rainer Tammer.
27240
27241 2010-07-30  Bruno Haible  <bruno@clisp.org>
27242
27243         chown: Update doc regarding AIX.
27244         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27245         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27246         Reported by Rainer Tammer.
27247
27248 2010-07-30  Eric Blake  <eblake@redhat.com>
27249
27250         strtod: fix bug in replacement function on AIX
27251         * lib/strtod.c (strtod): Special case broken "0x" parse in
27252         underlying strtod.
27253         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27254         * doc/posix-functions/strtod.texi (strtod): Likewise.
27255         Reported by Rainer Tammer.
27256
27257 2010-07-30  Bruno Haible  <bruno@clisp.org>
27258
27259         mbrlen: Fix cross-compilation guess for AIX.
27260         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27261         guess. Leftover from 2008-12-22.
27262
27263 2010-07-30  Bruno Haible  <bruno@clisp.org>
27264
27265         mbrtowc: Fix cross-compilation guess for AIX.
27266         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27267         guess. Leftover from 2008-12-21.
27268
27269 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27270
27271         init.sh: work around trap limitation of some shells
27272         * tests/init.sh (setup_): Move exit trap outside of shell function.
27273
27274 2010-07-29  Eric Blake  <eblake@redhat.com>
27275
27276         strtod: aid debugging
27277         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27278         understanding why strtod is rejected.
27279
27280 2010-07-28  Bruno Haible  <bruno@clisp.org>
27281
27282         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27283         * lib/unistr/u8-chr.c: Include <string.h>.
27284         * tests/unistr/test-u8-chr.c: Likewise.
27285         * tests/unistr/test-u16-chr.c: Likewise.
27286         * tests/unistr/test-u32-chr.c: Likewise.
27287         * tests/unistr/test-u8-strchr.c: Likewise.
27288         * tests/unistr/test-u16-strchr.c: Likewise.
27289         * tests/unistr/test-u32-strchr.c: Likewise.
27290         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27291         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27292         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27293         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27294
27295 2010-07-28  Bruno Haible  <bruno@clisp.org>
27296
27297         Use spaces for indentation, not tabs.
27298         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27299
27300 2010-07-27  Bruno Haible  <bruno@clisp.org>
27301
27302         mbspcasecmp: Fix function specification.
27303         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27304         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27305         Reported by Eric Blake <eblake@redhat.com>.
27306
27307 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27308
27309         timespec: use cast and not conditional, as truncation isn't possible
27310         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27311         instead of a conditional.  Comment about the situation in more detail.
27312         This undoes most of the 2009-10-29 patch.
27313
27314 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27315
27316         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27317         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27318         * lib/unistr/u8-strchr.c: Likewise.
27319         * modules/unistr/u8-chr: Depend on memchr.
27320
27321         unistr/u*-strchr: add tests
27322         * modules/unistr/u8-strchr-tests: New file.
27323         * modules/unistr/u16-strchr-tests: New file.
27324         * modules/unistr/u32-strchr-tests: New file.
27325         * tests/unistr/test-strchr.h: New file.
27326         * tests/unistr/test-u8-strchr.c: New file.
27327         * tests/unistr/test-u16-strchr.c: New file.
27328         * tests/unistr/test-u32-strchr.c: New file.
27329
27330         unistr/u*-chr: test multibyte sequences more
27331         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27332         test vector.
27333         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27334         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27335         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27336
27337         unistr/u*-chr: test multibyte sequences
27338         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27339
27340         unistr/u*-chr: prepare for multibyte tests
27341         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27342         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27343         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27344         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27345         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27346         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27347
27348 2010-07-18  Bruno Haible  <bruno@clisp.org>
27349
27350         unistr/u8-strchr: Optimize non-ASCII argument case.
27351         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27352         because the first byte often matches anyway.
27353         Reported by Pádraig Brady <P@draigbrady.com>.
27354
27355 2010-07-15  Karl Berry  <karl@gnu.org>
27356
27357         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27358
27359 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27360
27361         getcwd: on Solaris, work better if ancestors are inaccessible
27362         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27363         buffer and size, try again with a large buffer.  This works better
27364         on Solaris, since its getcwd succeeds even if the path to the root
27365         is inaccessible, and this is helpful in common cases such as .zfs
27366         hidden directories.  Problem reported by J Chapman Flack in
27367         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27368         Use system getcwd if it's declared, not merely if it's partly
27369         working; use the partly-working test only to avoid needless effort
27370         if the system getcwd fails.
27371         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27372         comment that was already obsolete and is now even more obsolete.
27373         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27374         now might call strdup.
27375
27376 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27377
27378         pthread: Add enough so that coreutils/src/sort.c compiles.
27379         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27380         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27381         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27382         Include <sys/types.h>, in case it defines pthread_t.
27383         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27384         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27385         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27386         (pthread_rwlockattr_t, pthread_spinlock_t):
27387         New typedefs, if HAVE_PTHREAD_T is not defined.
27388         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27389         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27390         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27391         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27392         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27393         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27394         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27395         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27396         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27397         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27398         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27399         New macros.
27400         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27401         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27402         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27403         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27404         (pthread_spin_unlock): New dummy functions.
27405         (pthread_create): Return EAGAIN; don't set errno.
27406         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27407         require AC_C_INLINE.
27408         * modules/pthread (Depends-on): Add sched, time.
27409         (pthread.h): Use AM_V_GEN.
27410
27411 2010-07-13  Bruno Haible  <bruno@clisp.org>
27412
27413         striconveh: Don't malloc memory if the result buffer is sufficient.
27414         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27415         buffer if its size is sufficient.
27416         Reported by Ludovic Courtès <ludo@gnu.org>.
27417
27418 2010-07-13  Bruno Haible  <bruno@clisp.org>
27419
27420         strtod: Add safety check.
27421         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27422
27423 2010-07-12  Bruno Haible  <bruno@clisp.org>
27424
27425         Unify tests that set gl_cv_func_ldexpl_no_libm.
27426         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27427         gl_FUNC_LDEXPL.
27428         (gl_FUNC_LDEXPL): Invoke it.
27429         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27430
27431 2010-07-12  Bruno Haible  <bruno@clisp.org>
27432
27433         Unify tests that set gl_cv_func_ldexp_no_libm.
27434         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27435         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27436         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27437         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27438         * modules/strtod (Files): Add m4/ldexp.m4.
27439
27440 2010-07-12  Bruno Haible  <bruno@clisp.org>
27441
27442         Unify tests that set gl_cv_func_frexpl_no_libm.
27443         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27444         gl_FUNC_FREXPL_NO_LIBM.
27445         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27446         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27447
27448 2010-07-12  Bruno Haible  <bruno@clisp.org>
27449
27450         Unify tests that set gl_cv_func_frexp_no_libm.
27451         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27452         gl_FUNC_FREXP_NO_LIBM.
27453         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27454         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27455
27456 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27457
27458         memcoll: clarify sizes versus lengths, document better, and tweak perf
27459         * lib/memcoll.c (strcoll_loop, memcoll0):
27460         Improve quality of descriptive comments.  Name variables
27461         consistently as to whether they are lengths (which do not include
27462         terminating null) versus sizes (which do).
27463         * lib/xmemcoll.c (xmemcoll0): Likewise.
27464         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27465         returned when s1size == 0; this is easier to compile and saves
27466         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27467
27468 2010-07-12  Bruno Haible  <bruno@clisp.org>
27469
27470         Tests for module '_Exit'.
27471         * modules/_Exit-tests: New file.
27472         * tests/test-_Exit.sh: New file.
27473         * tests/test-_Exit.c: New file.
27474
27475         New module '_Exit'.
27476         * lib/stdlib.in.h (__attribute__): New macro.
27477         (_Exit): New declaration.
27478         * lib/_Exit.c: New file.
27479         * m4/_Exit.m4: New file.
27480         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27481         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27482         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27483         * modules/_Exit: New file.
27484         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27485         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27486
27487 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27488
27489         strtod: make it more-accurate typically, and don't require libm
27490         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27491         Include limits.h.  Don't include string.h.
27492         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27493         (locale_isspace): New function, so that no casts are needed to
27494         check whether *s is a space.
27495         (ldexp): Provide an unused dummy if not available.
27496         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27497         (strtod): Use them.  This implementation prefers to use the
27498         underlying strtod if available, falling back on our own code
27499         only to fix known bugs.  This is more likely to produce an
27500         accurate result.  Also, it avoids the use of libm functions.
27501         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27502         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27503         was absent, but it caused a test failure with coreutils.
27504         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27505         with libm.
27506         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27507         * modules/strtod-tests (Makefile.am): Likewise.
27508
27509 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27510             Bruno Haible  <bruno@clisp.org>
27511
27512         unistr/u8-strchr: Optimize ASCII argument case.
27513         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27514
27515 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27516
27517         (x)memcoll: minor tweaks
27518         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27519         is after the type that it qualifies.
27520         (memcoll0): Likewise.
27521         * lib/memcoll.h (memcoll0): Likewise.
27522         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27523         * lib/xmemcoll.h (xmemcoll0): Likewise.
27524         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27525         differs from memcoll in that the NUL byte is part of the argument.
27526         Omit the abort-checks, as performance is a real issue here.  Plus,
27527         the checks were wrong anyway (an off-by-one error).  Omit local
27528         variable 'diff', as it's a bit clearer that way.
27529         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27530         no longer needed.
27531
27532 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27533
27534         (x)memcoll: speedup when input is known to be NUL delimited
27535         * lib/memcoll.c: Include stdlib.
27536         (memcoll0): New function.
27537         (strcoll_loop): New function, refactored for use in both memcoll
27538         and memcoll0.
27539         * lib/memcoll.h (memcoll0): Add prototype.
27540         * lib/xmemcoll.c (xmemcoll0): New function.
27541         (collate_error): New function, refactored for use in both xmemcoll
27542         and xmemcoll0.
27543         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27544         * m4/memcoll.m4: add inline invocation.
27545
27546 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27547
27548         * build-aux/bootstrap: Remove any local translations
27549         from the translation project synchronization directory,
27550         so that local only translations are not distributed.
27551
27552 2010-07-04  Bruno Haible  <bruno@clisp.org>
27553
27554         fsusage: Clarify which code applies to which platforms.
27555         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27556         platform.
27557         * lib/fsusage.c (get_fs_usage): Likewise.
27558
27559 2010-07-04  Bruno Haible  <bruno@clisp.org>
27560
27561         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27562         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27563         Reported by Martin Lambers <marlam@marlam.de>.
27564
27565 2010-07-04  Jim Meyering  <meyering@redhat.com>
27566
27567         hash: once again explicitly disallow insertion of NULL
27568         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27569         inserting a NULL pointer cannot work with these functions.
27570         Add a comment with details.
27571         This reverts part of the 2010-07-01 commit, 5bef1a35
27572         "hash: extend module to deal with non-pointer keys".
27573
27574 2010-07-01  Bruno Haible  <bruno@clisp.org>
27575
27576         stdbool: Update doc.
27577         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27578         Info from Christian Weisgerber <naddy@mips.inka.de>.
27579
27580 2010-07-01  Jim Meyering  <meyering@redhat.com>
27581
27582         hash: extend module to deal with non-pointer keys
27583         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27584         but that allows insertion of non-pointer entries.
27585         Do not disallow an ENTRY value of NULL.
27586         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27587         * lib/hash.h (hash_insert0): Declare.
27588
27589 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27590
27591         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27592         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27593         not present (i.e. with autoconf 2.59 and when using gettextize, not
27594         gnulib), require AC_GNU_SOURCE instead.
27595
27596 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27597
27598         idpriv-drop: Fix tests.
27599         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27600         not to the test-idpriv-droptemp program.
27601
27602 2010-06-29  Bruno Haible  <bruno@clisp.org>
27603
27604         string: Fix syntax error with g++ 2.96.
27605         * lib/string.in.h (__pure__): Remove definition.
27606         (_GL_ATTRIBUTE_PURE): New macro.
27607         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27608         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27609         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27610
27611 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27612
27613         unitypes: Fix bug introduced on 2010-05-18.
27614         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27615
27616 2010-06-22  Eric Blake  <eblake@redhat.com>
27617
27618         memmem: slight optimization
27619         * lib/str-two-way.h (critical_factorization): Update comments.
27620         Reduce work during factorization phase.
27621         Reported by Carlos Bueno <carlos@bueno.org>.
27622
27623 2010-06-21  Bruno Haible  <bruno@clisp.org>
27624
27625         Fix HAVE_CALLOC_POSIX misnomer.
27626         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27627         !HAVE_CALLOC_POSIX.
27628         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27629         HAVE_CALLOC_POSIX.
27630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27631         instead of HAVE_CALLOC_POSIX.
27632         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27633         HAVE_CALLOC_POSIX.
27634
27635         Use modern idiom for calloc() replacement.
27636         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27637         AC_FUNC_CALLOC.
27638         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27639         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27640         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27641         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27642         (gl_REPLACE_CALLOC): New macro.
27643
27644 2010-06-21  Bruno Haible  <bruno@clisp.org>
27645
27646         Fix HAVE_REALLOC_POSIX misnomer.
27647         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27648         !HAVE_REALLOC_POSIX.
27649         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27650         HAVE_REALLOC_POSIX.
27651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27652         instead of HAVE_REALLOC_POSIX.
27653         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27654         HAVE_REALLOC_POSIX.
27655
27656         Use modern idiom for realloc() replacement.
27657         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27658         AC_FUNC_REALLOC.
27659         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27660         Autoconf's AC_FUNC_REALLOC.
27661         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27662         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27663         (gl_REPLACE_REALLOC): New macro.
27664         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27665
27666 2010-06-21  Bruno Haible  <bruno@clisp.org>
27667
27668         Fix HAVE_MALLOC_POSIX misnomer.
27669         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27670         !HAVE_MALLOC_POSIX.
27671         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27672         HAVE_MALLOC_POSIX.
27673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27674         instead of HAVE_MALLOC_POSIX.
27675         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27676         HAVE_MALLOC_POSIX.
27677
27678         Use modern idiom for malloc() replacement.
27679         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27680         AC_FUNC_MALLOC.
27681         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27682         Autoconf's AC_FUNC_MALLOC.
27683         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27684         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27685         (gl_REPLACE_MALLOC): New macro.
27686         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27687
27688 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27689
27690         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27691         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27692         This macro takes 3 arguments, not 4.
27693
27694 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27695
27696         ipv6: fix detection under mingw
27697         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27698         in6_addr.
27699
27700 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27701
27702         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27703         that strtod() works when cross-compiling to a glibc version known
27704         to work.
27705
27706 2010-06-15  Bruno Haible  <bruno@clisp.org>
27707
27708         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27709
27710 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27711
27712         select: Correct timeout.
27713         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27714
27715 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27716
27717         git-version-gen: init shell var to avoid env var influence
27718         * build-aux/git-version-gen (v): Init shell var to empty.
27719
27720 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27721
27722         priv-set: Don't assume that priv.h exists merely because getppriv does.
27723         See Jan Andersen's bug report about AIX 5L in
27724         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27725         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27726         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27727         * lib/priv-set.h: Likewise.
27728         * tests/test-priv-set.c: Likewise.
27729
27730 2010-06-13  Bruno Haible  <bruno@clisp.org>
27731
27732         relocatable: Make it easier to test whether to install wrappers.
27733         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27734         RELOCATABLE_VIA_WRAPPER.
27735
27736 2010-06-13  Bruno Haible  <bruno@clisp.org>
27737
27738         gnulib-tool: Display specified modules and dependencies differently.
27739         * gnulib-tool (func_show_module_list): New function.
27740         (func_import, func_create_testdir): Invoke it.
27741         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27742
27743 2010-06-13  Bruno Haible  <bruno@clisp.org>
27744
27745         gnulib-tool: Align code of func_import and func_create_testdir.
27746         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27747         specified_modules.
27748
27749 2010-06-12  Jim Meyering  <meyering@redhat.com>
27750
27751         test-inttostr: avoid spurious failure on Solaris 9
27752         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27753         to accept "%ju".  Reported by Bruno Haible.
27754
27755 2010-06-11  Jim Meyering  <meyering@redhat.com>
27756
27757         test-sys_socket: mark variables as used more readably
27758         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27759         as "used" explicitly via (void) statement casts.  This is more
27760         readable than using them in an artificial return expression.
27761         Suggestion from Bruno Haible.
27762
27763 2010-06-11  Bruno Haible  <bruno@clisp.org>
27764
27765         Avoid some more warnings from "gcc -Wwrite-strings".
27766         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27767         to 'const char *'.
27768         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27769         * tests/test-c-strcasestr.c (main): Likewise.
27770         * tests/test-mbscasestr1.c (main): Likewise.
27771         * tests/test-mbscasestr2.c (main): Likewise.
27772         * tests/test-memmem.c (main): Likewise.
27773         * tests/test-strstr.c (main): Likewise.
27774         * tests/test-strcasestr.c (main): Likewise.
27775
27776 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27777
27778         init.sh: change framework_failure_ to fail with status 99, not 1
27779         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27780         automake's parallel-tests rule that this is an unexpected failure,
27781         even if the test is listed in XFAIL_TESTS.
27782
27783 2010-06-11  Jim Meyering  <meyering@redhat.com>
27784
27785         test-inttostr: avoid warnings about 4-6KB literal strings
27786         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27787         Include "macros.h", for its definition of ASSERT.
27788         (CK): s/assert/ASSERT/
27789         * modules/inttostr-tests (Files): Add macros.h.
27790
27791         init.sh: don't use $ME_ or skip_ before they are defined
27792         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27793         their first uses.  Also hoist their companions: warn_, fail_,
27794         framework_failure_, $stderr_fileno.  Prompted by a patch from
27795         Stefano Lattarini.
27796
27797         test-sys_socket: avoid set-but-not-used warnings from gcc
27798         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27799         avoid warning about set-but-not-used variables.
27800
27801         test-xvasprintf: avoid 'const' discard warnings
27802         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27803         "const" when assigning from literal strings.
27804         (test_xasprintf): Add "void" in function argument list to placate
27805         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27806
27807         tests: avoid compilation warnings in argmatch and exclude tests...
27808         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27809         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27810         Since it always exits, declare with the "noreturn" attribute.
27811         * tests/test-argmatch.c: Likewise.
27812
27813         tests: avoid 'const' discard warnings in mbsstr tests
27814         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27815         * tests/test-mbsstr2.c (main): Likewise.
27816
27817         test-verify: avoid warning from gcc's -Wmissing-declarations
27818         * tests/test-verify.c (function): Declare to be static.
27819
27820         test-inttostr.c: include <string.h> for use of strcmp
27821         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27822
27823         test-linkat: avoid failed assertion on "other" architectures
27824         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27825         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27826         sparc: https://bugs.launchpad.net/bugs/591968
27827
27828 2010-06-11  Jim Meyering  <meyering@redhat.com>
27829
27830         printf.m4: avoid autoconf's "Expanded Before Required" warning
27831         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27832         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27833         autoconf warning.
27834
27835 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27836
27837         Replacement header templates are now named with ".in", not "_".
27838         * doc/gnulib-intro.texi: Correct.
27839
27840 2010-06-10  Jim Meyering  <meyering@redhat.com>
27841
27842         inttostr-tests: depend on snprintf, not snprintf-posix
27843         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27844         snprintf-posix, to avoid this aclocal failure:
27845           missing file gnulib-tests/vasnprintf.c
27846           configure.ac:45: error: expected source file, required through \
27847           AC_LIBSOURCES, not found
27848
27849 2010-06-10  Jim Meyering  <meyering@redhat.com>
27850
27851         inttostr: add a new function, inttostr, and tests
27852         The namesake function was not available.  The existence of the
27853         template file, inttostr.c makes its addition nontrivial.
27854         * lib/anytostr.c: Rename from inttostr.c.
27855         (anytostr): Rename from inttostr.
27856         * lib/inttostr.c: New file.
27857         * modules/inttostr (Files): Add anytostr.c.
27858         (Makefile.am): Set lib_SOURCES instead of ...
27859         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27860         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27861         * lib/offtostr.c: Likewise.
27862         * lib/uinttostr.c: Likewise.
27863         * lib/umaxtostr.c: Likewise.
27864         * modules/inttostr-tests: New file.
27865         * tests/test-inttostr.c: New file.  Test these functions.
27866
27867 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27868             Bruno Haible  <bruno@clisp.org>
27869
27870         Add "Extending Gnulib" chapter to manual.
27871         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27872         chapter.
27873         (Extending Gnulib): New chapter.
27874         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27875         chapter.
27876
27877 2010-06-09  Bruno Haible  <bruno@clisp.org>
27878
27879         Avoid relocwrapper link errors due to gnulib replacement functions.
27880         * lib/areadlink.c: Use the system's malloc, realloc functions.
27881         (areadlink): Set errno to ENOMEM explicitly.
27882         * modules/areadlink (Depends-on): Remove malloc-posix.
27883         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27884
27885 2010-06-09  Bruno Haible  <bruno@clisp.org>
27886
27887         Avoid relocwrapper link errors due to gnulib replacement functions.
27888         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27889         * lib/malloca.c: Likewise.
27890         * lib/relocatable.c: Likewise.
27891         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27892         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27893         * lib/setenv.c: Use the system's malloc, realloc functions.
27894         * lib/strerror.c: Use the system's sprintf function.
27895         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27896
27897 2010-06-04  Bruno Haible  <bruno@clisp.org>
27898
27899         Prefer documented low-level autoconf macro names.
27900         * m4/lib-link.m4: Use m4_translit instead of translit.
27901         * m4/environ.m4: Likewise.
27902         * m4/mathfunc.m4: Likewise.
27903         * m4/onceonly.m4: Likewise.
27904         * m4/stdint.m4: Likewise.
27905         Suggested by Eric Blake.
27906
27907 2010-06-04  Martin Lambers  <marlam@marlam.de>
27908             Bruno Haible  <bruno@clisp.org>
27909
27910         havelib: Allow library names with '+' characters.
27911         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27912         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27913
27914 2010-06-09  Bruno Haible  <bruno@clisp.org>
27915
27916         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27917         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27918         realloc failed.
27919
27920 2010-06-08  Peter Simons  <simons@cryp.to>
27921
27922         maint.mk: make the news-check rule more configurable
27923         * top/maint.mk (news-check-lines-spec): New variable.
27924         (news-check): Use "sed -n 1,10p" in place of "head".
27925
27926 2010-06-07  Jim Meyering  <meyering@redhat.com>
27927
27928         do-release-commit-and-tag: fix typo in --help
27929         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27930
27931         regex: avoid new dead-code warning with gcc-4.6.0
27932         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27933         if-block containing a while-loop.  It's been unused for at least
27934         5 years.
27935
27936 2010-06-05  Bruno Haible  <bruno@clisp.org>
27937
27938         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27939         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27940
27941 2010-06-04  Bruno Haible  <bruno@clisp.org>
27942
27943         Update to GNU gettext 0.18.1.
27944         * modules/gettext (configure.ac): Require gettext infrastructure from
27945         version 0.18.1.
27946
27947 2010-06-03  Bruno Haible  <bruno@clisp.org>
27948
27949         Don't use AC_LIBOBJ with file names in subdirectories.
27950         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27951         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27952         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27953         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27954         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27955         gl_LIBUNISTRING_LIBSOURCE.
27956         (Makefile.am): Augment lib_SOURCES here, conditionally.
27957         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27958
27959 2010-06-03  Bruno Haible  <bruno@clisp.org>
27960
27961         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27962         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27963         expansion does not end with a newline.
27964         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27965         unnecessary newline.
27966
27967 2010-06-03  Bruno Haible  <bruno@clisp.org>
27968
27969         Reduce dependencies.
27970         * tests/test-quotearg.h: New file, extracted from
27971         tests/test-quotearg.c.
27972         * tests/test-quotearg-simple.c: New file, extracted from
27973         tests/test-quotearg.c.
27974         * tests/test-quotearg.c: Don't include <ctype.h>.
27975         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27976         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27977         use_quote_double_quotes, use_quotearg_colon): Moved to
27978         tests/test-quotearg.h.
27979         (results_g, flag_results, custom_quotes, custom_results): Moved
27980         to tests/test-quotearg-simple.c.
27981         (main): Moved the part that does not depend on gettext to
27982         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27983         performed.
27984         * modules/quotearg-simple: New file.
27985         * modules/quotearg-simple-tests: New file.
27986         * modules/quotearg (Depends-on): Add quotearg-simple.
27987         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27988         (Files): Add tests/test-quotearg.h.
27989         Reported by Paolo Bonzini.
27990
27991 2010-06-03  Bruno Haible  <bruno@clisp.org>
27992
27993         Reduce dependencies.
27994         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27995
27996 2010-06-03  Bruno Haible  <bruno@clisp.org>
27997
27998         time: Undefine more broken macros.
27999         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28000         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28001         Reported by Eric Blake.
28002
28003 2010-06-03  Bruno Haible  <bruno@clisp.org>
28004
28005         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28006         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28007         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28008         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28009         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28010         Reported by Ludovic Courtès <ludo@gnu.org>.
28011
28012 2010-06-02  Eric Blake  <eblake@redhat.com>
28013
28014         time: work with mingw + pthreads-win32 library
28015         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28016         if timespec is defined only in pthread.h.
28017         * modules/time (Makefile.am): Substitute it.
28018         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28019         <pthread.h>, when needed.
28020         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28021         from the library.
28022
28023 2010-05-31  Bruno Haible  <bruno@clisp.org>
28024
28025         Avoid expanding two macros in the wrong order.
28026         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28027         gl_LIBUNISTRING if it is defined.
28028         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28029         autoconf >= 2.64.
28030         Reported by Ludovic Courtès <ludo@gnu.org>.
28031
28032 2010-05-27  Jim Meyering  <meyering@redhat.com>
28033
28034         maint.mk: also prohibit "#undef" of always-defined symbols
28035         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28036         Allow more than one space before the symbol name.
28037         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28038         the regexp uses alternation.
28039
28040 2010-05-26  Eric Blake  <eblake@redhat.com>
28041
28042         maint.mk: avoid echo -e
28043         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28044         Convert all uses of echo -* to printf.
28045         Reported by Matthias Bolte.
28046
28047 2010-05-25  Bruno Haible  <bruno@clisp.org>
28048
28049         Update to GNU gettext 0.18, part 2.
28050         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28051         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28052
28053 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28054
28055         Add missing include in test-pwrite.c.
28056         * tests/test-pwrite.c: Include string.h, for strcmp.
28057
28058 2010-05-24  Bruno Haible  <bruno@clisp.org>
28059
28060         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28061
28062 2010-05-24  Bruno Haible  <bruno@clisp.org>
28063
28064         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28065         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28066         iconveh_error argument.
28067         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28068         U_STRCONV_TO_LOCALE.
28069         * lib/unistr/u16-strcoll.c: Likewise.
28070         * lib/unistr/u32-strcoll.c: Likewise.
28071         * modules/unistr/u8-strcoll (Depends-on): Add
28072         uniconv/u8-strconv-to-enc, localcharset. Remove
28073         uniconv/u8-strconv-to-locale.
28074         (configure.ac): Bump version number.
28075         * modules/unistr/u16-strcoll (Depends-on): Add
28076         uniconv/u16-strconv-to-enc, localcharset. Remove
28077         uniconv/u16-strconv-to-locale.
28078         (configure.ac): Bump version number.
28079         * modules/unistr/u32-strcoll (Depends-on): Add
28080         uniconv/u32-strconv-to-enc, localcharset. Remove
28081         uniconv/u32-strconv-to-locale.
28082         (configure.ac): Bump version number.
28083
28084 2010-05-24  Bruno Haible  <bruno@clisp.org>
28085
28086         Avoid a test failure on NetBSD 5.0.
28087         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28088         an iconv() bug.
28089
28090 2010-05-24  Bruno Haible  <bruno@clisp.org>
28091
28092         Adjust #include directive style.
28093         * modules/regex (Includes): Recommend to write <regex.h>.
28094
28095 2010-05-24  Bruno Haible  <bruno@clisp.org>
28096
28097         regex: Don't require alloca.
28098         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28099         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28100         only inside if (0).
28101
28102 2010-05-23  Jim Meyering  <meyering@redhat.com>
28103
28104         test-renameat.c: include <sys/stat.h>
28105         * tests/test-renameat.c: Include <sys/stat.h>; required for
28106         definition of S_IS* macros.
28107
28108 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28109
28110         Update maintainer documentation for 'relocatable-prog' module.
28111         * doc/relocatable-maint.texi: Update.
28112         Comments by Bruno Haible.
28113
28114 2010-05-23  Bruno Haible  <bruno@clisp.org>
28115
28116         git-merge-changelog: Enable --split-merged-entry by default.
28117         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28118         (usage): Don't mention this option any more.
28119         Reported by Ralf Wildenhues.
28120
28121 2010-05-23  Jim Meyering  <meyering@redhat.com>
28122
28123         test-pwrite: do not leave behind a test file named "out"
28124         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28125         The trivial-looking use of init.sh is really necessary.
28126         It ensures that the temporary file, "out", is created in
28127         a temporary directory, and removed upon termination.
28128         * tests/test-pwrite.sh: Re-add file.
28129         * modules/pwrite-tests: Reference it.
28130
28131 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28132
28133         Fix output redirection buglet in init.sh.
28134         * tests/init.sh: Fix redirection of stderr.
28135
28136 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28137
28138         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28139
28140 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28141
28142         * modules/valgrind-tests: New file.
28143         * m4/valgrind-tests.m4: New file.
28144         * doc/valgrind-tests.texi: New file.
28145         * doc/gnulib.texi (Running self-tests under valgrind): New
28146         section.
28147
28148 2010-05-19  Bruno Haible  <bruno@clisp.org>
28149
28150         Clean up dead code in recent commit.
28151         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28152         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28153         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28154         Suggested by Paolo Bonzini.
28155
28156 2010-05-19  Bruno Haible  <bruno@clisp.org>
28157
28158         Avoid valgrind error reports from libunistring.
28159         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28160         * modules/libunistring (Files): Add it.
28161         * modules/libunistring-optional (Files): Likewise.
28162
28163 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28164             Bruno Haible  <bruno@clisp.org>
28165
28166         New module 'libunistring-optional'.
28167         * modules/libunistring-optional: New file.
28168         * m4/libunistring-base.m4: New file.
28169         * m4/libunistring-optional.m4: New file.
28170         * lib/unicase.in.h: Renamed from lib/unicase.h.
28171         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28172         * lib/unictype.in.h: Renamed from lib/unictype.h.
28173         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28174         * lib/uniname.in.h: Renamed from lib/uniname.h.
28175         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28176         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28177         * lib/unistr.in.h: Renamed from lib/unistr.h.
28178         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28179         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28180         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28181         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28182         gl_LIBUNISTRING. If the library was found, determine the installed
28183         version and set LIBUNISTRING_VERSION.
28184         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28185         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28186         handle a configuration option --with-included-libunistring.
28187         * modules/libunistring (Files): Add m4/absolute-header.m4.
28188         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28189         Add m4/libunistring-base.m4.
28190         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28191         (Makefile.am): Build unicase.h from unicase.in.h.
28192         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28193         Add m4/libunistring-base.m4.
28194         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28195         (Makefile.am): Build uniconv.h from uniconv.in.h.
28196         * modules/unictype/base (Files): Use unictype.in.h instead of
28197         unictype.h. Add m4/libunistring-base.m4.
28198         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28199         (Makefile.am): Build unictype.h from unictype.in.h.
28200         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28201         Add m4/libunistring-base.m4.
28202         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28203         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28204         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28205         Add m4/libunistring-base.m4.
28206         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28207         (Makefile.am): Build uniname.h from uniname.in.h.
28208         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28209         Add m4/libunistring-base.m4.
28210         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28211         (Makefile.am): Build uninorm.h from uninorm.in.h.
28212         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28213         unistdio.h. Add m4/libunistring-base.m4.
28214         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28215         (Makefile.am): Build unistdio.h from unistdio.in.h.
28216         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28217         Add m4/libunistring-base.m4.
28218         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28219         (Makefile.am): Build unistr.h from unistr.in.h.
28220         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28221         Add m4/libunistring-base.m4.
28222         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28223         (Makefile.am): Build unitypes.h from unitypes.in.h.
28224         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28225         Add m4/libunistring-base.m4.
28226         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28227         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28228         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28229         uniwidth.h. Add m4/libunistring-base.m4.
28230         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28231         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28232         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28233         instead of augmenting lib_SOURCES.
28234         * modules/unicase/empty-suffix-context: Likewise.
28235         * modules/unicase/locale-language: Likewise.
28236         * modules/unicase/tolower: Likewise.
28237         * modules/unicase/totitle: Likewise.
28238         * modules/unicase/toupper: Likewise.
28239         * modules/unicase/u8-casecmp: Likewise.
28240         * modules/unicase/u8-casecoll: Likewise.
28241         * modules/unicase/u8-casefold: Likewise.
28242         * modules/unicase/u8-casexfrm: Likewise.
28243         * modules/unicase/u8-ct-casefold: Likewise.
28244         * modules/unicase/u8-ct-tolower: Likewise.
28245         * modules/unicase/u8-ct-totitle: Likewise.
28246         * modules/unicase/u8-ct-toupper: Likewise.
28247         * modules/unicase/u8-is-cased: Likewise.
28248         * modules/unicase/u8-is-casefolded: Likewise.
28249         * modules/unicase/u8-is-lowercase: Likewise.
28250         * modules/unicase/u8-is-titlecase: Likewise.
28251         * modules/unicase/u8-is-uppercase: Likewise.
28252         * modules/unicase/u8-prefix-context: Likewise.
28253         * modules/unicase/u8-suffix-context: Likewise.
28254         * modules/unicase/u8-tolower: Likewise.
28255         * modules/unicase/u8-totitle: Likewise.
28256         * modules/unicase/u8-toupper: Likewise.
28257         * modules/unicase/u16-casecmp: Likewise.
28258         * modules/unicase/u16-casecoll: Likewise.
28259         * modules/unicase/u16-casefold: Likewise.
28260         * modules/unicase/u16-casexfrm: Likewise.
28261         * modules/unicase/u16-ct-casefold: Likewise.
28262         * modules/unicase/u16-ct-tolower: Likewise.
28263         * modules/unicase/u16-ct-totitle: Likewise.
28264         * modules/unicase/u16-ct-toupper: Likewise.
28265         * modules/unicase/u16-is-cased: Likewise.
28266         * modules/unicase/u16-is-casefolded: Likewise.
28267         * modules/unicase/u16-is-lowercase: Likewise.
28268         * modules/unicase/u16-is-titlecase: Likewise.
28269         * modules/unicase/u16-is-uppercase: Likewise.
28270         * modules/unicase/u16-prefix-context: Likewise.
28271         * modules/unicase/u16-suffix-context: Likewise.
28272         * modules/unicase/u16-tolower: Likewise.
28273         * modules/unicase/u16-totitle: Likewise.
28274         * modules/unicase/u16-toupper: Likewise.
28275         * modules/unicase/u32-casecmp: Likewise.
28276         * modules/unicase/u32-casecoll: Likewise.
28277         * modules/unicase/u32-casefold: Likewise.
28278         * modules/unicase/u32-casexfrm: Likewise.
28279         * modules/unicase/u32-ct-casefold: Likewise.
28280         * modules/unicase/u32-ct-tolower: Likewise.
28281         * modules/unicase/u32-ct-totitle: Likewise.
28282         * modules/unicase/u32-ct-toupper: Likewise.
28283         * modules/unicase/u32-is-cased: Likewise.
28284         * modules/unicase/u32-is-casefolded: Likewise.
28285         * modules/unicase/u32-is-lowercase: Likewise.
28286         * modules/unicase/u32-is-titlecase: Likewise.
28287         * modules/unicase/u32-is-uppercase: Likewise.
28288         * modules/unicase/u32-prefix-context: Likewise.
28289         * modules/unicase/u32-suffix-context: Likewise.
28290         * modules/unicase/u32-tolower: Likewise.
28291         * modules/unicase/u32-totitle: Likewise.
28292         * modules/unicase/u32-toupper: Likewise.
28293         * modules/unicase/ulc-casecmp: Likewise.
28294         * modules/unicase/ulc-casecoll: Likewise.
28295         * modules/unicase/ulc-casexfrm: Likewise.
28296         * modules/uniconv/u8-conv-from-enc: Likewise.
28297         * modules/uniconv/u8-conv-to-enc: Likewise.
28298         * modules/uniconv/u8-strconv-from-enc: Likewise.
28299         * modules/uniconv/u8-strconv-from-locale: Likewise.
28300         * modules/uniconv/u8-strconv-to-enc: Likewise.
28301         * modules/uniconv/u8-strconv-to-locale: Likewise.
28302         * modules/uniconv/u16-conv-from-enc: Likewise.
28303         * modules/uniconv/u16-conv-to-enc: Likewise.
28304         * modules/uniconv/u16-strconv-from-enc: Likewise.
28305         * modules/uniconv/u16-strconv-from-locale: Likewise.
28306         * modules/uniconv/u16-strconv-to-enc: Likewise.
28307         * modules/uniconv/u16-strconv-to-locale: Likewise.
28308         * modules/uniconv/u32-conv-from-enc: Likewise.
28309         * modules/uniconv/u32-conv-to-enc: Likewise.
28310         * modules/uniconv/u32-strconv-from-enc: Likewise.
28311         * modules/uniconv/u32-strconv-from-locale: Likewise.
28312         * modules/uniconv/u32-strconv-to-enc: Likewise.
28313         * modules/uniconv/u32-strconv-to-locale: Likewise.
28314         * modules/unictype/bidicategory-byname: Likewise.
28315         * modules/unictype/bidicategory-name: Likewise.
28316         * modules/unictype/bidicategory-of: Likewise.
28317         * modules/unictype/bidicategory-test: Likewise.
28318         * modules/unictype/block-list: Likewise.
28319         * modules/unictype/block-test: Likewise.
28320         * modules/unictype/category-C: Likewise.
28321         * modules/unictype/category-Cc: Likewise.
28322         * modules/unictype/category-Cf: Likewise.
28323         * modules/unictype/category-Cn: Likewise.
28324         * modules/unictype/category-Co: Likewise.
28325         * modules/unictype/category-Cs: Likewise.
28326         * modules/unictype/category-L: Likewise.
28327         * modules/unictype/category-Ll: Likewise.
28328         * modules/unictype/category-Lm: Likewise.
28329         * modules/unictype/category-Lo: Likewise.
28330         * modules/unictype/category-Lt: Likewise.
28331         * modules/unictype/category-Lu: Likewise.
28332         * modules/unictype/category-M: Likewise.
28333         * modules/unictype/category-Mc: Likewise.
28334         * modules/unictype/category-Me: Likewise.
28335         * modules/unictype/category-Mn: Likewise.
28336         * modules/unictype/category-N: Likewise.
28337         * modules/unictype/category-Nd: Likewise.
28338         * modules/unictype/category-Nl: Likewise.
28339         * modules/unictype/category-No: Likewise.
28340         * modules/unictype/category-P: Likewise.
28341         * modules/unictype/category-Pc: Likewise.
28342         * modules/unictype/category-Pd: Likewise.
28343         * modules/unictype/category-Pe: Likewise.
28344         * modules/unictype/category-Pf: Likewise.
28345         * modules/unictype/category-Pi: Likewise.
28346         * modules/unictype/category-Po: Likewise.
28347         * modules/unictype/category-Ps: Likewise.
28348         * modules/unictype/category-S: Likewise.
28349         * modules/unictype/category-Sc: Likewise.
28350         * modules/unictype/category-Sk: Likewise.
28351         * modules/unictype/category-Sm: Likewise.
28352         * modules/unictype/category-So: Likewise.
28353         * modules/unictype/category-Z: Likewise.
28354         * modules/unictype/category-Zl: Likewise.
28355         * modules/unictype/category-Zp: Likewise.
28356         * modules/unictype/category-Zs: Likewise.
28357         * modules/unictype/category-and: Likewise.
28358         * modules/unictype/category-and-not: Likewise.
28359         * modules/unictype/category-byname: Likewise.
28360         * modules/unictype/category-name: Likewise.
28361         * modules/unictype/category-none: Likewise.
28362         * modules/unictype/category-of: Likewise.
28363         * modules/unictype/category-or: Likewise.
28364         * modules/unictype/category-test: Likewise.
28365         * modules/unictype/combining-class: Likewise.
28366         * modules/unictype/ctype-alnum: Likewise.
28367         * modules/unictype/ctype-alpha: Likewise.
28368         * modules/unictype/ctype-blank: Likewise.
28369         * modules/unictype/ctype-cntrl: Likewise.
28370         * modules/unictype/ctype-digit: Likewise.
28371         * modules/unictype/ctype-graph: Likewise.
28372         * modules/unictype/ctype-lower: Likewise.
28373         * modules/unictype/ctype-print: Likewise.
28374         * modules/unictype/ctype-punct: Likewise.
28375         * modules/unictype/ctype-space: Likewise.
28376         * modules/unictype/ctype-upper: Likewise.
28377         * modules/unictype/ctype-xdigit: Likewise.
28378         * modules/unictype/decimal-digit: Likewise.
28379         * modules/unictype/digit: Likewise.
28380         * modules/unictype/mirror: Likewise.
28381         * modules/unictype/numeric: Likewise.
28382         * modules/unictype/property-alphabetic: Likewise.
28383         * modules/unictype/property-ascii-hex-digit: Likewise.
28384         * modules/unictype/property-bidi-arabic-digit: Likewise.
28385         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28386         * modules/unictype/property-bidi-block-separator: Likewise.
28387         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28388         * modules/unictype/property-bidi-common-separator: Likewise.
28389         * modules/unictype/property-bidi-control: Likewise.
28390         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28391         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28392         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28393         * modules/unictype/property-bidi-european-digit: Likewise.
28394         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28395         * modules/unictype/property-bidi-left-to-right: Likewise.
28396         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28397         * modules/unictype/property-bidi-other-neutral: Likewise.
28398         * modules/unictype/property-bidi-pdf: Likewise.
28399         * modules/unictype/property-bidi-segment-separator: Likewise.
28400         * modules/unictype/property-bidi-whitespace: Likewise.
28401         * modules/unictype/property-byname: Likewise.
28402         * modules/unictype/property-combining: Likewise.
28403         * modules/unictype/property-composite: Likewise.
28404         * modules/unictype/property-currency-symbol: Likewise.
28405         * modules/unictype/property-dash: Likewise.
28406         * modules/unictype/property-decimal-digit: Likewise.
28407         * modules/unictype/property-default-ignorable-code-point: Likewise.
28408         * modules/unictype/property-deprecated: Likewise.
28409         * modules/unictype/property-diacritic: Likewise.
28410         * modules/unictype/property-extender: Likewise.
28411         * modules/unictype/property-format-control: Likewise.
28412         * modules/unictype/property-grapheme-base: Likewise.
28413         * modules/unictype/property-grapheme-extend: Likewise.
28414         * modules/unictype/property-grapheme-link: Likewise.
28415         * modules/unictype/property-hex-digit: Likewise.
28416         * modules/unictype/property-hyphen: Likewise.
28417         * modules/unictype/property-id-continue: Likewise.
28418         * modules/unictype/property-id-start: Likewise.
28419         * modules/unictype/property-ideographic: Likewise.
28420         * modules/unictype/property-ids-binary-operator: Likewise.
28421         * modules/unictype/property-ids-trinary-operator: Likewise.
28422         * modules/unictype/property-ignorable-control: Likewise.
28423         * modules/unictype/property-iso-control: Likewise.
28424         * modules/unictype/property-join-control: Likewise.
28425         * modules/unictype/property-left-of-pair: Likewise.
28426         * modules/unictype/property-line-separator: Likewise.
28427         * modules/unictype/property-logical-order-exception: Likewise.
28428         * modules/unictype/property-lowercase: Likewise.
28429         * modules/unictype/property-math: Likewise.
28430         * modules/unictype/property-non-break: Likewise.
28431         * modules/unictype/property-not-a-character: Likewise.
28432         * modules/unictype/property-numeric: Likewise.
28433         * modules/unictype/property-other-alphabetic: Likewise.
28434         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28435         * modules/unictype/property-other-grapheme-extend: Likewise.
28436         * modules/unictype/property-other-id-continue: Likewise.
28437         * modules/unictype/property-other-id-start: Likewise.
28438         * modules/unictype/property-other-lowercase: Likewise.
28439         * modules/unictype/property-other-math: Likewise.
28440         * modules/unictype/property-other-uppercase: Likewise.
28441         * modules/unictype/property-paired-punctuation: Likewise.
28442         * modules/unictype/property-paragraph-separator: Likewise.
28443         * modules/unictype/property-pattern-syntax: Likewise.
28444         * modules/unictype/property-pattern-white-space: Likewise.
28445         * modules/unictype/property-private-use: Likewise.
28446         * modules/unictype/property-punctuation: Likewise.
28447         * modules/unictype/property-quotation-mark: Likewise.
28448         * modules/unictype/property-radical: Likewise.
28449         * modules/unictype/property-sentence-terminal: Likewise.
28450         * modules/unictype/property-soft-dotted: Likewise.
28451         * modules/unictype/property-space: Likewise.
28452         * modules/unictype/property-terminal-punctuation: Likewise.
28453         * modules/unictype/property-test: Likewise.
28454         * modules/unictype/property-titlecase: Likewise.
28455         * modules/unictype/property-unassigned-code-value: Likewise.
28456         * modules/unictype/property-unified-ideograph: Likewise.
28457         * modules/unictype/property-uppercase: Likewise.
28458         * modules/unictype/property-variation-selector: Likewise.
28459         * modules/unictype/property-white-space: Likewise.
28460         * modules/unictype/property-xid-continue: Likewise.
28461         * modules/unictype/property-xid-start: Likewise.
28462         * modules/unictype/property-zero-width: Likewise.
28463         * modules/unictype/scripts: Likewise.
28464         * modules/unictype/syntax-c-ident: Likewise.
28465         * modules/unictype/syntax-c-whitespace: Likewise.
28466         * modules/unictype/syntax-java-ident: Likewise.
28467         * modules/unictype/syntax-java-whitespace: Likewise.
28468         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28469         * modules/unilbrk/u8-width-linebreaks: Likewise.
28470         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28471         * modules/unilbrk/u16-width-linebreaks: Likewise.
28472         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28473         * modules/unilbrk/u32-width-linebreaks: Likewise.
28474         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28475         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28476         * modules/uniname/uniname: Likewise.
28477         * modules/uninorm/canonical-decomposition: Likewise.
28478         * modules/uninorm/composition: Likewise.
28479         * modules/uninorm/decomposing-form: Likewise.
28480         * modules/uninorm/decomposition: Likewise.
28481         * modules/uninorm/filter: Likewise.
28482         * modules/uninorm/nfc: Likewise.
28483         * modules/uninorm/nfd: Likewise.
28484         * modules/uninorm/nfkc: Likewise.
28485         * modules/uninorm/nfkd: Likewise.
28486         * modules/uninorm/u8-normalize: Likewise.
28487         * modules/uninorm/u8-normcmp: Likewise.
28488         * modules/uninorm/u8-normcoll: Likewise.
28489         * modules/uninorm/u8-normxfrm: Likewise.
28490         * modules/uninorm/u16-normalize: Likewise.
28491         * modules/uninorm/u16-normcmp: Likewise.
28492         * modules/uninorm/u16-normcoll: Likewise.
28493         * modules/uninorm/u16-normxfrm: Likewise.
28494         * modules/uninorm/u32-normalize: Likewise.
28495         * modules/uninorm/u32-normcmp: Likewise.
28496         * modules/uninorm/u32-normcoll: Likewise.
28497         * modules/uninorm/u32-normxfrm: Likewise.
28498         * modules/unistdio/u8-asnprintf: Likewise.
28499         * modules/unistdio/u8-asprintf: Likewise.
28500         * modules/unistdio/u8-snprintf: Likewise.
28501         * modules/unistdio/u8-sprintf: Likewise.
28502         * modules/unistdio/u8-u8-asnprintf: Likewise.
28503         * modules/unistdio/u8-u8-asprintf: Likewise.
28504         * modules/unistdio/u8-u8-snprintf: Likewise.
28505         * modules/unistdio/u8-u8-sprintf: Likewise.
28506         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28507         * modules/unistdio/u8-u8-vasprintf: Likewise.
28508         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28509         * modules/unistdio/u8-u8-vsprintf: Likewise.
28510         * modules/unistdio/u8-vasnprintf: Likewise.
28511         * modules/unistdio/u8-vasprintf: Likewise.
28512         * modules/unistdio/u8-vsnprintf: Likewise.
28513         * modules/unistdio/u8-vsprintf: Likewise.
28514         * modules/unistdio/u16-asnprintf: Likewise.
28515         * modules/unistdio/u16-asprintf: Likewise.
28516         * modules/unistdio/u16-snprintf: Likewise.
28517         * modules/unistdio/u16-sprintf: Likewise.
28518         * modules/unistdio/u16-u16-asnprintf: Likewise.
28519         * modules/unistdio/u16-u16-asprintf: Likewise.
28520         * modules/unistdio/u16-u16-snprintf: Likewise.
28521         * modules/unistdio/u16-u16-sprintf: Likewise.
28522         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28523         * modules/unistdio/u16-u16-vasprintf: Likewise.
28524         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28525         * modules/unistdio/u16-u16-vsprintf: Likewise.
28526         * modules/unistdio/u16-vasnprintf: Likewise.
28527         * modules/unistdio/u16-vasprintf: Likewise.
28528         * modules/unistdio/u16-vsnprintf: Likewise.
28529         * modules/unistdio/u16-vsprintf: Likewise.
28530         * modules/unistdio/u32-asnprintf: Likewise.
28531         * modules/unistdio/u32-asprintf: Likewise.
28532         * modules/unistdio/u32-snprintf: Likewise.
28533         * modules/unistdio/u32-sprintf: Likewise.
28534         * modules/unistdio/u32-u32-asnprintf: Likewise.
28535         * modules/unistdio/u32-u32-asprintf: Likewise.
28536         * modules/unistdio/u32-u32-snprintf: Likewise.
28537         * modules/unistdio/u32-u32-sprintf: Likewise.
28538         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28539         * modules/unistdio/u32-u32-vasprintf: Likewise.
28540         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28541         * modules/unistdio/u32-u32-vsprintf: Likewise.
28542         * modules/unistdio/u32-vasnprintf: Likewise.
28543         * modules/unistdio/u32-vasprintf: Likewise.
28544         * modules/unistdio/u32-vsnprintf: Likewise.
28545         * modules/unistdio/u32-vsprintf: Likewise.
28546         * modules/unistdio/ulc-asnprintf: Likewise.
28547         * modules/unistdio/ulc-asprintf: Likewise.
28548         * modules/unistdio/ulc-fprintf: Likewise.
28549         * modules/unistdio/ulc-snprintf: Likewise.
28550         * modules/unistdio/ulc-sprintf: Likewise.
28551         * modules/unistdio/ulc-vasnprintf: Likewise.
28552         * modules/unistdio/ulc-vasprintf: Likewise.
28553         * modules/unistdio/ulc-vfprintf: Likewise.
28554         * modules/unistdio/ulc-vsnprintf: Likewise.
28555         * modules/unistdio/ulc-vsprintf: Likewise.
28556         * modules/unistr/u8-check: Likewise.
28557         * modules/unistr/u8-chr: Likewise.
28558         * modules/unistr/u8-cmp: Likewise.
28559         * modules/unistr/u8-cmp2: Likewise.
28560         * modules/unistr/u8-cpy: Likewise.
28561         * modules/unistr/u8-cpy-alloc: Likewise.
28562         * modules/unistr/u8-endswith: Likewise.
28563         * modules/unistr/u8-mblen: Likewise.
28564         * modules/unistr/u8-mbsnlen: Likewise.
28565         * modules/unistr/u8-mbtouc: Likewise.
28566         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28567         * modules/unistr/u8-mbtoucr: Likewise.
28568         * modules/unistr/u8-move: Likewise.
28569         * modules/unistr/u8-next: Likewise.
28570         * modules/unistr/u8-prev: Likewise.
28571         * modules/unistr/u8-set: Likewise.
28572         * modules/unistr/u8-startswith: Likewise.
28573         * modules/unistr/u8-stpcpy: Likewise.
28574         * modules/unistr/u8-stpncpy: Likewise.
28575         * modules/unistr/u8-strcat: Likewise.
28576         * modules/unistr/u8-strchr: Likewise.
28577         * modules/unistr/u8-strcmp: Likewise.
28578         * modules/unistr/u8-strcoll: Likewise.
28579         * modules/unistr/u8-strcpy: Likewise.
28580         * modules/unistr/u8-strcspn: Likewise.
28581         * modules/unistr/u8-strdup: Likewise.
28582         * modules/unistr/u8-strlen: Likewise.
28583         * modules/unistr/u8-strmblen: Likewise.
28584         * modules/unistr/u8-strmbtouc: Likewise.
28585         * modules/unistr/u8-strncat: Likewise.
28586         * modules/unistr/u8-strncmp: Likewise.
28587         * modules/unistr/u8-strncpy: Likewise.
28588         * modules/unistr/u8-strnlen: Likewise.
28589         * modules/unistr/u8-strpbrk: Likewise.
28590         * modules/unistr/u8-strrchr: Likewise.
28591         * modules/unistr/u8-strspn: Likewise.
28592         * modules/unistr/u8-strstr: Likewise.
28593         * modules/unistr/u8-strtok: Likewise.
28594         * modules/unistr/u8-to-u16: Likewise.
28595         * modules/unistr/u8-to-u32: Likewise.
28596         * modules/unistr/u8-uctomb: Likewise.
28597         * modules/unistr/u16-check: Likewise.
28598         * modules/unistr/u16-chr: Likewise.
28599         * modules/unistr/u16-cmp: Likewise.
28600         * modules/unistr/u16-cmp2: Likewise.
28601         * modules/unistr/u16-cpy: Likewise.
28602         * modules/unistr/u16-cpy-alloc: Likewise.
28603         * modules/unistr/u16-endswith: Likewise.
28604         * modules/unistr/u16-mblen: Likewise.
28605         * modules/unistr/u16-mbsnlen: Likewise.
28606         * modules/unistr/u16-mbtouc: Likewise.
28607         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28608         * modules/unistr/u16-mbtoucr: Likewise.
28609         * modules/unistr/u16-move: Likewise.
28610         * modules/unistr/u16-next: Likewise.
28611         * modules/unistr/u16-prev: Likewise.
28612         * modules/unistr/u16-set: Likewise.
28613         * modules/unistr/u16-startswith: Likewise.
28614         * modules/unistr/u16-stpcpy: Likewise.
28615         * modules/unistr/u16-stpncpy: Likewise.
28616         * modules/unistr/u16-strcat: Likewise.
28617         * modules/unistr/u16-strchr: Likewise.
28618         * modules/unistr/u16-strcmp: Likewise.
28619         * modules/unistr/u16-strcoll: Likewise.
28620         * modules/unistr/u16-strcpy: Likewise.
28621         * modules/unistr/u16-strcspn: Likewise.
28622         * modules/unistr/u16-strdup: Likewise.
28623         * modules/unistr/u16-strlen: Likewise.
28624         * modules/unistr/u16-strmblen: Likewise.
28625         * modules/unistr/u16-strmbtouc: Likewise.
28626         * modules/unistr/u16-strncat: Likewise.
28627         * modules/unistr/u16-strncmp: Likewise.
28628         * modules/unistr/u16-strncpy: Likewise.
28629         * modules/unistr/u16-strnlen: Likewise.
28630         * modules/unistr/u16-strpbrk: Likewise.
28631         * modules/unistr/u16-strrchr: Likewise.
28632         * modules/unistr/u16-strspn: Likewise.
28633         * modules/unistr/u16-strstr: Likewise.
28634         * modules/unistr/u16-strtok: Likewise.
28635         * modules/unistr/u16-to-u32: Likewise.
28636         * modules/unistr/u16-to-u8: Likewise.
28637         * modules/unistr/u16-uctomb: Likewise.
28638         * modules/unistr/u32-check: Likewise.
28639         * modules/unistr/u32-chr: Likewise.
28640         * modules/unistr/u32-cmp: Likewise.
28641         * modules/unistr/u32-cmp2: Likewise.
28642         * modules/unistr/u32-cpy: Likewise.
28643         * modules/unistr/u32-cpy-alloc: Likewise.
28644         * modules/unistr/u32-endswith: Likewise.
28645         * modules/unistr/u32-mblen: Likewise.
28646         * modules/unistr/u32-mbsnlen: Likewise.
28647         * modules/unistr/u32-mbtouc: Likewise.
28648         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28649         * modules/unistr/u32-mbtoucr: Likewise.
28650         * modules/unistr/u32-move: Likewise.
28651         * modules/unistr/u32-next: Likewise.
28652         * modules/unistr/u32-prev: Likewise.
28653         * modules/unistr/u32-set: Likewise.
28654         * modules/unistr/u32-startswith: Likewise.
28655         * modules/unistr/u32-stpcpy: Likewise.
28656         * modules/unistr/u32-stpncpy: Likewise.
28657         * modules/unistr/u32-strcat: Likewise.
28658         * modules/unistr/u32-strchr: Likewise.
28659         * modules/unistr/u32-strcmp: Likewise.
28660         * modules/unistr/u32-strcoll: Likewise.
28661         * modules/unistr/u32-strcpy: Likewise.
28662         * modules/unistr/u32-strcspn: Likewise.
28663         * modules/unistr/u32-strdup: Likewise.
28664         * modules/unistr/u32-strlen: Likewise.
28665         * modules/unistr/u32-strmblen: Likewise.
28666         * modules/unistr/u32-strmbtouc: Likewise.
28667         * modules/unistr/u32-strncat: Likewise.
28668         * modules/unistr/u32-strncmp: Likewise.
28669         * modules/unistr/u32-strncpy: Likewise.
28670         * modules/unistr/u32-strnlen: Likewise.
28671         * modules/unistr/u32-strpbrk: Likewise.
28672         * modules/unistr/u32-strrchr: Likewise.
28673         * modules/unistr/u32-strspn: Likewise.
28674         * modules/unistr/u32-strstr: Likewise.
28675         * modules/unistr/u32-strtok: Likewise.
28676         * modules/unistr/u32-to-u16: Likewise.
28677         * modules/unistr/u32-to-u8: Likewise.
28678         * modules/unistr/u32-uctomb: Likewise.
28679         * modules/uniwbrk/u8-wordbreaks: Likewise.
28680         * modules/uniwbrk/u16-wordbreaks: Likewise.
28681         * modules/uniwbrk/u32-wordbreaks: Likewise.
28682         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28683         * modules/uniwbrk/wordbreak-property: Likewise.
28684         * modules/uniwidth/u8-strwidth: Likewise.
28685         * modules/uniwidth/u8-width: Likewise.
28686         * modules/uniwidth/u16-strwidth: Likewise.
28687         * modules/uniwidth/u16-width: Likewise.
28688         * modules/uniwidth/u32-strwidth: Likewise.
28689         * modules/uniwidth/u32-width: Likewise.
28690         * modules/uniwidth/width: Likewise.
28691         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28692         with $(LIBUNISTRING).
28693         * modules/unicase/ignorable-tests: Likewise.
28694         * modules/unicase/locale-language-tests: Likewise.
28695         * modules/unicase/tolower-tests: Likewise.
28696         * modules/unicase/totitle-tests: Likewise.
28697         * modules/unicase/toupper-tests: Likewise.
28698         * modules/unicase/u8-casecmp-tests: Likewise.
28699         * modules/unicase/u8-casecoll-tests: Likewise.
28700         * modules/unicase/u8-casefold-tests: Likewise.
28701         * modules/unicase/u8-is-cased-tests: Likewise.
28702         * modules/unicase/u8-is-casefolded-tests: Likewise.
28703         * modules/unicase/u8-is-lowercase-tests: Likewise.
28704         * modules/unicase/u8-is-titlecase-tests: Likewise.
28705         * modules/unicase/u8-is-uppercase-tests: Likewise.
28706         * modules/unicase/u8-tolower-tests: Likewise.
28707         * modules/unicase/u8-totitle-tests: Likewise.
28708         * modules/unicase/u8-toupper-tests: Likewise.
28709         * modules/unicase/u16-casecmp-tests: Likewise.
28710         * modules/unicase/u16-casecoll-tests: Likewise.
28711         * modules/unicase/u16-casefold-tests: Likewise.
28712         * modules/unicase/u16-is-cased-tests: Likewise.
28713         * modules/unicase/u16-is-casefolded-tests: Likewise.
28714         * modules/unicase/u16-is-lowercase-tests: Likewise.
28715         * modules/unicase/u16-is-titlecase-tests: Likewise.
28716         * modules/unicase/u16-is-uppercase-tests: Likewise.
28717         * modules/unicase/u16-tolower-tests: Likewise.
28718         * modules/unicase/u16-totitle-tests: Likewise.
28719         * modules/unicase/u16-toupper-tests: Likewise.
28720         * modules/unicase/u32-casecmp-tests: Likewise.
28721         * modules/unicase/u32-casecoll-tests: Likewise.
28722         * modules/unicase/u32-casefold-tests: Likewise.
28723         * modules/unicase/u32-is-cased-tests: Likewise.
28724         * modules/unicase/u32-is-casefolded-tests: Likewise.
28725         * modules/unicase/u32-is-lowercase-tests: Likewise.
28726         * modules/unicase/u32-is-titlecase-tests: Likewise.
28727         * modules/unicase/u32-is-uppercase-tests: Likewise.
28728         * modules/unicase/u32-tolower-tests: Likewise.
28729         * modules/unicase/u32-totitle-tests: Likewise.
28730         * modules/unicase/u32-toupper-tests: Likewise.
28731         * modules/unicase/ulc-casecmp-tests: Likewise.
28732         * modules/unicase/ulc-casecoll-tests: Likewise.
28733         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28734         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28735         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28736         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28737         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28738         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28739         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28740         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28741         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28742         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28743         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28744         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28745         * modules/unictype/bidicategory-byname-tests: Likewise.
28746         * modules/unictype/bidicategory-name-tests: Likewise.
28747         * modules/unictype/bidicategory-of-tests: Likewise.
28748         * modules/unictype/bidicategory-test-tests: Likewise.
28749         * modules/unictype/block-list-tests: Likewise.
28750         * modules/unictype/block-of-tests: Likewise.
28751         * modules/unictype/block-test-tests: Likewise.
28752         * modules/unictype/category-C-tests: Likewise.
28753         * modules/unictype/category-Cc-tests: Likewise.
28754         * modules/unictype/category-Cf-tests: Likewise.
28755         * modules/unictype/category-Cn-tests: Likewise.
28756         * modules/unictype/category-Co-tests: Likewise.
28757         * modules/unictype/category-Cs-tests: Likewise.
28758         * modules/unictype/category-L-tests: Likewise.
28759         * modules/unictype/category-Ll-tests: Likewise.
28760         * modules/unictype/category-Lm-tests: Likewise.
28761         * modules/unictype/category-Lo-tests: Likewise.
28762         * modules/unictype/category-Lt-tests: Likewise.
28763         * modules/unictype/category-Lu-tests: Likewise.
28764         * modules/unictype/category-M-tests: Likewise.
28765         * modules/unictype/category-Mc-tests: Likewise.
28766         * modules/unictype/category-Me-tests: Likewise.
28767         * modules/unictype/category-Mn-tests: Likewise.
28768         * modules/unictype/category-N-tests: Likewise.
28769         * modules/unictype/category-Nd-tests: Likewise.
28770         * modules/unictype/category-Nl-tests: Likewise.
28771         * modules/unictype/category-No-tests: Likewise.
28772         * modules/unictype/category-P-tests: Likewise.
28773         * modules/unictype/category-Pc-tests: Likewise.
28774         * modules/unictype/category-Pd-tests: Likewise.
28775         * modules/unictype/category-Pe-tests: Likewise.
28776         * modules/unictype/category-Pf-tests: Likewise.
28777         * modules/unictype/category-Pi-tests: Likewise.
28778         * modules/unictype/category-Po-tests: Likewise.
28779         * modules/unictype/category-Ps-tests: Likewise.
28780         * modules/unictype/category-S-tests: Likewise.
28781         * modules/unictype/category-Sc-tests: Likewise.
28782         * modules/unictype/category-Sk-tests: Likewise.
28783         * modules/unictype/category-Sm-tests: Likewise.
28784         * modules/unictype/category-So-tests: Likewise.
28785         * modules/unictype/category-Z-tests: Likewise.
28786         * modules/unictype/category-Zl-tests: Likewise.
28787         * modules/unictype/category-Zp-tests: Likewise.
28788         * modules/unictype/category-Zs-tests: Likewise.
28789         * modules/unictype/category-and-not-tests: Likewise.
28790         * modules/unictype/category-and-tests: Likewise.
28791         * modules/unictype/category-byname-tests: Likewise.
28792         * modules/unictype/category-name-tests: Likewise.
28793         * modules/unictype/category-none-tests: Likewise.
28794         * modules/unictype/category-of-tests: Likewise.
28795         * modules/unictype/category-or-tests: Likewise.
28796         * modules/unictype/category-test-withtable-tests: Likewise.
28797         * modules/unictype/combining-class-tests: Likewise.
28798         * modules/unictype/ctype-alnum-tests: Likewise.
28799         * modules/unictype/ctype-alpha-tests: Likewise.
28800         * modules/unictype/ctype-blank-tests: Likewise.
28801         * modules/unictype/ctype-cntrl-tests: Likewise.
28802         * modules/unictype/ctype-digit-tests: Likewise.
28803         * modules/unictype/ctype-graph-tests: Likewise.
28804         * modules/unictype/ctype-lower-tests: Likewise.
28805         * modules/unictype/ctype-print-tests: Likewise.
28806         * modules/unictype/ctype-punct-tests: Likewise.
28807         * modules/unictype/ctype-space-tests: Likewise.
28808         * modules/unictype/ctype-upper-tests: Likewise.
28809         * modules/unictype/ctype-xdigit-tests: Likewise.
28810         * modules/unictype/decimal-digit-tests: Likewise.
28811         * modules/unictype/digit-tests: Likewise.
28812         * modules/unictype/mirror-tests: Likewise.
28813         * modules/unictype/numeric-tests: Likewise.
28814         * modules/unictype/property-alphabetic-tests: Likewise.
28815         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28816         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28817         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28818         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28819         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28820         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28821         * modules/unictype/property-bidi-control-tests: Likewise.
28822         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28823         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28824         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28825         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28826         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28827         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28828         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28829         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28830         * modules/unictype/property-bidi-pdf-tests: Likewise.
28831         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28832         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28833         * modules/unictype/property-byname-tests: Likewise.
28834         * modules/unictype/property-combining-tests: Likewise.
28835         * modules/unictype/property-composite-tests: Likewise.
28836         * modules/unictype/property-currency-symbol-tests: Likewise.
28837         * modules/unictype/property-dash-tests: Likewise.
28838         * modules/unictype/property-decimal-digit-tests: Likewise.
28839         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28840         * modules/unictype/property-deprecated-tests: Likewise.
28841         * modules/unictype/property-diacritic-tests: Likewise.
28842         * modules/unictype/property-extender-tests: Likewise.
28843         * modules/unictype/property-format-control-tests: Likewise.
28844         * modules/unictype/property-grapheme-base-tests: Likewise.
28845         * modules/unictype/property-grapheme-extend-tests: Likewise.
28846         * modules/unictype/property-grapheme-link-tests: Likewise.
28847         * modules/unictype/property-hex-digit-tests: Likewise.
28848         * modules/unictype/property-hyphen-tests: Likewise.
28849         * modules/unictype/property-id-continue-tests: Likewise.
28850         * modules/unictype/property-id-start-tests: Likewise.
28851         * modules/unictype/property-ideographic-tests: Likewise.
28852         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28853         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28854         * modules/unictype/property-ignorable-control-tests: Likewise.
28855         * modules/unictype/property-iso-control-tests: Likewise.
28856         * modules/unictype/property-join-control-tests: Likewise.
28857         * modules/unictype/property-left-of-pair-tests: Likewise.
28858         * modules/unictype/property-line-separator-tests: Likewise.
28859         * modules/unictype/property-logical-order-exception-tests: Likewise.
28860         * modules/unictype/property-lowercase-tests: Likewise.
28861         * modules/unictype/property-math-tests: Likewise.
28862         * modules/unictype/property-non-break-tests: Likewise.
28863         * modules/unictype/property-not-a-character-tests: Likewise.
28864         * modules/unictype/property-numeric-tests: Likewise.
28865         * modules/unictype/property-other-alphabetic-tests: Likewise.
28866         * modules/unictype/property-other-default-ignorable-code-point-tests:
28867         Likewise.
28868         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28869         * modules/unictype/property-other-id-continue-tests: Likewise.
28870         * modules/unictype/property-other-id-start-tests: Likewise.
28871         * modules/unictype/property-other-lowercase-tests: Likewise.
28872         * modules/unictype/property-other-math-tests: Likewise.
28873         * modules/unictype/property-other-uppercase-tests: Likewise.
28874         * modules/unictype/property-paired-punctuation-tests: Likewise.
28875         * modules/unictype/property-paragraph-separator-tests: Likewise.
28876         * modules/unictype/property-pattern-syntax-tests: Likewise.
28877         * modules/unictype/property-pattern-white-space-tests: Likewise.
28878         * modules/unictype/property-private-use-tests: Likewise.
28879         * modules/unictype/property-punctuation-tests: Likewise.
28880         * modules/unictype/property-quotation-mark-tests: Likewise.
28881         * modules/unictype/property-radical-tests: Likewise.
28882         * modules/unictype/property-sentence-terminal-tests: Likewise.
28883         * modules/unictype/property-soft-dotted-tests: Likewise.
28884         * modules/unictype/property-space-tests: Likewise.
28885         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28886         * modules/unictype/property-test-tests: Likewise.
28887         * modules/unictype/property-titlecase-tests: Likewise.
28888         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28889         * modules/unictype/property-unified-ideograph-tests: Likewise.
28890         * modules/unictype/property-uppercase-tests: Likewise.
28891         * modules/unictype/property-variation-selector-tests: Likewise.
28892         * modules/unictype/property-white-space-tests: Likewise.
28893         * modules/unictype/property-xid-continue-tests: Likewise.
28894         * modules/unictype/property-xid-start-tests: Likewise.
28895         * modules/unictype/property-zero-width-tests: Likewise.
28896         * modules/unictype/scripts-tests: Likewise.
28897         * modules/unictype/syntax-c-ident-tests: Likewise.
28898         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28899         * modules/unictype/syntax-java-ident-tests: Likewise.
28900         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28901         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28902         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28903         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28904         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28905         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28906         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28907         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28908         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28909         * modules/uniname/uniname-tests: Likewise.
28910         * modules/uninorm/canonical-decomposition-tests: Likewise.
28911         * modules/uninorm/compat-decomposition-tests: Likewise.
28912         * modules/uninorm/composition-tests: Likewise.
28913         * modules/uninorm/decomposing-form-tests: Likewise.
28914         * modules/uninorm/decomposition-tests: Likewise.
28915         * modules/uninorm/filter-tests: Likewise.
28916         * modules/uninorm/nfc-tests: Likewise.
28917         * modules/uninorm/nfd-tests: Likewise.
28918         * modules/uninorm/nfkc-tests: Likewise.
28919         * modules/uninorm/nfkd-tests: Likewise.
28920         * modules/uninorm/u8-normcmp-tests: Likewise.
28921         * modules/uninorm/u8-normcoll-tests: Likewise.
28922         * modules/uninorm/u16-normcmp-tests: Likewise.
28923         * modules/uninorm/u16-normcoll-tests: Likewise.
28924         * modules/uninorm/u32-normcmp-tests: Likewise.
28925         * modules/uninorm/u32-normcoll-tests: Likewise.
28926         * modules/unistdio/u8-asnprintf-tests: Likewise.
28927         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28928         * modules/unistdio/u8-vasprintf-tests: Likewise.
28929         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28930         * modules/unistdio/u8-vsprintf-tests: Likewise.
28931         * modules/unistdio/u16-asnprintf-tests: Likewise.
28932         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28933         * modules/unistdio/u16-vasprintf-tests: Likewise.
28934         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28935         * modules/unistdio/u16-vsprintf-tests: Likewise.
28936         * modules/unistdio/u32-asnprintf-tests: Likewise.
28937         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28938         * modules/unistdio/u32-vasprintf-tests: Likewise.
28939         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28940         * modules/unistdio/u32-vsprintf-tests: Likewise.
28941         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28942         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28943         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28944         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28945         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28946         * modules/unistr/u8-check-tests: Likewise.
28947         * modules/unistr/u8-chr-tests: Likewise.
28948         * modules/unistr/u8-cmp-tests: Likewise.
28949         * modules/unistr/u8-cmp2-tests: Likewise.
28950         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28951         * modules/unistr/u8-cpy-tests: Likewise.
28952         * modules/unistr/u8-mblen-tests: Likewise.
28953         * modules/unistr/u8-mbsnlen-tests: Likewise.
28954         * modules/unistr/u8-mbtouc-tests: Likewise.
28955         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28956         * modules/unistr/u8-mbtoucr-tests: Likewise.
28957         * modules/unistr/u8-move-tests: Likewise.
28958         * modules/unistr/u8-next-tests: Likewise.
28959         * modules/unistr/u8-prev-tests: Likewise.
28960         * modules/unistr/u8-set-tests: Likewise.
28961         * modules/unistr/u8-stpcpy-tests: Likewise.
28962         * modules/unistr/u8-stpncpy-tests: Likewise.
28963         * modules/unistr/u8-strcat-tests: Likewise.
28964         * modules/unistr/u8-strcmp-tests: Likewise.
28965         * modules/unistr/u8-strcoll-tests: Likewise.
28966         * modules/unistr/u8-strcpy-tests: Likewise.
28967         * modules/unistr/u8-strdup-tests: Likewise.
28968         * modules/unistr/u8-strlen-tests: Likewise.
28969         * modules/unistr/u8-strmblen-tests: Likewise.
28970         * modules/unistr/u8-strmbtouc-tests: Likewise.
28971         * modules/unistr/u8-strncat-tests: Likewise.
28972         * modules/unistr/u8-strncmp-tests: Likewise.
28973         * modules/unistr/u8-strncpy-tests: Likewise.
28974         * modules/unistr/u8-strnlen-tests: Likewise.
28975         * modules/unistr/u8-to-u16-tests: Likewise.
28976         * modules/unistr/u8-to-u32-tests: Likewise.
28977         * modules/unistr/u8-uctomb-tests: Likewise.
28978         * modules/unistr/u16-check-tests: Likewise.
28979         * modules/unistr/u16-chr-tests: Likewise.
28980         * modules/unistr/u16-cmp-tests: Likewise.
28981         * modules/unistr/u16-cmp2-tests: Likewise.
28982         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28983         * modules/unistr/u16-cpy-tests: Likewise.
28984         * modules/unistr/u16-mblen-tests: Likewise.
28985         * modules/unistr/u16-mbsnlen-tests: Likewise.
28986         * modules/unistr/u16-mbtouc-tests: Likewise.
28987         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28988         * modules/unistr/u16-mbtoucr-tests: Likewise.
28989         * modules/unistr/u16-move-tests: Likewise.
28990         * modules/unistr/u16-next-tests: Likewise.
28991         * modules/unistr/u16-prev-tests: Likewise.
28992         * modules/unistr/u16-set-tests: Likewise.
28993         * modules/unistr/u16-stpcpy-tests: Likewise.
28994         * modules/unistr/u16-stpncpy-tests: Likewise.
28995         * modules/unistr/u16-strcat-tests: Likewise.
28996         * modules/unistr/u16-strcmp-tests: Likewise.
28997         * modules/unistr/u16-strcoll-tests: Likewise.
28998         * modules/unistr/u16-strcpy-tests: Likewise.
28999         * modules/unistr/u16-strdup-tests: Likewise.
29000         * modules/unistr/u16-strlen-tests: Likewise.
29001         * modules/unistr/u16-strmblen-tests: Likewise.
29002         * modules/unistr/u16-strmbtouc-tests: Likewise.
29003         * modules/unistr/u16-strncat-tests: Likewise.
29004         * modules/unistr/u16-strncmp-tests: Likewise.
29005         * modules/unistr/u16-strncpy-tests: Likewise.
29006         * modules/unistr/u16-strnlen-tests: Likewise.
29007         * modules/unistr/u16-to-u32-tests: Likewise.
29008         * modules/unistr/u16-to-u8-tests: Likewise.
29009         * modules/unistr/u16-uctomb-tests: Likewise.
29010         * modules/unistr/u32-check-tests: Likewise.
29011         * modules/unistr/u32-chr-tests: Likewise.
29012         * modules/unistr/u32-cmp-tests: Likewise.
29013         * modules/unistr/u32-cmp2-tests: Likewise.
29014         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29015         * modules/unistr/u32-cpy-tests: Likewise.
29016         * modules/unistr/u32-mblen-tests: Likewise.
29017         * modules/unistr/u32-mbsnlen-tests: Likewise.
29018         * modules/unistr/u32-mbtouc-tests: Likewise.
29019         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29020         * modules/unistr/u32-mbtoucr-tests: Likewise.
29021         * modules/unistr/u32-move-tests: Likewise.
29022         * modules/unistr/u32-next-tests: Likewise.
29023         * modules/unistr/u32-prev-tests: Likewise.
29024         * modules/unistr/u32-set-tests: Likewise.
29025         * modules/unistr/u32-stpcpy-tests: Likewise.
29026         * modules/unistr/u32-stpncpy-tests: Likewise.
29027         * modules/unistr/u32-strcat-tests: Likewise.
29028         * modules/unistr/u32-strcmp-tests: Likewise.
29029         * modules/unistr/u32-strcoll-tests: Likewise.
29030         * modules/unistr/u32-strcpy-tests: Likewise.
29031         * modules/unistr/u32-strdup-tests: Likewise.
29032         * modules/unistr/u32-strlen-tests: Likewise.
29033         * modules/unistr/u32-strmblen-tests: Likewise.
29034         * modules/unistr/u32-strmbtouc-tests: Likewise.
29035         * modules/unistr/u32-strncat-tests: Likewise.
29036         * modules/unistr/u32-strncmp-tests: Likewise.
29037         * modules/unistr/u32-strncpy-tests: Likewise.
29038         * modules/unistr/u32-strnlen-tests: Likewise.
29039         * modules/unistr/u32-to-u16-tests: Likewise.
29040         * modules/unistr/u32-to-u8-tests: Likewise.
29041         * modules/unistr/u32-uctomb-tests: Likewise.
29042         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29043         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29044         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29045         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29046         * modules/uniwidth/u8-strwidth-tests: Likewise.
29047         * modules/uniwidth/u8-width-tests: Likewise.
29048         * modules/uniwidth/u16-strwidth-tests: Likewise.
29049         * modules/uniwidth/u16-width-tests: Likewise.
29050         * modules/uniwidth/u32-strwidth-tests: Likewise.
29051         * modules/uniwidth/u32-width-tests: Likewise.
29052         * modules/uniwidth/width-tests: Likewise.
29053
29054 2010-05-18  Richard Jones  <rjones@redhat.com>
29055
29056         doc: users.txt: list hivex
29057         * users.txt: Add hivex.
29058
29059 2010-05-18  Richard Jones  <rjones@redhat.com>
29060
29061         doc: users.txt: list febootstrap
29062         * users.txt: Add febootstrap.
29063
29064 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29065
29066         bootstrap: fix an error when gnulib is not used as a git submodule
29067         * build-aux/bootstrap (gnulib_path): If its length is zero then
29068         assign "gnulib" to it.
29069         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29070
29071 2010-05-16  Bruno Haible  <bruno@clisp.org>
29072
29073         Avoid autoconf warnings about AM_ICONV.
29074         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29075         2.64.
29076
29077 2010-05-16  Bruno Haible  <bruno@clisp.org>
29078
29079         absolute-header: Make the macro usable in more situations.
29080         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29081         from gl_ABSOLUTE_HEADER.
29082         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29083
29084 2010-05-16  James Youngman  <jay@gnu.org>
29085
29086         doc: update users.txt
29087         * users.txt: Add CSSC.
29088
29089 2010-05-16  Jim Meyering  <meyering@redhat.com>
29090
29091         init.sh: fix an error in the previous change; add more comments
29092         * tests/init.sh: Compare exit code in loop against 9, not 2.
29093         Patch by Bruno Haible.
29094         Make the two tests more similar by adding an empty "then" clause.
29095         Add comments.
29096
29097         init.sh: avoid unnecessary shell re-exec
29098         * tests/init.sh: Improve the re-exec-required check to first test the
29099         current shell.  If it passes the test, do not search for a shell that
29100         does pass, and do not re-exec.  This test is particularly contorted to
29101         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29102         of $(...) evokes a syntax error and causes immediate shell exit with
29103         status 2.  Bruno Haible reported that the re-exec made it impossible
29104         to single-step through any init.sh-using script.
29105
29106 2010-05-16  Bruno Haible  <bruno@clisp.org>
29107
29108         Fix collision between gnulib's and libintl's printf replacements.
29109         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29110         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29111         (printf): When using GNU C, map the __printf__ function to rpl_printf
29112         via __asm__. When not using GNU C, define rpl_printf instead of
29113         __printf__.
29114         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29115         commit.
29116         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29117         commit.
29118         * m4/asm-underscore.m4: New file.
29119         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29120         * modules/stdio (Files): Add m4/asm-underscore.m4.
29121         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29122         Reported by Ben Pfaff.
29123
29124 2010-05-16  Bruno Haible  <bruno@clisp.org>
29125
29126         verify: Avoid skipping the test on openSUSE 11.0.
29127         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29128
29129 2010-05-13  Bruno Haible  <bruno@clisp.org>
29130
29131         Avoid useless warnings from G++.
29132         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29133         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29134         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29135
29136 2010-05-11  Jim Meyering  <meyering@redhat.com>
29137
29138         maint.mk: tweak preceding change
29139         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29140         regexps tighter by anchoring at EOL, and make the new group "shy"
29141         for slightly decreased overhead.
29142
29143 2010-05-11  Eric Blake  <eblake@redhat.com>
29144
29145         maint.mk: gnulib doesn't guarantee NSIG
29146         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29147
29148 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29149
29150         test-pwrite.c: Remove unused variable declaration.
29151         * tests/test-pwrite.c (main): Remove read_buf declaration.
29152
29153         Remove useless test-pwrite.sh file.
29154         * tests/test-pwrite.sh: Delete file.
29155         * modules/pwrite-tests: Remove references.
29156         Reported by Bruno Haible.
29157
29158 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29159
29160         init.sh: fix a typo
29161         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29162
29163 2010-05-10  Jim Meyering  <meyering@redhat.com>
29164
29165         maint.mk: avoid using a temporary file in the always-defined-macros check
29166         * top/maint.mk (.re-defmac): Remove rule.
29167         (gl_trap_): Remove definition.
29168         (sc_prohibit_always-defined_macros): Rewrite not to create and
29169         depend on a temporary file.  Instead, depend on GNU grep's ability
29170         to read a list of regular expressions from stdin when given "-f -".
29171
29172 2010-05-09  Bruno Haible  <bruno@clisp.org>
29173
29174         Update to GNU gettext 0.18, part 1.
29175         * m4/gettext.m4: Update to GNU gettext 0.18.
29176         * m4/intl.m4: Likewise.
29177         * m4/po.m4: Likewise.
29178         * modules/gettext (Files): Add m4/fcntl-o.m4.
29179         (configure.ac): Require gettext infrastructure from version 0.18.
29180
29181 2010-05-09  Jim Meyering  <meyering@redhat.com>
29182
29183         init.sh: enable MALLOC_PERTURB_
29184         * tests/init.sh: Enable glibc's malloc-perturbing option.
29185
29186         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29187         With my recent change in init.sh from the two-line form:
29188             -#   : ${srcdir=.}
29189             -#   . "$srcdir/init.sh"; path_prepend_ .
29190             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29191         I noticed that using the one-line form would cause this test
29192         to fail with a false-positive, or to stop working altogether,
29193         depending on whether help-version changed or all the tests did.
29194         * top/maint.mk (_hv_regex): Remove this definition.
29195         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29196         (_hv_regex_strong): Use a stronger regex to check for conformance.
29197         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29198         Give a separate diagnostic for lack of conforming use.
29199
29200         maint.mk: prohibit definition of symbols defined by gnulib
29201         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29202         definition of symbols defined by gnulib.
29203
29204 2010-05-09  Bruno Haible  <bruno@clisp.org>
29205
29206         acl: Avoid test failure on Cygwin-hosted mingw.
29207         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29208
29209 2010-05-09  Bruno Haible  <bruno@clisp.org>
29210
29211         error: Use system's fcntl function.
29212         * lib/error.c (fcntl): Undefine.
29213
29214 2010-05-09  Jim Meyering  <meyering@redhat.com>
29215
29216         verify: adjust formatting to be more consistent
29217         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29218         argument-list '('s, and after one comma.
29219
29220 2010-05-09  Bruno Haible  <bruno@clisp.org>
29221
29222         error: More reliable output on mingw.
29223         * lib/error.c: Include <windows.h>.
29224         (is_open): New function.
29225         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29226         defined.
29227
29228 2010-05-09  Bruno Haible  <bruno@clisp.org>
29229
29230         vasnprintf: Fix syntax errors in libintl build on mingw.
29231         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29232         pad_ourselves and prec_ourselves after use.
29233
29234 2010-05-08  Bruno Haible  <bruno@clisp.org>
29235
29236         * lib/config.charset: Update comments for Cygwin 1.7.
29237         * lib/localcharset.c: Likewise.
29238
29239 2010-05-07  Jim Meyering  <meyering@redhat.com>
29240
29241         init.sh: improve comments
29242         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29243         . "${srcdir=.}/init.sh"; path_prepend_ .
29244         Add a note about path_prepend_ and the alternative of using
29245         TESTS_ENVIRONMENT.
29246
29247 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29248
29249         exclude: Unescape hashed patterns in wildcard mode.
29250         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29251         to the hash list.
29252         * tests/test-exclude8.sh: New test case.
29253         * modules/exclude-tests: Add new test.
29254
29255 2010-05-05  Eric Blake  <eblake@redhat.com>
29256
29257         verify: automate tests
29258         * modules/verify-tests: New module.
29259         * tests/test-verify.sh: New file.
29260         * tests/test-verify.c: Guard each negative test with a unique id.
29261         Also avoid warning about unused left hand of comma expressions.
29262
29263 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29264
29265         Further improvements to verify.h, suggested by Eric Blake.
29266         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29267         the GL_* versions, to avoid collision with OpenGL.
29268         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29269         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29270         than testing merely whether it's defined.
29271
29272         Modify verify.h to pacify gcc -Wredundant_decls.
29273         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29274         These use the prefix "GL_" since they're likely to be useful elsewhere.
29275         We may need to break them out into a different .h file.
29276         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29277         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29278         of verify_function__.
29279
29280 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29281
29282         Tests for module pwrite.
29283         * modules/pwrite-tests: New file.
29284         * tests/test-pwrite.sh: New file.
29285         * tests/test-pwrite.c: New file.
29286
29287         New module pwrite.
29288         * lib/unistd.in.h (pwrite): New declaration.
29289         * lib/pwrite.c: New file, from glibc with modifications.
29290         * m4/pwrite.m4: New file.
29291         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29292         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29293         REPLACE_PWRITE.
29294         * modules/pwrite: New file.
29295         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29296         REPLACE_PWRITE.
29297         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29298         * doc/posix-functions/pwrite.texi: Mention the new module.
29299
29300 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29301
29302         pread: Update documentation.
29303         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29304
29305 2010-05-04  Eric Blake  <eblake@redhat.com>
29306
29307         docs: update cygwin progress
29308         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29309         this bug.
29310         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29311         Added in cygwin 1.7.2.
29312         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29313         Likewise.
29314         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29315         Likewise.
29316         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29317         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29318         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29319         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29320         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29321         Mention nproc module.
29322         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29323         bug in cygwin 1.7.5 addition.
29324         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29325         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29326         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29327         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29328         1.7.5.
29329         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29330         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29331         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29332         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29333         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29334         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29335         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29336         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29337         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29338         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29339         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29340         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29341         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29342         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29343         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29344         Likewise.
29345         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29346         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29347         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29348         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29349         Likewise.
29350         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29351         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29352         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29353         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29354         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29355         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29356         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29357         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29358         Likewise.
29359         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29360         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29361         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29362         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29363         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29364         Likewise.
29365         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29366         Likewise.
29367         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29368         Likewise.
29369         * doc/glibc-functions/xdrrec_endofrecord.texi
29370         (xdrrec_endofrecord): Likewise.
29371         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29372         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29373         Likewise.
29374         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29375         Likewise.
29376
29377 2010-05-04  Jim Meyering  <meyering@redhat.com>
29378
29379         gendocs.sh: make its "-s FILE" option more useful
29380         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29381         $PACKAGE to reflect the probably-different basename of "FILE".
29382
29383 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29384
29385         bootstrap: don't ignore download_po_files failure
29386         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29387         failure.
29388
29389 2010-05-03  Jim Meyering  <meyering@redhat.com>
29390
29391         maint.mk: allow to pass options to gendocs.sh
29392         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29393         (gendocs_options_): New overridable variable.
29394
29395         gnu-web-doc-update: don't ignore configure or build failure
29396         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29397
29398         announce-gen: backslash-escape '@'s in --help output
29399         * build-aux/announce-gen: Fix syntax errors.
29400
29401         maint.mk, announce-gen: allow project-specific announcement mail headers
29402         * top/maint.mk (translation_project_): Define default.
29403         (announcement_Cc_, announcement_mail_headers_): Likewise.
29404         (announcement): Invoke announce-gen with new --mail-headers option.
29405         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29406
29407         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29408         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29409         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29410         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29411         line in the "err2" output file when running "make check" in verbose
29412         mode (i.e., with set -x enabled).
29413
29414 2010-05-03  Bruno Haible  <bruno@clisp.org>
29415
29416         wctob: Fix for weird platforms.
29417         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29418         argument value.
29419
29420 2010-05-03  Jim Meyering  <meyering@redhat.com>
29421
29422         maint.mk: prohibit unwarranted use of <strings.h>
29423         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29424         strings.h in a file that does not also use strcasecmp, strncasecmp,
29425         ffs or ffsll.
29426
29427         maint.mk: remove obsolete comments
29428         * top/maint.mk: Remove stale, commented-out rules.
29429
29430 2010-05-02  Bruno Haible  <bruno@clisp.org>
29431
29432         wcwidth: Declare also when it's aliased.
29433         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29434         macro.
29435
29436 2010-05-02  Bruno Haible  <bruno@clisp.org>
29437
29438         Fix regression from 2010-04-25.
29439         * gnulib-tool (func_modules_transitive_closure): Check the status of
29440         all modules, not only of the tests that are of the form foo-tests where
29441         foo is a module.
29442
29443 2010-05-02  Bruno Haible  <bruno@clisp.org>
29444
29445         wctob: Work around nasty Cygwin 1.7.2 bug.
29446         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29447         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29448
29449 2010-05-01  Bruno Haible  <bruno@clisp.org>
29450
29451         fpurge: Sharper test.
29452         * tests/test-fpurge.c (main): Add one more ftell check.
29453         * modules/fpurge-tests (Depends-on): Add ftell.
29454         Suggested by Eric Blake.
29455
29456 2010-05-01  Bruno Haible  <bruno@clisp.org>
29457
29458         ftello: Another test.
29459         * tests/test-ftello3.c: New file.
29460         * modules/ftello-tests (Files): Add it.
29461         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29462         MOSTLYCLEANFILES.
29463
29464         ftell: Another test.
29465         * tests/test-ftell3.c: New file.
29466         * modules/ftell-tests (Files): Add it.
29467         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29468         MOSTLYCLEANFILES.
29469
29470 2010-05-01  Bruno Haible  <bruno@clisp.org>
29471
29472         ftell, ftello: Work around Solaris bug.
29473         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29474         * lib/ftello.c: Include stdio-impl.h.
29475         (ftello): On Solaris, when _IOWRT is set, compute the result without
29476         looking at _IOREAD.
29477         * modules/ftello (Files): Add lib/stdio-impl.h.
29478         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29479         * doc/posix-functions/ftello.texi: Likewise.
29480         Reported by Eric Blake.
29481
29482 2010-05-01  Bruno Haible  <bruno@clisp.org>
29483
29484         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29485         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29486         the _IOWRT flag is also set.
29487
29488 2010-05-01  Bruno Haible  <bruno@clisp.org>
29489
29490         Fix doc about a HP-UX stdio bug.
29491         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29492         * doc/posix-functions/ftello.texi: Likewise.
29493
29494 2010-05-01  Bruno Haible  <bruno@clisp.org>
29495
29496         lseek test: Fix failure on Solaris.
29497         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29498         output.
29499
29500 2010-04-30  Jim Meyering  <meyering@redhat.com>
29501
29502         bootstrap: don't ignore failure to generate po*/Makevars
29503         * build-aux/bootstrap (with_gettext): Don't ignore failure
29504         to create po/Makevars or runtime-po/Makevars.
29505
29506 2010-04-29  Eric Blake  <eblake@redhat.com>
29507
29508         headers: relax license to LGPLv2+
29509         * modules/fcntl-h (License): Relax license.
29510         * modules/getopt-posix (License): Likewise.
29511         * modules/locale (License): Likewise.
29512         * modules/math (License): Likewise.
29513         * modules/pty (License): Likewise.
29514         * modules/sched (License): Likewise.
29515         * modules/search (License): Likewise.
29516         * modules/spawn (License): Likewise.
29517         * modules/stdarg (License): Likewise.
29518         * modules/sysexits (License): Likewise.
29519
29520 2010-04-29  Jim Meyering  <meyering@redhat.com>
29521
29522         inttypes: relax license to LGPLv2+
29523         * modules/inttypes (License): Relax license.
29524
29525 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29526
29527         * top/maint.mk (indent): Run twice to produce idempotent results.
29528
29529 2010-04-28  Bruno Haible  <bruno@clisp.org>
29530
29531         getdate: Generate getdate.c in the source directory.
29532         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29533         MOSTLYCLEANFILES.
29534         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29535
29536 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29537
29538         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29539         is not declared as a const *; avoid warnings in that case.
29540
29541 2010-04-28  Eric Blake  <eblake@redhat.com>
29542
29543         canonicalize-lgpl: avoid compiler warning
29544         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29545         declaration' / 'extraneous semicolon' warning with some compilers.
29546         Reported by Andreas Gruenbacher.
29547
29548 2010-04-28  Jim Meyering  <meyering@redhat.com>
29549
29550         init.sh: ensure a more reliable exit status when exiting via trap
29551         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29552         Inspired by patches from Dmitry V. Levin.
29553         Also trap on signal 3 (SIGQUIT).
29554
29555 2010-04-27  Bruno Haible  <bruno@clisp.org>
29556
29557         Update doc about utimes().
29558         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29559         'utimens' module.
29560         Reported by Andreas Gruenbacher <agruen@suse.de>.
29561
29562 2010-04-27  Eric Blake  <eblake@redhat.com>
29563
29564         full-read, full-write: relax license
29565         * modules/full-read (License): Drop to LGPLv2+.
29566         * modules/full-write (License): Likewise.
29567         * modules/safe-read (License): Likewise.
29568         * modules/safe-write (License): Likewise.
29569
29570         pthread: mention library for linking
29571         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29572
29573 2010-04-27  Jim Meyering  <meyering@redhat.com>
29574
29575         maint.mk: fix a bug introduced in last change
29576         * top/maint.mk (gl_assured_headers_): Now that all names are on
29577         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29578         is not anchored to end of word, it should be adequate.
29579
29580         maint.mk: avoid side-effect in latest syntax-check
29581         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29582         to run commands via $(shell...), and hence to incur cost only when
29583         the new rule is actually run.
29584
29585         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29586         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29587         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29588         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29589         (gl_assured_headers_, az_, AZ_): Define.
29590         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29591
29592 2010-04-26  Jim Meyering  <jim@meyering.net>
29593             Bruno Haible  <bruno@clisp.org>
29594
29595         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29596         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29597         Prompted by an exchange with Gilles Espinasse.
29598
29599 2010-04-26  Jim Meyering  <meyering@redhat.com>
29600
29601         git-version-gen: aesthetic tweak
29602         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29603         so that the command remains on a single line.
29604
29605 2010-04-26  Eric Blake  <eblake@redhat.com>
29606
29607         git-version-gen: allow use on EBCDIC hosts
29608         * build-aux/git-version-gen (dirty): Use literal rather than tying
29609         ourselves to ascii.
29610         Reported by Steve Goetze.
29611
29612 2010-04-25  Bruno Haible  <bruno@clisp.org>
29613
29614         netdb: Add support for GNULIB_POSIXCHECK.
29615         * lib/netdb.in.h: Include warn-on-use.h.
29616         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29617         functions are used when GNULIB_POSIXCHECK is defined and the
29618         getaddrinfo module is not in use.
29619         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29620         freeaddrinfo, gai_strerror, getnameinfo are declared.
29621         * modules/netdb (Depends-on): Add warn-on-use.
29622         (Makefile.am): Include warn-on-use.h in netdb.h.
29623
29624 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29625
29626         build: avoid "make check" failure without .git/ directory
29627         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29628         there is no .git/ directory.
29629
29630 2010-04-25  Bruno Haible  <bruno@clisp.org>
29631
29632         ptsname: Fix misuse of ttyname_r.
29633         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29634         of errno.
29635
29636 2010-04-25  Bruno Haible  <bruno@clisp.org>
29637
29638         ttyname_r: Make it work on Solaris 10.
29639         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29640         if the system function has the POSIX declaration. Test whether the
29641         function fails if the buffer is less than 128 bytes large.
29642         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29643         system's ttyname_r function. Provide a reasonably large buffer.
29644         * modules/ttyname_r (Depends-on): Add extensions.
29645         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29646
29647 2010-04-25  Bruno Haible  <bruno@clisp.org>
29648
29649         Use the 'extensions' module for some more functions on Solaris.
29650         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29651         module.
29652         * doc/posix-functions/ctime_r.texi: Likewise.
29653         * doc/posix-functions/getgrgid_r.texi: Likewise.
29654         * doc/posix-functions/getgrnam_r.texi: Likewise.
29655         * doc/posix-functions/getpwnam_r.texi: Likewise.
29656         * doc/posix-functions/getpwuid_r.texi: Likewise.
29657         * doc/posix-functions/readdir_r.texi: Likewise.
29658         * doc/posix-functions/sigwait.texi: Likewise.
29659         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29660         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29661
29662 2010-04-25  Bruno Haible  <bruno@clisp.org>
29663
29664         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29665         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29666         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29667         * lib/ttyname_r.c: Include <limits.h>.
29668         (ttyname_r): Define using the system's ttyname_r function, if it exists
29669         and not on Solaris.
29670         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29671         set.
29672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29673         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29674         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29675         Reported by Simon Josefsson.
29676
29677 2010-04-25  Bruno Haible  <bruno@clisp.org>
29678
29679         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29680         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29681         * doc/posix-functions/ctime_r.texi: Likewise.
29682         * doc/posix-functions/getgrgid_r.texi: Likewise.
29683         * doc/posix-functions/getgrnam_r.texi: Likewise.
29684         * doc/posix-functions/getlogin_r.texi: Likewise.
29685         * doc/posix-functions/getpwnam_r.texi: Likewise.
29686         * doc/posix-functions/getpwuid_r.texi: Likewise.
29687         * doc/posix-functions/readdir_r.texi: Likewise.
29688         * doc/posix-functions/sigwait.texi: Likewise.
29689         * doc/posix-functions/ttyname_r.texi: Likewise.
29690         Reported by Simon Josefsson.
29691
29692 2010-04-25  Bruno Haible  <bruno@clisp.org>
29693
29694         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29695         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29696         also to --create-testdir.
29697         (func_acceptable): Don't consider the status of *-tests modules here.
29698         (func_modules_transitive_closure): Consider it here, before including a
29699         test module.
29700         (func_import, func_create_testdir): Set inc_all_direct_tests,
29701         inc_all_indirect_tests.
29702         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29703         --create-testdir and --create-megatestdir.
29704
29705 2010-04-25  Bruno Haible  <bruno@clisp.org>
29706
29707         gnulib-tool: Add --without-*-tests options.
29708         * gnulib-tool (func_usage): Document the --without-*-tests options.
29709         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29710         excl_unportable_tests): New variables.
29711         Fail if they are specified with --import or --update.
29712         (func_acceptable): Respect the excl_*_tests variables.
29713         (func_import): Set the excl_*_tests variables to empty.
29714
29715 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29716             Bruno Haible  <bruno@clisp.org>
29717
29718         Work around a MacOS X 10.4 bug with openpty.
29719         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29720         * tests/test-openpty.c (main): Close the master side explicitly.
29721
29722 2010-04-25  Bruno Haible  <bruno@clisp.org>
29723
29724         strnlen: Fix a C++ test error on MacOS X and Solaris.
29725         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29726         the function is not declared.
29727         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29728         Simon Josefsson.
29729
29730 2010-04-24  Bruno Haible  <bruno@clisp.org>
29731
29732         Avoid a gcc warning.
29733         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29734         of correct type for %08lx directive.
29735         Reported by Eric Blake.
29736
29737 2010-04-24  Bruno Haible  <bruno@clisp.org>
29738
29739         vasnprintf: Correct errno value in case of out-of-memory.
29740         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29741         or sprintf. Use the errno value from SNPRINTF or sprintf.
29742         Reported by Ian Beckwith <ianb@erislabs.net>.
29743
29744 2010-04-24  Bruno Haible  <bruno@clisp.org>
29745
29746         ansi-c++-opt: Find correct compiler when cross-compiling.
29747         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29748         AC_CHECK_PROGS.
29749         Reported by Simon Josefsson.
29750
29751 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29752
29753         vc-list-files: Add support for subversion
29754         * build-aux/vc-list-files: Use "svn list" to generate the list of
29755         files controlled by subversion.
29756
29757 2010-04-23  Jim Meyering  <meyering@redhat.com>
29758
29759         vc-list-files tests: convert to use init.sh
29760         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29761         path_prepend_.
29762         Use Exit, not exit.
29763         Use skip_ rather than open coding it.
29764         Remove trap set-up and compare definitions.
29765         * tests/test-vc-list-files-git.sh: Likewise.
29766         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29767
29768 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29769
29770         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29771         backup files.
29772
29773 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29774
29775         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29776
29777 2010-04-20  Eric Blake  <eblake@redhat.com>
29778
29779         tests: be robust to ignored SIGPIPE
29780         * tests/test-select-in.sh: Consume all output.
29781         * tests/test-lseek.sh: Check correct exit status, while avoiding
29782         EPIPE.
29783
29784 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29785             Bruno Haible  <bruno@clisp.org>
29786
29787         visibility: Don't use -fvisibility if it leads to a warning.
29788         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29789         yes, don't pretend that visibility works if it leads to a warning.
29790         Reported by Mike Gran <spk121@yahoo.com>.
29791
29792 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29793
29794         * build-aux/bootstrap: Use "git -h" for testing for supported options
29795         instead of "git --help".  The short-form option only shows a summary,
29796         and doesn't layout the full man page.  Grep for the full option name
29797         in the summary, too.
29798
29799 2010-04-19  Bruno Haible  <bruno@clisp.org>
29800
29801         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29802         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29803         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29804         mention of RELOCATABLE_STRIP.
29805         Reported by Sylvain Beucler <beuc@beuc.net>.
29806
29807 2010-04-19  Bruno Haible  <bruno@clisp.org>
29808
29809         * lib/diffseq.h: Fix typo in comment.
29810         Reported by Eric Blake.
29811
29812 2010-04-19  Bruno Haible  <bruno@clisp.org>
29813
29814         ioctl: Move autoconf macro to a .m4 file.
29815         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29816         * modules/ioctl (Files): Add it.
29817         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29818         Reported by Ian Beckwith <ianb@erislabs.net>.
29819
29820 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29821             Bruno Haible  <bruno@clisp.org>
29822
29823         diffseq: Accommodate use-case with abstract arrays.
29824         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29825         is not defined.
29826         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29827         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29828
29829 2010-04-18  Bruno Haible  <bruno@clisp.org>
29830
29831         * doc/posix-headers/stdbool.texi: More precise wording.
29832
29833 2010-04-17  Jim Meyering  <meyering@redhat.com>
29834
29835         maint.mk: use gnu-style indentation in an embedded perl script
29836         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29837         Rename variable: s/two/last_two_bytes/
29838
29839 2010-04-16  Eric Blake  <eblake@redhat.com>
29840
29841         test-stdbool: skip test that fails with Solaris CC
29842         * tests/test-stdbool.c (f): Skip test that causes compilation
29843         error under buggy C++ compiler.
29844         * lib/stdbool.in.h: Document the limitation.
29845         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29846
29847         setenv: allow compilation with C++
29848         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29849         register keyword.
29850
29851         stdint: allow test to pass with C++
29852         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29853
29854         getopt: allow compilation with C++
29855         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29856         struct.
29857         * lib/getopt.c (_getopt_internal_r): Use correct type.
29858         Reported by Dagobert Michelson, via Joel E. Denny.
29859
29860 2010-04-16  Bruno Haible  <bruno@clisp.org>
29861
29862         Override netdb.h always.
29863         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29864         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29865         Reported by Ludovic Courtès <ludo@gnu.org>.
29866
29867 2010-04-15  Bruno Haible  <bruno@clisp.org>
29868
29869         openpty: Fix mistake from 2010-03-21.
29870         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29871         Reported by Simon Josefsson.
29872
29873 2010-04-15  Eric Blake  <eblake@redhat.com>
29874
29875         test-forkpty: fix expected signature
29876         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29877         Reported by Simon Josefsson.
29878
29879 2010-04-15  Jim Meyering  <meyering@redhat.com>
29880
29881         maint.mk: texinfo_suffix_re_: correct the default regexp
29882         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29883
29884         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29885         make it configurable via texinfo_suffix_re_.
29886
29887 2010-04-14  Eric Blake  <eblake@redhat.com>
29888
29889         strtok_r: relax license to LGPLv2+
29890         * modules/strtok_r (License): Relax license.
29891         Reported by Matthias Bolte.
29892
29893 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29894
29895         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29896         version 1.4.4 by default instead of requiring the libgcrypt
29897         version used during build.  This makes it possible to use the
29898         application with older but still binary compatible libgcrypt
29899         versions.
29900
29901 2010-04-13  Eric Blake  <eblake@redhat.com>
29902
29903         getopt-gnu: match recent glibc fixes and posix ruling
29904         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29905         '+' handling, when requesting extensions.
29906         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29907         'W;' handling.
29908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29909         * doc/posix-functions/getopt.texi (getopt): Document this.
29910         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29911         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29912         Likewise.
29913
29914         getopt: merge bug fixes from glibc
29915         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29916         diagnostics.  Honor '+:' correctly.  Reject ';'.
29917
29918         getopt-posix: detect MacOS bug
29919         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29920         optind when missing a required argument.
29921         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29922         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29923         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29924         Likewise.
29925
29926         getopt-posix: avoid spurious failure on Solaris
29927         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29928         an indicator that setting optind=1 is sufficient for reset.
29929
29930         getopt-posix: avoid spurious failure on FreeBSD
29931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29932         in POSIX mode, since the m4 test uses it.
29933
29934         gnulib-tool: silence warning on BSD sh
29935         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29936
29937 2010-04-13  Jim Meyering  <meyering@redhat.com>
29938
29939         doc: users.txt: GNU patch now uses gnulib
29940         * users.txt: Add patch.
29941
29942 2010-04-12  Jim Meyering  <meyering@redhat.com>
29943
29944         maint.mk: generate more concise timing data for syntax-check rules
29945         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29946         " done" from each line that reports a syntax-check test duration.
29947
29948 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29949
29950         git-version-gen: use "git update-index..." rather than "git status"
29951         * build-aux/git-version-gen: Use git update-index --refresh, not
29952         "git status".  With some versions of git, "git status" would fail
29953         to update the index and result in an unwarranted "-dirty" suffix.
29954
29955 2010-04-11  Jim Meyering  <meyering@redhat.com>
29956
29957         openat: correct formatting (no semantic change)
29958         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29959         Suggested by Bruno Haible.
29960
29961 2010-04-11  Bruno Haible  <bruno@clisp.org>
29962
29963         Stricter declaration checking in testdirs.
29964         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29965         If for_tests is true, augment AM_CPPFLAGS to define
29966         GNULIB_STRICT_CHECKING.
29967         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29968         GNULIB_STRICT_CHECKING is defined, verify that the function is
29969         declared.
29970
29971 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29972             Bruno Haible  <bruno@clisp.org>
29973
29974         libunistring: Improve configure output.
29975         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29976         Don't say "consider installing GNU libunistring" when checking again
29977         with libiconv.
29978
29979 2010-04-11  Bruno Haible  <bruno@clisp.org>
29980
29981         libunistring: Correct value of $LTLIBUNISTRING.
29982         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29983         correct the value of $LTLIBUNISTRING.
29984
29985 2010-04-11  Bruno Haible  <bruno@clisp.org>
29986
29987         havelib: Add static libraries to LIBS in the right order.
29988         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29989         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29990
29991 2010-04-11  Bruno Haible  <bruno@clisp.org>
29992
29993         libunistring: Detect libunistring also when it depends on libiconv.
29994         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29995         the second AC_LIB_HAVE_LINKFLAGS invocation.
29996
29997 2010-04-11  James Youngman  <jay@gnu.org>
29998
29999         close-stream: declare local scalars to be "const"
30000         * lib/close-stream.c (close_stream): Make boolean variables const
30001         to document the fact that we set but do not change them.
30002
30003 2010-04-11  Bruno Haible  <bruno@clisp.org>
30004
30005         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30006
30007 2010-04-11  Jim Meyering  <meyering@redhat.com>
30008
30009         maint.mk: don't include dist-check.mk
30010         * top/maint.mk: Remove bogus include directive.
30011
30012         maint.mk: improve empty-line-at-EOF check
30013         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30014         solution, rather than tail+Perl-based one.  The latter would read
30015         a few kilobytes from the end of each file, and did not handle empty
30016         files properly.
30017
30018         maint.mk: print the elapsed time for each syntax-check rule
30019         * top/maint.mk (sc_m_rules_): Save start time in a file.
30020         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30021         (local-check): Interpose the .z rules
30022
30023 2010-04-11  Jim Meyering  <meyering@redhat.com>
30024
30025         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30026         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30027         empty file with one that ends in an empty line.
30028
30029 2010-04-10  Bruno Haible  <bruno@clisp.org>
30030
30031         mkdir: Make it work on mingw64.
30032         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30033         * lib/mkdir.c: Update comment.
30034         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30035
30036 2010-04-10  Bruno Haible  <bruno@clisp.org>
30037
30038         Don't override improved macro from newer autoconf.
30039         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30040         autoconf >= 2.62.
30041         Reported by Joel E. Denny <jdenny@clemson.edu>.
30042
30043 2010-04-10  Jim Meyering  <meyering@redhat.com>
30044
30045         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30046         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30047
30048         maint.mk: correct a diagnostic
30049         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30050         in diagnostic; now use $prohibit.
30051
30052 2010-04-10  Bruno Haible  <address@hidden>
30053
30054         fchownat: Fix a C++ test error on Solaris 8.
30055         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30056         the function does not exist.
30057
30058 2010-04-10  Bruno Haible  <bruno@clisp.org>
30059
30060         vasnprintf: Add more tests.
30061         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30062         (test_function): Test converting an invalid wide string.
30063
30064         vasnprintf: Correct handling of unconvertible wide string arguments.
30065         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30066         VASNPRINTF.
30067         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30068         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30069         smaller than the expected maximum need for the directive. Set errno to
30070         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30071         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30072         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30073         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30074         * modules/vasnprintf (Files): Add m4/printf.m4.
30075         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30076
30077 2010-04-10  Bruno Haible  <bruno@clisp.org>
30078
30079         vasnprintf: Fix crash in %ls directive.
30080         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30081         string is passed as argument to %ls, with no precision and no width.
30082         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30083
30084 2010-04-10  Bruno Haible  <bruno@clisp.org>
30085
30086         vasnprintf: Fix multiple test failures on mingw.
30087         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30088         _snprintf, or snwprintf, not _snwprintf.
30089
30090 2010-04-10  Bruno Haible  <bruno@clisp.org>
30091
30092         write: Fix a C++ test error on mingw.
30093         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30094
30095 2010-04-10  Bruno Haible  <bruno@clisp.org>
30096
30097         vasnprintf test: Reduce code duplication.
30098         * tests/test-vasnprintf.c (test_function): New function, extracted from
30099         test_vasnprintf.
30100         (test_vasnprintf, test_asnprintf): Invoke it.
30101
30102 2010-04-10  Bruno Haible  <bruno@clisp.org>
30103
30104         strnlen: Fix warning in C++ mode on MacOS X.
30105         * lib/string.in.h (strnlen): Use the modern idiom.
30106         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30107         defining strnlen as a macro already in <config.h>.
30108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30109         REPLACE_STRNLEN.
30110         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30111         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30112
30113 2010-04-08  James Youngman  <jay@gnu.org>
30114
30115         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30116         the example.
30117
30118 2010-04-09  Jim Meyering  <meyering@redhat.com>
30119
30120         maint.mk: print better diagnostic when there is no $(_hv_file)
30121         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30122         announce that when $(_hv_file) (aka help-version) does not exist.
30123
30124         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30125         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30126         not try to interpret its random input bytes.  Jarno Rajahalme reported
30127         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30128         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30129         (mktempd_): Likewise, just in case.
30130
30131         ftruncate: add two years to projected module removal date: 2012
30132         * m4/ftruncate.m4: Adjust comments.
30133
30134         ftruncate: mark module as obsolete; even MinGW provides it, now
30135         * modules/ftruncate (Status): Obsolete.
30136         (Notice): Say that.
30137         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30138         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30139
30140 2010-04-08  Bruno Haible  <bruno@clisp.org>
30141
30142         Fix side effects from tests-related modules.
30143         * modules/dprintf-posix (Comment): New section.
30144         * modules/fprintf-posix (Comment): Likewise.
30145         * modules/obstack-printf-posix (Comment): Likewise.
30146         * modules/printf-posix (Comment): Likewise.
30147         * modules/snprintf-posix (Comment): Likewise.
30148         * modules/sprintf-posix (Comment): Likewise.
30149         * modules/vasnprintf-posix (Comment): Likewise.
30150         * modules/vasprintf-posix (Comment): Likewise.
30151         * modules/vdprintf-posix (Comment): Likewise.
30152         * modules/vfprintf-posix (Comment): Likewise.
30153         * modules/vprintf-posix (Comment): Likewise.
30154         * modules/vsnprintf-posix (Comment): Likewise.
30155         * modules/vsprintf-posix (Comment): Likewise.
30156         * modules/xprintf-posix (Comment): Likewise.
30157         * modules/xvasprintf-posix (Comment): Likewise.
30158         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30159         * modules/floorf-tests (Depends-on): Likewise.
30160         * modules/round-tests (Depends-on): Likewise.
30161         * modules/roundf-tests (Depends-on): Likewise.
30162         * modules/trunc-tests (Depends-on): Likewise.
30163         * modules/truncf-tests (Depends-on): Likewise.
30164         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30165         'fprintf-posix' module is not present.
30166         * tests/test-floorf2.c (check): Likewise.
30167         * tests/test-trunc2.c (check): Likewise.
30168         * tests/test-truncf2.c (check): Likewise.
30169         * tests/test-round2.c (equal): Likewise.
30170         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30171
30172 2010-04-07  Karl Berry  <karl@gnu.org>
30173
30174         * config/srclist.txt,
30175         * config/srclistvars.sh,
30176         * config/srclist-update: doc fixes.
30177
30178 2010-04-07  Jim Meyering  <meyering@redhat.com>
30179
30180         maint.mk: add a PATH crosschecking syntax-check rule
30181         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30182         Useful if you use a test like the one in help-version (coreutils,
30183         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30184         printed by prog --version.
30185
30186 2010-04-06  Bruno Haible  <bruno@clisp.org>
30187
30188         Fix link error on mingw.
30189         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30190         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30191
30192 2010-04-06  Bruno Haible  <bruno@clisp.org>
30193
30194         Assume rmdir exists.
30195         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30196
30197 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30198
30199         doc: update users.txt
30200         * users.txt: Add gcal.
30201
30202 2010-04-06  Jim Meyering  <meyering@redhat.com>
30203
30204         init.sh: simply unset TMPDIR rather than risking env -i
30205         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30206         although it probably works fine on all Unix-based systems, some
30207         systems (Cygwin?) cannot tolerate a totally cleared environment.
30208         Suggestion from Eric Blake.
30209
30210 2010-04-06  Jim Meyering  <meyering@redhat.com>
30211
30212         init.sh: portability fix: use env's POSIX-specified -i option not -u
30213         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30214         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30215
30216 2010-04-05  Bruno Haible  <bruno@clisp.org>
30217
30218         btowc: Work around Cygwin 1.7.2 bug.
30219         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30220         does not map NUL to 0.
30221         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30222
30223 2010-04-05  Bruno Haible  <bruno@clisp.org>
30224
30225         Make the multithread modules work on Cygwin 1.7.2.
30226         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30227         imported symbols can be declared weak, so that it returns "no" on
30228         Cygwin 1.7.2.
30229
30230 2010-04-05  Bruno Haible  <bruno@clisp.org>
30231
30232         Use the module 'strncat'.
30233         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30234
30235         Tests for module 'strncat'.
30236         * modules/strncat-tests: New file.
30237         * tests/test-strncat.c: New file.
30238
30239         New module 'strncat'.
30240         * lib/string.in.h (strncat): New declaration.
30241         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30242         * m4/strncat.m4: New file, based on m4/memchr.m4.
30243         * modules/strncat: New file.
30244         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30245         is declared.
30246         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30247         REPLACE_STRNCAT.
30248         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30249         REPLACE_STRNCAT.
30250         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30251         module.
30252         * tests/test-string-c++.cc: Check signature of strncat.
30253
30254 2010-04-05  Jim Meyering  <meyering@redhat.com>
30255
30256         xstrtoumax-tests: convert to use init.sh
30257         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30258         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30259         Use Exit, not exit.
30260         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30261
30262         xstrtoimax-tests: convert to use init.sh
30263         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30264         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30265         Use Exit, not exit.
30266         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30267
30268 2010-04-05  Bruno Haible  <bruno@clisp.org>
30269
30270         sys_socket: Avoid #define replacements in C++ mode.
30271         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30272         warning to the function if possible, rather than #defining the symbol
30273         to a dysfunctional alias.
30274
30275 2010-04-05  Bruno Haible  <bruno@clisp.org>
30276
30277         fseeko: Fix C++ test error on mingw.
30278         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30279         gl_FUNC_FSEEKO.
30280         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30281         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30282         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30283         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30284
30285 2010-04-05  Bruno Haible  <bruno@clisp.org>
30286
30287         duplocale: Improve test output.
30288         * tests/test-duplocale.c (main): Print reason for skipped test.
30289
30290 2010-04-05  Bruno Haible  <bruno@clisp.org>
30291
30292         Assume rmdir exists.
30293         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30294         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30295
30296 2010-04-05  Bruno Haible  <bruno@clisp.org>
30297
30298         Fix link error on Solaris 8 with cc.
30299         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30300
30301 2010-04-05  Bruno Haible  <bruno@clisp.org>
30302
30303         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30304         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30305
30306 2010-04-05  Bruno Haible  <bruno@clisp.org>
30307
30308         vasprintf: Update documentation.
30309         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30310
30311 2010-04-05  Bruno Haible  <bruno@clisp.org>
30312
30313         ptsname: Improve test.
30314         * tests/test-ptsname.c (main): Also try the various master names of BSD
30315         systems.
30316
30317 2010-04-05  Bruno Haible  <bruno@clisp.org>
30318
30319         memchr: Avoid a possible C++ test error.
30320         * lib/string.in.h (memchr): Provide declaration if function is missing.
30321         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30322         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30323         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30324         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30325
30326 2010-04-05  Bruno Haible  <bruno@clisp.org>
30327
30328         strtok_r: Improve idiom.
30329         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30330         AC_LIBOBJ is used.
30331
30332 2010-04-05  Bruno Haible  <bruno@clisp.org>
30333
30334         strdup: Improve idiom.
30335         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30336         AC_LIBOBJ is used.
30337         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30338         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30339         when AC_LIBOBJ is used.
30340
30341 2010-04-05  Bruno Haible  <bruno@clisp.org>
30342
30343         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30344         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30345         don't set REPLACE_MBSINIT to 1.
30346         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30347         don't set REPLACE_MBRTOWC to 1.
30348         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30349         exist, don't set REPLACE_MBSRTOWCS to 1.
30350         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30351         exist, don't set REPLACE_MBSNRTOWCS to 1.
30352         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30353         don't set REPLACE_WCRTOMB to 1.
30354         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30355         exist, don't set REPLACE_WCSRTOMBS to 1.
30356         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30357         exist, don't set REPLACE_WCSNRTOMBS to 1.
30358
30359 2010-04-05  Bruno Haible  <bruno@clisp.org>
30360
30361         ldexpl: Improve idiom.
30362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30363         make sure to set HAVE_DECL_LDEXPL to 0.
30364
30365 2010-04-05  Jim Meyering  <meyering@redhat.com>
30366
30367         xstrtol-tests: convert to use init.sh
30368         * modules/xstrtol-tests (Files): Add tests/init.sh.
30369         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30370         Use Exit, not exit.
30371         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30372
30373         atexit-tests: convert to use init.sh
30374         * modules/atexit-tests (Files): Add tests/init.sh.
30375         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30376         Use Exit, not exit.
30377         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30378
30379         init.sh: fix typo
30380         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30381
30382         init.sh: make it easier for a test script to write to the tty, ...
30383         when using automake's parallel-tests mode.
30384         * tests/init.sh (stderr_fileno_): Define overridable variable.
30385         (warn_): New function, to use it.
30386         (fail_, skip_, framework_failure_): Use warn_.
30387
30388 2010-04-04  Bruno Haible  <bruno@clisp.org>
30389
30390         btowc: Avoid warning.
30391         * lib/btowc.c: Include <stdlib.h>.
30392         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30393
30394 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30395             Bruno Haible  <bruno@clisp.org>
30396
30397         wchar: Port to NetBSD 1.5.
30398         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30399         * lib/wctype.in.h (WEOF): Likewise.
30400
30401 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30402             Bruno Haible  <bruno@clisp.org>
30403
30404         Port extended stdio to NetBSD 1.5.
30405         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30406         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30407         older.
30408
30409 2010-04-04  Bruno Haible  <bruno@clisp.org>
30410
30411         string: Remove unused substitution.
30412         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30413         HAVE_DECL_STRERROR.
30414         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30415
30416 2010-04-04  Bruno Haible  <bruno@clisp.org>
30417
30418         strtod: Avoid a possible C++ test error.
30419         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30420         set REPLACE_STRTOD.
30421
30422 2010-04-04  Bruno Haible  <bruno@clisp.org>
30423
30424         strerror: Update documentation.
30425         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30426
30427 2010-04-04  Bruno Haible  <bruno@clisp.org>
30428
30429         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30430         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30431         _GL_CXXALIAS_SYS_CAST.
30432
30433 2010-04-04  Bruno Haible  <bruno@clisp.org>
30434
30435         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30436         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30437         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30438         REPLACE_FREXPL to 1.
30439         * doc/posix-functions/frexpl.texi: Update documentation.
30440
30441 2010-04-04  Bruno Haible  <bruno@clisp.org>
30442
30443         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30444         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30445
30446 2010-04-04  Bruno Haible  <bruno@clisp.org>
30447
30448         Implement nanosleep for native Windows.
30449         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30450
30451 2010-04-04  Bruno Haible  <bruno@clisp.org>
30452
30453         math: Fix some C++ test errors on Solaris 8.
30454         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30455
30456 2010-04-04  Bruno Haible  <bruno@clisp.org>
30457
30458         math: Fix some C++ test errors on Cygwin.
30459         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30460         truncl): Provide declaration if the system does not have it.
30461         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30462         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30463         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30464         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30465         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30466         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30467         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30468         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30469         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30470         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30471         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30472         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30473         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30474         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30475         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30476         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30478         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30479         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30480         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30481         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30482         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30483
30484 2010-04-04  Bruno Haible  <bruno@clisp.org>
30485
30486         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30487         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30488         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30489         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30490         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30491         * m4/isinf.m4 (gl_ISINF): Likewise.
30492         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30493
30494 2010-04-04  Bruno Haible  <bruno@clisp.org>
30495
30496         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30497         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30498
30499 2010-04-04  Bruno Haible  <bruno@clisp.org>
30500
30501         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30502         * modules/tmpfile (configure.ac): Update.
30503
30504         tmpfile: Fix C++ test error on mingw.
30505         * lib/stdio.in.h (tmpfile): New declaration.
30506         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30507         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30508         * modules/tmpfile (Depends-on): Add stdio.
30509         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30510         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30511         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30512         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30513         REPLACE_TMPFILE.
30514         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30515
30516 2010-04-04  Bruno Haible  <bruno@clisp.org>
30517
30518         ioctl: Fix C++ test error on mingw.
30519         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30520         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30521         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30522
30523 2010-04-03  Bruno Haible  <bruno@clisp.org>
30524
30525         wcwidth: Fix C++ test error on mingw.
30526         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30527         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30528         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30529
30530 2010-04-03  Bruno Haible  <bruno@clisp.org>
30531
30532         nanosleep: Fix C++ test error on mingw.
30533         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30534         * lib/time.in.h (nanosleep): Use modern idiom.
30535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30536         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30537         REPLACE_NANOSLEEP to 1.
30538         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30539         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30540
30541 2010-04-03  Bruno Haible  <bruno@clisp.org>
30542
30543         strptime: Fix C++ test error on mingw.
30544         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30545         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30546         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30547         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30548         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30549         not REPLACE_STRPTIME.
30550         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30551         REPLACE_STRPTIME.
30552
30553 2010-04-03  Bruno Haible  <bruno@clisp.org>
30554
30555         timegm: Fix C++ test error on mingw.
30556         * lib/time.in.h (timegm): Use modern idiom.
30557         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30558         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30559         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30560         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30561
30562 2010-04-03  Bruno Haible  <bruno@clisp.org>
30563
30564         timegm: Assume declaration if function exists.
30565         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30566         if it exists. Don't clobber ac_cv_func_timegm.
30567
30568 2010-04-03  Bruno Haible  <bruno@clisp.org>
30569
30570         time_r: Fix C++ test error on mingw.
30571         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30572         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30573         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30574         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30575         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30576
30577 2010-04-03  Bruno Haible  <bruno@clisp.org>
30578
30579         time_r: Minor updates.
30580         * modules/time_r (Description): Mention the provided functions.
30581         * lib/time_r.c: Don't include <string.h>.
30582         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30583         * doc/posix-functions/localtime_r.texi: Likewise.
30584
30585 2010-04-03  Bruno Haible  <bruno@clisp.org>
30586
30587         time: Fix regression introduced on 2010-03-08.
30588         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30589         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30590
30591 2010-04-03  Jim Meyering  <meyering@redhat.com>
30592
30593         maint.mk: don't silently disable project-specific syntax-check rules
30594         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30595         that they need to convert their project-specific syntax-check rules
30596         to use the new _sc_search_regexp.
30597
30598 2010-04-03  Bruno Haible  <bruno@clisp.org>
30599
30600         fchdir: Fix regression introduced on 2010-03-08.
30601         * lib/unistd.in.h (fchdir): Fix declaration.
30602         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30604         REPLACE_FCHDIR.
30605         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30606         REPLACE_FCHDIR.
30607
30608 2010-04-03  Bruno Haible  <bruno@clisp.org>
30609
30610         getpagesize: Fix C++ test error on mingw.
30611         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30612         system does not declare the function.
30613         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30614         declared.
30615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30616         HAVE_DECL_GETPAGESIZE.
30617         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30618
30619 2010-04-03  Bruno Haible  <bruno@clisp.org>
30620
30621         stdio: Make C++ tests work on mingw.
30622         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30623         does not declare the function.
30624
30625 2010-04-03  Bruno Haible  <bruno@clisp.org>
30626
30627         ftello: Fix C++ test error on mingw.
30628         * lib/stdio.in.h (ftello): Use modern idiom.
30629         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30630         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30631         is missing and that it needs to be replaced.
30632         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30634         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30635
30636 2010-04-03  Bruno Haible  <bruno@clisp.org>
30637
30638         fseeko: Fix C++ test error on mingw.
30639         * lib/stdio.in.h (fseeko): Use modern idiom.
30640         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30641         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30642         is missing and that it needs to be replaced.
30643         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30645         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30646
30647 2010-04-03  Bruno Haible  <bruno@clisp.org>
30648
30649         mkstemp: Fix C++ test error on mingw.
30650         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30652         function is missing and that it needs to be replaced.
30653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30654         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30655
30656 2010-04-03  Bruno Haible  <bruno@clisp.org>
30657
30658         stpncpy: Fix C++ test error on mingw.
30659         * lib/string.in.h (stpncpy): Use modern idiom.
30660         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30661         function is missing and that it needs to be replaced.
30662         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30663         REPLACE_STPNCPY.
30664         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30665
30666 2010-04-03  Bruno Haible  <bruno@clisp.org>
30667
30668         sys_stat: Fix C++ test error on mingw.
30669         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30670         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30671
30672 2010-04-03  Bruno Haible  <bruno@clisp.org>
30673
30674         pty: Update doc.
30675         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30676
30677 2010-04-03  Bruno Haible  <bruno@clisp.org>
30678
30679         unistd: Fix C++ test error on mingw.
30680         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30681
30682 2010-04-03  Bruno Haible  <bruno@clisp.org>
30683
30684         Update doc regarding mingw.
30685         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30686         * doc/glibc-functions/login_tty.texi: Likewise.
30687         * doc/glibc-functions/forkpty.texi: Likewise.
30688
30689 2010-04-03  Bruno Haible  <bruno@clisp.org>
30690
30691         stdlib: Avoid compilation failure of c-strtold on mingw.
30692         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30693
30694 2010-04-03  Bruno Haible  <bruno@clisp.org>
30695
30696         locale: Make C++ tests work on Cygwin and mingw.
30697         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30698         cannot provide the function.
30699         Reported by Simon Josefsson.
30700
30701 2010-04-03  Bruno Haible  <bruno@clisp.org>
30702
30703         localename: Port to MacOS X 10.6.
30704         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30705         memory layout of the locales in MacOS X 10.6 as well.
30706         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30707
30708 2010-04-02  Bruno Haible  <bruno@clisp.org>
30709
30710         gnulib-tool: Ensure that long-running tests are executed last.
30711         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30712         running tests after the one for the other tests.
30713
30714 2010-04-02  Bruno Haible  <bruno@clisp.org>
30715
30716         gnulib-tool: Ensure the tests in the main directory are executed first.
30717         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30718         start with the current directory.
30719
30720 2010-04-02  Bruno Haible  <bruno@clisp.org>
30721
30722         Tests for module 'havelib', moved here from GNU gettext.
30723         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30724         modifications.
30725         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30726         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30727         with modifications.
30728         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30729         modifications.
30730         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30731         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30732         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30733         with modifications.
30734         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30735         with modifications.
30736         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30737         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30738         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30739         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30740         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30741         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30742         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30743         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30744         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30745         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30746         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30747         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30748         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30749         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30750         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30751         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30752         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30753         with modifications.
30754         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30755         with modifications.
30756         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30757         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30758         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30759         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30760         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30761         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30762         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30763         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30764         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30765         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30766         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30767         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30768         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30769         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30770         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30771         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30772         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30773         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30774         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30775         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30776         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30777         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30778         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30779         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30780         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30781         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30782         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30783         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30784         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30785         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30786         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30787         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30788         * tests/havelib/rpathx/rpathx.c: New file, from
30789         gettext/autoconf-lib-link.
30790         * tests/havelib/rpathx/Makefile.am: New file, from
30791         gettext/autoconf-lib-link.
30792         * tests/havelib/rpathx/configure.ac: New file, from
30793         gettext/autoconf-lib-link with modifications.
30794         * tests/havelib/rpathy/rpathy.c: New file, from
30795         gettext/autoconf-lib-link.
30796         * tests/havelib/rpathy/Makefile.am: New file, from
30797         gettext/autoconf-lib-link.
30798         * tests/havelib/rpathy/configure.ac: New file, from
30799         gettext/autoconf-lib-link with modifications.
30800         * tests/havelib/rpathz/rpathz.c: New file, from
30801         gettext/autoconf-lib-link.
30802         * tests/havelib/rpathz/Makefile.am: New file, from
30803         gettext/autoconf-lib-link.
30804         * tests/havelib/rpathz/configure.ac: New file, from
30805         gettext/autoconf-lib-link with modifications.
30806         * tests/havelib/rpathlx/usex.c: New file, from
30807         gettext/autoconf-lib-link.
30808         * tests/havelib/rpathlx/Makefile.am: New file, from
30809         gettext/autoconf-lib-link.
30810         * tests/havelib/rpathlx/configure.ac: New file, from
30811         gettext/autoconf-lib-link with modifications.
30812         * tests/havelib/rpathly/usey.c: New file, from
30813         gettext/autoconf-lib-link.
30814         * tests/havelib/rpathly/Makefile.am: New file, from
30815         gettext/autoconf-lib-link.
30816         * tests/havelib/rpathly/configure.ac: New file, from
30817         gettext/autoconf-lib-link with modifications.
30818         * tests/havelib/rpathlz/usez.c: New file, from
30819         gettext/autoconf-lib-link.
30820         * tests/havelib/rpathlz/Makefile.am: New file, from
30821         gettext/autoconf-lib-link.
30822         * tests/havelib/rpathlz/configure.ac: New file, from
30823         gettext/autoconf-lib-link with modifications.
30824         * tests/havelib/rpathlyx/usey.c: New file, from
30825         gettext/autoconf-lib-link.
30826         * tests/havelib/rpathlyx/Makefile.am: New file, from
30827         gettext/autoconf-lib-link.
30828         * tests/havelib/rpathlyx/configure.ac: New file, from
30829         gettext/autoconf-lib-link with modifications.
30830         * tests/havelib/rpathlzyx/usez.c: New file, from
30831         gettext/autoconf-lib-link.
30832         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30833         gettext/autoconf-lib-link.
30834         * tests/havelib/rpathlzyx/configure.ac: New file, from
30835         gettext/autoconf-lib-link with modifications.
30836         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30837         with modifications.
30838
30839 2010-04-02  Bruno Haible  <bruno@clisp.org>
30840
30841         gnulib-tool: Create distributed built sources also for the tests.
30842         * gnulib-tool (func_create_testdir): Also generate distributed built
30843         sources in the tests directory.
30844
30845 2010-04-02  Bruno Haible  <bruno@clisp.org>
30846
30847         gnulib-tool: Obey user's environment variables.
30848         * gnulib-tool (func_create_testdir): When creating built sources,
30849         respect the environment variables for autoconf, automake, etc. given by
30850         the user.
30851
30852 2010-04-02  Bruno Haible  <bruno@clisp.org>
30853
30854         gnulib-tool: Provide the value of --m4-base to modules.
30855         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30856         of gl_m4_base.
30857
30858 2010-04-02  Eric Blake  <eblake@redhat.com>
30859
30860         maint.mk: fix some fallout
30861         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30862         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30863
30864 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30865
30866         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30867         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30868         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30869         (sc_cast_of_x_alloc_return_value): Likewise.
30870         (sc_cast_of_alloca_return_value): Likewise.
30871         (sc_space_tab): Likewise.
30872         (sc_prohibit_atoi_atof): Likewise.
30873         (sc_prohibit_magic_number_exit): Likewise.
30874         (sc_error_exit_success): Likewise.
30875         (sc_file_system): Likewise.
30876         (sc_prohibit_have_config_h): Likewise.
30877         (sc_require_config_h): Likewise.
30878         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30879         (sc_obsolete_symbols): Likewise.
30880         (sc_changelog): Likewise.
30881         (sc_program_name): Likewise.
30882         (sc_the_the): Likewise.
30883         (sc_trailing_blank): Likewise.
30884         (sc_two_space_separator_in_usage): Likewise.
30885         (sc_useless_cpp_parens): Likewise.
30886         (sc_GPL_version): Likewise.
30887         (sc_GFDL_version): Likewise.
30888         (sc_texinfo_acronym): Likewise.
30889         (sc_prohibit_cvs_keyword): Likewise.
30890         (sc_prohibit_stat_st_blocks): Likewise.
30891         (sc_prohibit_S_IS_definition): Likewise.
30892         (sc_redundant_const): Likewise.
30893         (sc_makefile_TAB_only_indentation): Likewise.
30894         (sc_m4_quote_check): Likewise.
30895         (sc_makefile_path_separator_check): Likewise.
30896         (sc_copyright_check): Likewise.
30897         (sc_Wundef_boolean): Likewise.
30898         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30899
30900         maint.mk: match 0 or more whitespace-before-function-call '('
30901         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30902         that have zero or two-and-more spaces between the function name
30903         and the open parenthesis.
30904         (sc_error_message_warn_fatal): Likewise.
30905         (sc_error_message_uppercase): Likewise.
30906         (sc_error_message_period): Likewise.
30907
30908 2010-03-31  Eric Blake  <eblake@redhat.com>
30909
30910         maint.mk: check for [ as well as test
30911         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30912         Based on a libvirt report by Matthias Bolte.
30913
30914         gnumakefile: don't squelch _version output
30915         * top/GNUmakefile (_version): Create one-shot dependency rather
30916         than using $(shell) when version must be regenerated.
30917         (_autoreconf): Run verbosely, by default.
30918
30919         sys_time: avoid compiler warnings
30920         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30921         unconditional, fixing regression from 2010-03-29.
30922         Reported by Simon Josefsson.
30923
30924 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30925
30926         maint.mk: s/_header_without_use/_sc_header_without_use/
30927         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30928         (sc_prohibit_assert_without_use): Use the new name.
30929         (sc_prohibit_close_stream_without_use): Likewise.
30930         (sc_prohibit_getopt_without_use): Likewise.
30931         (sc_prohibit_quotearg_without_use): Likewise.
30932         (sc_prohibit_quote_without_use): Likewise.
30933         (sc_prohibit_long_options_without_use): Likewise.
30934         (sc_prohibit_inttostr_without_use): Likewise.
30935         (sc_prohibit_ignore_value_without_use): Likewise.
30936         (sc_prohibit_error_without_use): Likewise.
30937         (sc_prohibit_xalloc_without_use): Likewise.
30938         (sc_prohibit_hash_without_use): Likewise.
30939         (sc_prohibit_hash_pjw_without_use): Likewise.
30940         (sc_prohibit_safe_read_without_use): Likewise.
30941         (sc_prohibit_argmatch_without_use): Likewise.
30942         (sc_prohibit_canonicalize_without_use): Likewise.
30943         (sc_prohibit_root_dev_ino_without_use): Likewise.
30944         (sc_prohibit_openat_without_use): Likewise.
30945         (sc_prohibit_c_ctype_without_use): Likewise.
30946         (sc_prohibit_signal_without_use): Likewise.
30947         (sc_prohibit_intprops_without_use): Likewise.
30948
30949 2010-03-30  Eric Blake  <eblake@redhat.com>
30950
30951         maint: improve module indicators
30952         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30953         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30954         columns, and avoid extra macro expansion.
30955
30956         fdopendir: work around FreeBSD bug
30957         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30958         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30959         * modules/dirent (Makefile.am): Substitute it.
30960         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30961         declaration.
30962         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30963         fix.
30964         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30965
30966 2010-03-29  Bruno Haible  <bruno@clisp.org>
30967
30968         Emit #pragma system_header after the inclusion guard, not before.
30969         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30970         guard that spans the entire file, not before. This enables an
30971         optimization in GCC's preprocessor.
30972         * lib/ctype.in.h: Likewise.
30973         * lib/dirent.in.h: Likewise.
30974         * lib/errno.in.h: Likewise.
30975         * lib/float.in.h: Likewise.
30976         * lib/getopt.in.h: Likewise.
30977         * lib/iconv.in.h: Likewise.
30978         * lib/langinfo.in.h: Likewise.
30979         * lib/locale.in.h: Likewise.
30980         * lib/math.in.h: Likewise.
30981         * lib/netdb.in.h: Likewise.
30982         * lib/netinet_in.in.h: Likewise.
30983         * lib/pty.in.h: Likewise.
30984         * lib/sched.in.h: Likewise.
30985         * lib/se-selinux.in.h: Likewise.
30986         * lib/search.in.h: Likewise.
30987         * lib/spawn.in.h: Likewise.
30988         * lib/stdarg.in.h: Likewise.
30989         * lib/stdint.in.h: Likewise.
30990         * lib/string.in.h: Likewise.
30991         * lib/strings.in.h: Likewise.
30992         * lib/sys_file.in.h: Likewise.
30993         * lib/sys_ioctl.in.h: Likewise.
30994         * lib/sys_time.in.h: Likewise.
30995         * lib/sys_times.in.h: Likewise.
30996         * lib/sys_utsname.in.h: Likewise.
30997         * lib/sys_wait.in.h: Likewise.
30998         * lib/sysexits.in.h: Likewise.
30999         * lib/wctype.in.h: Likewise.
31000
31001 2010-03-28  James Youngman  <jay@gnu.org>
31002
31003         save-cwd: don't leak a file descriptor when the caller execs.
31004         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31005         saved file descriptor.
31006         * modules/save-cwd (Depends-on): Depend on cloexec.
31007
31008 2010-03-29  Bruno Haible  <bruno@clisp.org>
31009
31010         Remove vestiges of fts-lgpl module.
31011         * lib/fts_.h: Assume GNULIB_FTS is 1.
31012         * lib/fts.c: Likewise.
31013         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31014
31015 2010-03-28  Bruno Haible  <bruno@clisp.org>
31016
31017         Fix definition of tests witness macro.
31018         * gnulib-tool (func_import): Fix definition of witness macro.
31019
31020 2010-03-28  Bruno Haible  <bruno@clisp.org>
31021
31022         Fix ioctl's protoype on glibc systems.
31023         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31024         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31025         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31026         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31027         signature. If not, arrange to replace the ioctl function.
31028         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31029         REPLACE_IOCTL.
31030         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31031         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31032         Reported by Ludovic Courtès <ludo@gnu.org>.
31033
31034 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31035
31036         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31037         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31038         made it so grep -r --include=GLOB* ... did not work.
31039
31040 2010-03-26  Jim Meyering  <meyering@redhat.com>
31041             Eric Blake  <eblake@redhat.com>
31042
31043         maint.mk: prohibit use of test's -o and -a operators
31044         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31045
31046 2010-03-28  Bruno Haible  <bruno@clisp.org>
31047
31048         Remove unused GNULIB_XYZ macro definitions.
31049         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31050         invocation.
31051
31052 2010-03-28  Bruno Haible  <bruno@clisp.org>
31053
31054         Mark privileged tests modules.
31055         * modules/idpriv-drop-tests (Status): New section.
31056         * modules/idpriv-droptemp-tests (Status): New section.
31057
31058 2010-03-28  Bruno Haible  <bruno@clisp.org>
31059
31060         Split C++ tests into separate tests modules.
31061         * modules/dirent-c++-tests: New file, extracted from
31062         modules/dirent-tests.
31063         * modules/dirent-tests: Depend on it.
31064         * modules/fcntl-h-c++-tests: New file, extracted from
31065         modules/fcntl-h-tests.
31066         * modules/fcntl-h-tests: Depend on it.
31067         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31068         * modules/glob-tests: Depend on it.
31069         * modules/iconv-h-c++-tests: New file, extracted from
31070         modules/iconv-h-tests.
31071         * modules/iconv-h-tests: Depend on it.
31072         * modules/langinfo-c++-tests: New file, extracted from
31073         modules/langinfo-tests.
31074         * modules/langinfo-tests: Depend on it.
31075         * modules/locale-c++-tests: New file, extracted from
31076         modules/locale-tests.
31077         * modules/locale-tests: Depend on it.
31078         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31079         * modules/math-tests: Depend on it.
31080         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31081         * modules/pty-tests: Depend on it.
31082         * modules/search-c++-tests: New file, extracted from
31083         modules/search-tests.
31084         * modules/search-tests: Depend on it.
31085         * modules/signal-c++-tests: New file, extracted from
31086         modules/signal-tests.
31087         * modules/signal-tests: Depend on it.
31088         * modules/spawn-c++-tests: New file, extracted from
31089         modules/spawn-tests.
31090         * modules/spawn-tests: Depend on it.
31091         * modules/stdio-c++-tests: New file, extracted from
31092         modules/stdio-tests.
31093         * modules/stdio-tests: Depend on it.
31094         * modules/stdlib-c++-tests: New file, extracted from
31095         modules/stdlib-tests.
31096         * modules/stdlib-tests: Depend on it.
31097         * modules/string-c++-tests: New file, extracted from
31098         modules/string-tests.
31099         * modules/string-tests: Depend on it.
31100         * modules/sys_ioctl-c++-tests: New file, extracted from
31101         modules/sys_ioctl-tests.
31102         * modules/sys_ioctl-tests: Depend on it.
31103         * modules/sys_select-c++-tests: New file, extracted from
31104         modules/sys_select-tests.
31105         * modules/sys_select-tests: Depend on it.
31106         * modules/sys_socket-c++-tests: New file, extracted from
31107         modules/sys_socket-tests.
31108         * modules/sys_socket-tests: Depend on it.
31109         * modules/sys_stat-c++-tests: New file, extracted from
31110         modules/sys_stat-tests.
31111         * modules/sys_stat-tests: Depend on it.
31112         * modules/sys_time-c++-tests: New file, extracted from
31113         modules/sys_time-tests.
31114         * modules/sys_time-tests: Depend on it.
31115         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31116         * modules/time-tests: Depend on it.
31117         * modules/unistd-c++-tests: New file, extracted from
31118         modules/unistd-tests.
31119         * modules/unistd-tests: Depend on it.
31120         * modules/wchar-c++-tests: New file, extracted from
31121         modules/wchar-tests.
31122         * modules/wchar-tests: Depend on it.
31123         * modules/wctype-c++-tests: New file, extracted from
31124         modules/wctype-tests.
31125         * modules/wctype-tests: Depend on it.
31126         Reported by Simon Josefsson.
31127
31128 2010-03-28  Bruno Haible  <bruno@clisp.org>
31129
31130         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31131         * gnulib-tool (func_exists_module): New function, extracted from
31132         func_verify_module.
31133         (func_verify_module): Use it.
31134         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31135         'foo' only if 'foo' exists.
31136         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31137         module.
31138
31139 2010-03-28  Bruno Haible  <bruno@clisp.org>
31140
31141         gnulib-tool: Add support for special categories of tests.
31142         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31143         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31144         (func_usage): Document them.
31145         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31146         inc_unportable_tests, inc_all_tests): New variables.
31147         (func_acceptable): Consider these variables.
31148         (func_modules_transitive_closure): Make it work when the 'Status' field
31149         consists of multiple words.
31150         (func_import): Store and restore the values of inc_cxx_tests,
31151         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31152         inc_all_tests in gnulib-comp.m4.
31153         (func_create_testdir): Set inc_all_tests to true.
31154         * doc/gnulib.texi (Extra tests modules): New section.
31155         Suggested by Jim Meyering.
31156
31157 2010-03-28  Bruno Haible  <bruno@clisp.org>
31158
31159         ansi-c++-opt: Allow turning off the C++ build by default.
31160         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31161         gl_CXX_CHOICE_DEFAULT_NO is defined.
31162         Requested by Eric Blake.
31163
31164 2010-03-28  Bruno Haible  <bruno@clisp.org>
31165
31166         unistd: Avoid #define replacements in C++ mode.
31167         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31168         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31169         setsockopt, shutdown, select): In C++, attach a warning to the function
31170         if possible, rather than #defining the symbol to a dysfunctional alias.
31171         Reported by John W. Eaton <jwe@gnu.org>.
31172
31173 2010-03-28  Bruno Haible  <bruno@clisp.org>
31174
31175         Fix link errors on mingw.
31176         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31177         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31178         $(LIBSOCKET).
31179         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31180         $(LIBSOCKET).
31181
31182 2010-03-28  Bruno Haible  <bruno@clisp.org>
31183             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31184
31185         lib-ignore: Determine different options for different compilers.
31186         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31187         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31188         Add comments.
31189         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31190         * NEWS: Mention the change.
31191
31192 2010-03-27  Bruno Haible  <bruno@clisp.org>
31193
31194         Remove unused GNULIB_XYZ macro definitions.
31195         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31196         * modules/fseek (configure.ac): Likewise.
31197         * modules/ioctl (configure.ac): Likewise.
31198         * modules/open (configure.ac): Likewise.
31199         * modules/stdlib-safer (configure.ac): Likewise.
31200
31201 2010-03-27  Bruno Haible  <bruno@clisp.org>
31202
31203         Add a remark about certain modules.
31204         * modules/malloc (Comment): New section.
31205         * modules/realloc (Comment): Likewise.
31206         * modules/sigpipe (Comment): Likewise.
31207
31208 2010-03-27  Bruno Haible  <bruno@clisp.org>
31209
31210         Resolve conflict between the two kinds of module indicators.
31211         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31212         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31213         * modules/canonicalize (configure.ac): Invoke
31214         gl_MODULE_INDICATOR_FOR_TESTS.
31215         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31216         GNULIB_XYZ.
31217         * tests/test-dirent-c++.cc: Likewise.
31218         * tests/test-dirent-safer.c: Likewise.
31219         * tests/test-dup2.c: Likewise.
31220         * tests/test-fchdir.c: Likewise.
31221         * tests/test-fcntl-h-c++.cc: Likewise.
31222         * tests/test-getopt.c: Likewise.
31223         * tests/test-getopt.h: Likewise.
31224         * tests/test-langinfo-c++.cc: Likewise.
31225         * tests/test-locale-c++.cc: Likewise.
31226         * tests/test-math-c++.cc: Likewise.
31227         * tests/test-pty-c++.cc: Likewise.
31228         * tests/test-search-c++.cc: Likewise.
31229         * tests/test-signal-c++.cc: Likewise.
31230         * tests/test-spawn-c++.cc: Likewise.
31231         * tests/test-stdio-c++.cc: Likewise.
31232         * tests/test-stdlib-c++.cc: Likewise.
31233         * tests/test-string-c++.cc: Likewise.
31234         * tests/test-sys_ioctl-c++.cc: Likewise.
31235         * tests/test-sys_select-c++.cc: Likewise.
31236         * tests/test-sys_socket-c++.cc: Likewise.
31237         * tests/test-sys_stat-c++.cc: Likewise.
31238         * tests/test-sys_time-c++.cc: Likewise.
31239         * tests/test-time-c++.cc: Likewise.
31240         * tests/test-unistd-c++.cc: Likewise.
31241         * tests/test-wchar-c++.cc: Likewise.
31242         * tests/uninorm/test-u8-nfc.c: Likewise.
31243         * tests/uninorm/test-u8-nfd.c: Likewise.
31244         * tests/uninorm/test-u8-nfkc.c: Likewise.
31245         * tests/uninorm/test-u8-nfkd.c: Likewise.
31246         * tests/uninorm/test-u16-nfc.c: Likewise.
31247         * tests/uninorm/test-u16-nfd.c: Likewise.
31248         * tests/uninorm/test-u16-nfkc.c: Likewise.
31249         * tests/uninorm/test-u16-nfkd.c: Likewise.
31250         * tests/uninorm/test-u32-nfc.c: Likewise.
31251         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31252         * tests/uninorm/test-u32-nfd.c: Likewise.
31253         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31254         * tests/uninorm/test-u32-nfkc.c: Likewise.
31255         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31256         * tests/uninorm/test-u32-nfkd.c: Likewise.
31257         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31258         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31259
31260 2010-03-27  Bruno Haible  <bruno@clisp.org>
31261
31262         Distinguish two kinds of module indicators.
31263         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31264         gl_MODULE_INDICATOR.
31265         (gl_MODULE_INDICATOR): New macro.
31266         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31267         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31268         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31269         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31270         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31271         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31272         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31273         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31274         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31275         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31276         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31277         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31279         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31280         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31281         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31282         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31283         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31284         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31285         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31286         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31287         * modules/cloexec (configure.ac): Likewise.
31288         * modules/getopt-gnu (configure.ac): Likewise.
31289         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31290         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31291         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31292         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31293
31294 2010-03-27  Bruno Haible  <bruno@clisp.org>
31295
31296         New module description field 'Comment'.
31297         * gnulib-tool: New option --extract-comment.
31298         (func_usage): Document it.
31299         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31300         (func_get_comment): New function.
31301         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31302
31303 2010-03-27  Bruno Haible  <bruno@clisp.org>
31304
31305         Addendum to 2010-02-07 commit.
31306         * gnulib-tool (func_usage): Document --extract-applicability option.
31307
31308 2010-03-27  Bruno Haible  <bruno@clisp.org>
31309
31310         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31311         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31312         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31313         rather than link errors.
31314
31315 2010-03-27  Bruno Haible  <bruno@clisp.org>
31316
31317         Avoid side effects from tests-related modules on the compilation of lib.
31318         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31319         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31320         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31321         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31322         macro.
31323         (func_import): Define a witness macro. Assign it a value that depends
31324         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31325         tests-related modules.
31326         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31327         Reported by Jim Meyering.
31328
31329 2010-03-27  Bruno Haible  <bruno@clisp.org>
31330
31331         Factorize common .m4 code.
31332         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31333         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31334         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31335         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31336         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31337         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31338         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31339         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31340         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31341         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31342         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31343         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31344         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31345         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31346         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31347         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31348         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31349         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31350         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31351         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31352         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31353         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31354         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31356         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31357         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31358         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31359         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31360         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31361         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31362         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31363         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31364
31365 2010-03-27  Bruno Haible  <bruno@clisp.org>
31366
31367         Fix a compilation error on Cygwin with g++ >= 4.3.
31368         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31369         if it is undefined or if we alias it to chmod.
31370         (lstat): Don't warn about the use of this function if it is undefined
31371         or if we alias it to stat.
31372         Reported by Simon Josefsson.
31373
31374 2010-03-27  Bruno Haible  <bruno@clisp.org>
31375
31376         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31377         * modules/getlogin (configure.ac): Update.
31378
31379         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31380         * modules/getlogin_r (configure.ac): Update.
31381
31382         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31383         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31384         * modules/inet_ntop (configure.ac): Update.
31385
31386         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31387         * modules/inet_pton (configure.ac): Update.
31388
31389         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31390         * modules/mbslen (configure.ac): Update.
31391
31392         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31393         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31394         * modules/forkpty (configure.ac): Update.
31395         * modules/openpty (configure.ac): Update.
31396
31397 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31398
31399         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31400         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31401
31402 2010-03-25  Eric Blake  <eblake@redhat.com>
31403
31404         maint: use pragma consistently across replacement headers
31405         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31406         * lib/dirent.in.h (system_header): Likewise.
31407         * lib/errno.in.h (system_header): Likewise.
31408         * lib/float.in.h (system_header): Likewise.
31409         * lib/getopt.in.h (system_header): Likewise.
31410         * lib/iconv.in.h (system_header): Likewise.
31411         * lib/inttypes.in.h (system_header): Likewise.
31412         * lib/langinfo.in.h (system_header): Likewise.
31413         * lib/locale.in.h (system_header): Likewise.
31414         * lib/math.in.h (system_header): Likewise.
31415         * lib/netdb.in.h (system_header): Likewise.
31416         * lib/netinet_in.in.h (system_header): Likewise.
31417         * lib/pty.in.h (system_header): Likewise.
31418         * lib/sched.in.h (system_header): Likewise.
31419         * lib/se-selinux.in.h (system_header): Likewise.
31420         * lib/search.in.h (system_header): Likewise.
31421         * lib/spawn.in.h (system_header): Likewise.
31422         * lib/stdarg.in.h (system_header): Likewise.
31423         * lib/stdint.in.h (system_header): Likewise.
31424         * lib/string.in.h (system_header): Likewise.
31425         * lib/strings.in.h (system_header): Likewise.
31426         * lib/sys_file.in.h (system_header): Likewise.
31427         * lib/sys_ioctl.in.h (system_header): Likewise.
31428         * lib/sys_socket.in.h (system_header): Likewise.
31429         * lib/sys_times.in.h (system_header): Likewise.
31430         * lib/sys_utsname.in.h (system_header): Likewise.
31431         * lib/sys_wait.in.h (system_header): Likewise.
31432         * lib/sysexits.in.h (system_header): Likewise.
31433         * lib/unistd.in.h (system_header): Likewise.
31434         * lib/wctype.in.h (system_header): Likewise.
31435
31436         arpa/inet: fix mingw compilation warning
31437         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31438         Reported by Matthew Bolte.
31439
31440 2010-03-25  Bruno Haible  <bruno@clisp.org>
31441
31442         Avoid collision between gnulib wrapper and libintl wrapper.
31443         * lib/printf.c (printf): Don't define if a printf wrapper is already
31444         defined in intl/printf.c.
31445         Reported by Michel Boaventura <michel@michelboaventura.com>.
31446
31447 2010-03-25  Bruno Haible  <bruno@clisp.org>
31448
31449         Use ANSI C.
31450         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31451
31452 2010-03-25  Bruno Haible  <bruno@clisp.org>
31453
31454         Minor formatting changes.
31455         * lib/acosl.c: Insert space before function argument list.
31456         * lib/argz.c: Likewise.
31457         * lib/asinl.c: Likewise.
31458         * lib/expl.c: Likewise.
31459         * lib/gen-uni-tables.c: Likewise.
31460         * lib/gettext.h: Likewise.
31461         * lib/glthread/lock.h: Likewise.
31462         * lib/tanl.c: Likewise.
31463         * lib/uniname/uniname.c: Likewise.
31464         * tests/test-idpriv-drop.c: Likewise.
31465         * tests/test-idpriv-droptemp.c: Likewise.
31466         * tests/test-lock.c: Likewise.
31467         * tests/test-tls.c: Likewise.
31468         * lib/argp-help.c: Insert space before function-like macro argument
31469         list.
31470         * lib/memcmp.c: Likewise.
31471         * tests/test-base64.c: Likewise.
31472         * lib/localename.c: Insert space before sizeof's argument list.
31473         * lib/safe-alloc.h: Likewise.
31474         * lib/file-set.h: Insert space before macro argument list.
31475         * tests/test-argp.c: Likewise.
31476         * lib/argp-namefrob.h: Insert space before function parameter list.
31477         * lib/getaddrinfo.c: Likewise.
31478         * lib/netdb.in.h: Likewise.
31479         * lib/parse-duration.h: Likewise.
31480         * lib/parse-duration.c: Likewise.
31481         * lib/poll.c: Likewise.
31482         * lib/select.c: Likewise.
31483         * lib/trim.h: Likewise.
31484         * tests/test-usleep.c: Likewise.
31485         * lib/ldexpl.c: Insert space before function parameter list and before
31486         function argument list.
31487         * lib/logl.c: Likewise.
31488         * lib/sqrtl.c: Likewise.
31489         * lib/trim.c: Likewise.
31490         * lib/cosl.c: Use GNU style indentation. Insert space before function
31491         argument list.
31492         * lib/sinl.c: Likewise.
31493         * lib/tsearch.c: Insert space after 'for'.
31494         Reported by Jim Meyering.
31495
31496 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31497
31498         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31499         config header before grepping, as it's not present before
31500         autoreconf/configure are run.  Reported by Simon Josefsson.
31501
31502 2010-03-23  Bruno Haible  <bruno@clisp.org>
31503
31504         pt_chown: Make it work with automake < 1.11.
31505         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31506         Reported by Simon Josefsson.
31507
31508 2010-03-23  Bruno Haible  <bruno@clisp.org>
31509
31510         pt_chown: Don't depend on GPLed modules.
31511         * lib/pt_chown.c: Don't include idpriv.h.
31512         (main): Don't drop privileges.
31513         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31514         Reported by Simon Josefsson.
31515
31516 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31517
31518         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31519         suggestions from karl@freefriends.org (Karl Berry).
31520
31521 2010-03-22  Eric Blake  <eblake@redhat.com>
31522
31523         gethostname: further tweaks
31524         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31525         are overriding gethostname.
31526         Suggested by Bruno Haible.
31527
31528 2010-03-21  Bruno Haible  <bruno@clisp.org>
31529
31530         Fix comments.
31531         * lib/forkpty.c (rpl_forkpty): Fix comment.
31532         * lib/openpty.c (rpl_openpty): Likewise.
31533         Reported by Eric Blake.
31534
31535 2010-03-22  Eric Blake  <eblake@redhat.com>
31536
31537         gethostname: fix build on mingw
31538         * lib/unistd.in.h (includes): Work around fact that mingw
31539         <winsock2.h> re-includes <unistd.h>, by avoiding any
31540         redeclarations if we are being included by <winsock2.h>.
31541         Reported by Matthias Bolte.
31542
31543 2010-03-21  Bruno Haible  <bruno@clisp.org>
31544
31545         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31546         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31547         modifications.
31548         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31549         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31550         provide the replacement.
31551         * modules/forkpty (Depends-on): Add openpty, login_tty.
31552         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31553         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31554         * doc/glibc-functions/forkpty.texi: More supported platforms.
31555         * config/srclist.txt: Add forkpty.c (commented).
31556
31557 2010-03-21  Bruno Haible  <bruno@clisp.org>
31558
31559         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31560         (Makefile.am): Verify that PTY_LIB is defined.
31561
31562         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31563
31564 2010-03-21  Bruno Haible  <bruno@clisp.org>
31565
31566         Tests for module 'login_tty'.
31567         * modules/login_tty-tests: New file.
31568         * tests/test-login_tty.c: New file.
31569
31570         New module 'login_tty'.
31571         * lib/login_tty.c: New file.
31572         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31573         * modules/login_tty: New file.
31574         * doc/glibc-functions/login_tty.texi: Mention the new module.
31575
31576 2010-03-21  Bruno Haible  <bruno@clisp.org>
31577
31578         login_tty: Documentation.
31579         * doc/glibc-functions/login_tty.texi: New file.
31580         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31581
31582 2010-03-21  Bruno Haible  <bruno@clisp.org>
31583
31584         pty: Consistent macro naming.
31585         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31586         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31587         * modules/pty (configure.ac): Update.
31588
31589 2010-03-21  Bruno Haible  <bruno@clisp.org>
31590
31591         Tests for openpty: Make stricter.
31592         * tests/test-openpty.c (main): Add test of canonical processing and
31593         erase.
31594         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31595
31596         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31597         * lib/openpty.c (openpty): New replacement function.
31598         * lib/pty.in.h: Include <termios.h>.
31599         (openpty): Update declaration. Add comments.
31600         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31601         is not declared, arrange to provide the replacement. Check for _getpty
31602         and posix_openpt.
31603         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31604         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31605         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31606         * modules/pty-tests (test_pty_c___LDADD): New variable.
31607         * doc/glibc-functions/openpty.texi: More supported platforms.
31608
31609 2010-03-21  Bruno Haible  <bruno@clisp.org>
31610
31611         setenv: Tweaks.
31612         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31613         the test program.
31614         * doc/posix-functions/setenv.texi: Update platforms list.
31615
31616 2010-03-21  Bruno Haible  <bruno@clisp.org>
31617
31618         New module 'unlockpt'.
31619         * lib/unlockpt.c: New file, from glibc with modifications.
31620         * m4/unlockpt.m4: New file.
31621         * modules/unlockpt: New file.
31622         * lib/stdlib.in.h (unlockpt): New declaration.
31623         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31624         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31625         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31626         HAVE_UNLOCKPT.
31627         * doc/posix-functions/unlockpt.texi: Mention the new module.
31628         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31629         * config/srclist.txt: Add unlockpt.c (commented).
31630
31631 2010-03-21  Jim Meyering  <meyering@redhat.com>
31632
31633         maint.mk: prohibit inclusion of "intprops.h" without use
31634         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31635
31636 2010-03-21  Bruno Haible  <bruno@clisp.org>
31637
31638         New module 'grantpt'.
31639         * lib/grantpt.c: New file, from glibc with modifications.
31640         * m4/grantpt.m4: New file.
31641         * modules/grantpt: New file.
31642         * lib/stdlib.in.h (grantpt): New declaration.
31643         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31644         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31645         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31646         HAVE_GRANTPT.
31647         * doc/posix-functions/grantpt.texi: Mention the new module.
31648         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31649         * config/srclist.txt: Add grantpt.c (commented).
31650
31651 2010-03-21  Bruno Haible  <bruno@clisp.org>
31652
31653         New module 'pt_chown'.
31654         * lib/pt_chown.c: New file, from glibc with modifications.
31655         * lib/pty-private.h: New file, from glibc with modifications.
31656         * modules/pt_chown: New file.
31657         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31658
31659 2010-03-21  Bruno Haible  <bruno@clisp.org>
31660
31661         Tests for module 'ptsname'.
31662         * modules/ptsname-tests: New file.
31663         * tests/test-ptsname.c: New file.
31664
31665         New module 'ptsname'.
31666         * lib/ptsname.c: New file, from glibc with modifications.
31667         * m4/ptsname.m4: New file.
31668         * modules/ptsname: New file.
31669         * lib/stdlib.in.h (ptsname): New declaration.
31670         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31671         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31672         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31673         HAVE_PTSNAME.
31674         * doc/posix-functions/ptsname.texi: Mention the new module.
31675         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31676         * config/srclist.txt: Add ptsname.c (commented).
31677
31678 2010-03-21  Bruno Haible  <bruno@clisp.org>
31679
31680         Tests for module 'ttyname_r'.
31681         * modules/ttyname_r-tests: New file.
31682         * tests/test-ttyname_r.c: New file.
31683
31684         New module 'ttyname_r'.
31685         * lib/ttyname_r.c: New file.
31686         * m4/ttyname_r.m4: New file.
31687         * modules/ttyname_r: New file.
31688         * lib/unistd.in.h (ttyname_r): New declaration.
31689         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31690         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31691         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31692         HAVE_TTYNAME_R.
31693         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31694         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31695
31696 2010-03-20  Bruno Haible  <bruno@clisp.org>
31697
31698         signal: Undefine macro definitions in C++ mode.
31699         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31700         sigfillset): Undefine macro definitions from the system header in C++
31701         mode.
31702         Reported by John W. Eaton <jwe@gnu.org>.
31703
31704 2010-03-20  Bruno Haible  <bruno@clisp.org>
31705
31706         Ensure no #include statements inside extern "C" { ... }.
31707         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31708         contain #include statements.
31709         * lib/time.in.h: Likewise.
31710
31711 2010-03-20  Bruno Haible  <bruno@clisp.org>
31712
31713         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31714         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31715         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31716         Reported by John W. Eaton <jwe@gnu.org>.
31717
31718 2010-03-20  Bruno Haible  <bruno@clisp.org>
31719
31720         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31721         Reported by Jim Meyering.
31722
31723 2010-03-20  Bruno Haible  <bruno@clisp.org>
31724
31725         pipe: Set errno upon failure.
31726         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31727         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31728         errno value in error message.
31729
31730 2010-03-20  Bruno Haible  <bruno@clisp.org>
31731             Jim Meyering  <meyering@redhat.com>
31732
31733         lchown: Avoid "unused variable" warning.
31734         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31735
31736 2010-03-20  Bruno Haible  <bruno@clisp.org>
31737
31738         Work around unlink() bug on MacOS X 10.5.6.
31739         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31740         attempting to unlink a parent directory.
31741         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31742         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31743         activate for the replacement function.
31744         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31745
31746 2010-03-20  Bruno Haible  <bruno@clisp.org>
31747
31748         Fix link errors on Solaris 8.
31749         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31750         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31751
31752 2010-03-19  Jim Meyering  <meyering@redhat.com>
31753
31754         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31755         The _LIBC implementation of build_range_exp correctly honors the
31756         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31757         However, the non-_LIBC implementation would ignore that syntax-bit
31758         flag and return REG_ERANGE unconditionally.
31759         This change makes it honor that flag.
31760         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31761         Make two pointer parameters "const".
31762         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31763         (parse_bracket_exp): Update caller.
31764
31765         regex.m4: correct the reversed range endpoint ([b-a]) test
31766         * m4/regex.m4: When requiring that [b-a] evoke failure,
31767         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31768         test pass once again for x86-based systems.
31769
31770 2010-03-19  Bruno Haible  <bruno@clisp.org>
31771
31772         scandir: Fix link error on Solaris 8.
31773         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31774         macros.
31775
31776 2010-03-19  Bruno Haible  <bruno@clisp.org>
31777
31778         getusershell: Fix documentation.
31779         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31780         module.
31781         * doc/glibc-functions/setusershell.texi: Likewise.
31782
31783         getusershell: Provide declaration, missing on Solaris 9.
31784         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31785         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31786         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31787         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31789         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31790         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31791         HAVE_GETUSERSHELL.
31792         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31793
31794 2010-03-19  Bruno Haible  <bruno@clisp.org>
31795
31796         wctype: Provide iswblank function.
31797         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31798         exists and is fine.
31799         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31800         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31801         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31802         * doc/posix-functions/iswblank.texi: Update.
31803
31804 2010-03-19  Bruno Haible  <bruno@clisp.org>
31805
31806         Tests of module 'pty' in C++ mode.
31807         * modules/pty-tests: New file.
31808         * tests/test-pty-c++.cc: New file.
31809         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31810
31811 2010-03-19  Eric Blake  <eblake@redhat.com>
31812
31813         logb: fix documentation
31814         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31815         1.5 declaration bug.
31816
31817         forkpty, openpty: prefer glibc's const-safe prototype
31818         * lib/forkpty.c (rpl_forkpty): New file.
31819         * lib/openpty.c (rpl_openpty): Likewise.
31820         * modules/forkpty (Files): Distribute it.
31821         * modules/openpty (Files): Likewise.
31822         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31823         check...
31824         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31825         replacement for for non-const BSD signature.
31826         * modules/pty (Makefile.am): Substitute witnesses.
31827         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31828         * tests/test-forkpty.c: Update signature check.
31829         * tests/test-openpty.c: Likewise.
31830         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31831         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31832
31833         forkpty, openpty: split functions into new modules
31834         * modules/pty (Makefile.am): Substitute new witnesses.
31835         (Libraries): Move library detection...
31836         * modules/forkpty: ...into new module.
31837         * modules/openpty: Another new module.
31838         * modules/pty-tests: Rename and split...
31839         * modules/forkpty-tests: ...to this...
31840         * modules/openpty-tests: ...and this.
31841         * tests/test-pty.c: Rename and split...
31842         * tests/test-forkpty.c: ...to this...
31843         * tests/test-openpty.c: ...and this.
31844         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31845         (gl_PTY): Split library searching...
31846         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31847         (gl_FORKPTY, gl_OPENPTY): New macros.
31848         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31849         * NEWS: Mention the split.
31850         * MODULES.html.sh (Misc): Document the modules.
31851         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31852         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31853
31854         pty: improve replacement header
31855         * lib/pty.in.h: New file.
31856         * modules/pty (Files): Ship it.
31857         (Makefile.am): Always build replacement.
31858         * m4/pty.m4: Rename...
31859         * m4/pty_h.m4: ...to this.
31860         (gl_PTY): Modernize setting of witness macros; update check of
31861         forkpty to take proper advantage of cache.
31862         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31863
31864         getopt: avoid compiler warning
31865         * lib/getopt.c (attribute_hidden): Remove unused macro.
31866
31867 2010-03-18  Bruno Haible  <bruno@clisp.org>
31868
31869         Fix link errors on Solaris 8.
31870         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31871         * modules/search-tests (test_search_c___LDADD): Likewise.
31872         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31873         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31874         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31875         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31876         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31877         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31878         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31879
31880 2010-03-18  Bruno Haible  <bruno@clisp.org>
31881
31882         Fix bug introduced on 2010-03-14.
31883         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31884         (gl_SPAWN_H): Require it.
31885         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31886         Reported by Simon Josefsson.
31887
31888 2010-03-18  Bruno Haible  <bruno@clisp.org>
31889
31890         Fix typo introduced on 2009-12-31.
31891         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31892         posix_spawn_file_actions_adddup2.
31893
31894 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31895         and Eric Blake  <eblake@redhat.com>
31896
31897         test-vc-list-files-git: make more robust
31898         * tests/test-vc-list-files-git.sh: Unset problematic environment
31899         variables.  Chain commands together.
31900
31901 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31902
31903         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31904         `AC_CHECK_DECL' invocation.
31905
31906 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31907
31908         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31909         appears before executable statements. Suggested by Petr Sumbera
31910         <Petr.Sumbera@Sun.COM>.
31911
31912 2010-03-14  Bruno Haible  <bruno@clisp.org>
31913
31914         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31915         portability problems. Instead use a simpler test.
31916         (main): Check that invalid arguments are rejected only on Linux.
31917
31918 2010-03-14  Bruno Haible  <bruno@clisp.org>
31919
31920         Fix bug introduced on 2009-12-31.
31921         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31922         gl_PREREQ_SYS_H_WINSOCK2 always.
31923         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31924         SYS_SOCKET_H variable.
31925         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31926         Update comments.
31927         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31928         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31929         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31930         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31931         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31932
31933 2010-03-14  Bruno Haible  <bruno@clisp.org>
31934
31935         Fix values returned by sinl, cosl.
31936         * lib/trigl.h: Add specification comments.
31937         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31938         that combines the values from the precomputed table with the values of
31939         the Chebyshev polynomials.
31940
31941 2010-03-14  Bruno Haible  <bruno@clisp.org>
31942
31943         Fix compilation error when modules 'posix_spawn[p]' are not used.
31944         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31946
31947 2010-03-14  Bruno Haible  <bruno@clisp.org>
31948
31949         Fix compilation error on mingw when module 'time_r' is not used.
31950         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31951         is 1.
31952         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31953         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31954         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31955         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31956
31957 2010-03-14  Bruno Haible  <bruno@clisp.org>
31958
31959         Fix compilation error with Sun C.
31960         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31961         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31962         instead of GCC specific ULONG_LONG_MAX.
31963         * lib/xstrtoll.c: Likewise.
31964         * lib/xstrtoull.c: Likewise.
31965
31966 2010-03-13  Bruno Haible  <bruno@clisp.org>
31967
31968         Allow the user to disable C++ code and tests.
31969         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31970         (gl_PROG_ANSI_CXX): Require it.
31971
31972 2010-03-13  Bruno Haible  <bruno@clisp.org>
31973
31974         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31975         cases.
31976
31977 2010-03-13  Bruno Haible  <bruno@clisp.org>
31978
31979         Test that gnulib does not break the standard C++ headers.
31980         * tests/test-locale-c++2.cc: New file.
31981         * modules/locale-tests (Files): Add it.
31982         (Makefile.am): Compile it for test-locale-c++.
31983         * tests/test-math-c++2.cc: New file.
31984         * modules/math-tests (Files): Add it.
31985         (Makefile.am): Compile it for test-math-c++.
31986         * tests/test-signal-c++2.cc: New file.
31987         * modules/signal-tests (Files): Add it.
31988         (Makefile.am): Compile it for test-signal-c++.
31989         * tests/test-stdio-c++2.cc: New file.
31990         * modules/stdio-tests (Files): Add it.
31991         (Makefile.am): Compile it for test-stdio-c++.
31992         * tests/test-stdlib-c++2.cc: New file.
31993         * modules/stdlib-tests (Files): Add it.
31994         (Makefile.am): Compile it for test-stdlib-c++.
31995         * tests/test-string-c++2.cc: New file.
31996         * modules/string-tests (Files): Add it.
31997         (Makefile.am): Compile it for test-string-c++.
31998         * tests/test-time-c++2.cc: New file.
31999         * modules/time-tests (Files): Add it.
32000         (Makefile.am): Compile it for test-time-c++.
32001         Reported by John W. Eaton <jwe@gnu.org>.
32002
32003 2010-03-13  Bruno Haible  <bruno@clisp.org>
32004
32005         * gnulib-tool (func_usage): Clarify which options are available for
32006         --create-testdir and --create-megatestdir.
32007
32008 2010-03-13  Bruno Haible  <bruno@clisp.org>
32009
32010         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32011         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32012         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32013         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32014         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32015         when appropriate.
32016         Reported by Jim Meyering.
32017
32018 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32019
32020         * gnulib-tool (func_import): Explain origin of code.
32021
32022 2010-03-12  Bruno Haible  <bruno@clisp.org>
32023
32024         Fix problem with automake's definition of CXXLINK.
32025         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32026         Reported by Simon Josefsson and Ludovic Courtès.
32027
32028 2010-03-12  Bruno Haible  <bruno@clisp.org>
32029
32030         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32031         stable releases.
32032
32033 2010-03-11  Bruno Haible  <bruno@clisp.org>
32034
32035         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32036         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32037         whether the system provides one variant or multiple variants of the
32038         function.
32039         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32040         C++ compilers.
32041         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32042         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32043         Reported by Jim Meyering.
32044
32045 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32046
32047         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32048
32049 2010-03-08  Bruno Haible  <bruno@clisp.org>
32050
32051         gnulib-tool: Add support for --libtool in --create-testdir.
32052         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32053         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32054
32055 2010-03-08  Eric Blake  <eblake@redhat.com>
32056
32057         gnulib-tool.texi: mention possibility of git submodule
32058         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32059         submodules.
32060         * doc/.gitignore: Ignore another generated file.
32061
32062 2010-03-08  Karl Berry  <karl@gnu.org>
32063
32064         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32065         of committing gnulib files while skipping others.
32066
32067 2010-03-07  Bruno Haible  <bruno@clisp.org>
32068
32069         Tests of module 'wctype' in C++ mode.
32070         * tests/test-wctype-c++.cc: New file.
32071         * modules/wctype-tests (Files): Add it and tests/signature.h.
32072         (Depends-on): Add ansi-c++-opt.
32073         (Makefile.am): Arrange to compile and run test-wctype-c++.
32074
32075         Tests of module 'wchar' in C++ mode.
32076         * tests/test-wchar-c++.cc: New file.
32077         * modules/wchar-tests (Files): Add it and tests/signature.h.
32078         (Depends-on): Add ansi-c++-opt.
32079         (Makefile.am): Arrange to compile and run test-wchar-c++.
32080         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32081         gl_MODULE_INDICATOR.
32082
32083         Tests of module 'unistd' in C++ mode.
32084         * tests/test-unistd-c++.cc: New file.
32085         * modules/unistd-tests (Files): Add it and tests/signature.h.
32086         (Depends-on): Add ansi-c++-opt.
32087         (Makefile.am): Arrange to compile and run test-unistd-c++.
32088         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32089         gl_MODULE_INDICATOR.
32090
32091         Tests of module 'time' in C++ mode.
32092         * tests/test-time-c++.cc: New file.
32093         * modules/time-tests (Files): Add it and tests/signature.h.
32094         (Depends-on): Add ansi-c++-opt.
32095         (Makefile.am): Arrange to compile and run test-time-c++.
32096         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32097
32098         Tests of module 'sys_time' in C++ mode.
32099         * tests/test-sys_time-c++.cc: New file.
32100         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32101         (Depends-on): Add ansi-c++-opt.
32102         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32103         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32104         gl_MODULE_INDICATOR.
32105
32106         Tests of module 'sys_stat' in C++ mode.
32107         * tests/test-sys_stat-c++.cc: New file.
32108         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32109         (Depends-on): Add ansi-c++-opt.
32110         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32111         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32112         gl_MODULE_INDICATOR.
32113
32114         Tests of module 'sys_socket' in C++ mode.
32115         * tests/test-sys_socket-c++.cc: New file.
32116         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32117         (Depends-on): Add ansi-c++-opt.
32118         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32119         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32120         gl_MODULE_INDICATOR.
32121
32122         Tests of module 'sys_select' in C++ mode.
32123         * tests/test-sys_select-c++.cc: New file.
32124         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32125         (Depends-on): Add ansi-c++-opt.
32126         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32127         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32128         gl_MODULE_INDICATOR.
32129
32130         Tests of module 'sys_ioctl' in C++ mode.
32131         * tests/test-sys_ioctl-c++.cc: New file.
32132         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32133         (Depends-on): Add ansi-c++-opt.
32134         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32135         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32136         gl_MODULE_INDICATOR.
32137
32138         Tests of module 'string' in C++ mode.
32139         * tests/test-string-c++.cc: New file.
32140         * modules/string-tests (Files): Add it and tests/signature.h.
32141         (Depends-on): Add ansi-c++-opt.
32142         (Makefile.am): Arrange to compile and run test-string-c++.
32143         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32144         gl_MODULE_INDICATOR.
32145
32146         Tests of module 'stdlib' in C++ mode.
32147         * tests/test-stdlib-c++.cc: New file.
32148         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32149         (Depends-on): Add ansi-c++-opt.
32150         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32151         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32152         gl_MODULE_INDICATOR.
32153
32154         Tests of module 'stdio' in C++ mode.
32155         * tests/test-stdio-c++.cc: New file.
32156         * modules/stdio-tests (Files): Add it and tests/signature.h.
32157         (Depends-on): Add ansi-c++-opt.
32158         (Makefile.am): Arrange to compile and run test-stdio-c++.
32159         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32160         gl_MODULE_INDICATOR.
32161
32162         Tests of module 'spawn' in C++ mode.
32163         * tests/test-spawn-c++.cc: New file.
32164         * modules/spawn-tests (Files): Add it and tests/signature.h.
32165         (Depends-on): Add ansi-c++-opt.
32166         (Makefile.am): Arrange to compile and run test-spawn-c++.
32167         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32168         gl_MODULE_INDICATOR.
32169
32170         Tests of module 'signal' in C++ mode.
32171         * tests/test-signal-c++.cc: New file.
32172         * modules/signal-tests (Files): Add it and tests/signature.h.
32173         (Depends-on): Add ansi-c++-opt.
32174         (Makefile.am): Arrange to compile and run test-signal-c++.
32175         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32176         gl_MODULE_INDICATOR.
32177
32178         Tests of module 'search' in C++ mode.
32179         * tests/test-search-c++.cc: New file.
32180         * modules/search-tests (Files): Add it and tests/signature.h.
32181         (Depends-on): Add ansi-c++-opt.
32182         (Makefile.am): Arrange to compile and run test-search-c++.
32183         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32184         gl_MODULE_INDICATOR.
32185
32186         Tests of module 'math' in C++ mode.
32187         * tests/test-math-c++.cc: New file.
32188         * modules/math-tests (Files): Add it and tests/signature.h.
32189         (Depends-on): Add ansi-c++-opt.
32190         (Makefile.am): Arrange to compile and run test-math-c++.
32191         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32192
32193         Tests of module 'locale' in C++ mode.
32194         * tests/test-locale-c++.cc: New file.
32195         * modules/locale-tests (Files): Add it and tests/signature.h.
32196         (Depends-on): Add ansi-c++-opt.
32197         (Makefile.am): Arrange to compile and run test-locale-c++.
32198         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32199         gl_MODULE_INDICATOR.
32200
32201         Tests of module 'langinfo' in C++ mode.
32202         * tests/test-langinfo-c++.cc: New file.
32203         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32204         (Depends-on): Add ansi-c++-opt.
32205         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32206         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32207         gl_MODULE_INDICATOR.
32208
32209         Tests of module 'iconv-h' in C++ mode.
32210         * tests/test-iconv-h-c++.cc: New file.
32211         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32212         (Depends-on): Add ansi-c++-opt.
32213         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32214
32215         Tests of module 'glob' in C++ mode.
32216         * tests/test-glob-c++.cc: New file.
32217         * modules/glob-tests (Files): Add it.
32218         (Depends-on): Add ansi-c++-opt.
32219         (Makefile.am): Arrange to compile and run test-glob-c++.
32220
32221         Tests of module 'fcntl-h' in C++ mode.
32222         * tests/test-fcntl-h-c++.cc: New file.
32223         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32224         (Depends-on): Add ansi-c++-opt.
32225         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32226         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32227         gl_MODULE_INDICATOR.
32228
32229         Tests of module 'dirent' in C++ mode.
32230         * tests/test-dirent-c++.cc: New file.
32231         * modules/dirent-tests (Files): Add it and tests/signature.h.
32232         (Depends-on): Add ansi-c++-opt.
32233         (Makefile.am): Arrange to compile and run test-dirent-c++.
32234         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32235         gl_MODULE_INDICATOR.
32236
32237         New module 'ansi-c++-opt'.
32238         * modules/ansi-c++-opt: New file.
32239         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32240
32241         Document C++ namespace mode.
32242         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32243
32244         wctype: Avoid #define replacements in C++ mode.
32245         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32246         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32247         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32248         In C++, define a namespaced alias symbol.
32249         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32250         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32251         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32252         rule.
32253
32254         wchar: Avoid #define replacements in C++ mode.
32255         * lib/wchar.in.h: Include c++defs.h.
32256         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32257         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32258         symbol.
32259         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32260         * modules/wchar (Depends-on): Add c++defs.
32261         (Makefile.am): Update wchar.h rule.
32262
32263         unistd: Avoid #define replacements in C++ mode.
32264         * lib/unistd.in.h: Include c++defs.h.
32265         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32266         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32267         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32268         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32269         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32270         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32271         symbol.
32272         (environ): Update.
32273         * modules/unistd (Depends-on): Add c++defs.
32274         (Makefile.am): Update unistd.h rule.
32275
32276         time: Avoid #define replacements in C++ mode.
32277         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32278         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32279         define a namespaced alias symbol.
32280         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32281         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32282         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32283         * modules/time (Depends-on): Add c++defs, warn-on-use.
32284         (Makefile.am): Update time.h rule.
32285         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32286         * modules/nanosleep (configure.ac): Likewise.
32287         * modules/strptime (configure.ac): Likewise.
32288         * modules/timegm (configure.ac): Likewise.
32289
32290         sys_time: Avoid #define replacements in C++ mode.
32291         * lib/sys_time.in.h: Include c++defs.h.
32292         (gettimeofday): In C++, define a namespaced alias symbol.
32293         * modules/sys_time (Depends-on): Add c++defs.
32294         (Makefile.am): Update sys/time.h rule.
32295
32296         sys_stat: Avoid #define replacements in C++ mode.
32297         * lib/sys_stat.in.h: Include c++defs.h.
32298         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32299         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32300         namespaced alias symbol.
32301         In C++, define a namespaced alias symbol.
32302         * modules/sys_stat (Depends-on): Add c++defs.
32303         (Makefile.am): Update sys/stat.h rule.
32304
32305         sys_socket: Avoid #define replacements in C++ mode.
32306         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32307         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32308         definitions also when the system has a <sys/socket.h>.
32309         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32310         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32311         In C++, define a namespaced alias symbol.
32312         * modules/sys_socket (Depends-on): Add c++defs.
32313         (Makefile.am): Update sys/socket.h rule.
32314
32315         sys_select: Avoid #define replacements in C++ mode.
32316         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32317         definitions also when the system has a <sys/select.h>.
32318         (select): In C++, define a namespaced alias symbol.
32319         * modules/sys_select (Depends-on): Add c++defs.
32320         (Makefile.am): Update sys/select.h rule.
32321
32322         sys_ioctl: Avoid #define replacements in C++ mode.
32323         * lib/sys_ioctl.in.h: Include c++defs.h.
32324         (ioctl): In C++, define a namespaced alias symbol.
32325         * modules/sys_ioctl (Depends-on): Add c++defs.
32326         (Makefile.am): Update sys/ioctl.h rule.
32327
32328         string: Avoid #define replacements in C++ mode.
32329         * lib/string.in.h: Include c++defs.h.
32330         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32331         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32332         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32333         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32334         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32335         * modules/string (Depends-on): Add c++defs.
32336         (Makefile.am): Update string.h rule.
32337
32338         stdlib: Avoid #define replacements in C++ mode.
32339         * lib/stdlib.in.h: Include c++defs.h.
32340         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32341         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32342         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32343         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32344         symbol.
32345         * modules/stdlib (Depends-on): Add c++defs.
32346         (Makefile.am): Update stdlib.h rule.
32347
32348         stdio: Avoid #define replacements in C++ mode.
32349         * lib/stdio.in.h: Include c++defs.h.
32350         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32351         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32352         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32353         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32354         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32355         namespaced alias symbol.
32356         * modules/stdio (Depends-on): Add c++defs.
32357         (Makefile.am): Update stdio.h rule.
32358
32359         spawn: Avoid #define replacements in C++ mode.
32360         * lib/spawn.in.h: Include c++defs.h.
32361         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32362         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32363         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32364         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32365         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32366         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32367         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32368         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32369         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32370         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32371         In C++, define a namespaced alias symbol.
32372         * modules/spawn (Depends-on): Add c++defs.
32373         (Makefile.am): Update spawn.h rule.
32374
32375         signal: Avoid #define replacements in C++ mode.
32376         * lib/signal.in.h: Include c++defs.h.
32377         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32378         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32379         namespaced alias symbol.
32380         * modules/signal (Depends-on): Add c++defs.
32381         (Makefile.am): Update signal.h rule.
32382
32383         search: Avoid #define replacements in C++ mode.
32384         * lib/search.in.h: Include c++defs.h.
32385         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32386         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32387         symbol.
32388         * modules/search (Depends-on): Add c++defs.
32389         (Makefile.am): Update search.h rule.
32390
32391         math: Avoid #define replacements in C++ mode.
32392         * lib/math.in.h: Include c++defs.h.
32393         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32394         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32395         trunc, truncl): In C++, define a namespaced alias symbol.
32396         * modules/math (Depends-on): Add c++defs.
32397         (Makefile.am): Update math.h rule.
32398
32399         locale: Avoid #define replacements in C++ mode.
32400         * lib/locale.in.h: Include c++defs.h.
32401         (duplocale): In C++, define a namespaced alias symbol.
32402         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32403         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32404         * modules/locale (Depends-on): Add c++defs.
32405         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32406
32407         langinfo: Avoid #define replacements in C++ mode.
32408         * lib/langinfo.in.h: Include c++defs.h.
32409         (nl_langinfo): In C++, define a namespaced alias symbol.
32410         * modules/langinfo (Depends-on): Add c++defs.
32411         (Makefile.am): Update langinfo.h rule.
32412
32413         iconv-h: Avoid #define replacements in C++ mode.
32414         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32415         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32416         symbol.
32417         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32418         whenever iconv is present.
32419         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32420         (Makefile.am): Update iconv.h rule.
32421
32422         glob: Avoid #define replacements in C++ mode.
32423         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32424         (_gl_glob_errfunc_fn): New type.
32425         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32426         symbol.
32427         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32428         (Makefile.am): Update glob.h rule.
32429
32430         fcntl-h: Avoid #define replacements in C++ mode.
32431         * lib/fcntl.in.h: Include c++defs.h.
32432         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32433         * modules/fcntl-h (Depends-on): Add c++defs.
32434         (Makefile.am): Update fcntl.h rule.
32435
32436         dirent: Avoid #define replacements in C++ mode.
32437         * lib/dirent.in.h: Include c++defs.h.
32438         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32439         namespaced alias symbol.
32440         (dirfd): Update declaration.
32441         * modules/dirent (Depends-on): Add c++defs.
32442         (Makefile.am): Update dirent.h rule.
32443
32444         ctype: Make it usable in C++ code.
32445         * lib/ctype.in.h: Include c++defs.h.
32446         (isblank): Declare as extern "C".
32447         * modules/ctype (Depends-on): Add c++defs.
32448         (Makefile.am): Update ctype.h rule.
32449
32450         New module 'c++defs'.
32451         * modules/c++defs: New file.
32452         * build-aux/c++defs.h: New file.
32453         Reported by John W. Eaton <jwe@gnu.org>.
32454
32455 2010-03-07  Bruno Haible  <bruno@clisp.org>
32456
32457         logb: Provide missing declaration for Cygwin.
32458         * lib/math.in.h (logb): New declaration.
32459         * m4/logb.m4: New file.
32460         * modules/logb (Files): Add m4/logb.m4.
32461         (Depends-on): Add math.
32462         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32463         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32465         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32466         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32467
32468 2010-03-07  Bruno Haible  <bruno@clisp.org>
32469
32470         Fix test-cond link error.
32471         * tests/test-cond.c: Include <stdio.h>.
32472
32473 2010-03-07  Bruno Haible  <bruno@clisp.org>
32474
32475         Fix test-dirent-safer link error.
32476         * modules/dirent-safer-tests (Makefile.am): Define
32477         test_dirent_safer_LDADD.
32478
32479 2010-03-07  Bruno Haible  <bruno@clisp.org>
32480
32481         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32482         among default module list.
32483
32484 2010-03-07  Bruno Haible  <bruno@clisp.org>
32485
32486         Fix link error on platforms with GNU libiconv.
32487         * modules/unistr/u8-strcoll-tests (Makefile): Define
32488         test_u8_strcoll_LDADD.
32489         * modules/unistr/u16-strcoll-tests (Makefile): Define
32490         test_u16_strcoll_LDADD.
32491         * modules/unistr/u32-strcoll-tests (Makefile): Define
32492         test_u32_strcoll_LDADD.
32493
32494 2010-03-07  Bruno Haible  <bruno@clisp.org>
32495
32496         Use POSIX declarations for socket functions.
32497         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32498         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32499         rpl_sendto): Change declaration to match POSIX.
32500         * lib/connect.c (rpl_connect): Likewise.
32501         * lib/accept.c (rpl_accept): Likewise.
32502         * lib/bind.c (rpl_bind): Likewise.
32503         * lib/getpeername.c (rpl_getpeername): Likewise.
32504         * lib/getsockname.c (rpl_getsockname): Likewise.
32505         * lib/recv.c (rpl_recv): Likewise.
32506         * lib/send.c (rpl_send): Likewise.
32507         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32508         * lib/sendto.c (rpl_sendto): Likewise.
32509
32510 2010-03-06  Bruno Haible  <bruno@clisp.org>
32511
32512         Clarify access, euidaccess, faccessat.
32513         * doc/posix-functions/faccessat.texi: Mention security problem under
32514         "Other problems", not "Portability problems".
32515         * doc/posix-functions/access.texi: Likewise. Mention a related security
32516         problem.
32517         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32518         * lib/euidaccess.c: Add comments about platforms.
32519         * lib/unistd.in.h (access, euidaccess): Add warnings.
32520
32521 2010-03-07  Bruno Haible  <bruno@clisp.org>
32522
32523         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32524         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32525         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32526         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32527         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32528         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32529         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32530         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32531         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32533         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32534         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32535         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32536         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32537         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32538         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32539         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32540         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32541         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32542         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32543         Likewise.
32544         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32545         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32546         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32547         Likewise.
32548         * tests/test-spawn.c (main): Make it work when
32549         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32550
32551 2010-03-07  Bruno Haible  <bruno@clisp.org>
32552
32553         Fix incorrect Makefile.am generation in German locale.
32554         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32555         Execute sed command with character range in C locale.
32556
32557 2010-03-06  Bruno Haible  <bruno@clisp.org>
32558
32559         Tests for module 'iconv-h'.
32560         * modules/iconv-h-tests: New file.
32561         * tests/test-iconv-h.c: New file.
32562
32563         New module 'iconv-h'.
32564         * modules/iconv-h: New file.
32565         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32566         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32567         (configure.ac): Remove gl_ICONV_H.
32568         (Makefile.am): Remove rule for iconv.h.
32569
32570 2010-03-06  Bruno Haible  <bruno@clisp.org>
32571
32572         More consistent naming of *.m4 files.
32573         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32574         * modules/wctype (Files): Update.
32575
32576         More consistent naming of *.m4 files.
32577         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32578         * modules/wchar (Files): Update.
32579
32580 2010-03-06  Jim Meyering  <meyering@redhat.com>
32581
32582         euidaccess: relax license to LGPLv2+
32583         * modules/euidaccess (License): Relax to LGPLv2+.
32584
32585 2010-03-06  Bruno Haible  <bruno@clisp.org>
32586
32587         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32588         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32589         (Makefile.am): Augment lib_SOURCES instead.
32590
32591 2010-03-04  Jim Meyering  <meyering@redhat.com>
32592
32593         utime: remove obsolete module
32594         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32595         unnecessary for years, and has been marked as obsolete for 10 months.
32596         * modules/utime: Remove file.
32597         * lib/utime.c: Remove file.
32598         * m4/utime.m4: Remove file.
32599         * m4/utimes-null.m4: Remove file.
32600         * doc/posix-functions/utime.texi (utime): Remove reference to
32601         the module.  Move the sole "fixed by gnulib" item into the
32602         "problems not fixed by Gnulib" list.
32603         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32604
32605 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32606
32607         * modules/exit (License): Relax license to LGPLv2+.
32608         (Status): Mark as obsolete.
32609         * NEWS: Mention deprecated 'exit' module.
32610         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32611         of now obsolete 'exit'.
32612
32613 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32614
32615         fts-lgpl: remove unused module
32616         * modules/fts-lgpl: Remove.
32617         * MODULES.html.sh (func_all_modules): Adjust.
32618         * check-module (find_included_lib_files): Adjust.
32619         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32620
32621 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32622
32623         copy-acl: enhance Solaris ACL error handling
32624         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32625         * lib/set-mode-acl.c (qset_acl): Likewise.
32626
32627 2010-03-02  Bruno Haible  <bruno@clisp.org>
32628
32629         spawn: Don't override the system defined values on FreeBSD 8.
32630         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32631         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32632         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32633         if HAVE_POSIX_SPAWN is 1.
32634         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32635
32636 2010-03-01  Bruno Haible  <bruno@clisp.org>
32637
32638         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32639         regarding Automake.
32640
32641 2010-02-25  Bruno Haible  <bruno@clisp.org>
32642
32643         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32644         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32645         setting, not afterwards.
32646         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32647
32648 2010-02-24  Eric Blake  <eblake@redhat.com>
32649
32650         bootstrap, git-version-gen: use timestamp
32651         * build-aux/git-version-gen (scriptversion): Force UTC.
32652         * build-aux/bootstrap (scriptversion): New variable.
32653
32654         bootstrap: allow older git
32655         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32656         older than 1.6.4.  Requested by the libvirt project.
32657
32658 2010-02-23  Eric Blake  <eblake@redhat.com>
32659
32660         warn-on-use: work with old autoconf
32661         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32662         AS_VAR semantics of autoconf 2.60.
32663         Reported by Bruno Haible.
32664
32665         bootstrap: improve some comments
32666         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32667         clarification comments.
32668
32669         gettimeofday: provide correct function
32670         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32671         when replacement is declared, otherwise provide gettimeofday.
32672         Reported by Michael Goffioul.
32673
32674 2010-02-23  Jim Meyering  <meyering@redhat.com>
32675
32676         lib-ignore: relax license to "unlimited", not LGPLv2+
32677         * modules/lib-ignore (License): Relax to "unlimited".
32678
32679 2010-02-23  Jim Meyering  <meyering@redhat.com>
32680
32681         lib-ignore: relax license to LGPLv2+
32682         * modules/lib-ignore (License): Relax to LGPLv2+.
32683
32684 2010-02-22  Eric Blake  <eblake@redhat.com>
32685
32686         lseek: avoid bash 3.2 broken pipe bug
32687         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32688         warning from bash 3.2.
32689         Reported by Ben Pfaff, with analysis from Bruno Haible.
32690
32691         bootstrap: support non-FSF copyright holder
32692         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32693         bootstrap.conf override of COPYRIGHT_HOLDER.
32694         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32695
32696         bootstrap: interoperate with gettext 0.14.1
32697         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32698
32699         bootstrap: allow for alternate submodule location
32700         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32701         hardcoding submodule location.
32702         (gnulib_mk): Allow direct use of Makefile.am.
32703
32704         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32705         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32706         rather than reconfiguring where the submodule points.
32707
32708         gettimeofday: restore support for platforms that lack function
32709         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32710         replacement if function is missing.
32711         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32712         * modules/sys_time (Makefile.am): Substitute it.
32713         * lib/sys_time.in.h (gettimeofday): Check it.
32714         Reported by Michael Goffioul.
32715
32716 2010-02-21  Bruno Haible  <bruno@clisp.org>
32717
32718         * lib/stdio.in.h (obstack_printf): Fix typo.
32719
32720 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32721
32722         vc-list-files: use bzr ls's -R option
32723         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32724         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32725
32726 2010-02-21  Jim Meyering  <meyering@redhat.com>
32727
32728         init.sh: fix EXEEXT shims to work also for names like test-prog
32729         * tests/init.sh: Re-exec a better shell, when needed.
32730         If the current shell lacks support for posix $(...), an init.sh-using
32731         test will now try to find a shell that supports that.  If EXEEXT is
32732         nonempty, we also require support for hyphen-in-alias-name and shell
32733         substitutions like ${var#glob}.  Failure to find such a shell results
32734         in a skipped test.
32735
32736 2010-02-21  Bruno Haible  <bruno@clisp.org>
32737
32738         Really work around around "broken pipe" error message from bash 3.2.
32739         * gnulib-tool (func_reset_sigpipe): Remove function.
32740         (echo): In bash 3.2, define to a function that uses printf.
32741         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32742
32743 2010-02-20  Bruno Haible  <bruno@clisp.org>
32744
32745         Restore support for automake 1.9.6 with autoconf 2.61.
32746         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32747         Reported by James Youngman <jay@gnu.org>.
32748
32749 2010-02-20  Bruno Haible  <bruno@clisp.org>
32750
32751         Improve *printf warning condition.
32752         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32753         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32754         and the function is overridden due to SIGPIPE emulation.
32755
32756 2010-02-20  Bruno Haible  <bruno@clisp.org>
32757
32758         * lib/stdio.in.h: Tweak comments.
32759
32760 2010-02-19  Bruno Haible  <bruno@clisp.org>
32761
32762         Make it easier to find modules. New gnulib-tool option '--find'.
32763         * gnulib-tool: New option --find.
32764         (func_usage): Document it.
32765         (func_sanitize_modulelist): New function, extracted from
32766         func_all_modules.
32767         (func_all_modules): Invoke it.
32768         * doc/gnulib-tool.texi (Which modules?): New node.
32769
32770 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32771
32772         * lib/sys_select.in.h: Provide select replacement even if
32773         sys/select.h exists on a system, for Interix.
32774
32775 2010-02-18  Jim Meyering  <meyering@redhat.com>
32776
32777         init.sh: don't use $(...) just yet
32778         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32779         to accommodate e.g., Solaris' /bin/sh.
32780
32781 2010-02-17  Bruno Haible  <bruno@clisp.org>
32782
32783         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32784         Reported by Ludovic Courtès <ludo@gnu.org>.
32785
32786 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32787
32788         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32789         linking with -lintl.
32790
32791 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32792
32793         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32794         if not provided by the system's netdb.h.  Reported by
32795         ludo@gnu.org (Ludovic Courtès).
32796
32797 2010-02-15  Jim Meyering  <meyering@redhat.com>
32798
32799         init.sh: improve portability and efficiency
32800         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32801         "dummy" in a for loop.
32802         Use '!', not '^' to select the complement of a character set used
32803         in a "case" statement.
32804         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32805         Suggestions from Eric Blake.
32806
32807         init.sh: automatically accommodate programs with the .exe suffix
32808         Automatically arrange for an invocation of "prog" to execute the
32809         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32810         may use the simpler "prog", yet still work when built on a system
32811         that requires specifying the added suffix.
32812         Do this by constructing a function named "prog" that invokes
32813         "prog.exe" for each .exe file in selected directories.
32814         * tests/init.sh (find_exe_basenames_): New function.
32815         (create_exe_shim_functions_): New function.
32816         (path_prepend_): Use it.
32817
32818         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32819         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32820         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32821
32822 2010-02-14  Jim Meyering  <meyering@redhat.com>
32823
32824         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32825         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32826         (sc_prohibit_hash_pjw_without_use): New rule.
32827
32828         maint.mk: allow the default upload destination dir to be overridden
32829         * top/maint.mk (upload_dest_dir_): Define with a default that
32830         preserves the status quo.
32831         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32832         Reported by Peter Simons.
32833
32834         maint.mk: prohibit inclusion of "hash.h" without_use
32835         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32836
32837 2010-02-10  Jim Meyering  <meyering@redhat.com>
32838
32839         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32840         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32841
32842 2010-02-09  Eric Blake  <ebb9@byu.net>
32843         and Bruno Haible  <bruno@clisp.org>
32844
32845         obstack-printf-posix: ensure declaration
32846         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32847         extracted from gl_FUNC_OBSTACK_PRINTF.
32848         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32849         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32850         Likewise.
32851         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32852         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32853         0.
32854
32855 2010-02-08  Bruno Haible  <bruno@clisp.org>
32856
32857         gnulib-tool: Fix typo in 2010-02-07 commit.
32858         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32859         Reported by Eric Blake.
32860
32861 2010-02-07  Bruno Haible  <bruno@clisp.org>
32862
32863         gnulib-tool: Fix up caching patches.
32864         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32865         option --no-cache. Use associative arrays when supported by the shell.
32866         (sed_comments): New variable.
32867         (modcache): Renamed from do_cache.
32868         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32869         abbreviate unnecessarily.
32870         (have_associative): New variable.
32871         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32872         way also for ksh and zsh.
32873         (func_init_sed_convert_to_cache_statements): New function, extracted
32874         from func_cache_lookup_module. Add support for associative arrays.
32875         Don't set the c_MODULE_cached variable here. Ignore all lines before
32876         the first field header. Remove only the final newline, not all trailing
32877         newlines. Support empty fields correctly. Limit the use of 'eval' to
32878         assignments.
32879         (func_get_description, func_get_status, func_get_notice,
32880         func_get_applicability, func_get_filelist, func_get_dependencies,
32881         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32882         func_get_automake_snippet, func_get_include_directive,
32883         func_get_link_directive, func_get_license, func_get_maintainer):
32884         Update documentation. List the unoptimized code first. Add support for
32885         associative arrays. Limit the use of 'eval' to assignments.
32886         (func_get_applicability): Undo stylistic pessimisations.
32887         (func_get_automake_snippet, func_get_include_directive): Reduce code
32888         duplication.
32889         (func_modules_transitive_closure, func_modules_add_dummy,
32890         func_modules_notice, func_modules_to_filelist, func_add_file,
32891         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32892         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32893         func_create_testdir, func_create_megatestdir): Update documentation.
32894
32895 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32896
32897         * gnulib-tool (func_cache_lookup_module): Store the module name
32898         belonging to the cache variable; error out if two different
32899         module names map to the same cache variable name.
32900
32901 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32902
32903         gnulib-tool: Make caching optional.
32904         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32905         Update matching short versions of --no-changelog.
32906         (func_usage): Update.
32907         (sed_extract_cache_prog): Renamed from ...
32908         (sed_extract_prog): ... this; revert to old extraction script.
32909         (func_get_description, func_get_status)
32910         (func_get_notice, func_get_applicability, func_get_filelist)
32911         (func_get_dependencies, func_get_autoconf_early_snippet)
32912         (func_get_autoconf_snippet, func_get_automake_snippet)
32913         (func_get_include_directive, func_get_link_directive)
32914         (func_get_license, func_get_maintainer): If $do_cache is false,
32915         use old, non-caching extraction scripts.
32916         Suggestion by Bruno Haible.
32917
32918 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32919
32920         gnulib-tool: cache module metainformation.
32921         * gnulib-tool (sed_extract_prog): Match newline before each
32922         header, and rewrite header to a shell variable suffix.
32923         (func_cache_var, func_cache_lookup_module): New functions,
32924         to turn a module name into a cache variable prefix, and to
32925         look up and cache module metainformation.
32926         (func_get_description, func_get_status)
32927         (func_get_notice, func_get_applicability, func_get_filelist)
32928         (func_get_dependencies, func_get_autoconf_early_snippet)
32929         (func_get_autoconf_snippet, func_get_automake_snippet)
32930         (func_get_include_directive, func_get_link_directive)
32931         (func_get_license, func_get_maintainer): Use
32932         func_cache_lookup_module.
32933
32934 2010-02-07  Bruno Haible  <bruno@clisp.org>
32935
32936         fnctl: Fix missing dependency.
32937         * modules/fcntl (Depends-on): Add getdtablesize.
32938         Reported by John W. Eaton <jwe@gnu.org>.
32939
32940 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32941
32942         Argp: fix recognition of short alias options.
32943
32944         * lib/argp-parse.c (convert_options): Fix improper use of
32945         `|' between character values.
32946         * tests/test-argp.c (group1_option): New alias option
32947         --read (-r).
32948         (group1_parser): Special handling for 'r'.
32949         (test15): New test case.
32950         (test_fun): Add test15.
32951         * tests/test-argp-2.sh: Update expected --help and --usage
32952         outputs.
32953
32954 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32955
32956         * tests/test-argp.c: Fix indentation.
32957
32958 2010-02-04  Eric Blake  <ebb9@byu.net>
32959
32960         gettimeofday: expose type of second argument
32961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32962         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32963         * tests/test-gettimeofday.c: Use it to silence warning.
32964         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32965         the issue.
32966
32967 2010-02-03  Jim Meyering  <meyering@redhat.com>
32968
32969         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32970         * lib/regcomp.c (TYPE_SIGNED): Define.
32971         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32972
32973         regcomp.c: avoid a new -Wshadow warning
32974         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32975
32976 2010-02-01  Jim Meyering  <meyering@redhat.com>
32977
32978         removing useless parentheses in cpp #define directives
32979         For motivation, see commit c0221df4, "define STREQ(a,b)
32980         consistently, removing useless parentheses"
32981         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32982         * lib/mountlist.c (MNT_IGNORE): Likewise.
32983         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32984
32985 2010-02-01  Eric Blake  <ebb9@byu.net>
32986
32987         sys_time: use link-warning
32988         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32989         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32990         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32991         * modules/sys_time (Depends-on): Add warn-on-use.
32992         (Makefile.am): Always build replacement.
32993         (configure.ac): Update substitutions.
32994         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32995         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32996         bother with SYS_TIME_H.
32997         * modules/gettimeofday (configure.ac): Declare indicator.
32998         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32999         in use.
33000
33001         closein-tests: silence compiler warning
33002         * tests/test-closein.c (main): Ignore fread result.
33003         * modules/closein-tests (Depends-on): Add ignore-value.
33004
33005         tests: silence warning about system return
33006         * tests/test-areadlink-with-size.c (main): Ignore system result.
33007         * tests/test-areadlink.c (main): Likewise.
33008         * tests/test-areadlinkat-with-size.c (main): Likewise.
33009         * tests/test-areadlinkat.c (main): Likewise.
33010         * tests/test-canonicalize-lgpl.c (main): Likewise.
33011         * tests/test-canonicalize.c (main): Likewise.
33012         * tests/test-chown.c (main): Likewise.
33013         * tests/test-fchownat.c (main): Likewise.
33014         * tests/test-fdutimensat.c (main): Likewise.
33015         * tests/test-fstatat.c (main): Likewise.
33016         * tests/test-futimens.c (main): Likewise.
33017         * tests/test-lchown.c (main): Likewise.
33018         * tests/test-link.c (main): Likewise.
33019         * tests/test-linkat.c (main): Likewise.
33020         * tests/test-lstat.c (main): Likewise.
33021         * tests/test-mkdir.c (main): Likewise.
33022         * tests/test-mkdirat.c (main): Likewise.
33023         * tests/test-mkfifo.c (main): Likewise.
33024         * tests/test-mkfifoat.c (main): Likewise.
33025         * tests/test-mknod.c (main): Likewise.
33026         * tests/test-readlink.c (main): Likewise.
33027         * tests/test-remove.c (main): Likewise.
33028         * tests/test-rename.c (main): Likewise.
33029         * tests/test-renameat.c (main): Likewise.
33030         * tests/test-rmdir.c (main): Likewise.
33031         * tests/test-symlink.c (main): Likewise.
33032         * tests/test-symlinkat.c (main): Likewise.
33033         * tests/test-unlink.c (main): Likewise.
33034         * tests/test-unlinkat.c (main): Likewise.
33035         * tests/test-utimens.c (main): Likewise.
33036         * tests/test-utimensat.c (main): Likewise.
33037         * modules/areadlink-tests (Depends-on): Add ignore-value.
33038         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33039         * modules/areadlinkat-tests (Depends-on): Likewise.
33040         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33041         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33042         * modules/canonicalize-tests (Depends-on): Likewise.
33043         * modules/chown-tests (Depends-on): Likewise.
33044         * modules/fdutimensat-tests (Depends-on): Likewise.
33045         * modules/futimens-tests (Depends-on): Likewise.
33046         * modules/lchown-tests (Depends-on): Likewise.
33047         * modules/link-tests (Depends-on): Likewise.
33048         * modules/linkat-tests (Depends-on): Likewise.
33049         * modules/lstat-tests (Depends-on): Likewise.
33050         * modules/mkdir-tests (Depends-on): Likewise.
33051         * modules/mkfifo-tests (Depends-on): Likewise.
33052         * modules/mkfifoat-tests (Depends-on): Likewise.
33053         * modules/mknod-tests (Depends-on): Likewise.
33054         * modules/openat-tests (Depends-on): Likewise.
33055         * modules/readlink-tests (Depends-on): Likewise.
33056         * modules/remove-tests (Depends-on): Likewise.
33057         * modules/rename-tests (Depends-on): Likewise.
33058         * modules/renameat-tests (Depends-on): Likewise.
33059         * modules/rmdir-tests (Depends-on): Likewise.
33060         * modules/symlink-tests (Depends-on): Likewise.
33061         * modules/symlinkat-tests (Depends-on): Likewise.
33062         * modules/unlink-tests (Depends-on): Likewise.
33063         * modules/utimens-tests (Depends-on): Likewise.
33064         * modules/utimensat-tests (Depends-on): Likewise.
33065
33066 2010-01-31  Bruno Haible  <bruno@clisp.org>
33067
33068         Perform the same test for many <math.h> functions.
33069         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33070         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33071         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33072         of gl_MATHFUNC.
33073         * modules/acos (configure.ac): Likewise.
33074         * modules/asin (configure.ac): Likewise.
33075         * modules/atan (configure.ac): Likewise.
33076         * modules/atan2 (configure.ac): Likewise.
33077         * modules/cbrt (configure.ac): Likewise.
33078         * modules/copysign (configure.ac): Likewise.
33079         * modules/cos (configure.ac): Likewise.
33080         * modules/cosh (configure.ac): Likewise.
33081         * modules/erf (configure.ac): Likewise.
33082         * modules/erfc (configure.ac): Likewise.
33083         * modules/exp (configure.ac): Likewise.
33084         * modules/fmod (configure.ac): Likewise.
33085         * modules/hypot (configure.ac): Likewise.
33086         * modules/j0 (configure.ac): Likewise.
33087         * modules/j1 (configure.ac): Likewise.
33088         * modules/jn (configure.ac): Likewise.
33089         * modules/lgamma (configure.ac): Likewise.
33090         * modules/log (configure.ac): Likewise.
33091         * modules/log10 (configure.ac): Likewise.
33092         * modules/log1p (configure.ac): Likewise.
33093         * modules/pow (configure.ac): Likewise.
33094         * modules/remainder (configure.ac): Likewise.
33095         * modules/sin (configure.ac): Likewise.
33096         * modules/sinh (configure.ac): Likewise.
33097         * modules/tan (configure.ac): Likewise.
33098         * modules/tanh (configure.ac): Likewise.
33099         * modules/y0 (configure.ac): Likewise.
33100         * modules/y1 (configure.ac): Likewise.
33101         * modules/yn (configure.ac): Likewise.
33102         Suggested by Paolo Bonzini.
33103
33104 2010-01-31  Bruno Haible  <bruno@clisp.org>
33105
33106         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33107
33108 2010-01-31  Bruno Haible  <bruno@clisp.org>
33109
33110         Work around getdelim() bug on FreeBSD 8.0.
33111         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33112         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33113         not work.
33114         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33115         is 1.
33116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33117         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33118         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33119         a non-zero size.
33120         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33121
33122 2010-01-31  Bruno Haible  <bruno@clisp.org>
33123
33124         Work around getline() bug on FreeBSD 8.0.
33125         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33126         and a non-zero size.
33127         * tests/test-getline.c (main): Likewise.
33128         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33129         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33130
33131 2010-01-28  Eric Blake  <ebb9@byu.net>
33132
33133         regex: fix build failure
33134         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33135         platforms.
33136
33137 2010-01-28  Jim Meyering  <meyering@redhat.com>
33138
33139         regex: do not ignore memory allocation failure
33140         * lib/regex_internal.c (create_cd_newstate): Detect
33141         re_node_set_init_copy failure.   Extracted from glibc commit
33142         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33143
33144         regex: sync more white-space changes from libc
33145         * lib/regex_internal.c: White-space only changes.
33146         * lib/regexec.c: Likewise.
33147
33148         regex: add many uses of __attribute_warn_unused_result__
33149         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33150         * lib/regexec.c: Likewise.
33151         Extracted from a messy glibc commit.
33152
33153         regcomp.c: spelling and merge-artifact from glibc
33154         * lib/regcomp.c: Merge remainder of glibc's
33155         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33156
33157         regcomp.c: sync white-space changes from glibc
33158         * lib/regcomp.c: Merge to accommodate white space
33159         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33160
33161         regcomp.c: do not ignore internal return values
33162         * lib/regcomp.c: Do not ignore internal return values.
33163         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33164         but without its white-space changes and spelling fixes.
33165
33166         regex_internal.h: define __attribute_warn_unused_result__
33167         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33168
33169         maint: add a syntax-check rule to check for vulnerable Makefile.in
33170         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33171
33172 2010-01-27  Jim Meyering  <meyering@redhat.com>
33173
33174         ncftpput-ftp: clean up spaces
33175         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33176         Remove trailing blanks.
33177
33178 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33179
33180         * build-aux/git-version-gen: Fix copyright statement.
33181         * build-aux/gnupload: Likewise.
33182         * tests/test-arcfour.c: Likewise.
33183         * tests/test-arctwo.c: Likewise.
33184         * tests/test-count-one-bits.c: Likewise.
33185         * tests/test-crc.c: Likewise.
33186         * tests/test-des.c: Likewise.
33187         * tests/test-gc-arcfour.c: Likewise.
33188         * tests/test-gc-arctwo.c: Likewise.
33189         * tests/test-gc-des.c: Likewise.
33190         * tests/test-gc-hmac-md5.c: Likewise.
33191         * tests/test-gc-hmac-sha1.c: Likewise.
33192         * tests/test-gc-md2.c: Likewise.
33193         * tests/test-gc-md4.c: Likewise.
33194         * tests/test-gc-md5.c: Likewise.
33195         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33196         * tests/test-gc-rijndael.c: Likewise.
33197         * tests/test-gc-sha1.c: Likewise.
33198         * tests/test-gc.c: Likewise.
33199         * tests/test-gethostname.c: Likewise.
33200         * tests/test-gettimeofday.c: Likewise.
33201         * tests/test-hash.c: Likewise.
33202         * tests/test-hmac-md5.c: Likewise.
33203         * tests/test-hmac-sha1.c: Likewise.
33204         * tests/test-md2.c: Likewise.
33205         * tests/test-md4.c: Likewise.
33206         * tests/test-md5.c: Likewise.
33207         * tests/test-memchr.c: Likewise.
33208         * tests/test-memchr2.c: Likewise.
33209         * tests/test-memcmp.c: Likewise.
33210         * tests/test-memmem.c: Likewise.
33211         * tests/test-memrchr.c: Likewise.
33212         * tests/test-rawmemchr.c: Likewise.
33213         * tests/test-read-file.c: Likewise.
33214         * tests/test-rijndael.c: Likewise.
33215         * tests/test-sockets.c: Likewise.
33216         * tests/test-strchrnul.c: Likewise.
33217         * tests/test-strstr.c: Likewise.
33218         * tests/test-strtod.c: Likewise.
33219         * build-aux/ncftpput-ftp: Likewise.
33220
33221 2010-01-26  Eric Blake  <ebb9@byu.net>
33222
33223         ignore-value: update recommended header name
33224         * modules/ignore-value (Include): Only use <> for headers that
33225         exist in glibc.
33226
33227 2010-01-26  Jim Meyering  <meyering@redhat.com>
33228
33229         test-userspec.c: avoid compiler warnings
33230         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33231         and "initialization discards qualifiers..." warnings.
33232         Put the first "uid" in its own scope, and make char* members "const".
33233
33234 2010-01-25  Bruno Haible  <bruno@clisp.org>
33235
33236         gnulib-tool: Make warning diagnostics consistent.
33237         * gnulib-tool (func_warning): New function.
33238         Use it everywhere where gnulib-tool produces output to stderr and it is
33239         not a fatal error.
33240
33241 2010-01-25  Bruno Haible  <bruno@clisp.org>
33242
33243         Fix test dependencies.
33244         * modules/xstrtol-tests (Depends-on): Add inttypes.
33245         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33246
33247 2010-01-25 Pádraig Brady <P@draigBrady.com>
33248
33249         syntax-check: detect incorrect boolean macro values in config.h
33250         * modules/maintainer-makefile (configure.ac): Parameterize the location
33251         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33252         The logic is from Eric Blake and the location indicated by Jim Meyering.
33253         Note the more natural CONFIG_HEADER name is prohibited by automake
33254         for backwards compatibility reasons.
33255         * top/maint.mk (sc_Wundef_boolean): New rule.
33256
33257 2010-01-25  Jim Meyering  <meyering@redhat.com>
33258
33259         bootstrap: detect MacOS 10.6's shasum, too
33260         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33261         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33262
33263 2010-01-23  Jim Meyering  <meyering@redhat.com>
33264
33265         xstrtoll: new module
33266         * modules/xstrtoll: New file.
33267         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33268         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33269         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33270         ./configure fails if you use this module and lack "long long".
33271         * modules/xstrtoll-tests: New module.
33272         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33273         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33274         new init.sh-based test framework.
33275
33276 2010-01-24  Bruno Haible  <bruno@clisp.org>
33277
33278         Tests for module 'yn'.
33279         * modules/yn-tests: New file.
33280         * tests/test-yn.c: New file.
33281
33282         Tests for module 'y1'.
33283         * modules/y1-tests: New file.
33284         * tests/test-y1.c: New file.
33285
33286         Tests for module 'y0'.
33287         * modules/y0-tests: New file.
33288         * tests/test-y0.c: New file.
33289
33290         Tests for module 'tanh'.
33291         * modules/tanh-tests: New file.
33292         * tests/test-tanh.c: New file.
33293
33294         Tests for module 'tan'.
33295         * modules/tan-tests: New file.
33296         * tests/test-tan.c: New file.
33297
33298         Tests for module 'sqrt'.
33299         * modules/sqrt-tests: New file.
33300         * tests/test-sqrt.c: New file.
33301
33302         Tests for module 'sinh'.
33303         * modules/sinh-tests: New file.
33304         * tests/test-sinh.c: New file.
33305
33306         Tests for module 'sin'.
33307         * modules/sin-tests: New file.
33308         * tests/test-sin.c: New file.
33309
33310         Tests for module 'rint'.
33311         * modules/rint-tests: New file.
33312         * tests/test-rint.c: New file.
33313
33314         Tests for module 'remainder'.
33315         * modules/remainder-tests: New file.
33316         * tests/test-remainder.c: New file.
33317
33318         Tests for module 'pow'.
33319         * modules/pow-tests: New file.
33320         * tests/test-pow.c: New file.
33321
33322         Tests for module 'nextafter'.
33323         * modules/nextafter-tests: New file.
33324         * tests/test-nextafter.c: New file.
33325
33326         Tests for module 'modf'.
33327         * modules/modf-tests: New file.
33328         * tests/test-modf.c: New file.
33329
33330         Tests for module 'logb'.
33331         * modules/logb-tests: New file.
33332         * tests/test-logb.c: New file.
33333
33334         Tests for module 'log1p'.
33335         * modules/log1p-tests: New file.
33336         * tests/test-log1p.c: New file.
33337
33338         Tests for module 'log10'.
33339         * modules/log10-tests: New file.
33340         * tests/test-log10.c: New file.
33341
33342         Tests for module 'log'.
33343         * modules/log-tests: New file.
33344         * tests/test-log.c: New file.
33345
33346         Tests for module 'lgamma'.
33347         * modules/lgamma-tests: New file.
33348         * tests/test-lgamma.c: New file.
33349
33350         Tests for module 'ldexp'.
33351         * modules/ldexp-tests: New file.
33352         * tests/test-ldexp.c: New file.
33353
33354         Tests for module 'jn'.
33355         * modules/jn-tests: New file.
33356         * tests/test-jn.c: New file.
33357
33358         Tests for module 'j1'.
33359         * modules/j1-tests: New file.
33360         * tests/test-j1.c: New file.
33361
33362         Tests for module 'j0'.
33363         * modules/j0-tests: New file.
33364         * tests/test-j0.c: New file.
33365
33366         Tests for module 'hypot'.
33367         * modules/hypot-tests: New file.
33368         * tests/test-hypot.c: New file.
33369
33370         Tests for module 'fmod'.
33371         * modules/fmod-tests: New file.
33372         * tests/test-fmod.c: New file.
33373
33374         Tests for module 'fabs'.
33375         * modules/fabs-tests: New file.
33376         * tests/test-fabs.c: New file.
33377
33378         Tests for module 'exp'.
33379         * modules/exp-tests: New file.
33380         * tests/test-exp.c: New file.
33381
33382         Tests for module 'erfc'.
33383         * modules/erfc-tests: New file.
33384         * tests/test-erfc.c: New file.
33385
33386         Tests for module 'erf'.
33387         * modules/erf-tests: New file.
33388         * tests/test-erf.c: New file.
33389
33390         Tests for module 'cosh'.
33391         * modules/cosh-tests: New file.
33392         * tests/test-cosh.c: New file.
33393
33394         Tests for module 'cos'.
33395         * modules/cos-tests: New file.
33396         * tests/test-cos.c: New file.
33397
33398         Tests for module 'copysign'.
33399         * modules/copysign-tests: New file.
33400         * tests/test-copysign.c: New file.
33401
33402         Tests for module 'cbrt'.
33403         * modules/cbrt-tests: New file.
33404         * tests/test-cbrt.c: New file.
33405
33406         Tests for module 'atan2'.
33407         * modules/atan2-tests: New file.
33408         * tests/test-atan2.c: New file.
33409
33410         Tests for module 'atan'.
33411         * modules/atan-tests: New file.
33412         * tests/test-atan.c: New file.
33413
33414         Tests for module 'asin'.
33415         * modules/asin-tests: New file.
33416         * tests/test-asin.c: New file.
33417
33418         Tests for module 'acos'.
33419         * modules/acos-tests: New file.
33420         * tests/test-acos.c: New file.
33421
33422 2010-01-24  Bruno Haible  <bruno@clisp.org>
33423
33424         Fix tests for common <math.h> functions.
33425         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33426         code snippet that references the function pointer, rather than merely
33427         calling the function. Substitute the FUNC_LIBM variable.
33428         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33429         * modules/acos (configure.ac): Likewise.
33430         * modules/asin (configure.ac): Likewise.
33431         * modules/atan (configure.ac): Likewise.
33432         * modules/atan2 (configure.ac): Likewise.
33433         * modules/cbrt (configure.ac): Likewise.
33434         * modules/copysign (configure.ac): Likewise.
33435         * modules/cos (configure.ac): Likewise.
33436         * modules/cosh (configure.ac): Likewise.
33437         * modules/erf (configure.ac): Likewise.
33438         * modules/erfc (configure.ac): Likewise.
33439         * modules/exp (configure.ac): Likewise.
33440         * modules/fabs (configure.ac): Likewise.
33441         * modules/fmod (configure.ac): Likewise.
33442         * modules/hypot (configure.ac): Likewise.
33443         * modules/j0 (configure.ac): Likewise.
33444         * modules/j1 (configure.ac): Likewise.
33445         * modules/jn (configure.ac): Likewise.
33446         * modules/ldexp (configure.ac): Likewise.
33447         * modules/lgamma (configure.ac): Likewise.
33448         * modules/log (configure.ac): Likewise.
33449         * modules/log10 (configure.ac): Likewise.
33450         * modules/log1p (configure.ac): Likewise.
33451         * modules/logb (configure.ac): Likewise.
33452         * modules/modf (configure.ac): Likewise.
33453         * modules/nextafter (configure.ac): Likewise.
33454         * modules/pow (configure.ac): Likewise.
33455         * modules/remainder (configure.ac): Likewise.
33456         * modules/rint (configure.ac): Likewise.
33457         * modules/sin (configure.ac): Likewise.
33458         * modules/sinh (configure.ac): Likewise.
33459         * modules/tan (configure.ac): Likewise.
33460         * modules/tanh (configure.ac): Likewise.
33461         * modules/y0 (configure.ac): Likewise.
33462         * modules/y1 (configure.ac): Likewise.
33463         * modules/yn (configure.ac): Likewise.
33464
33465 2010-01-24  Bruno Haible  <bruno@clisp.org>
33466
33467         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33468         * tests/test-acosl.c (x): New variable.
33469         (main): Store argument in x and fetch it from x.
33470         * tests/test-asinl.c (x): New variable.
33471         (main): Store argument in x and fetch it from x.
33472         * tests/test-atanl.c (x): New variable.
33473         (main): Store argument in x and fetch it from x.
33474         * tests/test-cosl.c (x): New variable.
33475         (main): Store argument in x and fetch it from x.
33476         * tests/test-expl.c (x): New variable.
33477         (main): Store argument in x and fetch it from x.
33478         * tests/test-logl.c (x): New variable.
33479         (main): Store argument in x and fetch it from x.
33480         * tests/test-sinl.c (x): New variable.
33481         (main): Store argument in x and fetch it from x.
33482         * tests/test-sqrtl.c (x): New variable.
33483         (main): Store argument in x and fetch it from x.
33484         * tests/test-tanl.c (x): New variable.
33485         (main): Store argument in x and fetch it from x.
33486
33487 2010-01-24  Bruno Haible  <bruno@clisp.org>
33488
33489         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33490         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33491         assignments to the initial TESTS_ENVIRONMENT.
33492         * doc/gnulib.texi (Unit test modules): Document it.
33493         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33494         TESTS_ENVIRONMENT.
33495         * modules/btowc-tests (Makefile.am): Likewise.
33496         * modules/c-stack-tests (Makefile.am): Likewise.
33497         * modules/c-strcase-tests (Makefile.am): Likewise.
33498         * modules/copy-file-tests (Makefile.am): Likewise.
33499         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33500         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33501         * modules/mbrtowc-tests (Makefile.am): Likewise.
33502         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33503         * modules/mbscasestr-tests (Makefile.am): Likewise.
33504         * modules/mbschr-tests (Makefile.am): Likewise.
33505         * modules/mbscspn-tests (Makefile.am): Likewise.
33506         * modules/mbsinit-tests (Makefile.am): Likewise.
33507         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33508         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33509         * modules/mbspbrk-tests (Makefile.am): Likewise.
33510         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33511         * modules/mbsrchr-tests (Makefile.am): Likewise.
33512         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33513         * modules/mbsspn-tests (Makefile.am): Likewise.
33514         * modules/mbsstr-tests (Makefile.am): Likewise.
33515         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33516         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33517         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33518         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33519         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33520         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33521         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33522         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33523         * modules/wcrtomb-tests (Makefile.am): Likewise.
33524         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33525         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33526         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33527         assignments from TESTS_ENVIRONMENT.
33528         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33529         augmentation.
33530         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33531         * modules/atexit-tests (Makefile.am): Likewise.
33532         * modules/binary-io-tests (Makefile.am): Likewise.
33533         * modules/closein-tests (Makefile.am): Likewise.
33534         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33535         * modules/exclude-tests (Makefile.am): Likewise.
33536         * modules/fflush-tests (Makefile.am): Likewise.
33537         * modules/fpending-tests (Makefile.am): Likewise.
33538         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33539         * modules/freadahead-tests (Makefile.am): Likewise.
33540         * modules/freadptr-tests (Makefile.am): Likewise.
33541         * modules/freadseek-tests (Makefile.am): Likewise.
33542         * modules/fseek-tests (Makefile.am): Likewise.
33543         * modules/fseeko-tests (Makefile.am): Likewise.
33544         * modules/ftell-tests (Makefile.am): Likewise.
33545         * modules/ftello-tests (Makefile.am): Likewise.
33546         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33547         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33548         * modules/lseek-tests (Makefile.am): Likewise.
33549         * modules/parse-duration-tests (Makefile.am): Likewise.
33550         * modules/perror-tests (Makefile.am): Likewise.
33551         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33552         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33553         * modules/pipe-tests (Makefile.am): Likewise.
33554         * modules/pread-tests (Makefile.am): Likewise.
33555         * modules/printf-posix-tests (Makefile.am): Likewise.
33556         * modules/select-tests (Makefile.am): Likewise.
33557         * modules/sigpipe-tests (Makefile.am): Likewise.
33558         * modules/tsearch-tests (Makefile.am): Likewise.
33559         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33560         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33561         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33562         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33563         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33564         * modules/version-etc-tests (Makefile.am): Likewise.
33565         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33566         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33567         * modules/xalloc-die-tests (Makefile.am): Likewise.
33568         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33569         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33570         * modules/xstrtol-tests (Makefile.am): Likewise.
33571         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33572         * modules/yesno-tests (Makefile.am): Likewise.
33573         Suggested by Jim Meyering.
33574
33575 2010-01-24  Bruno Haible  <bruno@clisp.org>
33576
33577         More documentation.
33578         * doc/gnulib.texi (Writing modules): New chapter.
33579         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33580         the new chapter.
33581
33582 2010-01-24  Jim Meyering  <meyering@redhat.com>
33583
33584         maint.mk: do not prepend "./" after filtering
33585         * top/maint.mk (_prepend_srcdir_prefix): New variable
33586         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33587         "./" when $(srcdir) is ".".
33588
33589         define STREQ(a,b) consistently, removing useless parentheses
33590         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33591         since the only risk is that "a" or "b" contains an unparenthesized
33592         comma, but if either did that, STREQ would have 3 or more arguments.
33593         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33594         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33595         * lib/hash-triple.c (STREQ): Likewise.
33596         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33597         * lib/getugroups.c (STREQ): Likewise.
33598
33599 2010-01-23  Jim Meyering  <meyering@redhat.com>
33600
33601         maint.mk: fix syntax-check in a non-srcdir build directory
33602         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33603         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33604
33605 2010-01-22  Jim Meyering  <meyering@redhat.com>
33606
33607         userspec: add unit tests
33608         * tests/test-userspec.c: New file.
33609         * modules/userspec-tests: Likewise.
33610
33611 2010-01-21  Jim Meyering  <meyering@redhat.com>
33612
33613         maint.mk: handle source file names containing "." robustly
33614         * top/maint.mk (_dot_escaped_srcdir): Define.
33615         (VC_LIST): Use it in LHS of sed substitution.
33616
33617 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33618
33619         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33620         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33621         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33622         from a non-srcdir build.
33623
33624 2010-01-20  Eric Blake  <ebb9@byu.net>
33625
33626         warn-on-use: use instead of link-warning
33627         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33628         * modules/unistd (Depends-on, Makefile.am): Likewise.
33629         * modules/arpa_inet (Depends-on): Replace link-warning with
33630         warn-on-use.
33631         (Makefile.am): Update rules accordingly.
33632         * modules/ctype (Depends-on, Makefile.am): Likewise.
33633         * modules/dirent (Depends-on, Makefile.am): Likewise.
33634         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33635         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33636         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33637         * modules/locale (Depends-on, Makefile.am): Likewise.
33638         * modules/math (Depends-on, Makefile.am): Likewise.
33639         * modules/search (Depends-on, Makefile.am): Likewise.
33640         * modules/signal (Depends-on, Makefile.am): Likewise.
33641         * modules/spawn (Depends-on, Makefile.am): Likewise.
33642         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33643         * modules/string (Depends-on, Makefile.am): Likewise.
33644         * modules/strings (Depends-on, Makefile.am): Likewise.
33645         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33646         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33647         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33648         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33649         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33650         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33651         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33652         * modules/wchar (Depends-on, Makefile.am): Likewise.
33653         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33654         should be poisoned.
33655         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33656         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33657         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33658         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33659         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33660         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33661         * m4/math_h.m4 (gl_MATH_H): Likewise.
33662         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33663         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33664         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33665         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33666         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33667         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33668         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33669         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33670         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33673         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33674         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33675         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33676         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33677         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33678         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33679         GL_LINK_WARNING.
33680         * lib/ctype.in.h: Likewise.
33681         * lib/dirent.in.h: Likewise.
33682         * lib/fcntl.in.h: Likewise.
33683         * lib/inttypes.in.h: Likewise.
33684         * lib/langinfo.in.h: Likewise.
33685         * lib/locale.in.h: Likewise.
33686         * lib/math.in.h: Likewise.
33687         * lib/search.in.h: Likewise.
33688         * lib/signal.in.h: Likewise.
33689         * lib/spawn.in.h: Likewise.
33690         * lib/stdio.in.h: Likewise.
33691         * lib/stdlib.in.h: Likewise.
33692         * lib/string.in.h: Likewise.
33693         * lib/strings.in.h: Likewise.
33694         * lib/sys_file.in.h: Likewise.
33695         * lib/sys_ioctl.in.h: Likewise.
33696         * lib/sys_select.in.h: Likewise.
33697         * lib/sys_socket.in.h: Likewise.
33698         * lib/sys_stat.in.h: Likewise.
33699         * lib/sys_times.in.h: Likewise.
33700         * lib/sys_utsname.in.h: Likewise.
33701         * lib/unistd.in.h: Likewise.
33702         * lib/wchar.in.h: Likewise.
33703
33704 2010-01-20  Bruno Haible  <bruno@clisp.org>
33705
33706         Avoid duplicate -lm.
33707         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33708         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33709         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33710         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33711         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33712         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33713         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33714         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33715         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33716         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33717         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33718         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33719         Reported by Paolo Bonzini.
33720
33721 2010-01-19  Bruno Haible  <bruno@clisp.org>
33722
33723         langinfo, nl_langinfo: Relicense under LGPLv2+.
33724         * modules/langinfo (License): Change to LGPLv2+.
33725         * modules/nl_langinfo (License): Likewise.
33726         Patch by David Lutterkort <lutter@redhat.com>.
33727
33728 2010-01-19  Bruno Haible  <bruno@clisp.org>
33729
33730         Avoid compilation error with cc on OSF/1 5.1.
33731         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33732         statement, not before.
33733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33734
33735 2010-01-18  Bruno Haible  <bruno@clisp.org>
33736
33737         Avoid a link error due to the __printf__ symbol.
33738         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33739         and 2.6.x.
33740         (__format__, __printf__): Remove definitions.
33741         * lib/argp-fmtstream.h: Likewise.
33742         * lib/argp.h: Likewise.
33743         * lib/error.h: Likewise.
33744         * lib/vasnprintf.h: Likewise.
33745         * lib/xprintf.h: Likewise.
33746         * lib/xvasprintf.h: Likewise.
33747         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33748
33749 2010-01-18  Bruno Haible  <bruno@clisp.org>
33750
33751         Tests for module 'tanl'.
33752         * modules/tanl-tests: New file.
33753         * tests/test-tanl.c: New file.
33754
33755         Tests for module 'sqrtl'.
33756         * modules/sqrtl-tests: New file.
33757         * tests/test-sqrtl.c: New file.
33758
33759         Tests for module 'sinl'.
33760         * modules/sinl-tests: New file.
33761         * tests/test-sinl.c: New file.
33762
33763         Tests for module 'logl'.
33764         * modules/logl-tests: New file.
33765         * tests/test-logl.c: New file.
33766
33767         Tests for module 'expl'.
33768         * modules/expl-tests: New file.
33769         * tests/test-expl.c: New file.
33770
33771         Tests for module 'cosl'.
33772         * modules/cosl-tests: New file.
33773         * tests/test-cosl.c: New file.
33774
33775         Tests for module 'atanl'.
33776         * modules/atanl-tests: New file.
33777         * tests/test-atanl.c: New file.
33778
33779         Tests for module 'asinl'.
33780         * modules/asinl-tests: New file.
33781         * tests/test-asinl.c: New file.
33782
33783         Tests for module 'acosl'.
33784         * modules/acosl-tests: New file.
33785         * tests/test-acosl.c: New file.
33786
33787         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33788         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33789         tanl): Use the standard gnulib idiom.
33790         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33791         * lib/sinl.c: Likewise.
33792         * lib/tanl.c: Don't include trigl.c.
33793         (kernel_tanl): Make static.
33794         * lib/sincosl.c: Include trigl.h first.
33795         * lib/trigl.c: Likewise.
33796         * m4/acosl.m4: New file.
33797         * m4/asinl.m4: New file.
33798         * m4/atanl.m4: New file.
33799         * m4/cosl.m4: New file.
33800         * m4/expl.m4: New file.
33801         * m4/logl.m4: New file.
33802         * m4/sinl.m4: New file.
33803         * m4/sqrtl.m4: New file.
33804         * m4/tanl.m4: New file.
33805         * m4/mathl.m4: Remove file.
33806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33807         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33808         Don't initialize GNULIB_MATHL.
33809         * modules/acosl: New file.
33810         * modules/asinl: New file.
33811         * modules/atanl: New file.
33812         * modules/cosl: New file.
33813         * modules/expl: New file.
33814         * modules/logl: New file.
33815         * modules/sinl: New file.
33816         * modules/sqrtl: New file.
33817         * modules/tanl: New file.
33818         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33819         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33820         substitute GNULIB_MATHL.
33821         * modules/mathl: Rewritten.
33822         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33823         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33824         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33825         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33826         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33827         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33828         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33829         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33830         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33831
33832 2010-01-18  Bruno Haible  <bruno@clisp.org>
33833
33834         sqrt: Make gl_FUNC_SQRT requirable.
33835         * m4/sqrt.m4: New file.
33836         * modules/sqrt (Files): Add it.
33837         (configure.ac): Invoke gl_FUNC_SQRT.
33838
33839 2010-01-18  Bruno Haible  <bruno@clisp.org>
33840
33841         New modules for common <math.h> functions.
33842         * m4/mathfunc.m4: New file.
33843         * modules/acos: New file.
33844         * modules/asin: New file.
33845         * modules/atan: New file.
33846         * modules/atan2: New file.
33847         * modules/cbrt: New file.
33848         * modules/copysign: New file.
33849         * modules/cos: New file.
33850         * modules/cosh: New file.
33851         * modules/erf: New file.
33852         * modules/erfc: New file.
33853         * modules/exp: New file.
33854         * modules/fabs: New file.
33855         * modules/fmod: New file.
33856         * modules/hypot: New file.
33857         * modules/j0: New file.
33858         * modules/j1: New file.
33859         * modules/jn: New file.
33860         * modules/ldexp: New file.
33861         * modules/lgamma: New file.
33862         * modules/log: New file.
33863         * modules/log10: New file.
33864         * modules/log1p: New file.
33865         * modules/logb: New file.
33866         * modules/modf: New file.
33867         * modules/nextafter: New file.
33868         * modules/pow: New file.
33869         * modules/remainder: New file.
33870         * modules/rint: New file.
33871         * modules/sin: New file.
33872         * modules/sinh: New file.
33873         * modules/sqrt: New file.
33874         * modules/tan: New file.
33875         * modules/tanh: New file.
33876         * modules/y0: New file.
33877         * modules/y1: New file.
33878         * modules/yn: New file.
33879         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33880         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33881         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33882         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33883         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33884         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33885         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33886         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33887         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33888         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33889         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33890         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33891         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33892         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33893         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33894         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33895         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33896         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33897         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33898         * doc/posix-functions/log.texi: Mention the 'log' module.
33899         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33900         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33901         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33902         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33903         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33904         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33905         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33906         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33907         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33908         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33909         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33910         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33911         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33912         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33913         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33914         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33915
33916 2010-01-18  Jim Meyering  <meyering@redhat.com>
33917
33918         ignore-value: relax license to LGPLv2+
33919         * modules/ignore-value (License): Relax to LGPLv2+.
33920
33921         getdate: don't leak when TZ contains two or more '"'s
33922         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33923         double quote in TZ after the first one.
33924
33925         readtokens: do not leak internal token_lengths buffer
33926         * lib/readtokens.c (readtokens): Free the local, lengths,
33927         when the supplied "token_lengths" parameter is NULL.
33928
33929 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33930
33931         Fix a couple of missing LIBTHREAD link failures on AIX.
33932         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33933         $(LIBTHREAD).
33934         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33935
33936         Link test-poll against INET_PTON_LIB.
33937         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33938         for inet_pton on Solaris 10.
33939
33940 2010-01-17  Bruno Haible  <bruno@clisp.org>
33941
33942         unistdio/*-sprintf: Fix typo in module description.
33943         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33944         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33945         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33946         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33947         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33948         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33949         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33950         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33951
33952 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33953
33954         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33955         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33956         variables in shell case patterns, for AIX and HP-UX ksh.
33957
33958         Split large sed scripts, for HP-UX sed.
33959         * modules/stdio: Split sed scripts around 50 sed commands,
33960         to avoid HP-UX limit of 99 commands, in the near future.
33961         * modules/string: Likewise.
33962         * modules/unistd: Likewise.
33963
33964         gnulib-tool: avoid writing in the current directory.
33965         * gnulib-tool (func_emit_lib_Makefile_am)
33966         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33967         not in the current directory, so concurrent gnulib-tool
33968         instances do not interfere.
33969
33970 2010-01-16  Jim Meyering  <meyering@redhat.com>
33971
33972         doc: update users.txt
33973         * users.txt: Add grep.
33974         (diffutils, gzip): Update URLs.
33975
33976 2010-01-12  Bruno Haible  <bruno@clisp.org>
33977
33978         posix_spawn: Avoid test failure on Cygwin.
33979         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33980         characters.
33981         Reported by Simon Josefsson.
33982
33983 2010-01-12  Bruno Haible  <bruno@clisp.org>
33984
33985         * tests/test-cond.c (main): When skipping the test, show the reason.
33986
33987 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33988
33989         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33990
33991 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33992
33993         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33994         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33995
33996 2010-01-12  Eric Blake  <ebb9@byu.net>
33997
33998         build: guarantee AS_VAR_IF
33999         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34000         (gl_AS_VAR_IF): Move...
34001         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34002         Reported by Simon Josefsson.
34003
34004 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34005
34006         * lib/stdio.in.h: Fix typo.
34007
34008 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34009
34010         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34011         libgpg-error.
34012
34013 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34014
34015         * tests/test-xalloc-die.sh: Use $EXEEXT.
34016
34017 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34018             Bruno Haible  <bruno@clisp.org>
34019
34020         getlogin, getlogin_r: Avoid test failure.
34021         * tests/test-getlogin.c: Include <stdio.h>.
34022         (main): Skip the test when the function fails because stdin is not a
34023         tty.
34024         * tests/test-getlogin_r.c: Include <stdio.h>.
34025         (main): Skip the test when the function fails because stdin is not a
34026         tty.
34027
34028 2010-01-11  Eric Blake  <ebb9@byu.net>
34029
34030         tests: avoid more large file warnings
34031         * tests/test-fflush.c: Avoid warning about ftell use.
34032         * tests/test-fseek.c: Avoid warning about fseek use.
34033
34034 2010-01-10  Bruno Haible  <bruno@clisp.org>
34035
34036         nproc: Work better on Linux when /proc and /sys are not mounted.
34037         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34038         as lower bound when, on glibc/Linux systems,
34039         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34040         Suggested by Pádraig Brady <P@draigbrady.com>.
34041         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34042
34043         nproc: Refactor.
34044         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34045         extracted from num_processors.
34046         (num_processors): Call it.
34047
34048 2010-01-11  Jim Meyering  <meyering@redhat.com>
34049
34050         utimecmp: avoid new warning from upcoming gcc-4.5.0
34051         * lib/utimecmp.c (BILLION): Define using #define rather than an
34052         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34053
34054 2010-01-11  Eric Blake  <ebb9@byu.net>
34055
34056         math: add portability warnings for classification macros
34057         * modules/math (Depends-on): Add warn-on-use.
34058         (Makefile.am): Provide new substitutions.
34059         * m4/math_h.m4 (gl_MATH_H): Require inline.
34060         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34061         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34062         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34063         implement warnings.
34064
34065         unistd: warn on use of environ without module
34066         * modules/unistd (Depends-on): Add warn-on-use.
34067         (Makefile.am): Provide new substitutions.
34068         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34069         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34070
34071         stdio: warn on suspicious uses
34072         * modules/stdio (Depends-on): Add warn-on-use.
34073         (Makefile.am): Provide new substitutions.
34074         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34075         fseeko.
34076         * lib/stdio.in.h (gets): Always warn on use.
34077         (fseek, ftell): Adjust when warnings are issued, and honor
34078         _GL_NO_LARGE_FILES as a way to silence the warning.
34079         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34080         any warning about large file offsets.
34081         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34082         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34083         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34084         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34085         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34086         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34087         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34088         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34089
34090         warn-on-use: new module
34091         * modules/warn-on-use: New file.
34092         * build-aux/warn-on-use.h: Likewise.
34093         * m4/warn-on-use.m4: Likewise.
34094         * MODULES.html.sh (Support for building): Mention it.
34095
34096 2010-01-10  Bruno Haible  <bruno@clisp.org>
34097
34098         Tests for module 'unistr/u32-strdup'.
34099         * modules/unistr/u32-strdup-tests: New file.
34100         * tests/unistr/test-u32-strdup.c: New file.
34101
34102         Tests for module 'unistr/u16-strdup'.
34103         * modules/unistr/u16-strdup-tests: New file.
34104         * tests/unistr/test-u16-strdup.c: New file.
34105
34106         Tests for module 'unistr/u8-strdup'.
34107         * modules/unistr/u8-strdup-tests: New file.
34108         * tests/unistr/test-u8-strdup.c: New file.
34109         * tests/unistr/test-strdup.h: New file.
34110
34111         Tests for module 'unistr/u32-strncmp'.
34112         * modules/unistr/u32-strncmp-tests: New file.
34113         * tests/unistr/test-u32-strncmp.c: New file.
34114
34115         Tests for module 'unistr/u16-strncmp'.
34116         * modules/unistr/u16-strncmp-tests: New file.
34117         * tests/unistr/test-u16-strncmp.c: New file.
34118
34119         Tests for module 'unistr/u8-strncmp'.
34120         * modules/unistr/u8-strncmp-tests: New file.
34121         * tests/unistr/test-u8-strncmp.c: New file.
34122         * tests/unistr/test-strncmp.h: New file.
34123
34124         Tests for module 'unistr/u32-strcoll'.
34125         * modules/unistr/u32-strcoll-tests: New file.
34126         * tests/unistr/test-u32-strcoll.c: New file.
34127
34128         Tests for module 'unistr/u16-strcoll'.
34129         * modules/unistr/u16-strcoll-tests: New file.
34130         * tests/unistr/test-u16-strcoll.c: New file.
34131
34132         Tests for module 'unistr/u8-strcoll'.
34133         * modules/unistr/u8-strcoll-tests: New file.
34134         * tests/unistr/test-u8-strcoll.c: New file.
34135
34136         Tests for module 'unistr/u32-strcmp'.
34137         * modules/unistr/u32-strcmp-tests: New file.
34138         * tests/unistr/test-u32-strcmp.c: New file.
34139         * tests/unistr/test-u32-strcmp.h: New file.
34140
34141         Tests for module 'unistr/u16-strcmp'.
34142         * modules/unistr/u16-strcmp-tests: New file.
34143         * tests/unistr/test-u16-strcmp.c: New file.
34144         * tests/unistr/test-u16-strcmp.h: New file.
34145
34146         Tests for module 'unistr/u8-strcmp'.
34147         * modules/unistr/u8-strcmp-tests: New file.
34148         * tests/unistr/test-u8-strcmp.c: New file.
34149         * tests/unistr/test-u8-strcmp.h: New file.
34150         * tests/unistr/test-strcmp.h: New file.
34151
34152         Tests for module 'unistr/u32-strncat'.
34153         * modules/unistr/u32-strncat-tests: New file.
34154         * tests/unistr/test-u32-strncat.c: New file.
34155
34156         Tests for module 'unistr/u16-strncat'.
34157         * modules/unistr/u16-strncat-tests: New file.
34158         * tests/unistr/test-u16-strncat.c: New file.
34159
34160         Tests for module 'unistr/u8-strncat'.
34161         * modules/unistr/u8-strncat-tests: New file.
34162         * tests/unistr/test-u8-strncat.c: New file.
34163         * tests/unistr/test-strncat.h: New file.
34164
34165         Tests for module 'unistr/u32-strcat'.
34166         * modules/unistr/u32-strcat-tests: New file.
34167         * tests/unistr/test-u32-strcat.c: New file.
34168
34169         Tests for module 'unistr/u16-strcat'.
34170         * modules/unistr/u16-strcat-tests: New file.
34171         * tests/unistr/test-u16-strcat.c: New file.
34172
34173         Tests for module 'unistr/u8-strcat'.
34174         * modules/unistr/u8-strcat-tests: New file.
34175         * tests/unistr/test-u8-strcat.c: New file.
34176         * tests/unistr/test-strcat.h: New file.
34177
34178         Tests for module 'unistr/u32-stpncpy'.
34179         * modules/unistr/u32-stpncpy-tests: New file.
34180         * tests/unistr/test-u32-stpncpy.c: New file.
34181
34182         Tests for module 'unistr/u16-stpncpy'.
34183         * modules/unistr/u16-stpncpy-tests: New file.
34184         * tests/unistr/test-u16-stpncpy.c: New file.
34185
34186         Tests for module 'unistr/u8-stpncpy'.
34187         * modules/unistr/u8-stpncpy-tests: New file.
34188         * tests/unistr/test-u8-stpncpy.c: New file.
34189         * tests/unistr/test-stpncpy.h: New file.
34190
34191         Tests for module 'unistr/u32-strncpy'.
34192         * modules/unistr/u32-strncpy-tests: New file.
34193         * tests/unistr/test-u32-strncpy.c: New file.
34194
34195         Tests for module 'unistr/u16-strncpy'.
34196         * modules/unistr/u16-strncpy-tests: New file.
34197         * tests/unistr/test-u16-strncpy.c: New file.
34198
34199         Tests for module 'unistr/u8-strncpy'.
34200         * modules/unistr/u8-strncpy-tests: New file.
34201         * tests/unistr/test-u8-strncpy.c: New file.
34202         * tests/unistr/test-strncpy.h: New file.
34203
34204         Tests for module 'unistr/u32-stpcpy'.
34205         * modules/unistr/u32-stpcpy-tests: New file.
34206         * tests/unistr/test-u32-stpcpy.c: New file.
34207
34208         Tests for module 'unistr/u16-stpcpy'.
34209         * modules/unistr/u16-stpcpy-tests: New file.
34210         * tests/unistr/test-u16-stpcpy.c: New file.
34211
34212         Tests for module 'unistr/u8-stpcpy'.
34213         * modules/unistr/u8-stpcpy-tests: New file.
34214         * tests/unistr/test-u8-stpcpy.c: New file.
34215         * tests/unistr/test-stpcpy.h: New file.
34216
34217         Tests for module 'unistr/u32-strcpy'.
34218         * modules/unistr/u32-strcpy-tests: New file.
34219         * tests/unistr/test-u32-strcpy.c: New file.
34220
34221         Tests for module 'unistr/u16-strcpy'.
34222         * modules/unistr/u16-strcpy-tests: New file.
34223         * tests/unistr/test-u16-strcpy.c: New file.
34224
34225         Tests for module 'unistr/u8-strcpy'.
34226         * modules/unistr/u8-strcpy-tests: New file.
34227         * tests/unistr/test-u8-strcpy.c: New file.
34228         * tests/unistr/test-strcpy.h: New file.
34229
34230         Tests for module 'unistr/u32-strnlen'.
34231         * modules/unistr/u32-strnlen-tests: New file.
34232         * tests/unistr/test-u32-strnlen.c: New file.
34233
34234         Tests for module 'unistr/u16-strnlen'.
34235         * modules/unistr/u16-strnlen-tests: New file.
34236         * tests/unistr/test-u16-strnlen.c: New file.
34237
34238         Tests for module 'unistr/u8-strnlen'.
34239         * modules/unistr/u8-strnlen-tests: New file.
34240         * tests/unistr/test-u8-strnlen.c: New file.
34241         * tests/unistr/test-strnlen.h: New file.
34242
34243         Tests for module 'unistr/u32-strlen'.
34244         * modules/unistr/u32-strlen-tests: New file.
34245         * tests/unistr/test-u32-strlen.c: New file.
34246
34247         Tests for module 'unistr/u16-strlen'.
34248         * modules/unistr/u16-strlen-tests: New file.
34249         * tests/unistr/test-u16-strlen.c: New file.
34250
34251         Tests for module 'unistr/u8-strlen'.
34252         * modules/unistr/u8-strlen-tests: New file.
34253         * tests/unistr/test-u8-strlen.c: New file.
34254
34255         Tests for module 'unistr/u32-prev'.
34256         * modules/unistr/u32-prev-tests: New file.
34257         * tests/unistr/test-u32-prev.c: New file.
34258
34259         Tests for module 'unistr/u16-prev'.
34260         * modules/unistr/u16-prev-tests: New file.
34261         * tests/unistr/test-u16-prev.c: New file.
34262
34263         Tests for module 'unistr/u8-prev'.
34264         * modules/unistr/u8-prev-tests: New file.
34265         * tests/unistr/test-u8-prev.c: New file.
34266
34267         Tests for module 'unistr/u32-next'.
34268         * modules/unistr/u32-next-tests: New file.
34269         * tests/unistr/test-u32-next.c: New file.
34270
34271         Tests for module 'unistr/u16-next'.
34272         * modules/unistr/u16-next-tests: New file.
34273         * tests/unistr/test-u16-next.c: New file.
34274
34275         Tests for module 'unistr/u8-next'.
34276         * modules/unistr/u8-next-tests: New file.
34277         * tests/unistr/test-u8-next.c: New file.
34278
34279         Tests for module 'unistr/u32-strmbtouc'.
34280         * modules/unistr/u32-strmbtouc-tests: New file.
34281         * tests/unistr/test-u32-strmbtouc.c: New file.
34282
34283         Tests for module 'unistr/u16-strmbtouc'.
34284         * modules/unistr/u16-strmbtouc-tests: New file.
34285         * tests/unistr/test-u16-strmbtouc.c: New file.
34286
34287         Tests for module 'unistr/u8-strmbtouc'.
34288         * modules/unistr/u8-strmbtouc-tests: New file.
34289         * tests/unistr/test-u8-strmbtouc.c: New file.
34290
34291         Tests for module 'unistr/u32-strmblen'.
34292         * modules/unistr/u32-strmblen-tests: New file.
34293         * tests/unistr/test-u32-strmblen.c: New file.
34294
34295         Tests for module 'unistr/u16-strmblen'.
34296         * modules/unistr/u16-strmblen-tests: New file.
34297         * tests/unistr/test-u16-strmblen.c: New file.
34298
34299         Tests for module 'unistr/u8-strmblen'.
34300         * modules/unistr/u8-strmblen-tests: New file.
34301         * tests/unistr/test-u8-strmblen.c: New file.
34302
34303         Tests for module 'unistr/u32-cpy-alloc'.
34304         * modules/unistr/u32-cpy-alloc-tests: New file.
34305         * tests/unistr/test-u32-cpy-alloc.c: New file.
34306
34307         Tests for module 'unistr/u16-cpy-alloc'.
34308         * modules/unistr/u16-cpy-alloc-tests: New file.
34309         * tests/unistr/test-u16-cpy-alloc.c: New file.
34310
34311         Tests for module 'unistr/u8-cpy-alloc'.
34312         * modules/unistr/u8-cpy-alloc-tests: New file.
34313         * tests/unistr/test-u8-cpy-alloc.c: New file.
34314         * tests/unistr/test-cpy-alloc.h: New file.
34315
34316         Tests for module 'unistr/u32-mbsnlen'.
34317         * modules/unistr/u32-mbsnlen-tests: New file.
34318         * tests/unistr/test-u32-mbsnlen.c: New file.
34319
34320         Tests for module 'unistr/u16-mbsnlen'.
34321         * modules/unistr/u16-mbsnlen-tests: New file.
34322         * tests/unistr/test-u16-mbsnlen.c: New file.
34323
34324         Tests for module 'unistr/u8-mbsnlen'.
34325         * modules/unistr/u8-mbsnlen-tests: New file.
34326         * tests/unistr/test-u8-mbsnlen.c: New file.
34327
34328         Tests for module 'unistr/u32-chr'.
34329         * modules/unistr/u32-chr-tests: New file.
34330         * tests/unistr/test-u32-chr.c: New file.
34331
34332         Tests for module 'unistr/u16-chr'.
34333         * modules/unistr/u16-chr-tests: New file.
34334         * tests/unistr/test-u16-chr.c: New file.
34335
34336         Tests for module 'unistr/u8-chr'.
34337         * modules/unistr/u8-chr-tests: New file.
34338         * tests/unistr/test-u8-chr.c: New file.
34339         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34340
34341         Tests for module 'unistr/u32-cmp2'.
34342         * modules/unistr/u32-cmp2-tests: New file.
34343         * tests/unistr/test-u32-cmp2.c: New file.
34344
34345         Tests for module 'unistr/u16-cmp2'.
34346         * modules/unistr/u16-cmp2-tests: New file.
34347         * tests/unistr/test-u16-cmp2.c: New file.
34348
34349         Tests for module 'unistr/u8-cmp2'.
34350         * modules/unistr/u8-cmp2-tests: New file.
34351         * tests/unistr/test-u8-cmp2.c: New file.
34352         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34353
34354         Tests for module 'unistr/u32-cmp'.
34355         * modules/unistr/u32-cmp-tests: New file.
34356         * tests/unistr/test-u32-cmp.c: New file.
34357
34358         Tests for module 'unistr/u16-cmp'.
34359         * modules/unistr/u16-cmp-tests: New file.
34360         * tests/unistr/test-u16-cmp.c: New file.
34361
34362         Tests for module 'unistr/u8-cmp'.
34363         * modules/unistr/u8-cmp-tests: New file.
34364         * tests/unistr/test-u8-cmp.c: New file.
34365         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34366
34367         Tests for module 'unistr/u32-set'.
34368         * modules/unistr/u32-set-tests: New file.
34369         * tests/unistr/test-u32-set.c: New file.
34370
34371         Tests for module 'unistr/u16-set'.
34372         * modules/unistr/u16-set-tests: New file.
34373         * tests/unistr/test-u16-set.c: New file.
34374
34375         Tests for module 'unistr/u8-set'.
34376         * modules/unistr/u8-set-tests: New file.
34377         * tests/unistr/test-u8-set.c: New file.
34378         * tests/unistr/test-set.h: New file.
34379
34380         Tests for module 'unistr/u32-move'.
34381         * modules/unistr/u32-move-tests: New file.
34382         * tests/unistr/test-u32-move.c: New file.
34383
34384         Tests for module 'unistr/u16-move'.
34385         * modules/unistr/u16-move-tests: New file.
34386         * tests/unistr/test-u16-move.c: New file.
34387
34388         Tests for module 'unistr/u8-move'.
34389         * modules/unistr/u8-move-tests: New file.
34390         * tests/unistr/test-u8-move.c: New file.
34391         * tests/unistr/test-move.h: New file.
34392
34393         Tests for module 'unistr/u32-cpy'.
34394         * modules/unistr/u32-cpy-tests: New file.
34395         * tests/unistr/test-u32-cpy.c: New file.
34396
34397         Tests for module 'unistr/u16-cpy'.
34398         * modules/unistr/u16-cpy-tests: New file.
34399         * tests/unistr/test-u16-cpy.c: New file.
34400
34401         Tests for module 'unistr/u8-cpy'.
34402         * modules/unistr/u8-cpy-tests: New file.
34403         * tests/unistr/test-u8-cpy.c: New file.
34404         * tests/unistr/test-cpy.h: New file.
34405
34406 2010-01-09  Bruno Haible  <bruno@clisp.org>
34407
34408         Tests for module 'unistr/u32-uctomb'.
34409         * modules/unistr/u32-uctomb-tests: New file.
34410         * tests/unistr/test-u32-uctomb.c: New file.
34411
34412         Tests for module 'unistr/u16-uctomb'.
34413         * modules/unistr/u16-uctomb-tests: New file.
34414         * tests/unistr/test-u16-uctomb.c: New file.
34415
34416         Tests for module 'unistr/u8-uctomb'.
34417         * modules/unistr/u8-uctomb-tests: New file.
34418         * tests/unistr/test-u8-uctomb.c: New file.
34419
34420         Tests for module 'unistr/u32-mbtoucr'.
34421         * modules/unistr/u32-mbtoucr-tests: New file.
34422         * tests/unistr/test-u32-mbtoucr.c: New file.
34423
34424         Tests for module 'unistr/u16-mbtoucr'.
34425         * modules/unistr/u16-mbtoucr-tests: New file.
34426         * tests/unistr/test-u16-mbtoucr.c: New file.
34427
34428         Tests for module 'unistr/u8-mbtoucr'.
34429         * modules/unistr/u8-mbtoucr-tests: New file.
34430         * tests/unistr/test-u8-mbtoucr.c: New file.
34431
34432         Tests for module 'unistr/u32-mbtouc'.
34433         * modules/unistr/u32-mbtouc-tests: New file.
34434         * tests/unistr/test-u32-mbtouc.c: New file.
34435
34436         Tests for module 'unistr/u16-mbtouc'.
34437         * modules/unistr/u16-mbtouc-tests: New file.
34438         * tests/unistr/test-u16-mbtouc.c: New file.
34439
34440         Tests for module 'unistr/u8-mbtouc'.
34441         * modules/unistr/u8-mbtouc-tests: New file.
34442         * tests/unistr/test-u8-mbtouc.c: New file.
34443
34444         Tests for module 'unistr/u32-mbtouc-unsafe'.
34445         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34446         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34447         * tests/unistr/test-u32-mbtouc.h: New file.
34448
34449         Tests for module 'unistr/u16-mbtouc-unsafe'.
34450         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34451         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34452         * tests/unistr/test-u16-mbtouc.h: New file.
34453
34454         Tests for module 'unistr/u8-mbtouc-unsafe'.
34455         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34456         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34457         * tests/unistr/test-u8-mbtouc.h: New file.
34458
34459         Tests for module 'unistr/u32-mblen'.
34460         * modules/unistr/u32-mblen-tests: New file.
34461         * tests/unistr/test-u32-mblen.c: New file.
34462
34463         Tests for module 'unistr/u16-mblen'.
34464         * modules/unistr/u16-mblen-tests: New file.
34465         * tests/unistr/test-u16-mblen.c: New file.
34466
34467         Tests for module 'unistr/u8-mblen'.
34468         * modules/unistr/u8-mblen-tests: New file.
34469         * tests/unistr/test-u8-mblen.c: New file.
34470
34471         Tests for module 'unistr/u32-to-u16'.
34472         * modules/unistr/u32-to-u16-tests: New file.
34473         * tests/unistr/test-u32-to-u16.c: New file.
34474
34475         Tests for module 'unistr/u32-to-u8'.
34476         * modules/unistr/u32-to-u8-tests: New file.
34477         * tests/unistr/test-u32-to-u8.c: New file.
34478
34479         Tests for module 'unistr/u16-to-u32'.
34480         * modules/unistr/u16-to-u32-tests: New file.
34481         * tests/unistr/test-u16-to-u32.c: New file.
34482
34483         Tests for module 'unistr/u16-to-u8'.
34484         * modules/unistr/u16-to-u8-tests: New file.
34485         * tests/unistr/test-u16-to-u8.c: New file.
34486
34487         Tests for module 'unistr/u8-to-u32'.
34488         * modules/unistr/u8-to-u32-tests: New file.
34489         * tests/unistr/test-u8-to-u32.c: New file.
34490
34491         Tests for module 'unistr/u8-to-u16'.
34492         * modules/unistr/u8-to-u16-tests: New file.
34493         * tests/unistr/test-u8-to-u16.c: New file.
34494
34495         Tests for module 'unistr/u32-check'.
34496         * modules/unistr/u32-check-tests: New file.
34497         * tests/unistr/test-u32-check.c: New file.
34498
34499         Tests for module 'unistr/u16-check'.
34500         * modules/unistr/u16-check-tests: New file.
34501         * tests/unistr/test-u16-check.c: New file.
34502
34503         Tests for module 'unistr/u8-check'.
34504         * modules/unistr/u8-check-tests: New file.
34505         * tests/unistr/test-u8-check.c: New file.
34506
34507         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34508         (category_equals): New function.
34509         (main): Add more tests.
34510         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34511
34512         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34513
34514 2010-01-10  Bruno Haible  <bruno@clisp.org>
34515
34516         unistr/u*-strcoll: Try harder to distinguish different strings.
34517         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34518         compare s1 and s2 to see if they are different.
34519
34520 2010-01-10  Bruno Haible  <bruno@clisp.org>
34521
34522         unistr/u*-stpncpy: Fix the return value.
34523         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34524         description of the return value consistent with stpncpy in glibc.
34525         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34526         written non-NUL unit.
34527
34528 2010-01-10  Bruno Haible  <bruno@clisp.org>
34529
34530         unistr/u*-next: Add missing dependencies.
34531         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34532         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34533         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34534
34535 2010-01-10  Bruno Haible  <bruno@clisp.org>
34536
34537         unistr/u8-mbsnlen: Fix return value for incomplete character.
34538         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34539         u8_mblen.
34540         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34541         Remove unistr/u8-mblen.
34542         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34543         u16_mblen.
34544         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34545         Remove unistr/u16-mblen.
34546
34547 2010-01-10  Bruno Haible  <bruno@clisp.org>
34548
34549         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34550         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34551         Reported by Brian Gough <bjg@gnu.org> and
34552         Chris Clayton <chris2553@googlemail.com> via
34553         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34554
34555 2010-01-09  Bruno Haible  <bruno@clisp.org>
34556
34557         unistr/u16-to-u32: Reject invalid input.
34558         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34559         u16_mbtouc.
34560         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34561         Remove unistr/u16-mbtouc.
34562
34563         unistr/u16-to-u8: Reject invalid input.
34564         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34565         u16_mbtouc.
34566         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34567         Remove unistr/u16-mbtouc.
34568
34569         unistr/u8-to-u32: Reject invalid input.
34570         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34571         u8_mbtouc.
34572         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34573         Remove unistr/u8-mbtouc.
34574
34575         unistr/u8-to-u16: Reject invalid input.
34576         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34577         u8_mbtouc.
34578         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34579         Remove unistr/u8-mbtouc.
34580
34581 2010-01-09  Bruno Haible  <bruno@clisp.org>
34582
34583         Tests for module 'getlogin'.
34584         * modules/getlogin-tests: New file.
34585         * tests/test-getlogin.c: New file.
34586
34587         New module 'getlogin'.
34588         * lib/unistd.in.h (getlogin): New declaration.
34589         * lib/getlogin.c: New file.
34590         * m4/getlogin.m4: New file.
34591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34592         HAVE_GETLOGIN.
34593         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34594         HAVE_GETLOGIN.
34595         * modules/getlogin: New file.
34596         * doc/posix-functions/getlogin.texi: Mention the new module.
34597         Reported by John W. Eaton <jwe@gnu.org>.
34598
34599 2010-01-09  Bruno Haible  <bruno@clisp.org>
34600
34601         getlogin_r: Support for native Windows.
34602         * lib/getlogin_r.c: Include <windows.h>
34603         (getlogin_r): Implement for native Windows.
34604         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34605         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34606         via John W. Eaton <jwe@gnu.org>.
34607
34608 2010-01-09  Bruno Haible  <bruno@clisp.org>
34609
34610         getlogin_r: Small fixes.
34611         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34612         succeeds.
34613         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34614         before testing whether getlogin_r is declared. No need to set
34615         HAVE_DECL_GETLOGIN_R to 1.
34616         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34617
34618 2010-01-09  Bruno Haible  <bruno@clisp.org>
34619
34620         * lib/unistd.in.h (getlogin_r): Add comment.
34621
34622 2010-01-09  Bruno Haible  <bruno@clisp.org>
34623
34624         Tests for module 'getlogin_r'.
34625         * modules/getlogin_r-tests: New file.
34626         * tests/test-getlogin_r.c: New file.
34627
34628 2010-01-09  Jim Meyering  <meyering@redhat.com>
34629
34630         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34631         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34632         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34633
34634 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34635
34636         * lib/dup2.c (rpl_dup2): Improve comment.
34637
34638 2010-01-08  Eric Blake  <ebb9@byu.net>
34639
34640         maint.mk: allow packages to add makefile @@ exceptions
34641         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34642         (sc_makefile_check): Rename...
34643         (sc_makefile_at_at_check): ...to this, and use hook.
34644
34645         dup2: work around mingw bug
34646         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34647         Reported by Simon Josefsson.
34648
34649 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34650
34651         glob: Fix C++ compilation.
34652         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34653         C++.
34654
34655 2010-01-07  Bruno Haible  <bruno@clisp.org>
34656
34657         Fix indentation of wctype.in.h, broken since 2007-01-06.
34658         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34659
34660 2010-01-07  Bruno Haible  <bruno@clisp.org>
34661
34662         mbslen: Avoid collision with system function.
34663         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34664         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34665         * m4/mbslen.m4: New file.
34666         * modules/mbslen (Files): Add it.
34667         (configure.ac): Invoke gl_MBSLEN.
34668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34669         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34670         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34671         via Ian Beckwith <ianb@erislabs.net>.
34672
34673 2010-01-07  Bruno Haible  <bruno@clisp.org>
34674
34675         dirent: Document the last fix.
34676         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34677
34678 2010-01-07  Bruno Haible  <bruno@clisp.org>
34679
34680         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34681         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34682         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34683         va_list are defined.
34684         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34685         Reported by Eric Blake.
34686
34687 2010-01-07  Bruno Haible  <bruno@clisp.org>
34688
34689         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34690         * modules/xlist (Depends-on): Add 'list',
34691         * modules/xoset (Depends-on): Add 'oset'.
34692         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34693
34694 2010-01-07  Bruno Haible  <bruno@clisp.org>
34695
34696         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34697         * doc/posix-functions/strncasecmp.texi: Likewise.
34698
34699 2010-01-07  Bruno Haible  <bruno@clisp.org>
34700
34701         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34702
34703 2010-01-07  John W. Eaton  <jwe@octave.org>
34704
34705         wctype: allow C++ use
34706         * lib/wctype.in.h: Add extern "C" block for C++.
34707
34708 2010-01-06  Eric Blake  <ebb9@byu.net>
34709
34710         maint.mk: detect incorrect GFDL usage
34711         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34712
34713 2010-01-06  Jim Meyering  <meyering@redhat.com>
34714         and Eric Blake  <ebb9@byu.net>
34715
34716         maint.mk: ignore multi-line copyright in NEWS
34717         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34718
34719 2010-01-06  Eric Blake  <ebb9@byu.net>
34720
34721         select: add missing dependency
34722         * modules/select-tests (Depends-on): Move sockets dependency...
34723         * modules/select (Depends-on): ...here.
34724         Reported by Ian Beckwith.
34725
34726         doc: regenerate INSTALL
34727         * doc/INSTALL: Reflect recent autoconf update.
34728         * doc/INSTALL.ISO: Likewise.
34729         * doc/INSTALL.UTF-8: Likewise.
34730
34731         pread: fix compilation on glibc
34732         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34733         Reported by Ralf Wildenhues.
34734
34735         dirent: fix test failure
34736         * lib/dirent.in.h (includes): Guarantee ino_t.
34737         Reported by Ralf Wildenhues.
34738
34739 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34740
34741         linkat, renameat: avoid bad free
34742         * lib/at-func2.c (at_func2): Fix typo.
34743         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34744
34745 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34746
34747         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34748         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34749         to avoid failure of symlink test later.
34750
34751 2010-01-06  Eric Blake  <ebb9@byu.net>
34752
34753         stdio, unistd: guarantee ssize_t
34754         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34755         2008 are exposed when needed.
34756         * lib/stdio.in.h (includes): Likewise.
34757         Reported by Ralf Wildenhues.
34758
34759 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34760
34761         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34762         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34763         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34764
34765 2010-01-06  Jim Meyering  <meyering@redhat.com>
34766
34767         readtokens: this module *does* require xalloc.h
34768         It uses only functions that were omitted by the old syntax-check rule.
34769         * lib/readtokens.c: Include "xalloc.h" once again.
34770         * modules/readtokens (Depends-on): Add xalloc.
34771         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34772
34773 2010-01-05  Eric Blake  <ebb9@byu.net>
34774
34775         maint: support 'make announcement' from a VPATH build
34776         * top/maint.mk (announcement): Look for correct NEWS file.
34777
34778 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34779
34780         utimens (fdutimens): ignore a negative FD, per contract
34781         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34782         when we have a valid file descriptor.  Otherwise, using a brand
34783         new glibc (with just-patched futimens that now fails with EBADF)
34784         would cause this function to fail with ENOSYS.
34785         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34786         See also http://bugzilla.redhat.com/552320.
34787
34788 2010-01-05  Eric Blake  <ebb9@byu.net>
34789
34790         strcase: document what it provides
34791         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34792         gnulib module.
34793         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34794         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34795
34796 2010-01-05  Jim Meyering  <meyering@redhat.com>
34797
34798         maint: remove useless inclusions of "xalloc.h"
34799         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34800         * lib/readtokens.c: Likewise.
34801         * lib/same.c: Likewise.
34802         * modules/getloadavg (Depends-on): Remove xalloc.
34803         * modules/readtokens: Likewise.
34804         * modules/same: Likewise.
34805
34806         maint.mk: include 4 more function names in alloca.h-checking regexp
34807         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34808         regexp.  Before, we would give a false-positive (saying alloca.h
34809         is included unnecessarily) when the only uses involved omitted symbols.
34810
34811         xalloc.h: use consistent formatting
34812         * lib/xalloc.h: Move declarations to start in the first column.
34813
34814 2010-01-05  Eric Blake  <ebb9@byu.net>
34815
34816         mkdir: avoid xalloc
34817         * lib/mkdir.c (includes): Drop unused header.
34818         Reported by John W. Eaton.
34819
34820 2010-01-04  Jim Meyering  <meyering@redhat.com>
34821
34822         nl_langinfo: avoid configure-time syntax error
34823         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34824         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34825         the empty string.  Don't let that provoke a shell syntax error.
34826
34827         regcomp, regexec, fnmatch: avoid array bounds read error
34828         * lib/regcomp.c (build_equiv_class): From glibc:
34829         Use only the low 24 bits of a findidx return value as an index
34830         into the weights array.  Patch by Ulrich Drepper:
34831         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34832         * lib/regexec.c (check_node_accept_bytes): Likewise.
34833         * lib/fnmatch_loop.c (FCT): Likewise.
34834
34835         regcomp: skip collseq lookup when there are no rules
34836         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34837         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34838
34839         regcomp: recognize ill-formed { } expressions
34840         * lib/regcomp.c (parse_dup_op): From glibc:
34841         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34842
34843         regcomp: fix typo in comment
34844         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34845         s/satisfy/satisfies/.
34846
34847         regcomp: sync from glibc: remove dead store
34848         * lib/regcomp.c (duplicate_node_closure): Remove useless
34849         search_duplicated_node call and dead store.
34850
34851         regcomp: sync from glibc; always use nl_langinfo
34852         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34853         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34854         * modules/regex (Depends-on): Add nl_langinfo.
34855
34856 2010-01-04  Eric Blake  <ebb9@byu.net>
34857
34858         fdopendir: fix configure test
34859         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34860
34861 2010-01-01  Bruno Haible  <bruno@clisp.org>
34862
34863         wchar: Remove unused configure check.
34864         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34865
34866 2010-01-01  Eric Blake  <ebb9@byu.net>
34867
34868         headers: make check of system header explicit
34869         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34870         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34871         ourselves.
34872         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34874         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34875         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34876         internals.
34877         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34878         missing.
34879         Suggested by Bruno Haible.
34880
34881 2010-01-01  Jim Meyering  <meyering@redhat.com>
34882
34883         ChangeLog: tweak to eliminate unnecessary copyright line
34884         * ChangeLog: Remove a copyright line that was mistakenly updated
34885         by today's update-copyright run.  Reported by Eric Blake.
34886
34887         test-update-copyright: don't let envvar setting cause test failure
34888         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34889
34890 2010-01-01  Bruno Haible  <bruno@clisp.org>
34891
34892         localename: Avoid gcc warning.
34893         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34894         function if it is not used.
34895
34896 2010-01-01  Jim Meyering  <meyering@redhat.com>
34897
34898         update nearly all FSF copyright year lists to include 2010
34899         Use the same procedure as for 2009, outlined in
34900         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34901
34902         version-etc: set COPYRIGHT_YEAR to 2010
34903         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34904
34905 2009-12-31  Eric Blake  <ebb9@byu.net>
34906
34907         doc: correct availability of cygwin 1.5.x getopt
34908         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34909         variables.
34910         * doc/posix-functions/opterr.texi (opterr): Likewise.
34911         * doc/posix-functions/optind.texi (optind): Likewise.
34912         * doc/posix-functions/optopt.texi (optopt): Likewise.
34913         * doc/posix-functions/tzname.texi (tzname): Likewise.
34914
34915         openat: update maintainer
34916         * modules/openat (Maintainer): Add myself.
34917
34918         utimens: avoid shadowing warning
34919         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34920         buffers into one, to avoid shadowing, as well as avoiding a
34921         redundant stat.
34922         Reported by Jim Meyering.
34923
34924         test-dup2: avoid compiler warning
34925         * tests/test-dup2.c (is_inheritable): Only define if used.
34926
34927 2010-01-01  Bruno Haible  <bruno@clisp.org>
34928
34929         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34930         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34931         defined, use wctomb instead of wcrtomb.
34932
34933 2010-01-01  Bruno Haible  <bruno@clisp.org>
34934
34935         iconv: Reject native Solaris iconv.
34936         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34937         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34938
34939 2009-12-31  Bruno Haible  <bruno@clisp.org>
34940
34941         * tests/test-signal.c (main): Remove test of 'SIG'.
34942
34943 2009-12-31  Bruno Haible  <bruno@clisp.org>
34944
34945         spawn: Fix incomplete fix.
34946         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34947         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34948         warnings for GNULIB_POSIXCHECK again.
34949         Reported by Eric Blake.
34950
34951 2009-12-31  Bruno Haible  <bruno@clisp.org>
34952
34953         Avoid namespace pollution on glibc systems.
34954         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34955         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34956         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34957         glibc systems.
34958
34959 2009-12-31  Bruno Haible  <bruno@clisp.org>
34960
34961         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34962         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34963         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34964         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34965         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34966         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34967         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34968
34969 2009-12-31  Bruno Haible  <bruno@clisp.org>
34970
34971         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34972         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34973         afterwards.
34974
34975 2009-12-31  Bruno Haible  <bruno@clisp.org>
34976
34977         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34978         SYS_UTSNAME_H.
34979
34980 2009-12-31  Bruno Haible  <bruno@clisp.org>
34981
34982         spawn: Fix misapplied patch.
34983         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34984         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34985         warnings for GNULIB_POSIXCHECK.
34986
34987 2009-12-31  Bruno Haible  <bruno@clisp.org>
34988
34989         times: Update after sys_times changed.
34990         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34991         * modules/times (Files): Add it.
34992         (configure.ac): Invoke gl_FUNC_TIMES.
34993
34994 2009-12-31  Bruno Haible  <bruno@clisp.org>
34995
34996         Use AC_C_INLINE where necessary.
34997         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34998         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35000         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35001         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35002         * m4/mbiter.m4 (gl_MBITER): Likewise.
35003         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35004         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35005         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35006         * modules/u64 (configure.ac): Likewise.
35007
35008 2009-12-31  Bruno Haible  <bruno@clisp.org>
35009
35010         Use AC_C_INLINE instead of module 'inline' where possible.
35011         * modules/inline (Description): Clarify purpose.
35012         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35013         * modules/count-one-bits (Depends-on): Remove inline.
35014         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35015         * modules/openat (Depends-on): Remove inline.
35016         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35017         instead of depending on module 'inline'.
35018         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35019         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35020         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35021         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35022         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35023         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35024         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35025         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35026         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35027         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35028         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35029         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35030         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35031         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35032         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35033         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35034         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35035         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35036         Likewise.
35037         * modules/unictype/property-ascii-hex-digit (Depends-on,
35038         configure.ac): Likewise.
35039         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35040         configure.ac): Likewise.
35041         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35042         configure.ac): Likewise.
35043         * modules/unictype/property-bidi-block-separator (Depends-on,
35044         configure.ac): Likewise.
35045         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35046         configure.ac): Likewise.
35047         * modules/unictype/property-bidi-common-separator (Depends-on,
35048         configure.ac): Likewise.
35049         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35050         Likewise.
35051         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35052         configure.ac): Likewise.
35053         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35054         configure.ac): Likewise.
35055         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35056         configure.ac): Likewise.
35057         * modules/unictype/property-bidi-european-digit (Depends-on,
35058         configure.ac): Likewise.
35059         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35060         configure.ac): Likewise.
35061         * modules/unictype/property-bidi-left-to-right (Depends-on,
35062         configure.ac): Likewise.
35063         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35064         configure.ac): Likewise.
35065         * modules/unictype/property-bidi-other-neutral (Depends-on,
35066         configure.ac): Likewise.
35067         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35068         Likewise.
35069         * modules/unictype/property-bidi-segment-separator (Depends-on,
35070         configure.ac): Likewise.
35071         * modules/unictype/property-bidi-whitespace (Depends-on,
35072         configure.ac): Likewise.
35073         * modules/unictype/property-combining (Depends-on, configure.ac):
35074         Likewise.
35075         * modules/unictype/property-composite (Depends-on, configure.ac):
35076         Likewise.
35077         * modules/unictype/property-currency-symbol (Depends-on,
35078         configure.ac): Likewise.
35079         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35080         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35081         Likewise.
35082         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35083         configure.ac): Likewise.
35084         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35085         Likewise.
35086         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35087         Likewise.
35088         * modules/unictype/property-extender (Depends-on, configure.ac):
35089         Likewise.
35090         * modules/unictype/property-format-control (Depends-on, configure.ac):
35091         Likewise.
35092         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35093         Likewise.
35094         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35095         Likewise.
35096         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35097         Likewise.
35098         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35099         Likewise.
35100         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35101         Likewise.
35102         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35103         Likewise.
35104         * modules/unictype/property-id-start (Depends-on, configure.ac):
35105         Likewise.
35106         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35107         Likewise.
35108         * modules/unictype/property-ids-binary-operator (Depends-on,
35109         configure.ac): Likewise.
35110         * modules/unictype/property-ids-trinary-operator (Depends-on,
35111         configure.ac): Likewise.
35112         * modules/unictype/property-ignorable-control (Depends-on,
35113         configure.ac): Likewise.
35114         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35115         Likewise.
35116         * modules/unictype/property-join-control (Depends-on, configure.ac):
35117         Likewise.
35118         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35119         Likewise.
35120         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35121         Likewise.
35122         * modules/unictype/property-logical-order-exception (Depends-on,
35123         configure.ac): Likewise.
35124         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35125         Likewise.
35126         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35127         * modules/unictype/property-non-break (Depends-on, configure.ac):
35128         Likewise.
35129         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35130         Likewise.
35131         * modules/unictype/property-numeric (Depends-on, configure.ac):
35132         Likewise.
35133         * modules/unictype/property-other-alphabetic (Depends-on,
35134         configure.ac): Likewise.
35135         * modules/unictype/property-other-default-ignorable-code-point
35136         (Depends-on, configure.ac): Likewise.
35137         * modules/unictype/property-other-grapheme-extend (Depends-on,
35138         configure.ac): Likewise.
35139         * modules/unictype/property-other-id-continue (Depends-on,
35140         configure.ac): Likewise.
35141         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35142         Likewise.
35143         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35144         Likewise.
35145         * modules/unictype/property-other-math (Depends-on, configure.ac):
35146         Likewise.
35147         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35148         Likewise.
35149         * modules/unictype/property-paired-punctuation (Depends-on,
35150         configure.ac): Likewise.
35151         * modules/unictype/property-paragraph-separator (Depends-on,
35152         configure.ac): Likewise.
35153         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35154         Likewise.
35155         * modules/unictype/property-pattern-white-space (Depends-on,
35156         configure.ac): Likewise.
35157         * modules/unictype/property-private-use (Depends-on, configure.ac):
35158         Likewise.
35159         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35160         Likewise.
35161         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35162         Likewise.
35163         * modules/unictype/property-radical (Depends-on, configure.ac):
35164         Likewise.
35165         * modules/unictype/property-sentence-terminal (Depends-on,
35166         configure.ac): Likewise.
35167         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35168         Likewise.
35169         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35170         * modules/unictype/property-terminal-punctuation (Depends-on,
35171         configure.ac): Likewise.
35172         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35173         Likewise.
35174         * modules/unictype/property-unassigned-code-value (Depends-on,
35175         configure.ac): Likewise.
35176         * modules/unictype/property-unified-ideograph (Depends-on,
35177         configure.ac): Likewise.
35178         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35179         Likewise.
35180         * modules/unictype/property-variation-selector (Depends-on,
35181         configure.ac): Likewise.
35182         * modules/unictype/property-white-space (Depends-on, configure.ac):
35183         Likewise.
35184         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35185         Likewise.
35186         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35187         Likewise.
35188         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35189         Likewise.
35190         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35191         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35192         Likewise.
35193
35194 2009-12-31  Bruno Haible  <bruno@clisp.org>
35195
35196         Remove unnecessary AC_C_INLINE invocation.
35197         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35198         since 2009-08-21.
35199
35200 2009-12-31  Jim Meyering  <meyering@redhat.com>
35201
35202         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35203         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35204         With this change, we can all remove the gpg_key_ID = ... definition
35205         from our respective cfg.mk files.
35206
35207         maint.mk: create announcement template in ~/, not in /tmp
35208         * top/maint.mk (emit_upload_commands): Adjust.
35209         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35210         Remove temporary file, .ci-msg.
35211
35212 2009-12-31  Eric Blake  <ebb9@byu.net>
35213
35214         link-warning: always build headers with link warnings
35215         * modules/arpa_inet (Makefile.am): Always build replacement
35216         header.
35217         * modules/ctype (Makefile.am): Likewise.
35218         * modules/dirent (Makefile.am): Likewise.
35219         * modules/inttypes (Makefile.am): Likewise.
35220         * modules/langinfo (Makefile.am): Likewise.
35221         * modules/locale (Makefile.am): Likewise.
35222         * modules/spawn (Makefile.am): Likewise.
35223         * modules/sys_file (Makefile.am): Likewise.
35224         * modules/sys_ioctl (Makefile.am): Likewise.
35225         * modules/sys_select (Makefile.am): Likewise.
35226         * modules/sys_socket (Makefile.am): Likewise.
35227         * modules/sys_times (Makefile.am): Likewise.
35228         * modules/sys_utsname (Makefile.am): Likewise.
35229         * modules/sys_wait (Makefile.am): Likewise.
35230         * modules/wchar (Makefile.am): Likewise.
35231         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35232         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35233         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35234         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35235         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35236         Likewise.
35237         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35238         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35239         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35240         Likewise.
35241         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35242         Likewise.
35243         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35244         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35245         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35246         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35247         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35248         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35249         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35250         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35251         (gl_WCHAR_H_DEFAULTS): Likewise.
35252
35253 2009-12-31  Eric Blake  <ebb9@byu.net>
35254
35255         signal, spawn: use link warnings
35256         * lib/signal.in.h (sigset_t): Make unconditional.
35257         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35258         (sigpending, sigprocmask, sigaction): Add link warnings.
35259         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35260         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35261         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35262         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35263         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35264         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35265         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35266         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35267         (posix_spawn_file_actions_destroy)
35268         (posix_spawn_file_actions_addopen)
35269         (posix_spawn_file_actions_addclose)
35270         (posix_spawn_file_actions_adddup2): Likewise.
35271         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35272         * tests/test-signal.c (main): Enhance test.
35273
35274         spawn: improve wrapper support
35275         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35276         (gl_SPAWN_H_DEFAULTS): New defaults.
35277         * modules/spawn (Makefile.am): Substitute them.
35278         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35279         Only declare if missing or broken.
35280
35281         sys_times, sys_utsname: use include_next
35282         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35283         header.
35284         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35285         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35286         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35287         * modules/sys_times (Depends-on): Add include_next.
35288         (Makefile.am): Substitute additional values.
35289         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35290         * lib/sys_times.in.h (includes): Include native header, if
35291         available.
35292         * lib/sys_utsname.in.h (includes): Likewise.
35293         * tests/test-sys_times.c (main): Enhance test.
35294
35295         fdutimensat: revert prior patch
35296         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35297         utimens.h.
35298         Reported by Bruno Haible.
35299
35300 2009-12-30  Eric Blake  <ebb9@byu.net>
35301
35302         sys_wait: drop link-warning dependency
35303         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35304         link-warning efforts.
35305         * lib/sys_wait.in.h: Likewise.
35306
35307         fdutimensat: remove bogus dependency
35308         * modules/fdutimensat (Depends-on): Drop inline.
35309
35310         unistd: fix typo
35311         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35312
35313 2009-12-30  Bruno Haible  <bruno@clisp.org>
35314
35315         Fix compilation error with Solaris cc.
35316         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35317         * lib/unicase/u16-is-invariant.c: Likewise.
35318         * lib/unicase/u32-is-invariant.c: Likewise.
35319         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35320
35321 2009-12-30  Bruno Haible  <bruno@clisp.org>
35322
35323         Fix test crash.
35324         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35325         locales.
35326         Reported by Simon Josefsson <simon@josefsson.org>.
35327
35328 2009-12-30  Bruno Haible  <bruno@clisp.org>
35329
35330         Fix compilation error on most platforms.
35331         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35332         Reported by Simon Josefsson <simon@josefsson.org>
35333         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35334
35335 2009-12-30  Eric Blake  <ebb9@byu.net>
35336
35337         futimens, utimensat: work around ntfs-3g bug
35338         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35339         a ctime bug is present, and expand workaround to cover ntfs-3g.
35340         * lib/utimens.c (fdutimens, lutimens): Likewise.
35341         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35342         (validate_timespec): Adjust return value.
35343         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35344         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35345         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35346
35347 2009-12-29  Eric Blake  <ebb9@byu.net>
35348
35349         link-warning: make usage consistent
35350         * modules/ctype (Depends-on): Add link-warning.
35351         (Makefile.am): Update rules accordingly.
35352         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35353         * modules/locale (Depends-on, Makefile.am): Likewise.
35354         * modules/sys_file (Makefile.am): Likewise.
35355         * modules/getopt-posix (Makefile.am): Delete unused link warning
35356         efforts.
35357         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35358         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35359         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35360         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35361
35362         stdio: remove unused variables
35363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35364         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35365         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35366
35367         tests: test more substitute headers
35368         * modules/ctype-tests: New file.
35369         * modules/dirent-tests: Likewise.
35370         * modules/spawn-tests: Likewise.
35371         * modules/sys_file-tests: Likewise.
35372         * modules/sys_ioctl-tests: Likewise.
35373         * modules/sys_wait-tests: Likewise.
35374         * tests/test-ctype.c: Likewise.
35375         * tests/test-dirent.c: Likewise.
35376         * tests/test-spawn.c: Likewise.
35377         * tests/test-sys_file.c: Likewise.
35378         * tests/test-sys_ioctl.c: Likewise.
35379         * tests/test-sys_wait.c: Likewise.
35380         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35381         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35382         whether or not flock is in use.
35383
35384         tests: remove License section from module
35385         * modules/arpa_inet-tests: Remove unneeded section.
35386         * modules/byteswap-tests: Likewise.
35387         * modules/ceilf-tests: Likewise.
35388         * modules/ceill-tests: Likewise.
35389         * modules/crypto/des-tests: Likewise.
35390         * modules/crypto/gc-arcfour-tests: Likewise.
35391         * modules/crypto/gc-arctwo-tests: Likewise.
35392         * modules/crypto/gc-des-tests: Likewise.
35393         * modules/crypto/gc-hmac-md5-tests: Likewise.
35394         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35395         * modules/crypto/gc-md2-tests: Likewise.
35396         * modules/crypto/gc-md4-tests: Likewise.
35397         * modules/crypto/gc-md5-tests: Likewise.
35398         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35399         * modules/crypto/gc-rijndael-tests: Likewise.
35400         * modules/crypto/gc-sha1-tests: Likewise.
35401         * modules/crypto/gc-tests: Likewise.
35402         * modules/crypto/md2-tests: Likewise.
35403         * modules/crypto/md4-tests: Likewise.
35404         * modules/fcntl-h-tests: Likewise.
35405         * modules/floorf-tests: Likewise.
35406         * modules/floorl-tests: Likewise.
35407         * modules/frexp-nolibm-tests: Likewise.
35408         * modules/frexp-tests: Likewise.
35409         * modules/frexpl-nolibm-tests: Likewise.
35410         * modules/frexpl-tests: Likewise.
35411         * modules/getaddrinfo-tests: Likewise.
35412         * modules/inttypes-tests: Likewise.
35413         * modules/isfinite-tests: Likewise.
35414         * modules/isinf-tests: Likewise.
35415         * modules/ldexpl-tests: Likewise.
35416         * modules/locale-tests: Likewise.
35417         * modules/math-tests: Likewise.
35418         * modules/netdb-tests: Likewise.
35419         * modules/netinet_in-tests: Likewise.
35420         * modules/printf-frexp-tests: Likewise.
35421         * modules/printf-frexpl-tests: Likewise.
35422         * modules/priv-set-tests: Likewise.
35423         * modules/random_r-tests: Likewise.
35424         * modules/round-tests: Likewise.
35425         * modules/roundf-tests: Likewise.
35426         * modules/roundl-tests: Likewise.
35427         * modules/search-tests: Likewise.
35428         * modules/select-tests: Likewise.
35429         * modules/signal-tests: Likewise.
35430         * modules/stdbool-tests: Likewise.
35431         * modules/stddef-tests: Likewise.
35432         * modules/stdint-tests: Likewise.
35433         * modules/stdio-tests: Likewise.
35434         * modules/stdlib-tests: Likewise.
35435         * modules/string-tests: Likewise.
35436         * modules/strings-tests: Likewise.
35437         * modules/sys_select-tests: Likewise.
35438         * modules/sys_socket-tests: Likewise.
35439         * modules/sys_stat-tests: Likewise.
35440         * modules/sys_time-tests: Likewise.
35441         * modules/sys_utsname-tests: Likewise.
35442         * modules/sysexits-tests: Likewise.
35443         * modules/time-tests: Likewise.
35444         * modules/trunc-tests: Likewise.
35445         * modules/truncf-tests: Likewise.
35446         * modules/truncl-tests: Likewise.
35447         * modules/tsearch-tests: Likewise.
35448         * modules/unistd-tests: Likewise.
35449         * modules/wchar-tests: Likewise.
35450         * modules/wctype-tests: Likewise.
35451
35452         tests: fix license on several tests
35453         * tests/test-des.c: Update to GPLv3+.
35454         * tests/test-flock.c: Likewise.
35455         * tests/test-fsync.c: Likewise.
35456         * tests/test-futimens.h: Likewise.
35457         * tests/test-gc-arcfour.c: Likewise.
35458         * tests/test-gc-arctwo.c: Likewise.
35459         * tests/test-gc-des.c: Likewise.
35460         * tests/test-gc-hmac-md5.c: Likewise.
35461         * tests/test-gc-hmac-sha1.c: Likewise.
35462         * tests/test-gc-md2.c: Likewise.
35463         * tests/test-gc-md4.c: Likewise.
35464         * tests/test-gc-md5.c: Likewise.
35465         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35466         * tests/test-gc-rijndael.c: Likewise.
35467         * tests/test-gc-sha1.c: Likewise.
35468         * tests/test-gc.c: Likewise.
35469         * tests/test-getcwd.c: Likewise.
35470         * tests/test-link.c: Likewise.
35471         * tests/test-link.h: Likewise.
35472         * tests/test-lutimens.h: Likewise.
35473         * tests/test-md2.c: Likewise.
35474         * tests/test-md4.c: Likewise.
35475         * tests/test-mkdir.h: Likewise.
35476         * tests/test-rename.c: Likewise.
35477         * tests/test-rename.h: Likewise.
35478         * tests/test-safe-alloc.c: Likewise.
35479         * tests/test-utimens-common.h: Likewise.
35480         * tests/test-utimens.h: Likewise.
35481
35482         maint: sync license texts
35483         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35484         * doc/gpl-3.0.texi: Revert copyright year update.
35485         * doc/lgpl-3.0.texi: Likewise.
35486
35487 2009-12-29  Jim Meyering  <meyering@redhat.com>
35488
35489         update nearly all FSF copyright year lists to include 2009
35490         The files named by the following are exempted:
35491             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35492               test -f "$dst" && { echo "$dst"; continue; }
35493               test -d "$dst" || continue
35494               echo "$dst"/$(basename "$src")
35495             done > exempt
35496             git ls-files tests/unictype >> exempt
35497         In the remaining files, convert to all-interval notation if
35498         - there is already at least one year interval like 2000-2003
35499         - the file is maintained by me
35500         - the file is in lib/uni*/, where that style already prevails
35501         Otherwise, use update-copyright's default.
35502
35503 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35504         and Eric Blake  <ebb9@byu.net>
35505
35506         tests: don't require debug system() to pass
35507         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35508         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35509         * tests/test-unlink.h (test_unlink_func): Likewise.
35510         * tests/test-fstatat.c (main): ...into callers.
35511         * tests/test-lstat.c (main): Likewise.
35512         * tests/test-rmdir.c (main): Likewise.
35513         * tests/test-unlink.c (main): Likewise.
35514         * tests/test-unlinkat.c (main): Likewise.
35515         * tests/test-areadlink-with-size.c (main): Don't require a
35516         debug-only system call to pass, aiding cross-testing to mingw.
35517         * tests/test-areadlink.c (main): Likewise.
35518         * tests/test-areadlinkat-with-size.c (main): Likewise.
35519         * tests/test-areadlinkat.c (main): Likewise.
35520         * tests/test-canonicalize-lgpl.c (main): Likewise.
35521         * tests/test-canonicalize.c (main): Likewise.
35522         * tests/test-chown.c (main): Likewise.
35523         * tests/test-fchownat.c (main): Likewise.
35524         * tests/test-lchown.c (main): Likewise.
35525         * tests/test-fdutimensat.c (main): Likewise.
35526         * tests/test-futimens.c (main): Likewise.
35527         * tests/test-link.c (main): Likewise.
35528         * tests/test-linkat.c (main): Likewise.
35529         * tests/test-mkdir.c (main): Likewise.
35530         * tests/test-mkdirat.c (main): Likewise.
35531         * tests/test-mkfifo.c (main): Likewise.
35532         * tests/test-mkfifoat.c (main): Likewise.
35533         * tests/test-mknod.c (main): Likewise.
35534         * tests/test-readlink.c (main): Likewise.
35535         * tests/test-remove.c (main): Likewise.
35536         * tests/test-rename.c (main): Likewise.
35537         * tests/test-renameat.c (main): Likewise.
35538         * tests/test-symlink.c (main): Likewise.
35539         * tests/test-symlinkat.c (main): Likewise.
35540         * tests/test-utimens.c (main): Likewise.
35541         * tests/test-utimensat.c (main): Likewise.
35542
35543 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35544
35545         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35546         on $(UNUSED_PARAMETER_H) to avoid build failure.
35547
35548 2009-12-28  Jim Meyering  <meyering@redhat.com>
35549
35550         update-copyright: you may specify a max. line length other than 72
35551         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35552
35553         maint: use consistent FSF copyright line syntax
35554         * lib/posixtm.c: Add missing comma in FSF copyright line.
35555         * lib/posixtm.h: Likewise.
35556         * lib/getugroups.c: Add missing ", Inc.".
35557
35558         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35559         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35560         FSF copyright line.  Remove trailing blanks.
35561
35562 2009-12-28  Eric Blake  <ebb9@byu.net>
35563
35564         test-dup2: reduce dependencies
35565         * modules/cloexec (Configure.ac): Set witness.
35566         * modules/dup2-tests (Depends-on): Drop cloexec.
35567         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35568         not present.
35569         Suggested by Bruno Haible.
35570
35571 2009-12-26  Bruno Haible  <bruno@clisp.org>
35572
35573         Remove an unneeded dependency.
35574         * modules/fseterr (Depends-on): Remove dup2.
35575
35576 2009-12-26  Eric Blake  <ebb9@byu.net>
35577
35578         tests: use macros.h in more places
35579         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35580         (ASSERT_STREAM): Provide default of stderr.
35581         * tests/test-dirent-safer.c: Include macros.h, using alternate
35582         stream for assertions.
35583         * tests/test-dup-safer.c: Likewise.
35584         * tests/test-freopen-safer.c: Likewise.
35585         * tests/test-getopt.c: Likewise.
35586         * tests/test-openat-safer.c: Likewise.
35587         * tests/test-pipe.c: Likewise.
35588         * tests/test-popen-safer.c: Likewise.
35589         * modules/dirent-safer-tests (Files): Include macros.h.
35590         * modules/unistd-safer-tests (Files): Likewise.
35591         * modules/freopen-safer-tests (Files): Likewise.
35592         * modules/getopt-posix-tests (Files): Likewise.
35593         * modules/openat-safer-tests (Files): Likewise.
35594         * modules/pipe-tests (Files): Likewise.
35595
35596 2009-12-26  Bruno Haible  <bruno@clisp.org>
35597
35598         javacomp: Portability fix.
35599         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35600         that it also works on Solaris.
35601
35602 2009-12-26  Bruno Haible  <bruno@clisp.org>
35603
35604         localename: Fix storage allocation of gl_locale_name_thread's result.
35605         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35606         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35607         all platforms that have 'uselocale'.
35608         (gl_locale_name_thread_unsafe): New function, extracted from
35609         gl_locale_name_thread.
35610         (gl_locale_name_thread): Call struniq on all platforms that have
35611         'uselocale'.
35612         * tests/test-localename.c (test_locale_name_thread): Check that the
35613         resulting strings are permanently allocated.
35614         * modules/localename-tests (Depends-on): Add strdup.
35615
35616 2009-12-26  Bruno Haible  <bruno@clisp.org>
35617
35618         * tests/test-localename.c (categories): Fill in the strings.
35619
35620 2009-12-26  Jim Meyering  <meyering@redhat.com>
35621
35622         isdir: complete the removal of m4/isdir.m4
35623         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35624
35625         isdir: clean up, since at least grep still uses it
35626         * lib/isdir.c: Include "isdir.h".
35627         (S_ISDIR): Remove now-unneeded definition.
35628         * modules/isdir (Files): Add lib/isdir.h.
35629         * lib/isdir.h: New file, with declaration.
35630         * m4/isdir.m4: Remove file -- unneeded.
35631
35632 2009-12-25  Bruno Haible  <bruno@clisp.org>
35633
35634         selinux-h: Make generated .h files standalone.
35635         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35636         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35637         * lib/se-selinux.in.h: Likewise.
35638         * modules/selinux-h (Depends-on): Add unused-parameter.
35639         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35640         selinux/selinux.h and selinux/context.h.
35641         Suggested by Eric Blake.
35642
35643 2009-12-25  Bruno Haible  <bruno@clisp.org>
35644
35645         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35646         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35647         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35648         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35649         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35650
35651 2009-12-24  Bruno Haible  <bruno@clisp.org>
35652
35653         openat: Fix warning.
35654         * lib/openat-proc.c: Include <unistd.h>.
35655
35656 2009-12-24  Bruno Haible  <bruno@clisp.org>
35657
35658         New module 'unused-parameter'.
35659         * build-aux/unused-parameter.h: New file, extracted from earlier
35660         gnulib-common.m4.
35661         * modules/unused-parameter: New file.
35662         * lib/unistr.h: Include unused-parameter.h.
35663         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35664         _GL_UNUSED.
35665         * modules/unistr/base (Depends-on): Add unused-parameter.
35666
35667 2009-12-24  Bruno Haible  <bruno@clisp.org>
35668
35669         Add missing dependencies to 'extensions' module.
35670         * m4/extensions.m4: Add comment.
35671         * modules/accept4 (Depends-on): Add extensions.
35672         * modules/dup3 (Depends-on): Likewise.
35673         * modules/fcntl (Depends-on): Likewise.
35674         * modules/futimens (Depends-on): Likewise.
35675         * modules/mknod (Depends-on): Likewise.
35676         * modules/pipe2 (Depends-on): Likewise.
35677         * modules/stat-time (Depends-on): Likewise.
35678         * modules/strcasestr-simple (Depends-on): Likewise.
35679         * modules/strsignal (Depends-on): Likewise.
35680         * modules/utimensat (Depends-on): Likewise.
35681         * modules/localcharset (Depends-on): Likewise. Needed because of
35682         gl_FCNTL_O_FLAGS.
35683         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35684         AC_TYPE_MBSTATE_T.
35685         * modules/wcsnrtombs (Depends-on): Likewise.
35686         * modules/wcsrtombs (Depends-on): Likewise.
35687
35688 2009-12-24  Bruno Haible  <bruno@clisp.org>
35689
35690         binary-io: Avoid gcc warning due to SET_BINARY.
35691         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35692         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35693
35694 2009-12-24  Bruno Haible  <bruno@clisp.org>
35695
35696         Avoid future namespace pollution on glibc systems.
35697         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35698         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35699         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35700         glibc systems.
35701
35702 2009-12-24  Bruno Haible  <bruno@clisp.org>
35703
35704         Refactor common macros used in tests.
35705         * tests/macros.h: New file.
35706         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35707         and/or <stdlib.h>, if appropriate.
35708         (ASSERT, SIZEOF): Remove macros.
35709         * tests/test-areadlink-with-size.c: Likewise.
35710         * tests/test-areadlinkat.c: Likewise.
35711         * tests/test-areadlinkat-with-size.c: Likewise.
35712         * tests/test-argmatch.c: Likewise.
35713         * tests/test-argv-iter.c: Likewise.
35714         * tests/test-array-mergesort.c: Likewise.
35715         * tests/test-array_list.c: Likewise.
35716         * tests/test-array_oset.c: Likewise.
35717         * tests/test-avltree_list.c: Likewise.
35718         * tests/test-avltree_oset.c: Likewise.
35719         * tests/test-avltreehash_list.c: Likewise.
35720         * tests/test-base64.c: Likewise.
35721         * tests/test-binary-io.c: Likewise.
35722         * tests/test-bitrotate.c: Likewise.
35723         * tests/test-btowc.c: Likewise.
35724         * tests/test-byteswap.c: Likewise.
35725         * tests/test-c-ctype.c: Likewise.
35726         * tests/test-c-stack.c: Likewise.
35727         * tests/test-c-strcasecmp.c: Likewise.
35728         * tests/test-c-strcasestr.c: Likewise.
35729         * tests/test-c-strncasecmp.c: Likewise.
35730         * tests/test-c-strstr.c: Likewise.
35731         * tests/test-canonicalize-lgpl.c: Likewise.
35732         * tests/test-canonicalize.c: Likewise.
35733         * tests/test-carray_list.c: Likewise.
35734         * tests/test-ceilf1.c: Likewise.
35735         * tests/test-ceilf2.c: Likewise.
35736         * tests/test-ceill.c: Likewise.
35737         * tests/test-chown.c: Likewise.
35738         * tests/test-cloexec.c: Likewise.
35739         * tests/test-copy-acl.c: Likewise.
35740         * tests/test-copy-file.c: Likewise.
35741         * tests/test-count-one-bits.c: Likewise.
35742         * tests/test-dprintf-posix.c: Likewise.
35743         * tests/test-dup2.c: Likewise.
35744         * tests/test-dup3.c: Likewise.
35745         * tests/test-duplocale.c: Likewise.
35746         * tests/test-fbufmode.c: Likewise.
35747         * tests/test-fchdir.c: Likewise.
35748         * tests/test-fchownat.c: Likewise.
35749         * tests/test-fcntl-safer.c: Likewise.
35750         * tests/test-fcntl.c: Likewise.
35751         * tests/test-fdopendir.c: Likewise.
35752         * tests/test-fdutimensat.c: Likewise.
35753         * tests/test-fflush2.c: Likewise.
35754         * tests/test-file-has-acl.c: Likewise.
35755         * tests/test-filevercmp.c: Likewise.
35756         * tests/test-flock.c: Likewise.
35757         * tests/test-floorf1.c: Likewise.
35758         * tests/test-floorf2.c: Likewise.
35759         * tests/test-floorl.c: Likewise.
35760         * tests/test-fnmatch.c: Likewise.
35761         * tests/test-fopen.h: Likewise.
35762         * tests/test-fpending.c: Likewise.
35763         * tests/test-fprintf-posix.c: Likewise.
35764         * tests/test-fpurge.c: Likewise.
35765         * tests/test-freadable.c: Likewise.
35766         * tests/test-freadahead.c: Likewise.
35767         * tests/test-freading.c: Likewise.
35768         * tests/test-freadptr.c: Likewise.
35769         * tests/test-freadptr2.c: Likewise.
35770         * tests/test-freadseek.c: Likewise.
35771         * tests/test-freopen.c: Likewise.
35772         * tests/test-frexp.c: Likewise.
35773         * tests/test-frexpl.c: Likewise.
35774         * tests/test-fseek.c: Likewise.
35775         * tests/test-fseeko.c: Likewise.
35776         * tests/test-fstatat.c: Likewise.
35777         * tests/test-fstrcmp.c: Likewise.
35778         * tests/test-fsync.c: Likewise.
35779         * tests/test-ftell.c: Likewise.
35780         * tests/test-ftello.c: Likewise.
35781         * tests/test-func.c: Likewise.
35782         * tests/test-futimens.c: Likewise.
35783         * tests/test-fwritable.c: Likewise.
35784         * tests/test-fwriting.c: Likewise.
35785         * tests/test-getcwd.c: Likewise.
35786         * tests/test-getdate.c: Likewise.
35787         * tests/test-getdelim.c: Likewise.
35788         * tests/test-getdtablesize.c: Likewise.
35789         * tests/test-getgroups.c: Likewise.
35790         * tests/test-getline.c: Likewise.
35791         * tests/test-getndelim2.c: Likewise.
35792         * tests/test-glob.c: Likewise.
35793         * tests/test-hash.c: Likewise.
35794         * tests/test-i-ring.c: Likewise.
35795         * tests/test-iconv-utf.c: Likewise.
35796         * tests/test-iconv.c: Likewise.
35797         * tests/test-idpriv-drop.c: Likewise.
35798         * tests/test-idpriv-droptemp.c: Likewise.
35799         * tests/test-inet_ntop.c: Likewise.
35800         * tests/test-inet_pton.c: Likewise.
35801         * tests/test-isblank.c: Likewise.
35802         * tests/test-isfinite.c: Likewise.
35803         * tests/test-isinf.c: Likewise.
35804         * tests/test-isnan.c: Likewise.
35805         * tests/test-isnand.h: Likewise.
35806         * tests/test-isnanf.h: Likewise.
35807         * tests/test-isnanl.h: Likewise.
35808         * tests/test-lchown.c: Likewise.
35809         * tests/test-ldexpl.c: Likewise.
35810         * tests/test-link.c: Likewise.
35811         * tests/test-linkat.c: Likewise.
35812         * tests/test-linked_list.c: Likewise.
35813         * tests/test-linkedhash_list.c: Likewise.
35814         * tests/test-localename.c: Likewise.
35815         * tests/test-lseek.c: Likewise.
35816         * tests/test-lstat.c: Likewise.
35817         * tests/test-mbmemcasecmp.c: Likewise.
35818         * tests/test-mbmemcasecoll.c: Likewise.
35819         * tests/test-mbrtowc.c: Likewise.
35820         * tests/test-mbscasecmp.c: Likewise.
35821         * tests/test-mbscasestr1.c: Likewise.
35822         * tests/test-mbscasestr2.c: Likewise.
35823         * tests/test-mbscasestr3.c: Likewise.
35824         * tests/test-mbscasestr4.c: Likewise.
35825         * tests/test-mbschr.c: Likewise.
35826         * tests/test-mbscspn.c: Likewise.
35827         * tests/test-mbsinit.c: Likewise.
35828         * tests/test-mbsncasecmp.c: Likewise.
35829         * tests/test-mbsnrtowcs.c: Likewise.
35830         * tests/test-mbspbrk.c: Likewise.
35831         * tests/test-mbspcasecmp.c: Likewise.
35832         * tests/test-mbsrchr.c: Likewise.
35833         * tests/test-mbsrtowcs.c: Likewise.
35834         * tests/test-mbsspn.c: Likewise.
35835         * tests/test-mbsstr1.c: Likewise.
35836         * tests/test-mbsstr2.c: Likewise.
35837         * tests/test-mbsstr3.c: Likewise.
35838         * tests/test-memchr.c: Likewise.
35839         * tests/test-memchr2.c: Likewise.
35840         * tests/test-memcmp.c: Likewise.
35841         * tests/test-memmem.c: Likewise.
35842         * tests/test-memrchr.c: Likewise.
35843         * tests/test-mkdir.c: Likewise.
35844         * tests/test-mkdirat.c: Likewise.
35845         * tests/test-mkfifo.c: Likewise.
35846         * tests/test-mkfifoat.c: Likewise.
35847         * tests/test-mknod.c: Likewise.
35848         * tests/test-nanosleep.c: Likewise.
35849         * tests/test-nl_langinfo.c: Likewise.
35850         * tests/test-obstack-printf.c: Likewise.
35851         * tests/test-open.c: Likewise.
35852         * tests/test-openat.c: Likewise.
35853         * tests/test-pipe-filter-gi1.c: Likewise.
35854         * tests/test-pipe-filter-gi2-main.c: Likewise.
35855         * tests/test-pipe-filter-ii1.c: Likewise.
35856         * tests/test-pipe-filter-ii2-main.c: Likewise.
35857         * tests/test-pipe2.c: Likewise.
35858         * tests/test-popen.h: Likewise.
35859         * tests/test-posixtm.c: Likewise.
35860         * tests/test-pread.c: Likewise.
35861         * tests/test-printf-frexp.c: Likewise.
35862         * tests/test-printf-frexpl.c: Likewise.
35863         * tests/test-printf-posix.c: Likewise.
35864         * tests/test-priv-set.c: Likewise.
35865         * tests/test-quotearg.c: Likewise.
35866         * tests/test-random_r.c: Likewise.
35867         * tests/test-rawmemchr.c: Likewise.
35868         * tests/test-rbtree_list.c: Likewise.
35869         * tests/test-rbtree_oset.c: Likewise.
35870         * tests/test-rbtreehash_list.c: Likewise.
35871         * tests/test-readlink.c: Likewise.
35872         * tests/test-remove.c: Likewise.
35873         * tests/test-rename.c: Likewise.
35874         * tests/test-renameat.c: Likewise.
35875         * tests/test-rmdir.c: Likewise.
35876         * tests/test-round1.c: Likewise.
35877         * tests/test-roundf1.c: Likewise.
35878         * tests/test-roundl.c: Likewise.
35879         * tests/test-safe-alloc.c: Likewise.
35880         * tests/test-sameacls.c: Likewise.
35881         * tests/test-set-mode-acl.c: Likewise.
35882         * tests/test-setenv.c: Likewise.
35883         * tests/test-sigaction.c: Likewise.
35884         * tests/test-signbit.c: Likewise.
35885         * tests/test-sleep.c: Likewise.
35886         * tests/test-snprintf-posix.c: Likewise.
35887         * tests/test-snprintf.c: Likewise.
35888         * tests/test-sprintf-posix.c: Likewise.
35889         * tests/test-stat-time.c: Likewise.
35890         * tests/test-stat.c: Likewise.
35891         * tests/test-strcasestr.c: Likewise.
35892         * tests/test-strchrnul.c: Likewise.
35893         * tests/test-strerror.c: Likewise.
35894         * tests/test-striconv.c: Likewise.
35895         * tests/test-striconveh.c: Likewise.
35896         * tests/test-striconveha.c: Likewise.
35897         * tests/test-strsignal.c: Likewise.
35898         * tests/test-strstr.c: Likewise.
35899         * tests/test-strtod.c: Likewise.
35900         * tests/test-strverscmp.c: Likewise.
35901         * tests/test-symlink.c: Likewise.
35902         * tests/test-symlinkat.c: Likewise.
35903         * tests/test-trunc1.c: Likewise.
35904         * tests/test-trunc2.c: Likewise.
35905         * tests/test-truncf1.c: Likewise.
35906         * tests/test-truncf2.c: Likewise.
35907         * tests/test-truncl.c: Likewise.
35908         * tests/test-uname.c: Likewise.
35909         * tests/test-unlink.c: Likewise.
35910         * tests/test-unlinkat.c: Likewise.
35911         * tests/test-unsetenv.c: Likewise.
35912         * tests/test-usleep.c: Likewise.
35913         * tests/test-utimens.c: Likewise.
35914         * tests/test-utimensat.c: Likewise.
35915         * tests/test-vasnprintf-posix.c: Likewise.
35916         * tests/test-vasnprintf-posix2.c: Likewise.
35917         * tests/test-vasnprintf.c: Likewise.
35918         * tests/test-vasprintf-posix.c: Likewise.
35919         * tests/test-vasprintf.c: Likewise.
35920         * tests/test-vdprintf-posix.c: Likewise.
35921         * tests/test-vfprintf-posix.c: Likewise.
35922         * tests/test-vprintf-posix.c: Likewise.
35923         * tests/test-vsnprintf-posix.c: Likewise.
35924         * tests/test-vsnprintf.c: Likewise.
35925         * tests/test-vsprintf-posix.c: Likewise.
35926         * tests/test-wcrtomb.c: Likewise.
35927         * tests/test-wcsnrtombs.c: Likewise.
35928         * tests/test-wcsrtombs.c: Likewise.
35929         * tests/test-wctype.c: Likewise.
35930         * tests/test-wcwidth.c: Likewise.
35931         * tests/test-xfprintf-posix.c: Likewise.
35932         * tests/test-xmemdup0.c: Likewise.
35933         * tests/test-xprintf-posix.c: Likewise.
35934         * tests/test-xvasprintf.c: Likewise.
35935         * tests/unicase/test-locale-language.c: Likewise.
35936         * tests/unicase/test-mapping-part1.h: Likewise.
35937         * tests/unicase/test-predicate-part1.h: Likewise.
35938         * tests/unicase/test-u8-casecmp.c: Likewise.
35939         * tests/unicase/test-u8-casecoll.c: Likewise.
35940         * tests/unicase/test-u8-casefold.c: Likewise.
35941         * tests/unicase/test-u8-is-cased.c: Likewise.
35942         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35943         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35944         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35945         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35946         * tests/unicase/test-u8-tolower.c: Likewise.
35947         * tests/unicase/test-u8-totitle.c: Likewise.
35948         * tests/unicase/test-u8-toupper.c: Likewise.
35949         * tests/unicase/test-u16-casecmp.c: Likewise.
35950         * tests/unicase/test-u16-casecoll.c: Likewise.
35951         * tests/unicase/test-u16-casefold.c: Likewise.
35952         * tests/unicase/test-u16-is-cased.c: Likewise.
35953         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35954         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35955         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35956         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35957         * tests/unicase/test-u16-tolower.c: Likewise.
35958         * tests/unicase/test-u16-totitle.c: Likewise.
35959         * tests/unicase/test-u16-toupper.c: Likewise.
35960         * tests/unicase/test-u32-casecmp.c: Likewise.
35961         * tests/unicase/test-u32-casecoll.c: Likewise.
35962         * tests/unicase/test-u32-casefold.c: Likewise.
35963         * tests/unicase/test-u32-is-cased.c: Likewise.
35964         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35965         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35966         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35967         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35968         * tests/unicase/test-u32-tolower.c: Likewise.
35969         * tests/unicase/test-u32-totitle.c: Likewise.
35970         * tests/unicase/test-u32-toupper.c: Likewise.
35971         * tests/unicase/test-ulc-casecmp.c: Likewise.
35972         * tests/unicase/test-ulc-casecoll.c: Likewise.
35973         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35974         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35975         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35976         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35977         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35978         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35979         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35980         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35981         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35982         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35983         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35984         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35985         * tests/unictype/test-bidi_byname.c: Likewise.
35986         * tests/unictype/test-bidi_name.c: Likewise.
35987         * tests/unictype/test-bidi_of.c: Likewise.
35988         * tests/unictype/test-bidi_test.c: Likewise.
35989         * tests/unictype/test-block_list.c: Likewise.
35990         * tests/unictype/test-block_of.c: Likewise.
35991         * tests/unictype/test-block_test.c: Likewise.
35992         * tests/unictype/test-categ_and.c: Likewise.
35993         * tests/unictype/test-categ_and_not.c: Likewise.
35994         * tests/unictype/test-categ_byname.c: Likewise.
35995         * tests/unictype/test-categ_name.c: Likewise.
35996         * tests/unictype/test-categ_none.c: Likewise.
35997         * tests/unictype/test-categ_of.c: Likewise.
35998         * tests/unictype/test-categ_or.c: Likewise.
35999         * tests/unictype/test-categ_test_withtable.c: Likewise.
36000         * tests/unictype/test-combining.c: Likewise.
36001         * tests/unictype/test-decdigit.c: Likewise.
36002         * tests/unictype/test-digit.c: Likewise.
36003         * tests/unictype/test-mirror.c: Likewise.
36004         * tests/unictype/test-numeric.c: Likewise.
36005         * tests/unictype/test-pr_byname.c: Likewise.
36006         * tests/unictype/test-pr_test.c: Likewise.
36007         * tests/unictype/test-predicate-part1.h: Likewise.
36008         * tests/unictype/test-scripts.c: Likewise.
36009         * tests/unictype/test-sy_c_ident.c: Likewise.
36010         * tests/unictype/test-sy_java_ident.c: Likewise.
36011         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36012         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36013         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36014         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36015         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36016         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36017         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36018         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36019         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36020         * tests/uninorm/test-compat-decomposition.c: Likewise.
36021         * tests/uninorm/test-composition.c: Likewise.
36022         * tests/uninorm/test-decomposing-form.c: Likewise.
36023         * tests/uninorm/test-decomposition.c: Likewise.
36024         * tests/uninorm/test-u8-nfc.c: Likewise.
36025         * tests/uninorm/test-u8-nfd.c: Likewise.
36026         * tests/uninorm/test-u8-nfkc.c: Likewise.
36027         * tests/uninorm/test-u8-nfkd.c: Likewise.
36028         * tests/uninorm/test-u8-normcmp.c: Likewise.
36029         * tests/uninorm/test-u8-normcoll.c: Likewise.
36030         * tests/uninorm/test-u16-nfc.c: Likewise.
36031         * tests/uninorm/test-u16-nfd.c: Likewise.
36032         * tests/uninorm/test-u16-nfkc.c: Likewise.
36033         * tests/uninorm/test-u16-nfkd.c: Likewise.
36034         * tests/uninorm/test-u16-normcmp.c: Likewise.
36035         * tests/uninorm/test-u16-normcoll.c: Likewise.
36036         * tests/uninorm/test-u32-nfc.c: Likewise.
36037         * tests/uninorm/test-u32-nfd.c: Likewise.
36038         * tests/uninorm/test-u32-nfkc.c: Likewise.
36039         * tests/uninorm/test-u32-nfkd.c: Likewise.
36040         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36041         * tests/uninorm/test-u32-normcmp.c: Likewise.
36042         * tests/uninorm/test-u32-normcoll.c: Likewise.
36043         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36044         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36045         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36046         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36047         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36048         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36049         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36050         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36051         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36052         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36053         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36054         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36055         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36056         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36057         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36058         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36059         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36060         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36061         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36062         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36063         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36064         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36065         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36066         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36067         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36068         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36069         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36070         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36071         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36072         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36073         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36074         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36075         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36076         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36077         * tests/uniwidth/test-u8-width.c: Likewise.
36078         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36079         * tests/uniwidth/test-u16-width.c: Likewise.
36080         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36081         * tests/uniwidth/test-u32-width.c: Likewise.
36082         * tests/uniwidth/test-uc_width.c: Likewise.
36083         * tests/uniwidth/test-uc_width2.c: Likewise.
36084         * modules/acl-tests (Files): Add tests/macros.h.
36085         * modules/areadlink-tests (Files): Likewise.
36086         * modules/areadlink-with-size-tests (Files): Likewise.
36087         * modules/areadlinkat-tests (Files): Likewise.
36088         * modules/areadlinkat-with-size-tests (Files): Likewise.
36089         * modules/argmatch-tests (Files): Likewise.
36090         * modules/argv-iter-tests (Files): Likewise.
36091         * modules/array-list-tests (Files): Likewise.
36092         * modules/array-mergesort-tests (Files): Likewise.
36093         * modules/array-oset-tests (Files): Likewise.
36094         * modules/avltree-list-tests (Files): Likewise.
36095         * modules/avltree-oset-tests (Files): Likewise.
36096         * modules/avltreehash-list-tests (Files): Likewise.
36097         * modules/base64-tests (Files): Likewise.
36098         * modules/binary-io-tests (Files): Likewise.
36099         * modules/bitrotate-tests (Files): Likewise.
36100         * modules/btowc-tests (Files): Likewise.
36101         * modules/byteswap-tests (Files): Likewise.
36102         * modules/c-ctype-tests (Files): Likewise.
36103         * modules/c-stack-tests (Files): Likewise.
36104         * modules/c-strcase-tests (Files): Likewise.
36105         * modules/c-strcasestr-tests (Files): Likewise.
36106         * modules/c-strstr-tests (Files): Likewise.
36107         * modules/canonicalize-lgpl-tests (Files): Likewise.
36108         * modules/canonicalize-tests (Files): Likewise.
36109         * modules/carray-list-tests (Files): Likewise.
36110         * modules/ceilf-tests (Files): Likewise.
36111         * modules/ceill-tests (Files): Likewise.
36112         * modules/chown-tests (Files): Likewise.
36113         * modules/cloexec-tests (Files): Likewise.
36114         * modules/copy-file-tests (Files): Likewise.
36115         * modules/count-one-bits-tests (Files): Likewise.
36116         * modules/dprintf-posix-tests (Files): Likewise.
36117         * modules/dup2-tests (Files): Likewise.
36118         * modules/dup3-tests (Files): Likewise.
36119         * modules/duplocale-tests (Files): Likewise.
36120         * modules/fbufmode-tests (Files): Likewise.
36121         * modules/fchdir-tests (Files): Likewise.
36122         * modules/fcntl-safer-tests (Files): Likewise.
36123         * modules/fcntl-tests (Files): Likewise.
36124         * modules/fdopendir-tests (Files): Likewise.
36125         * modules/fdutimensat-tests (Files): Likewise.
36126         * modules/fflush-tests (Files): Likewise.
36127         * modules/filevercmp-tests (Files): Likewise.
36128         * modules/flock-tests (Files): Likewise.
36129         * modules/floorf-tests (Files): Likewise.
36130         * modules/floorl-tests (Files): Likewise.
36131         * modules/fnmatch-tests (Files): Likewise.
36132         * modules/fopen-safer-tests (Files): Likewise.
36133         * modules/fopen-tests (Files): Likewise.
36134         * modules/fpending-tests (Files): Likewise.
36135         * modules/fprintf-posix-tests (Files): Likewise.
36136         * modules/fpurge-tests (Files): Likewise.
36137         * modules/freadable-tests (Files): Likewise.
36138         * modules/freadahead-tests (Files): Likewise.
36139         * modules/freading-tests (Files): Likewise.
36140         * modules/freadptr-tests (Files): Likewise.
36141         * modules/freadseek-tests (Files): Likewise.
36142         * modules/freopen-tests (Files): Likewise.
36143         * modules/frexp-nolibm-tests (Files): Likewise.
36144         * modules/frexp-tests (Files): Likewise.
36145         * modules/frexpl-nolibm-tests (Files): Likewise.
36146         * modules/frexpl-tests (Files): Likewise.
36147         * modules/fseek-tests (Files): Likewise.
36148         * modules/fseeko-tests (Files): Likewise.
36149         * modules/fstrcmp-tests (Files): Likewise.
36150         * modules/fsync-tests (Files): Likewise.
36151         * modules/ftell-tests (Files): Likewise.
36152         * modules/ftello-tests (Files): Likewise.
36153         * modules/func-tests (Files): Likewise.
36154         * modules/futimens-tests (Files): Likewise.
36155         * modules/fwritable-tests (Files): Likewise.
36156         * modules/fwriting-tests (Files): Likewise.
36157         * modules/getcwd-tests (Files): Likewise.
36158         * modules/getdate-tests (Files): Likewise.
36159         * modules/getdelim-tests (Files): Likewise.
36160         * modules/getdtablesize-tests (Files): Likewise.
36161         * modules/getgroups-tests (Files): Likewise.
36162         * modules/getline-tests (Files): Likewise.
36163         * modules/getndelim2-tests (Files): Likewise.
36164         * modules/glob-tests (Files): Likewise.
36165         * modules/hash-tests (Files): Likewise.
36166         * modules/i-ring-tests (Files): Likewise.
36167         * modules/iconv-tests (Files): Likewise.
36168         * modules/iconv_open-utf-tests (Files): Likewise.
36169         * modules/idpriv-drop-tests (Files): Likewise.
36170         * modules/idpriv-droptemp-tests (Files): Likewise.
36171         * modules/inet_ntop-tests (Files): Likewise.
36172         * modules/inet_pton-tests (Files): Likewise.
36173         * modules/isblank-tests (Files): Likewise.
36174         * modules/isfinite-tests (Files): Likewise.
36175         * modules/isinf-tests (Files): Likewise.
36176         * modules/isnan-tests (Files): Likewise.
36177         * modules/isnand-nolibm-tests (Files): Likewise.
36178         * modules/isnand-tests (Files): Likewise.
36179         * modules/isnanf-nolibm-tests (Files): Likewise.
36180         * modules/isnanf-tests (Files): Likewise.
36181         * modules/isnanl-nolibm-tests (Files): Likewise.
36182         * modules/isnanl-tests (Files): Likewise.
36183         * modules/lchown-tests (Files): Likewise.
36184         * modules/ldexpl-tests (Files): Likewise.
36185         * modules/link-tests (Files): Likewise.
36186         * modules/linkat-tests (Files): Likewise.
36187         * modules/linked-list-tests (Files): Likewise.
36188         * modules/linkedhash-list-tests (Files): Likewise.
36189         * modules/localename-tests (Files): Likewise.
36190         * modules/lseek-tests (Files): Likewise.
36191         * modules/lstat-tests (Files): Likewise.
36192         * modules/mbmemcasecmp-tests (Files): Likewise.
36193         * modules/mbmemcasecoll-tests (Files): Likewise.
36194         * modules/mbrtowc-tests (Files): Likewise.
36195         * modules/mbscasecmp-tests (Files): Likewise.
36196         * modules/mbscasestr-tests (Files): Likewise.
36197         * modules/mbschr-tests (Files): Likewise.
36198         * modules/mbscspn-tests (Files): Likewise.
36199         * modules/mbsinit-tests (Files): Likewise.
36200         * modules/mbsncasecmp-tests (Files): Likewise.
36201         * modules/mbsnrtowcs-tests (Files): Likewise.
36202         * modules/mbspbrk-tests (Files): Likewise.
36203         * modules/mbspcasecmp-tests (Files): Likewise.
36204         * modules/mbsrchr-tests (Files): Likewise.
36205         * modules/mbsrtowcs-tests (Files): Likewise.
36206         * modules/mbsspn-tests (Files): Likewise.
36207         * modules/mbsstr-tests (Files): Likewise.
36208         * modules/memchr-tests (Files): Likewise.
36209         * modules/memchr2-tests (Files): Likewise.
36210         * modules/memcmp-tests (Files): Likewise.
36211         * modules/memmem-tests (Files): Likewise.
36212         * modules/memrchr-tests (Files): Likewise.
36213         * modules/mkdir-tests (Files): Likewise.
36214         * modules/mkfifo-tests (Files): Likewise.
36215         * modules/mkfifoat-tests (Files): Likewise.
36216         * modules/mknod-tests (Files): Likewise.
36217         * modules/nanosleep-tests (Files): Likewise.
36218         * modules/nl_langinfo-tests (Files): Likewise.
36219         * modules/obstack-printf-tests (Files): Likewise.
36220         * modules/open-tests (Files): Likewise.
36221         * modules/openat-tests (Files): Likewise.
36222         * modules/pipe-filter-gi-tests (Files): Likewise.
36223         * modules/pipe-filter-ii-tests (Files): Likewise.
36224         * modules/pipe2-tests (Files): Likewise.
36225         * modules/popen-safer-tests (Files): Likewise.
36226         * modules/popen-tests (Files): Likewise.
36227         * modules/posixtm-tests (Files): Likewise.
36228         * modules/pread-tests (Files): Likewise.
36229         * modules/printf-frexp-tests (Files): Likewise.
36230         * modules/printf-frexpl-tests (Files): Likewise.
36231         * modules/printf-posix-tests (Files): Likewise.
36232         * modules/priv-set-tests (Files): Likewise.
36233         * modules/quotearg-tests (Files): Likewise.
36234         * modules/random_r-tests (Files): Likewise.
36235         * modules/rawmemchr-tests (Files): Likewise.
36236         * modules/rbtree-list-tests (Files): Likewise.
36237         * modules/rbtree-oset-tests (Files): Likewise.
36238         * modules/rbtreehash-list-tests (Files): Likewise.
36239         * modules/readlink-tests (Files): Likewise.
36240         * modules/remove-tests (Files): Likewise.
36241         * modules/rename-tests (Files): Likewise.
36242         * modules/renameat-tests (Files): Likewise.
36243         * modules/rmdir-tests (Files): Likewise.
36244         * modules/round-tests (Files): Likewise.
36245         * modules/roundf-tests (Files): Likewise.
36246         * modules/roundl-tests (Files): Likewise.
36247         * modules/safe-alloc-tests (Files): Likewise.
36248         * modules/setenv-tests (Files): Likewise.
36249         * modules/sigaction-tests (Files): Likewise.
36250         * modules/signbit-tests (Files): Likewise.
36251         * modules/sleep-tests (Files): Likewise.
36252         * modules/snprintf-posix-tests (Files): Likewise.
36253         * modules/snprintf-tests (Files): Likewise.
36254         * modules/sprintf-posix-tests (Files): Likewise.
36255         * modules/stat-tests (Files): Likewise.
36256         * modules/stat-time-tests (Files): Likewise.
36257         * modules/strcasestr-tests (Files): Likewise.
36258         * modules/strchrnul-tests (Files): Likewise.
36259         * modules/strerror-tests (Files): Likewise.
36260         * modules/striconv-tests (Files): Likewise.
36261         * modules/striconveh-tests (Files): Likewise.
36262         * modules/striconveha-tests (Files): Likewise.
36263         * modules/strsignal-tests (Files): Likewise.
36264         * modules/strstr-tests (Files): Likewise.
36265         * modules/strtod-tests (Files): Likewise.
36266         * modules/strverscmp-tests (Files): Likewise.
36267         * modules/symlink-tests (Files): Likewise.
36268         * modules/symlinkat-tests (Files): Likewise.
36269         * modules/trunc-tests (Files): Likewise.
36270         * modules/truncf-tests (Files): Likewise.
36271         * modules/truncl-tests (Files): Likewise.
36272         * modules/uname-tests (Files): Likewise.
36273         * modules/unicase/cased-tests (Files): Likewise.
36274         * modules/unicase/ignorable-tests (Files): Likewise.
36275         * modules/unicase/locale-language-tests (Files): Likewise.
36276         * modules/unicase/tolower-tests (Files): Likewise.
36277         * modules/unicase/totitle-tests (Files): Likewise.
36278         * modules/unicase/toupper-tests (Files): Likewise.
36279         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36280         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36281         * modules/unicase/u8-casefold-tests (Files): Likewise.
36282         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36283         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36284         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36285         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36286         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36287         * modules/unicase/u8-tolower-tests (Files): Likewise.
36288         * modules/unicase/u8-totitle-tests (Files): Likewise.
36289         * modules/unicase/u8-toupper-tests (Files): Likewise.
36290         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36291         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36292         * modules/unicase/u16-casefold-tests (Files): Likewise.
36293         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36294         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36295         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36296         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36297         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36298         * modules/unicase/u16-tolower-tests (Files): Likewise.
36299         * modules/unicase/u16-totitle-tests (Files): Likewise.
36300         * modules/unicase/u16-toupper-tests (Files): Likewise.
36301         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36302         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36303         * modules/unicase/u32-casefold-tests (Files): Likewise.
36304         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36305         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36306         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36307         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36308         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36309         * modules/unicase/u32-tolower-tests (Files): Likewise.
36310         * modules/unicase/u32-totitle-tests (Files): Likewise.
36311         * modules/unicase/u32-toupper-tests (Files): Likewise.
36312         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36313         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36314         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36315         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36316         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36317         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36318         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36319         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36320         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36321         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36322         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36323         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36324         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36325         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36326         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36327         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36328         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36329         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36330         * modules/unictype/block-list-tests (Files): Likewise.
36331         * modules/unictype/block-of-tests (Files): Likewise.
36332         * modules/unictype/block-test-tests (Files): Likewise.
36333         * modules/unictype/category-C-tests (Files): Likewise.
36334         * modules/unictype/category-Cc-tests (Files): Likewise.
36335         * modules/unictype/category-Cf-tests (Files): Likewise.
36336         * modules/unictype/category-Cn-tests (Files): Likewise.
36337         * modules/unictype/category-Co-tests (Files): Likewise.
36338         * modules/unictype/category-Cs-tests (Files): Likewise.
36339         * modules/unictype/category-L-tests (Files): Likewise.
36340         * modules/unictype/category-Ll-tests (Files): Likewise.
36341         * modules/unictype/category-Lm-tests (Files): Likewise.
36342         * modules/unictype/category-Lo-tests (Files): Likewise.
36343         * modules/unictype/category-Lt-tests (Files): Likewise.
36344         * modules/unictype/category-Lu-tests (Files): Likewise.
36345         * modules/unictype/category-M-tests (Files): Likewise.
36346         * modules/unictype/category-Mc-tests (Files): Likewise.
36347         * modules/unictype/category-Me-tests (Files): Likewise.
36348         * modules/unictype/category-Mn-tests (Files): Likewise.
36349         * modules/unictype/category-N-tests (Files): Likewise.
36350         * modules/unictype/category-Nd-tests (Files): Likewise.
36351         * modules/unictype/category-Nl-tests (Files): Likewise.
36352         * modules/unictype/category-No-tests (Files): Likewise.
36353         * modules/unictype/category-P-tests (Files): Likewise.
36354         * modules/unictype/category-Pc-tests (Files): Likewise.
36355         * modules/unictype/category-Pd-tests (Files): Likewise.
36356         * modules/unictype/category-Pe-tests (Files): Likewise.
36357         * modules/unictype/category-Pf-tests (Files): Likewise.
36358         * modules/unictype/category-Pi-tests (Files): Likewise.
36359         * modules/unictype/category-Po-tests (Files): Likewise.
36360         * modules/unictype/category-Ps-tests (Files): Likewise.
36361         * modules/unictype/category-S-tests (Files): Likewise.
36362         * modules/unictype/category-Sc-tests (Files): Likewise.
36363         * modules/unictype/category-Sk-tests (Files): Likewise.
36364         * modules/unictype/category-Sm-tests (Files): Likewise.
36365         * modules/unictype/category-So-tests (Files): Likewise.
36366         * modules/unictype/category-Z-tests (Files): Likewise.
36367         * modules/unictype/category-Zl-tests (Files): Likewise.
36368         * modules/unictype/category-Zp-tests (Files): Likewise.
36369         * modules/unictype/category-Zs-tests (Files): Likewise.
36370         * modules/unictype/category-and-not-tests (Files): Likewise.
36371         * modules/unictype/category-and-tests (Files): Likewise.
36372         * modules/unictype/category-byname-tests (Files): Likewise.
36373         * modules/unictype/category-name-tests (Files): Likewise.
36374         * modules/unictype/category-none-tests (Files): Likewise.
36375         * modules/unictype/category-of-tests (Files): Likewise.
36376         * modules/unictype/category-or-tests (Files): Likewise.
36377         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36378         * modules/unictype/combining-class-tests (Files): Likewise.
36379         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36380         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36381         * modules/unictype/ctype-blank-tests (Files): Likewise.
36382         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36383         * modules/unictype/ctype-digit-tests (Files): Likewise.
36384         * modules/unictype/ctype-graph-tests (Files): Likewise.
36385         * modules/unictype/ctype-lower-tests (Files): Likewise.
36386         * modules/unictype/ctype-print-tests (Files): Likewise.
36387         * modules/unictype/ctype-punct-tests (Files): Likewise.
36388         * modules/unictype/ctype-space-tests (Files): Likewise.
36389         * modules/unictype/ctype-upper-tests (Files): Likewise.
36390         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36391         * modules/unictype/decimal-digit-tests (Files): Likewise.
36392         * modules/unictype/digit-tests (Files): Likewise.
36393         * modules/unictype/mirror-tests (Files): Likewise.
36394         * modules/unictype/numeric-tests (Files): Likewise.
36395         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36396         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36397         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36398         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36399         Likewise.
36400         * modules/unictype/property-bidi-block-separator-tests (Files):
36401         Likewise.
36402         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36403         Likewise.
36404         * modules/unictype/property-bidi-common-separator-tests (Files):
36405         Likewise.
36406         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36407         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36408         Likewise.
36409         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36410         Likewise.
36411         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36412         Likewise.
36413         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36414         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36415         Likewise.
36416         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36417         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36418         Likewise.
36419         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36420         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36421         * modules/unictype/property-bidi-segment-separator-tests (Files):
36422         Likewise.
36423         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36424         * modules/unictype/property-byname-tests (Files): Likewise.
36425         * modules/unictype/property-combining-tests (Files): Likewise.
36426         * modules/unictype/property-composite-tests (Files): Likewise.
36427         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36428         * modules/unictype/property-dash-tests (Files): Likewise.
36429         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36430         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36431         Likewise.
36432         * modules/unictype/property-deprecated-tests (Files): Likewise.
36433         * modules/unictype/property-diacritic-tests (Files): Likewise.
36434         * modules/unictype/property-extender-tests (Files): Likewise.
36435         * modules/unictype/property-format-control-tests (Files): Likewise.
36436         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36437         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36438         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36439         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36440         * modules/unictype/property-hyphen-tests (Files): Likewise.
36441         * modules/unictype/property-id-continue-tests (Files): Likewise.
36442         * modules/unictype/property-id-start-tests (Files): Likewise.
36443         * modules/unictype/property-ideographic-tests (Files): Likewise.
36444         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36445         * modules/unictype/property-ids-trinary-operator-tests (Files):
36446         Likewise.
36447         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36448         * modules/unictype/property-iso-control-tests (Files): Likewise.
36449         * modules/unictype/property-join-control-tests (Files): Likewise.
36450         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36451         * modules/unictype/property-line-separator-tests (Files): Likewise.
36452         * modules/unictype/property-logical-order-exception-tests (Files):
36453         Likewise.
36454         * modules/unictype/property-lowercase-tests (Files): Likewise.
36455         * modules/unictype/property-math-tests (Files): Likewise.
36456         * modules/unictype/property-non-break-tests (Files): Likewise.
36457         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36458         * modules/unictype/property-numeric-tests (Files): Likewise.
36459         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36460         * modules/unictype/property-other-default-ignorable-code-point-tests
36461         (Files): Likewise.
36462         * modules/unictype/property-other-grapheme-extend-tests (Files):
36463         Likewise.
36464         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36465         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36466         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36467         * modules/unictype/property-other-math-tests (Files): Likewise.
36468         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36469         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36470         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36471         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36472         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36473         * modules/unictype/property-private-use-tests (Files): Likewise.
36474         * modules/unictype/property-punctuation-tests (Files): Likewise.
36475         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36476         * modules/unictype/property-radical-tests (Files): Likewise.
36477         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36478         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36479         * modules/unictype/property-space-tests (Files): Likewise.
36480         * modules/unictype/property-terminal-punctuation-tests (Files):
36481         Likewise.
36482         * modules/unictype/property-test-tests (Files): Likewise.
36483         * modules/unictype/property-titlecase-tests (Files): Likewise.
36484         * modules/unictype/property-unassigned-code-value-tests (Files):
36485         Likewise.
36486         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36487         * modules/unictype/property-uppercase-tests (Files): Likewise.
36488         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36489         * modules/unictype/property-white-space-tests (Files): Likewise.
36490         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36491         * modules/unictype/property-xid-start-tests (Files): Likewise.
36492         * modules/unictype/property-zero-width-tests (Files): Likewise.
36493         * modules/unictype/scripts-tests (Files): Likewise.
36494         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36495         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36496         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36497         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36498         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36499         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36500         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36501         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36502         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36503         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36504         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36505         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36506         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36507         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36508         * modules/uninorm/composition-tests (Files): Likewise.
36509         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36510         * modules/uninorm/decomposition-tests (Files): Likewise.
36511         * modules/uninorm/filter-tests (Files): Likewise.
36512         * modules/uninorm/nfc-tests (Files): Likewise.
36513         * modules/uninorm/nfd-tests (Files): Likewise.
36514         * modules/uninorm/nfkc-tests (Files): Likewise.
36515         * modules/uninorm/nfkd-tests (Files): Likewise.
36516         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36517         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36518         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36519         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36520         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36521         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36522         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36523         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36524         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36525         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36526         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36527         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36528         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36529         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36530         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36531         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36532         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36533         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36534         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36535         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36536         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36537         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36538         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36539         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36540         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36541         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36542         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36543         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36544         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36545         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36546         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36547         * modules/uniwidth/u8-width-tests (Files): Likewise.
36548         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36549         * modules/uniwidth/u16-width-tests (Files): Likewise.
36550         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36551         * modules/uniwidth/u32-width-tests (Files): Likewise.
36552         * modules/uniwidth/width-tests (Files): Likewise.
36553         * modules/unlink-tests (Files): Likewise.
36554         * modules/unsetenv-tests (Files): Likewise.
36555         * modules/usleep-tests (Files): Likewise.
36556         * modules/utimens-tests (Files): Likewise.
36557         * modules/utimensat-tests (Files): Likewise.
36558         * modules/vasnprintf-posix-tests (Files): Likewise.
36559         * modules/vasnprintf-tests (Files): Likewise.
36560         * modules/vasprintf-posix-tests (Files): Likewise.
36561         * modules/vasprintf-tests (Files): Likewise.
36562         * modules/vdprintf-posix-tests (Files): Likewise.
36563         * modules/vfprintf-posix-tests (Files): Likewise.
36564         * modules/vprintf-posix-tests (Files): Likewise.
36565         * modules/vsnprintf-posix-tests (Files): Likewise.
36566         * modules/vsnprintf-tests (Files): Likewise.
36567         * modules/vsprintf-posix-tests (Files): Likewise.
36568         * modules/wcrtomb-tests (Files): Likewise.
36569         * modules/wcsnrtombs-tests (Files): Likewise.
36570         * modules/wcsrtombs-tests (Files): Likewise.
36571         * modules/wctype-tests (Files): Likewise.
36572         * modules/wcwidth-tests (Files): Likewise.
36573         * modules/xmemdup0-tests (Files): Likewise.
36574         * modules/xprintf-posix-tests (Files): Likewise.
36575         * modules/xvasprintf-tests (Files): Likewise.
36576
36577 2009-12-24  Eric Blake  <ebb9@byu.net>
36578
36579         test-nanosleep: fix typo
36580         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36581         patch.
36582         Reported by Bruno Haible.
36583
36584 2009-12-24  Bruno Haible  <bruno@clisp.org>
36585
36586         Reduce namespace pollution on glibc systems.
36587         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36588         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36589         systems.
36590         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36591         <getopt.h> on glibc systems.
36592         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36593         systems.
36594         * lib/fcntl.c: Include <unistd.h> here instead.
36595
36596 2009-12-24  Bruno Haible  <bruno@clisp.org>
36597
36598         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36599
36600 2009-12-24  Eric Blake  <ebb9@byu.net>
36601
36602         tests: add signature checks
36603         * tests/signature.h (SIGNATURE_CHECK): New file.
36604         * modules/atexit-tests (Files): Use it.
36605         * modules/btowc-tests (Files): Likewise.
36606         * modules/canonicalize-lgpl-tests (Files): Likewise.
36607         * modules/ceilf-tests (Files): Likewise.
36608         * modules/ceill-tests (Files): Likewise.
36609         * modules/chown-tests (Files): Likewise.
36610         * modules/dprintf-posix-tests (Files): Likewise.
36611         * modules/dup2-tests (Files): Likewise.
36612         * modules/dup3-tests (Files): Likewise.
36613         * modules/duplocale-tests (Files): Likewise.
36614         * modules/fchdir-tests (Files): Likewise.
36615         * modules/fcntl-tests (Files): Likewise.
36616         * modules/fdopendir-tests (Files): Likewise.
36617         * modules/fflush-tests (Files): Likewise.
36618         * modules/flock-tests (Files): Likewise.
36619         * modules/floorf-tests (Files): Likewise.
36620         * modules/floorl-tests (Files): Likewise.
36621         * modules/fnmatch-tests (Files): Likewise.
36622         * modules/fopen-tests (Files): Likewise.
36623         * modules/fprintf-posix-tests (Files): Likewise.
36624         * modules/freopen-tests (Files): Likewise.
36625         * modules/frexp-nolibm-tests (Files): Likewise.
36626         * modules/frexp-tests (Files): Likewise.
36627         * modules/frexpl-nolibm-tests (Files): Likewise.
36628         * modules/frexpl-tests (Files): Likewise.
36629         * modules/fseek-tests (Files): Likewise.
36630         * modules/fseeko-tests (Files): Likewise.
36631         * modules/fsync-tests (Files): Likewise.
36632         * modules/ftell-tests (Files): Likewise.
36633         * modules/ftello-tests (Files): Likewise.
36634         * modules/futimens-tests (Files): Likewise.
36635         * modules/getaddrinfo-tests (Files): Likewise.
36636         * modules/getcwd-tests (Files): Likewise.
36637         * modules/getdelim-tests (Files): Likewise.
36638         * modules/getdtablesize-tests (Files): Likewise.
36639         * modules/getgroups-tests (Files): Likewise.
36640         * modules/gethostname-tests (Files): Likewise.
36641         * modules/getline-tests (Files): Likewise.
36642         * modules/getopt-posix-tests (Files): Likewise.
36643         * modules/gettimeofday-tests (Files): Likewise.
36644         * modules/glob-tests (Files): Likewise.
36645         * modules/iconv-tests (Files): Likewise.
36646         * modules/inet_ntop-tests (Files): Likewise.
36647         * modules/inet_pton-tests (Files): Likewise.
36648         * modules/isblank-tests (Files): Likewise.
36649         * modules/lchown-tests (Files): Likewise.
36650         * modules/ldexpl-tests (Files): Likewise.
36651         * modules/link-tests (Files): Likewise.
36652         * modules/linkat-tests (Files): Likewise.
36653         * modules/lseek-tests (Files): Likewise.
36654         * modules/lstat-tests (Files): Likewise.
36655         * modules/mbrtowc-tests (Files): Likewise.
36656         * modules/mbsinit-tests (Files): Likewise.
36657         * modules/mbsnrtowcs-tests (Files): Likewise.
36658         * modules/mbsrtowcs-tests (Files): Likewise.
36659         * modules/memchr-tests (Files): Likewise.
36660         * modules/memcmp-tests (Files): Likewise.
36661         * modules/memmem-tests (Files): Likewise.
36662         * modules/memrchr-tests (Files): Likewise.
36663         * modules/mkdir-tests (Files): Likewise.
36664         * modules/mkfifo-tests (Files): Likewise.
36665         * modules/mkfifoat-tests (Files): Likewise.
36666         * modules/mknod-tests (Files): Likewise.
36667         * modules/nanosleep-tests (Files): Likewise.
36668         * modules/nl_langinfo-tests (Files): Likewise.
36669         * modules/obstack-printf-tests (Files): Likewise.
36670         * modules/open-tests (Files): Likewise.
36671         * modules/openat-tests (Files): Likewise.
36672         * modules/perror-tests (Files): Likewise.
36673         * modules/pipe2-tests (Files): Likewise.
36674         * modules/poll-tests (Files): Likewise.
36675         * modules/popen-tests (Files): Likewise.
36676         * modules/posix_spawn-tests (Files): Likewise.
36677         * modules/posix_spawnp-tests (Files): Likewise.
36678         * modules/pread-tests (Files): Likewise.
36679         * modules/printf-posix-tests (Files): Likewise.
36680         * modules/pty-tests (Files): Likewise.
36681         * modules/random_r-tests (Files): Likewise.
36682         * modules/rawmemchr-tests (Files): Likewise.
36683         * modules/readlink-tests (Files): Likewise.
36684         * modules/remove-tests (Files): Likewise.
36685         * modules/rename-tests (Files): Likewise.
36686         * modules/renameat-tests (Files): Likewise.
36687         * modules/rmdir-tests (Files): Likewise.
36688         * modules/round-tests (Files): Likewise.
36689         * modules/roundf-tests (Files): Likewise.
36690         * modules/roundl-tests (Files): Likewise.
36691         * modules/select-tests (Files): Likewise.
36692         * modules/setenv-tests (Files): Likewise.
36693         * modules/sigaction-tests (Files): Likewise.
36694         * modules/sleep-tests (Files): Likewise.
36695         * modules/snprintf-posix-tests (Files): Likewise.
36696         * modules/snprintf-tests (Files): Likewise.
36697         * modules/sprintf-posix-tests (Files): Likewise.
36698         * modules/stat-tests (Files): Likewise.
36699         * modules/strcasestr-tests (Files): Likewise.
36700         * modules/strchrnul-tests (Files): Likewise.
36701         * modules/strerror-tests (Files): Likewise.
36702         * modules/strsignal-tests (Files): Likewise.
36703         * modules/strstr-tests (Files): Likewise.
36704         * modules/strtod-tests (Files): Likewise.
36705         * modules/strverscmp-tests (Files): Likewise.
36706         * modules/symlink-tests (Files): Likewise.
36707         * modules/symlinkat-tests (Files): Likewise.
36708         * modules/times-tests (Files): Likewise.
36709         * modules/trunc-tests (Files): Likewise.
36710         * modules/truncf-tests (Files): Likewise.
36711         * modules/truncl-tests (Files): Likewise.
36712         * modules/tsearch-tests (Files): Likewise.
36713         * modules/uname-tests (Files): Likewise.
36714         * modules/unlink-tests (Files): Likewise.
36715         * modules/unsetenv-tests (Files): Likewise.
36716         * modules/usleep-tests (Files): Likewise.
36717         * modules/utimensat-tests (Files): Likewise.
36718         * modules/vasprintf-tests (Files): Likewise.
36719         * modules/vdprintf-posix-tests (Files): Likewise.
36720         * modules/vfprintf-posix-tests (Files): Likewise.
36721         * modules/vprintf-posix-tests (Files): Likewise.
36722         * modules/vsnprintf-posix-tests (Files): Likewise.
36723         * modules/vsnprintf-tests (Files): Likewise.
36724         * modules/vsprintf-posix-tests (Files): Likewise.
36725         * modules/wcrtomb-tests (Files): Likewise.
36726         * modules/wcsnrtombs-tests (Files): Likewise.
36727         * modules/wcsrtombs-tests (Files): Likewise.
36728         * modules/wcwidth-tests (Files): Likewise.
36729         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36730         * tests/test-isinf.c (isinf): Likewise.
36731         * tests/test-isnan.c (isnan): Likewise.
36732         * tests/test-signbit.c (signbit): Likewise.
36733         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36734         declaration, either as macro or with correct signature.
36735         (select): Ensure function under test is declared with correct
36736         signature in correct header.
36737         * tests/test-atexit.c (atexit): Likewise.
36738         * tests/test-btowc.c (btowc): Likewise.
36739         * tests/test-canonicalize-lgpl.c (realpath)
36740         (canonicalize_file_name): Likewise.
36741         * tests/test-ceilf1.c (ceilf): Likewise.
36742         * tests/test-ceill.c (ceill): Likewise.
36743         * tests/test-chown.c (chown): Likewise.
36744         * tests/test-dprintf-posix.c (dprintf): Likewise.
36745         * tests/test-dup2.c (dup2): Likewise.
36746         * tests/test-dup3.c (dup3): Likewise.
36747         * tests/test-duplocale.c (duplocale): Likewise.
36748         * tests/test-fchdir.c (fchdir): Likewise.
36749         * tests/test-fchownat.c (fchownat): Likewise.
36750         * tests/test-fcntl.c (fcntl): Likewise.
36751         * tests/test-fdopendir.c (fdopendir): Likewise.
36752         * tests/test-fflush.c (fflush): Likewise.
36753         * tests/test-flock.c (flock): Likewise.
36754         * tests/test-floorf1.c (floorf): Likewise.
36755         * tests/test-floorl.c (floorl): Likewise.
36756         * tests/test-fnmatch.c (fnmatch): Likewise.
36757         * tests/test-fopen.c (fopen): Likewise.
36758         * tests/test-fprintf-posix.c (fprintf): Likewise.
36759         * tests/test-freopen.c (freopen): Likewise.
36760         * tests/test-frexp.c (frexp): Likewise.
36761         * tests/test-frexpl.c (frexpl): Likewise.
36762         * tests/test-fseek.c (fseek): Likewise.
36763         * tests/test-fseeko.c (fseeko): Likewise.
36764         * tests/test-fstatat.c (fstatat): Likewise.
36765         * tests/test-fsync.c (fsync): Likewise.
36766         * tests/test-ftell.c (ftell): Likewise.
36767         * tests/test-ftello.c (ftello): Likewise.
36768         * tests/test-futimens.c (futimens): Likewise.
36769         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36770         (gai_strerror): Likewise.
36771         * tests/test-getcwd.c (getcwd): Likewise.
36772         * tests/test-getdelim.c (getdelim): Likewise.
36773         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36774         * tests/test-getgroups.c (getgroups): Likewise.
36775         * tests/test-gethostname.c (gethostname): Likewise.
36776         * tests/test-getline.c (getline): Likewise.
36777         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36778         Likewise.
36779         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36780         * tests/test-glob.c (glob, globfree): Likewise.
36781         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36782         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36783         * tests/test-inet_pton.c (inet_pton): Likewise.
36784         * tests/test-isblank.c (isblank): Likewise.
36785         * tests/test-lchown.c (lchown): Likewise.
36786         * tests/test-ldexpl.c (ldexpl): Likewise.
36787         * tests/test-link.c (link): Likewise.
36788         * tests/test-linkat.c (linkat): Likewise.
36789         * tests/test-lseek.c (lseek): Likewise.
36790         * tests/test-lstat.c (lstat): Likewise.
36791         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36792         * tests/test-mbsinit.c (mbsinit): Likewise.
36793         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36794         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36795         * tests/test-memchr.c (memchr): Likewise.
36796         * tests/test-memcmp.c (memcmp): Likewise.
36797         * tests/test-memmem.c (memmem): Likewise.
36798         * tests/test-memrchr.c (memrchr): Likewise.
36799         * tests/test-mkdir.c (mkdir): Likewise.
36800         * tests/test-mkdirat.c (mkdirat): Likewise.
36801         * tests/test-mkfifo.c (mkfifo): Likewise.
36802         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36803         * tests/test-mknod.c (mknod): Likewise.
36804         * tests/test-nanosleep.c (nanosleep): Likewise.
36805         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36806         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36807         Likewise.
36808         * tests/test-open.c (open): Likewise.
36809         * tests/test-openat.c (openat): Likewise.
36810         * tests/test-perror.c (perror): Likewise.
36811         * tests/test-pipe2.c (pipe2): Likewise.
36812         * tests/test-poll.c (poll): Likewise.
36813         * tests/test-popen.c (popen, pclose): Likewise.
36814         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36815         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36816         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36817         (posix_spawn_file_actions_destroy)
36818         (posix_spawn_file_actions_addclose)
36819         (posix_spawn_file_actions_addopen)
36820         (posix_spawn_file_actions_adddup2): Likewise.
36821         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36822         * tests/test-pread.c (pread): Likewise.
36823         * tests/test-printf-posix.c (printf): Likewise.
36824         * tests/test-pty.c (openpty, forkpty): Likewise.
36825         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36826         (random_r): Likewise.
36827         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36828         * tests/test-readlink.c (readlink): Likewise.
36829         * tests/test-remove.c (remove): Likewise.
36830         * tests/test-rename.c (rename): Likewise.
36831         * tests/test-renameat.c (renameat): Likewise.
36832         * tests/test-rmdir.c (rmdir): Likewise.
36833         * tests/test-round1.c (round): Likewise.
36834         * tests/test-roundf1.c (roundf): Likewise.
36835         * tests/test-roundl.c (roundl): Likewise.
36836         * tests/test-setenv.c (setenv): Likewise.
36837         * tests/test-sigaction.c (sigaction): Likewise.
36838         * tests/test-sleep.c (sleep): Likewise.
36839         * tests/test-snprintf.c (snprintf): Likewise.
36840         * tests/test-sprintf-posix.c (sprintf): Likewise.
36841         * tests/test-stat.c (stat): Likewise.
36842         * tests/test-stpncpy.c (stpncpy): Likewise.
36843         * tests/test-strcasestr.c (strcasestr): Likewise.
36844         * tests/test-strchrnul.c (strchrnul): Likewise.
36845         * tests/test-strerror.c (strerror): Likewise.
36846         * tests/test-strsignal.c (strsignal): Likewise.
36847         * tests/test-strstr.c (strstr): Likewise.
36848         * tests/test-strtod.c (strtod): Likewise.
36849         * tests/test-strverscmp.c (strverscmp): Likewise.
36850         * tests/test-symlink.c (symlink): Likewise.
36851         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36852         * tests/test-times.c (times): Likewise.
36853         * tests/test-trunc1.c (trunc): Likewise.
36854         * tests/test-truncf1.c (truncf): Likewise.
36855         * tests/test-truncl.c (truncl): Likewise.
36856         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36857         Likewise.
36858         * tests/test-uname.c (uname): Likewise.
36859         * tests/test-unlink.c (unlink): Likewise.
36860         * tests/test-unlinkat.c (unlinkat): Likewise.
36861         * tests/test-unsetenv.c (unsetenv): Likewise.
36862         * tests/test-usleep.c (usleep): Likewise.
36863         * tests/test-utimensat.c (utimensat): Likewise.
36864         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36865         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36866         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36867         * tests/test-vprintf-posix.c (vprintf): Likewise.
36868         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36869         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36870         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36871         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36872         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36873         * tests/test-wcwidth.c (wcwidth): Likewise.
36874
36875         build: pull in conditional headers during GNULIB_POSIXCHECK
36876         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36877         definitions from any conditionally-included headers.
36878         * lib/stdlib.in.h (includes): Likewise.
36879         * lib/unistd.in.h (includes): Likewise.
36880
36881 2009-12-24  Bruno Haible  <bruno@clisp.org>
36882
36883         * tests/test-argv-iter.c: Include header file being tested immediately
36884         after config.h.
36885         * tests/test-base64.c: Likewise.
36886         * tests/test-flock.c: Likewise.
36887         * tests/test-fsync.c: Likewise.
36888         * tests/test-getdate.c: Likewise.
36889         * tests/test-getndelim2.c: Likewise.
36890         * tests/test-isfinite.c: Likewise.
36891         * tests/test-isinf.c: Likewise.
36892         * tests/test-strerror.c: Likewise.
36893         * tests/test-strsignal.c: Likewise.
36894
36895 2009-12-23  Eric Blake  <ebb9@byu.net>
36896
36897         unistd: work around cygwin bug
36898         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36899         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36900         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36901
36902 2009-12-23  Bruno Haible  <bruno@clisp.org>
36903
36904         localename: More tests.
36905         * tests/test-localename.c (SIZEOF): New macro.
36906         (categories): New variable.
36907         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36908         test_locale_name_default): Add test w.r.t. thread locale.
36909         (test_locale_name_thread): New function.
36910         (main): Invoke it.
36911
36912         localename: Make aware of thread locale.
36913         * lib/localename.h (gl_locale_name_thread): New declaration.
36914         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36915         behaviour with respect to thread locale.
36916         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36917         <langinfo.h>, glthread/lock.h.
36918         (SIZE_BITS): New macro.
36919         (string_hash): New function.
36920         (struct hash_node): New type.
36921         (HASH_TABLE_SIZE): New macro.
36922         (struniq_hash_table, struniq_lock): New variables.
36923         (struniq): New function.
36924         (gl_locale_name_thread): New function.
36925         (gl_locale_name): Invoke it.
36926         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36927         * modules/localename (Depends-on): Add lock.
36928         Reported by Mike Gran <spk121@yahoo.com>.
36929
36930 2009-12-23  Eric Blake  <ebb9@byu.net>
36931
36932         va-args: new module
36933         * modules/va-args: New file.
36934         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36935         * MODULES.html.sh (Core language properties): Mention it.
36936
36937         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36938         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36939         named alias for __attribute__((__unused__)).
36940         * lib/chown.c: Update client.
36941         * lib/fchmodat.c: Likewise.
36942         * lib/fts.c: Likewise.
36943         * lib/getdate.y: Likewise.
36944         * lib/getgroups.c: Likewise.
36945         * lib/getopt.c: Likewise.
36946         * lib/getugroups.c: Likewise.
36947         * lib/mkdir.c: Likewise.
36948         * lib/mkfifo.c: Likewise.
36949         * lib/mkfifoat.c: Likewise.
36950         * lib/mknod.c: Likewise.
36951         * lib/mknodat.c: Likewise.
36952         * lib/readlink.c: Likewise.
36953         * lib/se-context.in.h: Likewise.
36954         * lib/se-selinux.in.h: Likewise.
36955         * lib/sockets.c: Likewise.
36956         * lib/symlink.c: Likewise.
36957         * lib/symlinkat.c: Likewise.
36958         * lib/unicodeio.c: Likewise.
36959         * lib/unistr.h: Likewise.
36960         * tests/test-areadlink.c: Likewise.
36961         * tests/test-areadlinkat.c: Likewise.
36962         * tests/test-filenamecat.c: Likewise.
36963         * tests/test-fseeko.c: Likewise.
36964         * tests/test-ftello.c: Likewise.
36965         * tests/test-getdate.c: Likewise.
36966         * tests/test-getgroups.c: Likewise.
36967         * tests/test-gethostname.c: Likewise.
36968         * tests/test-quotearg.c: Likewise.
36969         * tests/test-version-etc.c: Likewise.
36970         * tests/test-xalloc-die.c: Likewise.
36971         * tests/test-xfprintf-posix.c: Likewise.
36972         * tests/test-xprintf-posix.c: Likewise.
36973         * tests/test-xvasprintf.c: Likewise.
36974
36975         tests: avoid compiler warnings
36976         * tests/test-fcntl.c (main): Delete unused parameters.
36977         * tests/test-freopen-safer.c (main): Likewise.
36978         * tests/test-xalloc-die.c (main): Mark unused parameters.
36979         * tests/test-fseeko.c (main): Likewise.
36980         * tests/test-ftello.c (main): Likewise.
36981         * tests/test-nanosleep.c (main): Avoid declaration warning.
36982         * tests/test-sleep.c (main): Likewise.
36983         * tests/test-unsetenv.c (main): Silence warning about string
36984         literal.
36985         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36986
36987 2009-12-23  Bruno Haible  <bruno@clisp.org>
36988
36989         * tests/test-localename.c (test_locale_name): New function, extracted
36990         from main. Also test mixed situations.
36991         (test_locale_name_posix, test_locale_name_environ,
36992         test_locale_name_default): New functions.
36993         (main): Invoke them all.
36994         * modules/localename-tests (configure.ac): Test for newlocale.
36995
36996 2009-12-23  Bruno Haible  <bruno@clisp.org>
36997
36998         unistd: Ensure getcwd gets declared before being overridden.
36999         * lib/unistd.in.h: Conditionally include <io.h>.
37000
37001 2009-12-22  Bruno Haible  <bruno@clisp.org>
37002
37003         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37004         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37005         (gl_WCHAR_H): Invoke it.
37006         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37007         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37008         Reported by Karl Berry <karl@freefriends.org>.
37009
37010 2009-12-22  Eric Blake  <ebb9@byu.net>
37011
37012         math, unistd: avoid redundant includes
37013         * lib/math.in.h (isnan): No need to re-include <math.h>.
37014         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37015
37016         getsubopt: work around cygwin bug
37017         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37018         avoid conflicting with system getsubopt.
37019         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37020         bug.
37021
37022         getopt: synchronize from glibc
37023         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37024         parameter order.  Adjust all callers.
37025         (_getopt_internal_r, main): Adjust quoting in error messages.
37026         Drop considerations for outdated POSIX 1003.2 error message.
37027         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37028         callers.
37029         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37030
37031         test-getopt: test stderr behavior
37032         * modules/getopt-posix-tests (Depends-on): Add dup2.
37033         * tests/test-getopt.c (ASSERT): Avoid stderr.
37034         (main): Move stderr to a temporary file.
37035         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37036         Instead, add parameter to inform caller if output occurred.
37037         (test_getopt): Adjust all existing tests to expect silence, and
37038         add new tests of leading ":".
37039         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37040         glibc shortcomings with leading "-:" or "+:" in optstring.
37041         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37042         Likewise.
37043         * doc/posix-functions/getopt.texi (getopt): Likewise.
37044
37045         test-getopt: enhance test
37046         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37047         supports optind=0.
37048         * tests/test-getopt.c (OPTIND_MIN): Move...
37049         * tests/test-getopt.h (OPTIND_MIN): ...here.
37050         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37051         Require that optind=0 works, since modern BSD supports it in
37052         addition to optreset, and since coreutils expects it.
37053         (test_getopt_long_only): New test.
37054         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37055         glibc shortcomings with 'W;', and enforcement of optind=0.
37056         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37057         Likewise.
37058
37059 2009-12-21  Bruno Haible  <bruno@clisp.org>
37060
37061         localename: Improvements for MacOS X and Cygwin.
37062         * lib/localename.h (gl_locale_name_environ): New declaration.
37063         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37064         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37065         (gl_locale_name_posix): Invoke it.
37066         (gl_locale_name_default): Add comments. Use Windows native API also on
37067         Cygwin.
37068
37069 2009-12-21  Bruno Haible  <bruno@clisp.org>
37070
37071         Update list of Win32 locale ids.
37072         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37073         (LANG_SAMI): Renamed from LANG_SAAMI.
37074         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37075         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37076         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37077         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37078         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37079         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37080         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37081         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37082         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37083         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37084         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37085         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37086         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37087         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37088         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37089         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37090         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37091         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37092         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37093         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37094         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37095         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37096         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37097         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37098         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37099         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37100         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37101         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37102         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37103         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37104         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37105         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37106         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37107         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37108         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37109         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37110         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37111         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37112         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37113         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37114         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37115         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37116         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37117         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37118         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37119         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37120         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37121         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37122         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37123         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37124         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37125         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37126         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37127         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37128         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37129         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37130         Add more languages and countries for Sami, Sorbian. Add more countries
37131         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37132         for Pashto. Change country for Syriac, Tswana.
37133
37134 2009-12-21  Eric Blake  <ebb9@byu.net>
37135
37136         test-utimens: avoid spurious failure
37137         * tests/test-chown.h (nap): Factor...
37138         * tests/nap.h: ...into new file.
37139         * tests/test-lchown.h (nap): Avoid duplication.
37140         * tests/test-utimens-common.h (nap): Use shared implementation,
37141         necessary on file systems with 1-second resolution.
37142         * modules/chown-tests (Files): Include new file.
37143         * modules/fdutimensat-tests (Files): Likewise.
37144         * modules/futimens-tests (Files): Likewise.
37145         * modules/lchown-tests (Files): Likewise.
37146         * modules/openat-tests (Files): Likewise.
37147         * modules/utimens-tests (Files): Likewise.
37148         * modules/utimensat-tests (Files): Likewise.
37149
37150 2009-12-19  Eric Blake  <ebb9@byu.net>
37151
37152         futimens, utimensat: work around Linux bug
37153         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37154         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37155         * lib/utimensat.c (rpl_utimensat): Work around it.
37156         * lib/futimens.c (rpl_futimens): Adjust comment.
37157
37158         utimens: work around Linux ctime bug
37159         * lib/utimens.c (detect_ctime_bug): New helper function.
37160         (update_timespec): Differentiate between workaround needed for
37161         this bug vs. what is needed for systems that lack utimensat.
37162         (fdutimens, lutimens): Work around bug.
37163
37164         utimens: check for ctime update
37165         * tests/test-utimens-common.h (check_ctime): Define.
37166         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37167         * tests/test-futimens.h (test_futimens): Likewise.
37168         * tests/test-lutimens.h (test_lutimens): Likewise.
37169         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37170         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37171
37172 2009-12-19  Bruno Haible  <bruno@clisp.org>
37173
37174         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37175         * tests/test-dprintf-posix2.sh: New file.
37176         * tests/test-dprintf-posix2.c: New file.
37177         * modules/dprintf-posix-tests (Files): Add them.
37178         (configure.ac): Check for getrlimit and setrlimit.
37179         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37180
37181 2009-12-19  Bruno Haible  <bruno@clisp.org>
37182
37183         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37184         * tests/test-fprintf-posix3.sh: New file.
37185         * tests/test-fprintf-posix3.c: New file.
37186         * modules/fprintf-posix-tests (Files): Add them.
37187         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37188
37189 2009-12-19  Eric Blake  <ebb9@byu.net>
37190
37191         dirfd: fix prototype
37192         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37193         * lib/dirfd.c (dirfd): Likewise.
37194
37195         canonicalize: reduce memory usage
37196         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37197         allocation to size.
37198         Reported by Solar Designer <solar@openwall.com>.
37199
37200 2009-12-19  Bruno Haible  <bruno@clisp.org>
37201
37202         New module attribute 'Applicability'.
37203         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37204         * gnulib-tool: New option --extract-applicability.
37205         (func_usage): Document it.
37206         (sed_extract_prog): Recognize it.
37207         (func_get_applicability): New function.
37208         (func_import): Generalize handling of 'link-warning' module.
37209         * modules/link-warning (Applicability): New section.
37210         * modules/arg-nonnull (Applicability): New section.
37211         Repoted by Simon Josefsson <simon@josefsson.org>.
37212
37213 2009-12-19  Bruno Haible  <bruno@clisp.org>
37214
37215         fflush: tweak
37216         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37217         * lib/fseeko.c (rpl_fseeko): Likewise.
37218
37219 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37220
37221         * lib/gl_list.h: Fix typo in comment.
37222
37223 2009-12-16  Eric Blake  <ebb9@byu.net>
37224
37225         fcntl: use to simplify other modules
37226         * modules/cloexec (Depends-on): Add fcntl.
37227         * modules/fchdir (Depends-on): Likewise.
37228         * modules/fd-safer-flag (Depends-on): Likewise.
37229         * modules/unistd-safer (Depends-on): Likewise.
37230         * modules/dup3 (configure.ac): Set module indicator.
37231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37232         missing.
37233         * lib/fchdir.c (_gl_register_dup): Fix comment.
37234         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37235         * lib/dup-safer.c (dup_safer): Likewise.
37236         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37237         * lib/dup3.c (dup3): Likewise.
37238         * tests/test-fchdir.c (main): Enhance test.
37239         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37240
37241         fcntl: port portions of fcntl to mingw
37242         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37243         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37244         replacement for mingw.
37245         * modules/fcntl (Description): Update.
37246         (Depends-on): Add dup2.
37247         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37248         * modules/fcntl-h (Makefile.am): Substitute it.
37249         * lib/fcntl.in.h (fcntl): Update declaration.
37250         (F_DUPFD, F_GETFD): New macros, when needed.
37251         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37252         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37253         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37254         we now guarantee.
37255
37256         fcntl: work around cygwin bug in F_DUPFD
37257         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37258         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37259         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37260         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37261         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37262
37263         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37264         * modules/fcntl (Files): List new files.
37265         (configure.ac): Run a test.
37266         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37267         * lib/fcntl.c (rpl_fcntl): Likewise.
37268         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37269         (gl_FCNTL_H): Always replace fcntl.h.
37270         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37271         * lib/fcntl.in.h (fcntl): Declare replacement.
37272         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37273         needed, plus a witness.
37274         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37275         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37276         * tests/test-fcntl.c: New file.
37277         * modules/fcntl-tests: Likewise.
37278
37279         binary-io: avoid potential compilation warning
37280         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37281         directives.
37282
37283         fflush: avoid compilation error on NetBSD
37284         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37285         between off_t and fpos_t, since the latter is sometimes a struct.
37286         * lib/fseeko.c (rpl_fseeko): Likewise.
37287         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37288
37289 2009-12-15  Eric Blake  <ebb9@byu.net>
37290
37291         fcntl-h, stdio, sys_ioctl: fix declarations
37292         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37293         function must not take arguments.
37294         * lib/sys_ioctl.in.h (ioctl): Likewise.
37295         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37296         (open): Add a link warning.
37297
37298 2009-12-15  Jim Meyering  <meyering@redhat.com>
37299
37300         areadlink, areadlink-with-size: relax license to LGPLv2+
37301         * modules/areadlink (License): Relax to LGPLv2+.
37302         * modules/areadlink-with-size (License): Likewise.
37303
37304 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37305             Bruno Haible  <bruno@clisp.org>
37306
37307         *printf: Fix memory leak.
37308         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37309         * lib/vfprintf.c (vfprintf): Likewise.
37310         * lib/dprintf.c (dprintf): Likewise.
37311         * lib/vdprintf.c (vdprintf): Likewise.
37312
37313 2009-12-14  Eric Blake  <ebb9@byu.net>
37314
37315         accept4: adjust module dependencies
37316         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37317
37318         utimens: one more try at avoiding compiler warning
37319         * lib/utimens.c (lutimens): Lower scope of result.
37320
37321 2009-12-13  Bruno Haible  <bruno@clisp.org>
37322
37323         Move the malloc checking from module 'list' to new module 'xlist'.
37324         * modules/xlist: New file.
37325         * lib/gl_xlist.h: New file.
37326         * lib/gl_xlist.c: New file.
37327         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37328         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37329         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37330         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37331         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37332         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37333         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37334         gl_sortedlist_nx_add): New declarations.
37335         (struct gl_list_implementation): Rename and change methods accordingly.
37336         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37337         (gl_list_nx_create): Renamed from gl_list_create.
37338         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37339         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37340         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37341         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37342         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37343         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37344         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37345         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37346         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37347         gl_list_create_empty.
37348         (gl_list_nx_create): Renamed from gl_list_create.
37349         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37350         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37351         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37352         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37353         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37354         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37355         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37356         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37357         * lib/gl_array_list.c: Don't include xalloc.h.
37358         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37359         NULL upon out-of-memory.
37360         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37361         out-of-memory.
37362         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37363         Change return type to 'int'.
37364         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37365         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37366         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37367         upon out-of-memory.
37368         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37369         upon out-of-memory.
37370         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37371         upon out-of-memory.
37372         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37373         upon out-of-memory.
37374         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37375         out-of-memory.
37376         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37377         Update.
37378         (gl_array_list_implementation): Update.
37379         * lib/gl_carray_list.c: Don't include xalloc.h.
37380         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37381         Return NULL upon out-of-memory.
37382         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37383         out-of-memory.
37384         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37385         Change return type to 'int'.
37386         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37387         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37388         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37389         upon out-of-memory.
37390         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37391         upon out-of-memory.
37392         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37393         out-of-memory.
37394         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37395         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37396         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37397         Update.
37398         (gl_carray_list_implementation): Update.
37399         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37400         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37401         gl_linked_create_empty. Return NULL upon out-of-memory.
37402         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37403         out-of-memory.
37404         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37405         Change return type to 'int'. Return -1 upon out-of-memory.
37406         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37407         out-of-memory.
37408         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37409         upon out-of-memory.
37410         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37411         upon out-of-memory.
37412         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37413         NULL upon out-of-memory.
37414         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37415         upon out-of-memory.
37416         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37417         out-of-memory.
37418         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37419         Update.
37420         * lib/gl_linked_list.c: Don't include xalloc.h.
37421         (gl_linked_list_implementation): Update.
37422         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37423         (add_to_bucket): Change return type to 'int'.
37424         (gl_linkedhash_list_implementation): Update.
37425         * lib/gl_anytree_list1.h (free_subtree): New function.
37426         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37427         gl_tree_create_empty. Return NULL upon out-of-memory.
37428         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37429         Change return type to 'int'. Return -1 upon out-of-memory.
37430         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37431         out-of-memory.
37432         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37433         (gl_tree_remove_node): New function, moved here from
37434         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37435         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37436         Update.
37437         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37438         malloc, not xmalloc. Return NULL upon out-of-memory.
37439         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37440         out-of-memory.
37441         (gl_tree_remove_node_from_tree): New function, extracted from
37442         gl_tree_remove_node.
37443         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37444         upon out-of-memory.
37445         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37446         out-of-memory.
37447         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37448         upon out-of-memory.
37449         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37450         upon out-of-memory.
37451         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37452         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37453         not xmalloc. Return NULL upon out-of-memory.
37454         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37455         out-of-memory.
37456         (gl_tree_remove_node_from_tree): New function, extracted from
37457         gl_tree_remove_node.
37458         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37459         upon out-of-memory.
37460         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37461         out-of-memory.
37462         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37463         upon out-of-memory.
37464         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37465         upon out-of-memory.
37466         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37467         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37468         gl_anytree_list1.h before gl_anyavltree_list2.h.
37469         (gl_avltree_list_implementation): Update.
37470         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37471         gl_anytree_list1.h before gl_anyavltree_list2.h.
37472         (gl_rbtree_list_implementation): Update.
37473         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37474         Change return type to 'int'. Return -1 upon out-of-memory. Use
37475         __builtin_expect.
37476         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37477         (gl_avltreehash_list_implementation): Update.
37478         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37479         (gl_rbtreehash_list_implementation): Update.
37480         * modules/array-list (Depends-on): Remove xalloc.
37481         * modules/carray-list (Depends-on): Likewise.
37482         * modules/linked-list (Depends-on): Likewise.
37483         * modules/linkedhash-list (Depends-on): Likewise.
37484         * modules/avltree-list (Depends-on): Likewise.
37485         * modules/rbtree-list (Depends-on): Likewise.
37486         * modules/avltreehash-list (Depends-on): Likewise.
37487         * modules/rbtreehash-list (Depends-on): Likewise.
37488
37489         * modules/xsublist: New file.
37490         * lib/gl_xsublist.h: New file.
37491         * lib/gl_xsublist.c: New file.
37492         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37493         (gl_sublist_nx_create): New declaration.
37494         * lib/gl_sublist.c: Don't include xalloc.h.
37495         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37496         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37497         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37498         Change return type to 'int'. Return -1 upon out-of-memory.
37499         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37500         upon out-of-memory.
37501         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37502         NULL upon out-of-memory.
37503         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37504         upon out-of-memory.
37505         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37506         NULL upon out-of-memory.
37507         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37508         NULL upon out-of-memory.
37509         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37510         upon out-of-memory.
37511         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37512         (gl_sublist_list_implementation): Update.
37513         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37514         upon out-of-memory.
37515         * modules/sublist (Depends-on): Remove xalloc.
37516
37517         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37518         * tests/test-carray_list.c: Likewise.
37519         * tests/test-linked_list.c: Likewise.
37520         * tests/test-linkedhash_list.c: Likewise.
37521         * tests/test-avltree_list.c: Likewise.
37522         * tests/test-rbtree_list.c: Likewise.
37523         * tests/test-avltreehash_list.c: Likewise.
37524         * tests/test-rbtreehash_list.c: Likewise.
37525         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37526         * modules/carray-list-tests (Makefile.am): Likewise.
37527         * modules/linked-list-tests (Makefile.am): Likewise.
37528         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37529         * modules/avltree-list-tests (Makefile.am): Likewise.
37530         * modules/rbtree-list-tests (Makefile.am): Likewise.
37531         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37532         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37533
37534         * NEWS: Mention the changes.
37535
37536         * lib/clean-temp.c: Include gl_xlist.h.
37537         * modules/clean-temp (Depends-on): Add xlist.
37538
37539         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37540         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37541
37542         * tests/test-array_oset.c: Include gl_xlist.h.
37543         * modules/array-oset-tests (Depends-on): Add xlist.
37544
37545         Reported by José E. Marchesi <jemarch@gnu.org>.
37546
37547 2009-12-13  Bruno Haible  <bruno@clisp.org>
37548
37549         Move the malloc checking from module 'oset' to new module 'xoset'.
37550         * modules/xoset: New file.
37551         * lib/gl_xoset.h: New file.
37552         * lib/gl_xoset.c: New file.
37553         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37554         declarations.
37555         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37556         (struct gl_oset_implementation): Rename and change methods accordingly.
37557         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37558         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37559         'int'. Mark as __warn_unused_result__.
37560         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37561         gl_oset_create_empty.
37562         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37563         'int'.
37564         * lib/gl_array_oset.c: Don't include xalloc.h.
37565         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37566         malloc, not xmalloc.
37567         (grow): Change return type to 'int'. Don't call xalloc_die.
37568         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37569         to 'int'.
37570         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37571         'int'.
37572         (gl_array_oset_implementation): Update.
37573         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37574         gl_tree_create_empty.
37575         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37576         'int'.
37577         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37578         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37579         xmalloc.
37580         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37581         not xmalloc.
37582         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37583         xmalloc.
37584         (gl_avltree_oset_implementation): Update.
37585         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37586         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37587         xmalloc.
37588         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37589         not xmalloc.
37590         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37591         xmalloc.
37592         (gl_rbtree_oset_implementation): Update.
37593         * modules/array-oset (Depends-on): Remove xalloc.
37594         * modules/avltree-oset (Depends-on): Likewise.
37595         * modules/rbtree-oset (Depends-on): Likewise.
37596         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37597         * tests/test-avltree_oset.c: Likewise.
37598         * tests/test-rbtree_oset.c: Likewise.
37599         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37600         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37601         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37602         * NEWS: Mention the change.
37603
37604 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37605
37606         maint.mk: allow a project to override release-prep commands
37607         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37608         commands into a new rule.
37609         (release-prep): New rule.
37610         (release-prep-hook): New overridable variable.
37611
37612 2009-12-13  Bruno Haible  <bruno@clisp.org>
37613
37614         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37615
37616 2009-12-13  Jim Meyering  <meyering@redhat.com>
37617
37618         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37619         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37620
37621 2009-12-12  Bruno Haible  <bruno@clisp.org>
37622
37623         duplocale: Tweak.
37624         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37625
37626 2009-12-12  Karl Berry  <karl@gnu.org>
37627
37628         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37629
37630 2009-12-12  Bruno Haible  <bruno@clisp.org>
37631
37632         * m4/po.m4: Undo incorrect untabification.
37633
37634 2009-12-12  Bruno Haible  <bruno@clisp.org>
37635
37636         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37637         * modules/c-strtod (Depends-on): Add locale.
37638         * modules/c-strtold (Depends-on): Likewise.
37639
37640 2009-12-12  Bruno Haible  <bruno@clisp.org>
37641
37642         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37643
37644 2009-12-11  Eric Blake  <ebb9@byu.net>
37645
37646         setenv: relax requirement in light of POSIX ruling
37647         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37648         not NULL.
37649         * tests/test-setenv.c (main): Relax test.
37650         * tests/test-unsetenv.c (main): Likewise.
37651         * doc/posix-functions/setenv.texi (setenv): Document this.
37652         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37653
37654 2009-12-11  Bruno Haible  <bruno@clisp.org>
37655
37656         New module 'fd-safer-flag'.
37657         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37658         * lib/dup-safer.c (dup_safer_flag): Remove function.
37659         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37660         * lib/fd-safer.c (fd_safer_flag): Remove function.
37661         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37662         * modules/cloexec (configure.ac): Drop indicator macro.
37663         * modules/fd-safer-flag: New file.
37664         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37665         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37666         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37667
37668 2009-12-11  Bruno Haible  <bruno@clisp.org>
37669
37670         Tests for module 'nl_langinfo'.
37671         * modules/nl_langinfo-tests: New file.
37672         * tests/test-nl_langinfo.sh: New file.
37673         * tests/test-nl_langinfo.c: New file.
37674
37675         New module 'nl_langinfo'.
37676         * lib/nl_langinfo.c: New file.
37677         * m4/nl_langinfo.m4: New file.
37678         * modules/nl_langinfo: New file.
37679         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37680
37681 2009-12-11  Bruno Haible  <bruno@clisp.org>
37682
37683         Tests for module 'langinfo'.
37684         * modules/langinfo-tests: New file.
37685         * tests/test-langinfo.c: New file.
37686
37687         New module 'langinfo'.
37688         * lib/langinfo.in.h: New file.
37689         * m4/langinfo_h.m4: New file.
37690         * modules/langinfo: New file.
37691         * doc/posix-headers/langinfo.texi: Mention the new module.
37692
37693 2009-12-11  Bruno Haible  <bruno@clisp.org>
37694
37695         * lib/config.charset: Untabify.
37696
37697 2009-12-11  Bruno Haible  <bruno@clisp.org>
37698
37699         * modules/unistd-safer (configure.ac): Drop indicator macro.
37700
37701 2009-12-11  Bruno Haible  <bruno@clisp.org>
37702
37703         Move pipe2-safer code to its own file.
37704         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37705         * lib/pipe-safer.c (pipe2_safer): Remove function.
37706         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37707         (Makefile.am): Add it to lib_SOURCES.
37708
37709 2009-12-10  Bruno Haible  <bruno@clisp.org>
37710
37711         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37712
37713 2009-12-10  Bruno Haible  <bruno@clisp.org>
37714
37715         Declare which arguments expect non-NULL values, for GCC and clang.
37716         * build-aux/arg-nonnull.h: New file.
37717         * modules/arg-nonnull: New file.
37718         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37719         (inet_ntop, inet_pton): Use it.
37720         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37721         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37722         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37723         (open, openat): Use it.
37724         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37725         (fnmatch): Use it.
37726         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37727         (getopt, getopt_long, getopt_long_only): Use it.
37728         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37729         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37730         Use it.
37731         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37732         (iconv_open): Use it.
37733         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37734         (strtoimax, strtoumax): Use it.
37735         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37736         (duplocale): Use it.
37737         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37738         (frexp, frexpl): Use it.
37739         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37740         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37741         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37742         (tsearch, tfind, tdelete, twalk): Use it.
37743         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37744         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37745         sigpending): Use it.
37746         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37747         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37748         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37749         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37750         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37751         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37752         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37753         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37754         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37755         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37756         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37757         Use it.
37758         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37759         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37760         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37761         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37762         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37763         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37764         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37765         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37766         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37767         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37768         strtoull, unsetenv): Use it.
37769         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37770         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37771         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37772         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37773         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37774         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37775         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37776         (strcasecmp, strncasecmp): Use it.
37777         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37778         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37779         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37780         rpl_setsockopt): Use it.
37781         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37782         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37783         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37784         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37785         (gettimeofday): Use it.
37786         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37787         (times): Use it.
37788         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37789         (uname): Use it.
37790         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37791         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37792         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37793         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37794         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37795         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37796         unlinkat, write): Use it.
37797         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37798         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37799         * lib/argv-iter.h: Include arg-nonnull.h.
37800         (_ATTRIBUTE_NONNULL_): Remove macro.
37801         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37802         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37803         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37804         optimization.
37805         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37806         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37807         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37808         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37809         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37810         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37811         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37812         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37813         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37814         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37815         * modules/dirent (Depends-on): Add arg-nonnull.
37816         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37817         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37818         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37819         * modules/fnmatch (Depends-on): Add arg-nonnull.
37820         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37821         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37822         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37823         * modules/glob (Depends-on): Add arg-nonnull.
37824         (Makefile.am): Insert arg-nonnull.h into glob.h.
37825         * modules/iconv_open (Depends-on): Add arg-nonnull.
37826         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37827         * modules/inttypes (Depends-on): Add arg-nonnull.
37828         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37829         * modules/locale (Depends-on): Add arg-nonnull.
37830         (Makefile.am): Insert arg-nonnull.h into locale.h.
37831         * modules/math (Depends-on): Add arg-nonnull.
37832         (Makefile.am): Insert arg-nonnull.h into math.h.
37833         * modules/netdb (Depends-on): Add arg-nonnull.
37834         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37835         * modules/search (Depends-on): Add arg-nonnull.
37836         (Makefile.am): Insert arg-nonnull.h into search.h.
37837         * modules/signal (Depends-on): Add arg-nonnull.
37838         (Makefile.am): Insert arg-nonnull.h into signal.h.
37839         * modules/spawn (Depends-on): Add arg-nonnull.
37840         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37841         * modules/stdio (Depends-on): Add arg-nonnull.
37842         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37843         * modules/stdlib (Depends-on): Add arg-nonnull.
37844         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37845         * modules/string (Depends-on): Add arg-nonnull.
37846         (Makefile.am): Insert arg-nonnull.h into string.h.
37847         * modules/strings (Depends-on): Add arg-nonnull.
37848         (Makefile.am): Insert arg-nonnull.h into strings.h.
37849         * modules/sys_socket (Depends-on): Add arg-nonnull.
37850         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37851         * modules/sys_stat (Depends-on): Add arg-nonnull.
37852         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37853         * modules/sys_time (Depends-on): Add arg-nonnull.
37854         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37855         * modules/sys_times (Depends-on): Add arg-nonnull.
37856         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37857         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37858         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37859         * modules/time (Depends-on): Add arg-nonnull.
37860         (Makefile.am): Insert arg-nonnull.h into time.h.
37861         * modules/unistd (Depends-on): Add arg-nonnull.
37862         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37863         * modules/wchar (Depends-on): Add arg-nonnull.
37864         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37865         * modules/argv-iter (Depends-on): Add arg-nonnull.
37866         * tests/test-canonicalize.c (null_ptr): New function.
37867         (main): Use it.
37868         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37869         (main): Use it.
37870         * tests/test-memmem.c (null_ptr): New function.
37871         (main): Use it.
37872         Reported by Jim Meyering.
37873
37874 2009-12-10  Bruno Haible  <bruno@clisp.org>
37875
37876         Use spaces for indentation, not tabs.
37877         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37878         * m4/*.m4: Untabify.
37879         * build-aux/*.h: Untabify.
37880         * tests/**/*.[hc]: Untabify.
37881         * README: New section "Indent with spaces, not TABs", based on
37882         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37883         * NEWS: Mention the change.
37884
37885 2009-12-10  Bruno Haible  <bruno@clisp.org>
37886
37887         pty test: Fix link error.
37888         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37889         test_pty_LDADD.
37890
37891 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37892
37893         * modules/pty: New file.
37894         * modules/pty-tests: New file.
37895         * m4/pty.m4: New file.
37896         * tests/test-pty.c: New file.
37897         * doc/glibc-headers/pty.texi: Modified.
37898         * doc/glibc-functions/forkpty.texi: Modified.
37899         * doc/glibc-functions/openpty.texi: Modified.
37900
37901 2009-12-10  Bruno Haible  <bruno@clisp.org>
37902
37903         Avoid syntax error in C++ mode.
37904         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37905
37906 2009-12-10  Bruno Haible  <bruno@clisp.org>
37907
37908         Use sed with option -e.
37909         * gnulib-tool (func_version, func_emit_copyright_notice,
37910         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37911         option -e to sed.
37912         * modules/link-warning (Makefile.am): Likewise.
37913
37914 2009-12-10  Jim Meyering  <meyering@redhat.com>
37915
37916         mgetgroups: do not write bytes beyond end of malloc'd buffer
37917         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37918         username, we call getgroups with a one-element-shorter buffer,
37919         but still told it the length was original, max_n_groups.
37920
37921 2009-12-09  Eric Blake  <ebb9@byu.net>
37922
37923         cloexec: relax license
37924         * modules/cloexec (Maintainer): Add myself.
37925         (License): Use LGPL, not GPL.
37926
37927         link-warning: optimize generation
37928         * modules/link-warning (Makefile.am): Reduce process usage.
37929
37930 2009-12-09  Bruno Haible  <bruno@clisp.org>
37931
37932         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37933         workaround was added on 2009-11-17.
37934
37935 2009-12-09  Jim Meyering  <meyering@redhat.com>
37936             Bruno Haible  <bruno@clisp.org>
37937
37938         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37939         * modules/link-warning (Makefile.am): Make the comment-removing sed
37940         command more robust in the face of bootstrap-prepended comment lines.
37941
37942 2009-12-09  Bruno Haible  <bruno@clisp.org>
37943
37944         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37945         most one group.
37946
37947 2009-12-09  Simon Josefsson <simon@josefsson.org>
37948             Bruno Haible  <bruno@clisp.org>
37949
37950         * build-aux/link-warning.h: Add copyright notice.
37951         * modules/link-warning (Makefile.am): Generate link-warning.h from
37952         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37953         * NEWS: Mention change in link-warning module.
37954         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37955         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37956         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37957         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37958         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37959         * modules/math (Makefile.am): Add dependency to math.h.
37960         * modules/search (Makefile.am): Add dependency to search.h.
37961         * modules/signal (Makefile.am): Add dependency to signal.h.
37962         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37963         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37964         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37965         * modules/string (Makefile.am): Add dependency to string.h.
37966         * modules/strings (Makefile.am): Add dependency to strings.h.
37967         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37968         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37969         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37970         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37971         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37972         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37973         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37974         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37975         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37976
37977 2009-12-09  Bruno Haible  <bruno@clisp.org>
37978
37979         fchdir: Optimize away rpl_fstat when possible.
37980         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37981         REPLACE_OPEN_DIRECTORY.
37982         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37983
37984 2009-12-09  Bruno Haible  <bruno@clisp.org>
37985
37986         * lib/fchdir.c: Update comment.
37987
37988 2009-12-09  Bruno Haible  <bruno@clisp.org>
37989
37990         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37991
37992 2009-12-08  Eric Blake  <ebb9@byu.net>
37993
37994         fchdir: avoid memory leak on re-registration.
37995         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37996
37997 2009-12-08  Jim Meyering  <meyering@redhat.com>
37998
37999         init.sh: avoid Solaris 10 /bin/sh portability problem
38000         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38001         sourced script:
38002           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38003           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38004           bar
38005         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38006         and two tests used that idiom.
38007         * tests/init.sh: Update suggested usage comments.
38008         (path_prepend_): New function, to be used in place
38009         of the --src-path=DIR option.
38010         (setup_): Move PATH-prepending code into path_prepend_.
38011         * tests/test-pread.sh: Adapt to new usage.
38012         * tests/test-xalloc-die.sh: Likewise.
38013
38014 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38015
38016         * doc/gnulib.texi (Glibc pty.h): Add.
38017         * doc/glibc-functions/forkpty.texi: Add.
38018         * doc/glibc-functions/openpty.texi: Add.
38019         Suggested by Bruno Haible.
38020
38021 2009-12-08  Eric Blake  <ebb9@byu.net>
38022
38023         fchdir: fix logic bugs
38024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38025         * tests/test-fchdir.c (main): Enhance test.
38026         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38027         is in use.
38028
38029         dup2: fix logic bugs
38030         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38031         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38032         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38033         exists.
38034         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38035
38036 2009-12-07  Eric Blake  <ebb9@byu.net>
38037
38038         unlink: fix m4 detection
38039         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38040
38041         unistd-safer: add unit test
38042         * modules/unistd-safer-tests: New file.
38043         * tests/test-dup-safer.c: Likewise.
38044         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38045         * tests/test-dup2.c (setmode): Likewise.
38046         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38047
38048         cloexec: preserve text vs. binary across dup_cloexec
38049         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38050         mode.
38051         * modules/dup2-tests (Depends-on): Add binary-io.
38052         * modules/cloexec-tests (Depends-on): Likewise.
38053         * tests/test-dup2.c (setmode, is_mode): New helpers.
38054         (main): Add tests that translation mode is preserved.
38055         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38056         Reported by Bruno Haible.
38057
38058         mgetgroups: reduce duplicate listings
38059         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38060         resulting array.
38061         * tests/test-chown.h (test_chown): Simplify client.
38062         * tests/test-lchown.h (test_lchown): Likewise.
38063
38064 2009-12-06  Bruno Haible  <bruno@clisp.org>
38065
38066         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38067         value.
38068
38069 2009-12-06  Bruno Haible  <bruno@clisp.org>
38070
38071         * lib/progname.c: Include stdio.h, stdlib.h.
38072         (set_program_name): Reject a NULL argument.
38073
38074 2009-12-05  Eric Blake  <ebb9@byu.net>
38075
38076         pipe2-safer: new module
38077         * modules/pipe2-safer: New file.
38078         * lib/unistd-safer.h (pipe2_safer): New prototype.
38079         * lib/unistd--.h (pipe2): New wrapper.
38080         * lib/pipe-safer.c (pipe2_safer): New function.
38081         * modules/pipe (Depends-on): Add pipe2-safer.
38082         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38083
38084         stdlib-safer: preserve cloexec flag for mkostemp[s]
38085         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38086         fd_safer_flag.
38087
38088         unistd-safer: allow preservation of cloexec status via flag
38089         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38090         prototypes.
38091         * lib/dup-safer.c (dup_safer_flag): New function.
38092         * lib/fd-safer.c (fd_safer_flag): Likewise.
38093         * modules/cloexec (configure.ac): Set witness.
38094
38095         test-dup2: enhance test
38096         * modules/dup2-tests (Depends-on): Add cloexec.
38097         * tests/test-dup2.c (main): Enhance test.
38098
38099         cloexec: add dup_cloexec
38100         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38101         header and comments.
38102         * lib/cloexec.c (set_cloexec_flag): Add comments.
38103         (dup_cloexec): New function, with mingw implementation borrowed
38104         from...
38105         * lib/w32spawn.h (dup_noinherit): ...here.
38106         * modules/execute (Depends-on): Add cloexec.
38107         * modules/pipe (Depends-on): Likewise.
38108         * modules/cloexec (Depends-on): Add dup2.
38109         * modules/cloexec-tests (Files): New file.
38110         * tests/test-cloexec.c: Likewise.
38111
38112         test-xalloc-die: fix test for mingw
38113         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38114         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38115         directory and .exe suffix off argv[0] output.
38116
38117         test-fseeko: fix test for mingw
38118         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38119         than undefining fseek, so test will pass on mingw.
38120
38121 2009-12-05  Bruno Haible  <bruno@clisp.org>
38122
38123         * lib/progname.h (set_program_name): Clarify specification.
38124         * lib/progname.c (set_program_name): Likewise.
38125         Reported by Jim Meyering.
38126
38127 2009-12-05  Jim Meyering  <meyering@redhat.com>
38128
38129         maint.mk: backslash-escape parens in default regexp
38130         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38131         backslash-escape the literal parentheses.
38132
38133         maint.mk: news-date-check: use grep -E
38134         * top/maint.mk (today): Define a Make variable, not a...
38135         (news-date-check): ...shell variable.
38136         (news-date-regexp): Use the Make variable.
38137         Use grep's -E option.  Change the failing diagnostic to mention
38138         the variable, $(news-date-regexp).
38139
38140 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38141
38142         maintainer-makefile: allow customization of NEWS entry format
38143         * top/maint.mk (news-date-regexp): New overridable variable.
38144         (news-date-check): Use it.
38145
38146 2009-12-04  Eric Blake  <ebb9@byu.net>
38147
38148         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38149         * lib/mgetgroups.h (xgetgroups): New prototype.
38150         * lib/mgetgroups.c (xgetgroups): New wrapper.
38151         (mgetgroups): Handle ENOSYS.
38152         * modules/mgetgroups (Depends-on): Add realloc.
38153         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38154
38155         mgetgroups: avoid argument promotion issues with -1
38156         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38157         for invalid gid_t.
38158         * tests/test-chown.h (getegid, test_chown): Likewise.
38159         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38160
38161 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38162
38163         exclude: Fix header file problems.
38164         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38165
38166 2009-12-01  Jim Meyering  <meyering@redhat.com>
38167
38168         fts: fts_open: do not let an empty string cause immediate failure
38169         This is required in support of GNU rm, for which the command
38170         "rm A '' B" must process and remove both A and B, in spite of
38171         the empty string argument.
38172         * lib/fts.c (fts_open): Do not let the presence of an empty string
38173         cause fts_open to fail immediately.  Most fts-using tools must be
38174         able to process all arguments, in order, and can be expected to
38175         diagnose such arguments themselves.
38176
38177 2009-11-30  Eric Blake  <ebb9@byu.net>
38178
38179         utimens: fix compilation error
38180         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38181         Declare variable at right scope.
38182
38183 2009-11-29  Jim Meyering  <meyering@redhat.com>
38184
38185         bootstrap: handle perl-5.11's changed --version output
38186         * build-aux/bootstrap (get_version): Handle perl separately,
38187         since perl-5.11's --version output is different.
38188
38189 2009-11-28  Jim Meyering  <meyering@redhat.com>
38190
38191         userspec: depend on the inttostr module, too
38192         * modules/userspec (Depends-on): Add inttostr.
38193
38194         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38195         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38196         number of MAXUID when it evaluates to (uid_t) -1.
38197         Likewise for group ID.  Reported by Matt McCutchen in
38198         <http://savannah.gnu.org/bugs/?28113>
38199
38200         userspec: reformat to use spaces, not TABs
38201         * lib/userspec.c: Expand TABs to spaces.
38202         Add Emacs' "indent-tabs-mode: nil" hint.
38203
38204 2009-11-27  Eric Blake  <ebb9@byu.net>
38205
38206         getopt-gnu: flush out another BSD bug
38207         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38208         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38209         flush out BSD bug.
38210         * tests/test-getopt.h (test_getopt): End lists with NULL.
38211         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38212         (test_getopt_long_posix): Enhance test.
38213         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38214         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38215         getopt-gnu.
38216         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38217         Likewise.
38218
38219 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38220
38221         * modules/idpriv-droptemp-tests (Notice): Fix text.
38222
38223 2009-11-27  Jim Meyering  <meyering@redhat.com>
38224
38225         test-xalloc-die: avoid spurious failure due to libtool argv difference
38226         In a libtool-enabled project, this test would fail due to a difference
38227         in the emitted program name, e.g.,
38228         -test-xalloc-die: memory exhausted
38229         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38230         Use program to avoid that.
38231         * modules/xalloc-die-tests (Depends-on): Add progname.
38232         * tests/test-xalloc-die.c: Include progname.h".
38233         (program_name): Remove decl.
38234         (main): Call set_program_name.
38235         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38236
38237 2009-11-26  Richard Jones  <rjones@redhat.com>
38238
38239         w32sock: leave win32 error in place.
38240         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38241
38242 2009-11-26  Eric Blake  <ebb9@byu.net>
38243
38244         init.sh: suggest to use skip_ and fail_ functions in comments
38245         * tests/init.sh: Add a sentence.
38246
38247 2009-11-25  Bruno Haible  <bruno@clisp.org>
38248
38249         init.sh: add documentation in comments
38250         * tests/init.sh: Add some developer and user documentation.
38251
38252 2009-11-26  Jim Meyering  <meyering@redhat.com>
38253
38254         init.sh: accommodate even those who specify bogus srcdir manually
38255         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38256         configure-time tests to be sanitized, so that there is no need to
38257         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38258         (with no double quotes) suffices.  However, since tests may be
38259         invoked manually, and since you may explicitly set srcdir to the
38260         name of a directory containing spaces, do quote its uses here.
38261         * tests/test-pread.sh: Likewise.
38262         Suggested by Bruno Haible.
38263
38264         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38265         * tests/test-pread.sh: Write no data into the pipe, because
38266         test-pread actually reads none.  This avoids a diagnostic,
38267         "bash: echo: write error: Broken pipe", that arises in the unusual
38268         event something is ignoring SIGPIPE, and might be interpreted
38269         as some sort of failure.  Reported by Bruno Haible.
38270
38271 2009-11-25  Jim Meyering  <meyering@redhat.com>
38272
38273         test-pread: cover failure with ESPIPE and EINVAL
38274         * tests/test-pread.c (main): Test for failure, too.
38275         * tests/test-pread.sh: Invoke with stdin on a pipe.
38276         Suggested by Eric Blake.
38277
38278         pread: improvement and fix
38279         * modules/pread (Depends-on): Depend on lseek, for portability to
38280         e.g., mingw.  Suggested by Eric Blake.
38281         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38282
38283         unistd.in.h: correct declaration of pread
38284         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38285         Reported by Richard W.M. Jones.
38286
38287         test-pread.sh: distribute the test script
38288         * modules/pread-tests (Files): Include test-pread.sh.
38289
38290         test-pread.sh: clean up
38291         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38292         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38293         That is unnecessary, since it's always ".".
38294         Suggestion from Eric Blake.
38295
38296         test-pread.sh: make executable
38297         * tests/test-pread.sh: Set executable bit.
38298         Reported by Eric Blake.
38299
38300         correct typo in test-pread.sh
38301         * tests/test-pread.sh: Add #! line.
38302
38303         test pread
38304         * tests/test-pread.c: New file.
38305         * tests/test-pread.sh: Likewise.
38306         * modules/pread-tests: Likewise.
38307
38308         pread: new module
38309         * modules/pread: New file.
38310         * lib/unistd.in.h (pread): Define/declare.
38311         * lib/pread.c (pread): New file.
38312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38313         * modules/unistd (Makefile.am): Substitute witnesses.
38314         * doc/posix-functions/pread.texi (pread): Update.
38315         * MODULES.html.sh: Add pread.
38316
38317 2009-11-25  Jim Meyering  <meyering@redhat.com>
38318
38319         tests/init.sh: new file to be used via most *.sh tests
38320         * tests/init.sh: New file.
38321
38322 2009-11-25  Eric Blake  <ebb9@byu.net>
38323
38324         utimens: work around older Linux failure with symlinks
38325         * lib/utimens.c (lutimensat_works_really): New variable.
38326         (fdutimens, lutimens): Use it to manage kernels that support
38327         nanosecond times on files, but not on symlinks.
38328         Reported by OndÅ™ej Vašík.
38329
38330         utimes: fix configure grammar
38331         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38332
38333 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38334
38335         regex: Fix fastmap for multibyte character ranges.
38336         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38337         characters when a multibyte character range is included.
38338
38339 2009-11-22  Andy Wingo  <wingo@pobox.com>
38340
38341         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38342         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38343
38344 2009-11-24  Bruno Haible  <bruno@clisp.org>
38345
38346         doc: Most *_l functions exist in MacOS X 10.5.
38347         * doc/posix-functions/duplocale.texi: Update platforms list.
38348         * doc/posix-functions/freelocale.texi: Likewise.
38349         * doc/posix-functions/newlocale.texi: Likewise.
38350         * doc/posix-functions/uselocale.texi: Likewise.
38351         * doc/posix-functions/isalnum_l.texi: Likewise.
38352         * doc/posix-functions/isalpha_l.texi: Likewise.
38353         * doc/posix-functions/isblank_l.texi: Likewise.
38354         * doc/posix-functions/iscntrl_l.texi: Likewise.
38355         * doc/posix-functions/isdigit_l.texi: Likewise.
38356         * doc/posix-functions/isgraph_l.texi: Likewise.
38357         * doc/posix-functions/islower_l.texi: Likewise.
38358         * doc/posix-functions/isprint_l.texi: Likewise.
38359         * doc/posix-functions/ispunct_l.texi: Likewise.
38360         * doc/posix-functions/isspace_l.texi: Likewise.
38361         * doc/posix-functions/isupper_l.texi: Likewise.
38362         * doc/posix-functions/iswalnum_l.texi: Likewise.
38363         * doc/posix-functions/iswalpha_l.texi: Likewise.
38364         * doc/posix-functions/iswblank_l.texi: Likewise.
38365         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38366         * doc/posix-functions/iswctype_l.texi: Likewise.
38367         * doc/posix-functions/iswdigit_l.texi: Likewise.
38368         * doc/posix-functions/iswgraph_l.texi: Likewise.
38369         * doc/posix-functions/iswlower_l.texi: Likewise.
38370         * doc/posix-functions/iswprint_l.texi: Likewise.
38371         * doc/posix-functions/iswpunct_l.texi: Likewise.
38372         * doc/posix-functions/iswspace_l.texi: Likewise.
38373         * doc/posix-functions/iswupper_l.texi: Likewise.
38374         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38375         * doc/posix-functions/isxdigit_l.texi: Likewise.
38376         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38377         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38378         * doc/posix-functions/strcoll_l.texi: Likewise.
38379         * doc/posix-functions/strfmon_l.texi: Likewise.
38380         * doc/posix-functions/strftime_l.texi: Likewise.
38381         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38382         * doc/posix-functions/strxfrm_l.texi: Likewise.
38383         * doc/posix-functions/tolower_l.texi: Likewise.
38384         * doc/posix-functions/toupper_l.texi: Likewise.
38385         * doc/posix-functions/towctrans_l.texi: Likewise.
38386         * doc/posix-functions/towlower_l.texi: Likewise.
38387         * doc/posix-functions/towupper_l.texi: Likewise.
38388         * doc/posix-functions/wcscoll_l.texi: Likewise.
38389         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38390         * doc/posix-functions/wctrans_l.texi: Likewise.
38391         * doc/posix-functions/wctype_l.texi: Likewise.
38392         * doc/glibc-functions/strptime_l.texi: Likewise.
38393         * doc/glibc-functions/strtod_l.texi: Likewise.
38394         * doc/glibc-functions/strtof_l.texi: Likewise.
38395         * doc/glibc-functions/strtol_l.texi: Likewise.
38396         * doc/glibc-functions/strtold_l.texi: Likewise.
38397         * doc/glibc-functions/strtoll_l.texi: Likewise.
38398         * doc/glibc-functions/strtoul_l.texi: Likewise.
38399         * doc/glibc-functions/strtoull_l.texi: Likewise.
38400         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38401         * doc/glibc-functions/wcstod_l.texi: Likewise.
38402         * doc/glibc-functions/wcstof_l.texi: Likewise.
38403         * doc/glibc-functions/wcstol_l.texi: Likewise.
38404         * doc/glibc-functions/wcstold_l.texi: Likewise.
38405         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38406         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38407         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38408
38409 2009-11-24  Bruno Haible  <bruno@clisp.org>
38410
38411         duplocale: Fix logic bug.
38412         * lib/duplocale.c: Don't include <langinfo.h>.
38413         (_NL_LOCALE_NAME): Remove macro.
38414         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38415         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38416
38417 2009-11-23  Jim Meyering  <meyering@redhat.com>
38418
38419         test-update-copyright: don't hard-code /usr/bin/perl
38420         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38421         perl to print the current year.  Gilles Espinasse reported that
38422         the replaced use of perl was hard-coded as /usr/bin/perl.
38423
38424 2009-11-23  Bruno Haible  <bruno@clisp.org>
38425
38426         duplocale: Add support for glibc 2.3.x.
38427         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38428
38429 2009-11-22  Bruno Haible  <bruno@clisp.org>
38430
38431         vasnprintf: Tiny optimization.
38432         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38433         MacOS X.
38434
38435 2009-11-22  Bruno Haible  <bruno@clisp.org>
38436
38437         Tests for module 'duplocale'.
38438         * modules/duplocale-tests: New file.
38439         * tests/test-duplocale.c: New file.
38440
38441         New module 'duplocale'.
38442         * m4/duplocale.m4: New file.
38443         * lib/locale.in.h (duplocale): New declaration.
38444         * lib/duplocale.c: New file.
38445         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38446         gl_LOCALE_H_DEFAULTS): New macros.
38447         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38448         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38449         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38450         REPLACE_DUPLOCALE.
38451         * modules/duplocale: New file.
38452         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38453
38454 2009-11-22  Bruno Haible  <bruno@clisp.org>
38455
38456         * modules/locale-tests (configure.ac): Test for newlocale function.
38457         * tests/test-locale.c: When the system has extended locale functions,
38458         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38459
38460         locale: Make locale_t available when possible.
38461         * lib/locale.in.h: Include <xlocale.h> when it exists.
38462         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38463         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38464         * modules/locale (Depends-on): Add extensions.
38465         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38466         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38467
38468 2009-11-22  Bruno Haible  <bruno@clisp.org>
38469
38470         Add comments.
38471         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38472         invocation.
38473         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38474         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38475         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38476
38477 2009-11-22  Bruno Haible  <bruno@clisp.org>
38478
38479         error: account for the possibility of freopen (stdout).
38480         * lib/error.c: Include <unistd.h>.
38481         (flush_stdout): New function, extracted from error and error_at_line.
38482         Determine stdout's fd dynamically.
38483         (error, error_at_line): Invoke flush_stdout.
38484         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38485         * modules/error (Depends-on): Add unistd.
38486
38487 2009-11-22  Bruno Haible  <bruno@clisp.org>
38488
38489         diffseq: Add comment.
38490         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38491
38492 2009-11-22  Jim Meyering  <meyering@redhat.com>
38493
38494         c-stack: avoid defining an unused static function
38495         * lib/c-stack.c (find_stack_direction): Do not define this function
38496         when it will not be used.
38497
38498         diffseq: avoid spurious gcc warnings
38499         * lib/diffseq.h (IF_LINT2): Define.
38500         (compareseq): Use it to initialize two members of "part".
38501         This avoids two used-uninitialized warnings.
38502
38503 2009-11-21  Jim Meyering  <meyering@redhat.com>
38504
38505         c-stack: avoid "ignoring return value of `write'" warning
38506         * lib/c-stack.c: Include "ignore-value.h".
38507         (die): Explicitly ignore each write return value.
38508         * modules/c-stack (Depends-on): Add ignore-value.
38509
38510 2009-11-21  Bruno Haible  <bruno@clisp.org>
38511
38512         diffseq: reduce scope of variable 'best'.
38513         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38514         variable, earlier used for two different purposes.
38515
38516 2009-11-21  Jim Meyering  <meyering@redhat.com>
38517
38518         diffseq: remove useless assignment to "best"
38519         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38520         assignment.  At that point "best" is already guaranteed to be zero.
38521
38522 2009-11-20  Eric Blake  <ebb9@byu.net>
38523
38524         build: mention ftp redirector in release announcements
38525         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38526         values that used to come from cfg.mk; mention FTP redirect URL.
38527         * build-aux/announce-gen: Mention the mirror list.
38528         Suggested by Karl Berry.
38529
38530         nanosleep: improve port to mingw
38531         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38533         LIB_NANOSLEEP, but only when needed.
38534         * modules/select (Link): Document LIBSOCKET.
38535         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38536         enough.
38537
38538         nanosleep: work around cygwin bug
38539         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38540         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38541         bug.
38542         (getnow): Delete, not needed.
38543         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38544         LIB_CLOCK_GETTIME.
38545         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38546         clock-time, gettime.
38547         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38548         bug.
38549         * modules/nanosleep-tests: New test.
38550         * tests/test-nanosleep.c: New file.
38551
38552         sleep: work around cygwin bug
38553         * lib/sleep.c (rpl_sleep): Work around the bug.
38554         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38555         (gl_PREREQ_SLEEP): Delete unused macro.
38556         * modules/sleep (Depends-on): Add verify.
38557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38558         * modules/unistd (Makefile.am): Substitute witness.
38559         * lib/unistd.in.h (sleep): Update prototype.
38560         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38561         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38562         * modules/sleep-tests (Depends-on): Check for alarm.
38563
38564 2009-11-20  Jim Meyering  <meyering@redhat.com>
38565
38566         maint.mk: improve sc_prohibit_magic_number_exit
38567         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38568         so it does not match uses like System.exit(1).
38569         Add comments showing how to correct all offenders.
38570
38571 2009-11-19  Eric Blake  <ebb9@byu.net>
38572
38573         xalloc-die-tests: add missing library
38574         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38575
38576         test-xvasprintf: silence compiler warnings
38577         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38578         empty string from gcc.
38579
38580 2009-11-19  Jim Meyering  <meyering@redhat.com>
38581
38582         xfreopen: new module, from coreutils
38583         * modules/xfreopen: New module.
38584         * lib/xfreopen.c: New file.
38585         * lib/xfreopen.h: New file.
38586         * MODULES.html.sh (File stream based Input/Output"): Add it.
38587
38588 2009-11-19  Eric Blake  <ebb9@byu.net>
38589
38590         manywarnings: depend on warnings
38591         * modules/manywarnings (Depends-on): Add warnings.
38592
38593         build: avoid compiler warnings
38594         * lib/select.c (rpl_select): Delete unused variable.
38595         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38596
38597 2009-11-18  Eric Blake  <ebb9@byu.net>
38598
38599         tests: avoid false negative with --with-packager
38600         * tests/test-version-etc.sh: Discard packager information.
38601         * tests/test-argp-version-etc-1.sh: Likewise.
38602         Reported by Mike Frysinger.
38603
38604         utimens: fix regression on Solaris
38605         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38606         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38607         can only change fd timestamps via futimesat.  Instead, use an
38608         additional witness macro to avoid BSD bug.
38609         Reported by Jim Meyering.
38610
38611 2009-11-17  Eric Blake  <ebb9@byu.net>
38612
38613         usleep: use it to simplify tests
38614         * modules/stat-time-tests (Depends-on): Add usleep.
38615         (configure.ac): Drop usleep check.
38616         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38617         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38618         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38619         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38620         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38621         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38622         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38623         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38624         Likewise.
38625         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38626         * tests/test-lchown.h (nap): Likewise.
38627         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38628         * tests/test-stat-time.c (nap): Likewise.
38629         * tests/test-utimens-common.h (nap): Update comments.
38630
38631         usleep: new module
38632         * modules/usleep: New file.
38633         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38634         * lib/usleep.c (usleep): Likewise.
38635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38636         * modules/unistd (Makefile.am): Substitute witnesses.
38637         * lib/unistd.in.h (usleep): Add declaration.
38638         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38639         * MODULES.html.sh (Date and time): Likewise.
38640         * modules/usleep-tests (Depends-on): New test.
38641         * tests/test-usleep.c: New file.
38642
38643         chown: work around OpenBSD bug
38644         * lib/chown.c (rpl_chown): Work around the bug.
38645         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38646         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38647         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38648         * modules/chown (Depends-on): Add stdbool.
38649         * modules/lchown (Depends-on): Likewise.
38650         * doc/posix-functions/chown.texi (chown): Document the bug.
38651         * doc/posix-functions/lchown.texi (lchown): Likewise.
38652         * tests/test-lchown.h (test_chown): Relax test.
38653
38654         mkstemp: avoid conflict with C++ keyword template
38655         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38656         * lib/mkostemp.c (mkostemp): Likewise.
38657         * lib/mkostemps.c (mkostemps): Likewise.
38658         * lib/mkstemp.c (mkstemp): Likewise.
38659         * lib/mkstemps.c (mkstemps): Likewise.
38660
38661         xalloc-die-tests: optimize
38662         * tests/test-xalloc-die.sh: Reduce number of processes.
38663
38664 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38665
38666         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38667         patch from ludo@gnu.org (Ludovic Courtès).
38668
38669 2009-11-17  Jim Meyering  <meyering@redhat.com>
38670
38671         version-etc: use proper license string
38672         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38673         * modules/version-etc-fsf: Likewise.
38674
38675 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38676
38677         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38678         printed to stdout.  Deal with EOL differences.
38679
38680 2009-11-17  Eric Blake  <ebb9@byu.net>
38681
38682         unsetenv: work around Solaris bug
38683         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38684         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38685         Reported by Jim Meyering.
38686
38687         vasnprintf: avoid compiler warnings
38688         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38689         variables.
38690         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38691
38692 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38693
38694         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38695         settings since xalloc-die is no longer the self test,
38696         xalloc-die.sh is.
38697
38698 2009-11-17  Jim Meyering  <meyering@redhat.com>
38699
38700         test-xalloc-die.sh: make the code agree with the commit log
38701         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38702         at the end, just in case you happen to have a test-xalloc-die
38703         program in some other PATH directory.
38704
38705         test-xalloc-die.sh: fix a portability bug
38706         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38707         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38708         Otherwise, argv[0] (as often seen in diagnostics) would be too
38709         system-dependent, sometimes with, and sometimes without the leading "./".
38710
38711         version-etc-fsf: relax license to LGPLv3+
38712         * modules/version-etc-fsf (License): Relax license.
38713
38714 2009-11-16  Eric Blake  <ebb9@byu.net>
38715
38716         xalloc-die-tests: avoid printing null pointer
38717         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38718         shell script.
38719         * tests/test-xalloc-die.c (program_name): Declare.
38720         * tests/test-xalloc-die.sh (tmpfiles): New file.
38721
38722         setenv, unsetenv: work around various bugs
38723         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38724         (setenv) [HAVE_SETENV]: Work around bugs.
38725         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38727         for bugs.
38728         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38729         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38730         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38731         * modules/stdlib (Makefile.am): Update substitutions.
38732         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38733         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38734         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38735         * modules/setenv-tests: New test.
38736         * modules/unsetenv-tests: Likewise.
38737         * tests/test-setenv.c: New file.
38738         * tests/test-unsetenv.c: Likewise.
38739
38740 2009-11-16  Jim Meyering  <meyering@redhat.com>
38741
38742         version-etc: relax license to LGPLv3+
38743         * modules/version-etc (License): Relax license.
38744
38745         better AC_REQUIRE expanded-before-required-warning avoidance
38746         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38747         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38748         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38749         which is no longer needed.
38750
38751 2009-11-16  Eric Blake  <ebb9@byu.net>
38752
38753         test-freading: clean up temporary file
38754         * tests/test-freading.c (main): Remove file on success, and use
38755         ASSERT more liberally.
38756         Reported by Jim Meyering.
38757
38758 2009-11-16  Jim Meyering  <meyering@redhat.com>
38759
38760         avoid new AC_REQUIRE expanded-before-required warnings
38761         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38762         merely using it.
38763         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38764         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38765
38766 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38767
38768         * tests/test-xalloc-die.c: New file.
38769         * modules/xalloc-die-tests: New file.
38770         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38771         XFAIL_TESTS so it can be appended by modules.
38772
38773 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38774
38775         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38776         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38777
38778 2009-11-14  Eric Blake  <ebb9@byu.net>
38779
38780         fnmatch: avoid compiler warning
38781         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38782         to silence compiler warning about mismatch signedness in ?:.
38783         Reported by Robert Millan.
38784
38785         intprops: add double-inclusion guard
38786         * lib/intprops.h: Allow idempotent includes.
38787         Suggested by Bruce Korb.
38788
38789         openat: detect Solaris fchownat bug
38790         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38791         penalizing glibc chownat when only lchownat is broken.
38792         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38793         trailing slash bugs.
38794         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38795         * modules/openat-tests (Files): Include more files.
38796         (Depends-on): Add mgetgroups, sleep, stat-time.
38797         (configure.ac): Add additional checks.
38798         (Makefile.am): Build new test.
38799         * tests/test-fchownat.c: New file.
38800
38801         lchown: detect Solaris and FreeBSD bug
38802         * lib/lchown.c (rpl_lchown): Work around bug.
38803         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38805         * modules/unistd (Makefile.am): Populate it.
38806         * lib/unistd.in.h (lchown): Update declaration.
38807         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38808         * modules/lchown-tests: New file.
38809         * tests/test-lchown.h (test_lchown): Likewise.
38810         * tests/test-lchown.c (main): Likewise.
38811
38812         chown: detect Solaris and FreeBSD bug
38813         * lib/chown.c (rpl_chown): Work around bug.
38814         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38815         (gl_PREREQ_CHOWN): Delete.
38816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38817         * modules/unistd (Makefile.am): Populate it.
38818         * lib/unistd.in.h (chown): Update declaration.
38819         * lib/lchown.c (chown): Update client.
38820         * modules/lchown (Depends-on): Add lstat.
38821         * doc/posix-functions/chown.texi (chown): Document the bug.
38822         * doc/posix-functions/getgroups.texi (getgroups): Document
38823         getgroups pitfall.
38824         * modules/chown-tests: New file.
38825         * tests/test-chown.h (test_chown): Likewise.
38826         * tests/test-chown.c (main): Likewise.
38827
38828 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38829
38830         gnulib-tool: correctly detect absence of m4 directories
38831         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38832
38833 2009-11-14  Jim Meyering  <meyering@redhat.com>
38834
38835         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38836         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38837
38838 2009-11-14  John W. Eaton  <jwe@gnu.org>
38839
38840         strftime.h: wrap funtion declaration in extern "C" block
38841         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38842
38843 2009-11-13  Eric Blake  <ebb9@byu.net>
38844
38845         getgroups: avoid compiler warning
38846         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38847
38848         getgroups: work around FreeBSD bug
38849         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38850         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38851         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38852         * tests/test-getgroups.c (main): Fix buffer overrun.
38853
38854         getgroups: avoid compilation failure
38855         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38856         * modules/getgroups (Depends-on): Add stdint.
38857
38858 2009-11-13  Jim Meyering  <meyering@redhat.com>
38859
38860         test-getgroups: avoid compilation failure
38861         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38862
38863 2009-11-13  Eric Blake  <ebb9@byu.net>
38864
38865         mgetgroups: new module, taken from coreutils
38866         * modules/mgetgroups: New file.
38867         * lib/mgetgroups.h: Likewise.
38868         * lib/mgetgroups.c (mgetgroups): Likewise.
38869         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38870         * MODULES.html.sh (Users and groups): Mention it.
38871
38872         getgroups: don't expose GETGROUPS_T to user
38873         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38874         an element at a time if GETGROUPS_T is wrong size.
38875         * lib/getugroups.h (getugroups): Change signature.
38876         * lib/unistd.in.h (getgroups): Likewise.
38877         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38878         signature needs fixing.
38879         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38880         AC_TYPE_GETGROUPS.
38881         * modules/group-member (Depends-on): Add getgroups.
38882         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38883         (group_member): Rely on getgroups replacement.
38884         * lib/getugroups.c (getugroups): Use gid_t.
38885         * tests/test-getgroups.c (main): Likewise.
38886         * NEWS: Mention the signature change.
38887         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38888         problem with signature.
38889         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38890         GETGROUPS_T is still useful for setgroups.
38891
38892         getgroups, getugroups: provide stubs for mingw
38893         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38894         * lib/getugroups.c (getugroups): Likewise.
38895         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38896         function.  Modernize replacement scheme.
38897         (gl_PREREQ_GETGROUPS): Delete.
38898         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38899         * modules/getgroups (configure.ac): Declare witness.
38900         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38901         * modules/unistd (Depends-on): Substitute witness.
38902         * lib/unistd.in.h (getgroups): Declare replacement.
38903
38904         getgroups: avoid calling exit
38905         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38906         drop xalloc.
38907         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38908         dependencies.
38909         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38910         exiting, in the rare case of malloc failure.
38911
38912         getgroups: fix logic error
38913         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38914         has more than 20 groups.
38915         * modules/getgroups-tests: New test.
38916         * tests/test-getgroups.c: New file.
38917
38918 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38919
38920         * tests/test-base64.c: Improve.
38921
38922 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38923
38924         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38925         Blake <ebb9@byu.net>.
38926
38927 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38928
38929         * tests/test-xvasprintf.c: Add %s%s related checks.
38930
38931 2009-11-12  Eric Blake  <ebb9@byu.net>
38932
38933         version-etc: match standards.texi style
38934         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38935         and use <> only for URLs.
38936
38937 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38938
38939         fts: do not fail on a submount during traversal
38940         * lib/fts.c (fts_build): Read the stat info again after opening
38941         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38942         Original report at http://bugzilla.redhat.com/501848.
38943
38944 2009-11-12  Jim Meyering  <meyering@redhat.com>
38945
38946         bootstrap: sync from coreutils
38947         * build-aux/bootstrap (bootstrap_epilogue): New function.
38948         Use git_modules_config in one more place.  This make bootstrap's
38949         --gnulib-srcdir option more useful for testing.
38950
38951         bootstrap: generalize autoheader check
38952         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38953         AC_CONFIG_HEADERS.
38954
38955 2009-11-11  Eric Blake  <ebb9@byu.net>
38956
38957         mkfifoat: use new modules for Solaris and BSD bugs
38958         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38959         * lib/mkfifoat.c (mknodat): Split...
38960         * lib/mknodat.c (mknodat): ...into new file.
38961         * modules/mkfifoat (Files): Ship new file.
38962         (Depends-on): Add mkfifo, mknod.
38963         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38964         (Depends-on): Add symlink.
38965         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38966         redundant with test_mkfifo.h.
38967         (do_mkfifoat, do_mknodat): New helpers.
38968
38969         mknod: new module
38970         * modules/mknod: New file.
38971         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38972         * lib/mknod.c (mknod): Likewise.
38973         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38974         defaults.
38975         * modules/sys_stat (Makefile.am): Substitute them.
38976         * lib/sys_stat.in.h (mknod): Declare replacement.
38977         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38978         Document it.
38979         * doc/posix-functions/mknod.texi (mknod): Likewise.
38980         * modules/mknod-tests: New test.
38981         * tests/test-mknod.c: Likewise.
38982
38983         mkfifo: new module
38984         * modules/mkfifo: New file.
38985         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38986         * lib/mkfifo.c (mkfifo): Likewise.
38987         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38988         defaults.
38989         * modules/sys_stat (Makefile.am): Substitute them.
38990         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38991         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38992         Document it.
38993         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38994         * modules/mkfifo-tests: New test.
38995         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38996         from test-mkfifoat.c.
38997         * tests/test-mkfifo.c: New file.
38998
38999         readlink: detect FreeBSD bug
39000         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39001         slash on symlink.
39002         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39003         * tests/test-readlink.h (test_readlink): Enhance test.
39004
39005         symlink: detect FreeBSD bug
39006         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39007         slash on symlink.
39008         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39009         * tests/test-symlink.h (test_symlink): Enhance test.
39010
39011 2009-11-10  Eric Blake  <ebb9@byu.net>
39012
39013         link: detect FreeBSD bug
39014         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39015         symlink.
39016         * doc/posix-functions/link.texi (link): Document the bug.
39017         * tests/test-link.h (test_link): Enhance test.
39018         * tests/test-linkat.c (main): Update caller.
39019
39020         unlink, remove: detect FreeBSD bug
39021         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39022         slash on symlink.
39023         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39024         * doc/posix-functions/remove.texi (remove): Likewise.
39025         * tests/test-unlink.h (test_unlink): Enhance test.
39026         * tests/test-remove.c (main): Likewise.
39027
39028 2009-11-09  Eric Blake  <ebb9@byu.net>
39029
39030         rename: detect FreeBSD bug
39031         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39032         slash on symlink.
39033         * modules/renameat-tests (Depends-on): Add filenamecat.
39034         * tests/test-rename.h (test_rename): Allow one more errno.
39035         * tests/test-renameat.c (main): Likewise.
39036         * doc/posix-functions/rename.texi (rename): Document the bug.
39037
39038         open: detect FreeBSD bug
39039         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39040         symlink.
39041         * doc/posix-functions/open.texi (open): Document the bug.
39042         * doc/posix-functions/utimes.texi (utimes): Likewise.
39043         * tests/test-open.h (test_open): Add parameters, and test symlink
39044         handling.
39045         * tests/test-open.c (main): Adjust caller.
39046         * tests/test-fcntl-safer.c (main): Likewise.
39047         * modules/open-tests (Depends-on): Add stdbool, symlink.
39048         * modules/fcntl-safer-tests (Depends-on): Likewise.
39049         * tests/test-openat.c (main): Add test-open tests.
39050
39051         stat: detect FreeBSD bug
39052         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39053         symlink.
39054         * doc/posix-functions/stat.texi (stat): Document the bug.
39055         * tests/test-stat.h (test_stat_func): Add argument.
39056         * tests/test-stat.c (main): Adjust caller.
39057         * tests/test-fstatat.c (main): Likewise.
39058         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39059         Reported by Jim Meyering.
39060
39061 2009-11-09  James Youngman  <jay@gnu.org>
39062
39063         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39064         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39065
39066 2009-11-08  Jim Meyering  <meyering@redhat.com>
39067
39068         utimens: remove invalid futimesat call
39069         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39070         It used the file descriptor of the target file as the DIR_FD
39071         parameter and NULL as the file name.  That caused failure with
39072         errno == EFAULT on FreeBSD-8.0-rc2
39073
39074 2009-11-07  Eric Blake  <ebb9@byu.net>
39075
39076         fflush, freadseek: use fseeko, not fseek
39077         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39078         (clear_ungetc_buffer): Avoid potential problems on large files.
39079         * lib/freadseek.c (freadseek): Likewise.
39080         * modules/freadseek (Depends-on): Add fseeko.
39081         * modules/fseek (configure.ac): Set a witness.
39082         * tests/test-fflush.c (main): Use fseeko.
39083         * tests/test-fpurge.c (fseek): Disable link warning.
39084         * tests/test-freadable.c (fseek): Likewise.
39085         * tests/test-freading.c (fseek): Likewise.
39086         * tests/test-fseeko.c (fseek): Likewise.
39087         * tests/test-ftell.c (fseek): Likewise.
39088         * tests/test-ftello.c (fseek): Likewise.
39089         * tests/test-fwritable.c (fseek): Likewise.
39090         * tests/test-fwriting.c (fseek): Likewise.
39091
39092 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39093
39094         * modules/memchr (Depends-on): Drop getpagesize dependency.
39095
39096 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39097
39098         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39099         Reported by Ludovic Courtès.
39100         * build-aux/pmccabe2html: Improve example usage.
39101         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39102
39103 2009-11-06  Jim Meyering  <meyering@redhat.com>
39104
39105         do-release-commit-and-tag: New module.
39106         Automate the release-commit and tag process.
39107         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39108         * modules/do-release-commit-and-tag: New file.
39109         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39110
39111 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39112
39113         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39114         because test-select.c uses inet_pton.
39115
39116 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39117
39118         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39119         GETADDRINFO_LIB.  Bump serial number.
39120         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39121         Suggested by Eric Blake <ebb9@byu.net>.
39122
39123 2009-11-05  Eric Blake  <ebb9@byu.net>
39124
39125         strtod: detect darwin bug
39126         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39127         Reported by Leo Davis.
39128
39129         freopen-safer: new module
39130         * modules/freopen-safer: New module.
39131         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39132         * lib/freopen-safer.c (freopen_safer): New file.
39133         * lib/stdio-safer.h (freopen_safer): New declaration.
39134         * lib/stdio--.h (freopen): New override.
39135         * MODULES.html.sh (File stream based Input/Output): Mention it.
39136         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39137         freopen-safer module.
39138         * doc/posix-functions/stderr.texi (stderr): Likewise.
39139         * doc/posix-functions/stdin.texi (stdin): Likewise.
39140         * doc/posix-functions/stdout.texi (stdout): Likewise.
39141         * modules/freopen-safer-tests: New test.
39142         * tests/test-reopen-safer.c: New file.
39143
39144 2009-11-05  Jim Meyering  <meyering@redhat.com>
39145
39146         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39147         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39148
39149 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39150
39151         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39152
39153 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39154
39155         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39156
39157 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39158
39159         Fix link error.
39160         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39161         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39162
39163 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39164
39165         * tests/test-func.c: Also test value of __func__.
39166
39167 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39168
39169         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39170         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39171
39172 2009-11-05  Bruno Haible  <bruno@clisp.org>
39173
39174         Fix link error.
39175         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39176         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39177         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39178
39179 2009-11-05  Bruno Haible  <bruno@clisp.org>
39180
39181         Tests for module 'inet_pton'.
39182         * modules/inet_pton-tests: New file.
39183         * tests/test-inet_pton.c: New file.
39184
39185 2009-11-05  Bruno Haible  <bruno@clisp.org>
39186
39187         Tests for module 'inet_ntop'.
39188         * modules/inet_ntop-tests: New file.
39189         * tests/test-inet_ntop.c: New file.
39190
39191 2009-11-04  Eric Blake  <ebb9@byu.net>
39192
39193         stdlib-safer: wrap all mkstemp variants
39194         * modules/mkostemp (configure.ac): Set witness.
39195         * modules/mkostemps (configure.ac): Likewise.
39196         * modules/mkstemps (configure.ac): Likewise.
39197         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39198         (mkstemps_safer): Wrap more functions.
39199         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39200         wrapping.
39201         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39202         (mkstemps_safer): Implement the wrappers.
39203
39204         mkstemps, mkostemps: new modules
39205         * modules/mkostemps: New module.
39206         * modules/mkstemps: Likewise.
39207         * lib/mkostemps.c (mkostemps): New file.
39208         * lib/mkstemps.c (mkstemps): Likewise.
39209         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39210         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39211         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39212         * modules/stdlib (Makefile.am): Substitute them.
39213         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39214         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39215         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39216         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39217         * MODULES.html.sh (File system functions): Mention them.
39218
39219         tempname: resync from glibc
39220         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39221         same values for __GT_FILE as glibc.  Abort even when assertions
39222         are disabled.
39223         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39224         match its value otherwise.  Allow idempotent inclusion.
39225         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39226         * lib/mkostemp.c (mkostemp): Likewise.
39227         * lib/mkstemp.c (mkstemp): Likewise.
39228         * lib/tmpfile.c (tmpfile): Likewise.
39229         * NEWS: Document this.
39230
39231         utimens: fix use of futimens on older Linux
39232         * lib/utimens.c (fdutimens): Use updated, rather than original,
39233         timespec to avoid bug in older Linux kernel.
39234         Reported by Simon Josefsson.
39235
39236 2009-11-04  Bruno Haible  <bruno@clisp.org>
39237
39238         Make num_processors more flexible and consistent.
39239         * lib/nproc.h (enum nproc_query): New type.
39240         (num_processors): Add a 'query' argument.
39241         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39242         (num_processors): Add a 'query' argument. Test the value of the
39243         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39244         mingw, count the number of CPUs available for the current process.
39245         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39246         Check for sched_getaffinity and sched_getaffinity_np.
39247         * modules/nproc (Depends-on): Add c-ctype, extensions.
39248         * NEWS: Mention the change.
39249
39250 2009-11-03  Bruno Haible  <bruno@clisp.org>
39251
39252         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39253
39254 2009-11-03  Jim Meyering  <meyering@redhat.com>
39255
39256         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39257         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39258         if it is defined.
39259
39260 2009-11-02  Eric Blake  <ebb9@byu.net>
39261
39262         mktime, timegm: share common declaration
39263         * lib/mktime-internal.h: New file.
39264         * lib/mktime.c: Use it rather than open-coding a declaration.
39265         * lib/timegm.c: Likewise.
39266         * modules/mktime (Files): Ship it.
39267         * modules/timegm (Files): Likewise.
39268         Suggested by Bruno Haible.
39269
39270         test-update-copyright: update test to match script changes
39271         * tests/test-update-copyright.sh: Avoid hard-coding perl
39272         location.  Don't update *.bak created by earlier runs.
39273
39274 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39275             Simon Josefsson  <simon@josefsson.org>
39276             Bruno Haible  <bruno@clisp.org>
39277
39278         Fix link error on Solaris 8.
39279         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39280         also in libnsl. Define also INET_PTON_LIB.
39281         * modules/inet_pton (Link): New section.
39282
39283 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39284             Bruno Haible  <bruno@clisp.org>
39285
39286         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39287         * modules/inet_ntop (Link): New section.
39288         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39289
39290 2009-11-02  Eric Blake  <ebb9@byu.net>
39291
39292         maint: avoid compiler warnings in m4 macros
39293         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39294         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39295
39296 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39297
39298         * m4/pmccabe2html.m4: Remove file.
39299         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39300         function.  Change maintainer.
39301         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39302         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39303         Courtès).
39304
39305 2009-10-31  Eric Blake  <ebb9@byu.net>
39306
39307         fseeko: fix m4 regression
39308         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39309         regression from 2009-10-27.
39310         Reported by Ralf Wildenhues.
39311
39312 2009-10-31  Jim Meyering  <meyering@redhat.com>
39313
39314         inttostr: aesthetics and improved (compile-time) safety
39315         Define inttype_is_signed rather than inttype_is_unsigned,
39316         since the sole use is via "#if inttype_is_signed".
39317         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39318         inttype_is_unsigned.
39319         * lib/offtostr.c (inttype_is_signed): Likewise.
39320         * lib/uinttostr.c (inttype_is_signed): Likewise.
39321         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39322         * lib/inttostr.c (inttostr): Use verify to cross-check the
39323         inttype_is_signed value and the signedness of the actual type.
39324         * modules/inttostr (Depends-on): Add verify.
39325
39326 2009-10-30  Eric Blake  <ebb9@byu.net>
39327
39328         build: avoid compiler warnings
39329         * lib/fchmodat.c (lchmod): Mark unused variables.
39330         * lib/getopt.c (_getopt_initialize): Likewise.
39331         * lib/mktime.c (__mktime_internal): Provide prototype.
39332         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39333         older gcc that do not understand #pragma GCC diagnostic.
39334         * lib/uinttostr.c (inttype_is_unsigned): Define.
39335         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39336
39337 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39338
39339         stat: fix compilation on AIX
39340         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39341         only see struct stat64.
39342
39343 2009-10-30  Eric Blake  <ebb9@byu.net>
39344
39345         exclude: make more robust
39346         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39347         rather than masking a coding bug.
39348         Suggested by Bruno Haible.
39349
39350 2009-10-30  Jim Meyering  <meyering@redhat.com>
39351
39352         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39353         Rather than putting #!/usr/bin/perl on the first line,
39354         start with a variant of what's recommended by "man perlrun" that
39355         invokes the first "perl" program from your shell's search path.
39356         * build-aux/gitlog-to-changelog: Replace #!... as above.
39357         Add a "Local Variables" perl mode setting.
39358         Prompted by a patch from Ludovic Courtès.
39359         Improved by Eric Blake.
39360         * build-aux/useless-if-before-free: Likewise.
39361         * build-aux/announce-gen: Likewise.
39362         * build-aux/update-copyright: Likewise.
39363
39364 2009-10-29  Eric Blake  <ebb9@byu.net>
39365
39366         filenamecat-lgpl: adjust clients
39367         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39368         filenamecat.
39369         * modules/renameat (Depends-on): Likewise.
39370
39371         filenamecat: split into filenamecat-lgpl
39372         * modules/filenamecat-lgpl: New module.
39373         * modules/filenamecat (Files): Move library-safe files into
39374         filenamecat-lgpl.
39375         (Depends-on): Add filenamecat-lgpl.
39376         (configure.ac): Declare witness.
39377         * lib/filenamecat.h (file_name_concat): Only declare when using
39378         GPL module.
39379         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39380         Move...
39381         * lib/filenamecat-lgpl.c: ...into new file.
39382         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39383         (gl_FILE_NAME_CONCAT): Use it.
39384         * MODULES.html.sh (File system functions): Mention new module.
39385
39386         argp: avoid memory leak
39387         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39388         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39389         base_name, since the latter malloc()s and can call exit().
39390         Leak introduced 2006-07-03.
39391
39392         dirname-lgpl: adjust clients that don't need full dirname
39393         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39394         * modules/filenamecat (Depends-on): Likewise.
39395         * modules/linkat (Depends-on): Likewise.
39396         * modules/mkancesdirs (Depends-on): Likewise.
39397         * modules/mkdir (Depends-on): Likewise.
39398         * modules/openat (Depends-on): Likewise.
39399         * modules/savewd (Depends-on): Likewise.
39400         * modules/rename (Depends-on): Likewise.
39401         (License): Relax license.
39402         * modules/mkdir-tests (Depends-on): Drop progname.
39403         (Makefile.am): Delete unneeded LDADD.
39404         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39405
39406         dirname: split into dirname-lgpl
39407         * modules/dirname-lgpl: New module.
39408         * modules/dirname (Files): Move library-safe files into
39409         dirname-lgpl.
39410         (Depends-on): Add dirname-lgpl.
39411         (configure.ac): Declare witness.
39412         * modules/double-slash-root (License): Relax license.
39413         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39414         module.
39415         * lib/dirname.c (dir_len, mdir_name): Move...
39416         * lib/dirname-lgpl.c: ...into new file.
39417         * lib/basename.c (last_component, base_len): Move...
39418         * lib/basename-lgpl.c: ...into new file.
39419         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39420         (gl_DIRNAME): Use it.
39421         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39422         Mention new module.
39423         * modules/dirname-tests (Depends-on): Add progname.
39424         * tests/test-dirname.c (program_name): Delete.
39425
39426         mkdir: make safe for libraries
39427         * modules/mkdir (Depends-on): Drop xalloc.
39428         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39429         exit.
39430
39431         tests: avoid some compiler warnings
39432         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39433         literals.
39434         * tests/test-memchr.c (main): Avoid type mismatch.
39435         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39436         * tests/test-base64.c (main): Likewise.
39437         * tests/test-getdelim.c (main): Likewise.
39438         * tests/test-gethostname.c (main): Likewise.
39439         * tests/test-getline.c (main): Likewise.
39440         * tests/test-netinet_in.c (main): Likewise.
39441         * tests/test-select.c (open_server_socket, main): Likewise.
39442         * tests/test-select-stdin.c (main): Likewise.
39443         * tests/test-sockets.c (main): Likewise.
39444         * tests/test-strsignal.c (main): Likewise.
39445         * tests/test-sys_select.c (main): Likewise.
39446         * tests/test-sys_socket.c (main): Likewise.
39447         * tests/test-u64.c (main): Likewise.
39448         * tests/test-xfprintf-posix.c (main): Likewise.
39449         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39450
39451         sockets: avoid compiler warning
39452         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39453
39454         maint: detect usage(1) and other suspicious exits
39455         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39456
39457 2009-10-29  Jim Meyering  <meyering@redhat.com>
39458
39459         timespec: long-to-int truncation could make timespec_cmp malfunction
39460         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39461         a multiple of 2^32 nanoseconds as no difference.
39462
39463 2009-10-28  Jim Meyering  <meyering@redhat.com>
39464
39465         fprintftime: wrap macro code argument in "do {...} while(0)"
39466         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39467         cpy macro must be a statement that can be followed by a semicolon.
39468         Now that the else clause contains a comment and is hence longer
39469         than one line, I require curly braces.  That in turn requires
39470         that we wrap this code block in the standard do...while(0).
39471
39472         fprintftime: remove stray semicolon from previous change
39473         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39474
39475         fprintftime: avoid a warning about ignored fwrite return value
39476         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39477         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39478         that is unsafe.
39479         * modules/fprintftime (Depends-on): Add ignore-value.
39480
39481         exclude: avoid an unwarranted warning
39482         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39483
39484 2009-10-27  Eric Blake  <ebb9@byu.net>
39485
39486         fseek: avoid compilation failure when fflush is replaced
39487         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39488         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39489         module is in use.
39490         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39491         module is not in use; since REPLACE_FSEEK worked otherwise.
39492         (GNULIB_FTELLO): Likewise for ftell.
39493         Reported by Ian Beckwith and others.
39494
39495 2009-10-27  Bruno Haible  <bruno@clisp.org>
39496
39497         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39498         Reported by Jim Meyering.
39499
39500 2009-10-27  Jim Meyering  <jim@meyering.net>
39501             Bruno Haible  <bruno@clisp.org>
39502
39503         Avoid warning despite dropping the return value of fwrite.
39504         * lib/unicodeio.c: Include ignore-value.h.
39505         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39506         * modules/unicodeio (Depends-on): Add ignore-value.
39507
39508 2009-10-26  Eric Blake  <ebb9@byu.net>
39509
39510         areadlinkat: fix fallback path
39511         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39512         pointer and zero.
39513
39514 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39515
39516         Use a better IO block size for modern systems
39517         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39518         * lib/md2.c: Likewise.
39519         * lib/md4.c: Likewise.
39520         * lib/md5.c: Likewise.
39521         * lib/sha1.c: Likewise.
39522         * lib/sha256.c: Likewise.
39523         * lib/sha512.c: Likewise.
39524
39525 2009-10-22  Eric Blake  <ebb9@byu.net>
39526
39527         tests: avoid several compiler warnings
39528         * tests/test-getcwd.c (main): Avoid buffer underflow.
39529         * tests/test-getdate.c (main): String literals are not safe with
39530         putenv, so use setenv.  Declare unused argument.
39531         * modules/getdate-tests (Depends-on): Add setenv.
39532         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39533         problems with string literals in char *.
39534         * tests/test-hash.c (main): Avoid shadowing declaration.
39535         (insert_new): Treat string literals as char const *.
39536         * tests/test-getopt.h (test_getopt): Likewise.
39537         (getopt_loop): Alter types to minimize casting elsewhere.
39538         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39539         (test_getopt_long_posix): Likewise.
39540         (do_getopt_long): Add wrapper to minimize casting.
39541         * tests/test-atexit.c (clear_temp_file): Use void.
39542         * tests/test-areadlink-with-size.c (main): Declare unused
39543         arguments.
39544         * tests/test-areadlink.c (main): Likewise.
39545         * tests/test-areadlinkat-with-size.c (main): Likewise.
39546         * tests/test-areadlinkat.c (main): Likewise.
39547         * tests/test-canonicalize-lgpl.c (main): Likewise.
39548         * tests/test-canonicalize.c (main): Likewise.
39549         * tests/test-dirent-safer.c (main): Likewise.
39550         * tests/test-dirname.c (main): Likewise.
39551         * tests/test-dup2.c (main): Likewise.
39552         * tests/test-fchdir.c (main): Likewise.
39553         * tests/test-fcntl-h.c (main): Likewise.
39554         * tests/test-fcntl-safer.c (main): Likewise.
39555         * tests/test-fdopendir.c (main): Likewise.
39556         * tests/test-fdutimensat.c (main): Likewise.
39557         * tests/test-fflush.c (main): Likewise.
39558         * tests/test-filenamecat.c (main): Likewise.
39559         * tests/test-filevercmp.c (main): Likewise.
39560         * tests/test-fopen-safer.c (main): Likewise.
39561         * tests/test-fopen.c (main): Likewise.
39562         * tests/test-fpending.c (main): Likewise.
39563         * tests/test-fpurge.c (main): Likewise.
39564         * tests/test-freading.c (main): Likewise.
39565         * tests/test-fstatat.c (main): Likewise.
39566         * tests/test-fsync.c (main): Likewise.
39567         * tests/test-futimens.c (main): Likewise.
39568         * tests/test-getndelim2.c (main): Likewise.
39569         * tests/test-gettimeofday.c (main): Likewise.
39570         * tests/test-getopt.c (main): Likewise.
39571         * tests/test-i-ring.c (main): Likewise.
39572         * tests/test-inttypes.c (main): Likewise.
39573         * tests/test-link.c (main): Likewise.
39574         * tests/test-lstat.c (main): Likewise.
39575         * tests/test-math.c (main): Likewise.
39576         * tests/test-md5.c (main): Likewise.
39577         * tests/test-memchr2.c (main): Likewise.
39578         * tests/test-memrchr.c (main): Likewise.
39579         * tests/test-mkdir.c (main): Likewise.
39580         * tests/test-mkdirat.c (main): Likewise.
39581         * tests/test-mkfifoat.c (main): Likewise.
39582         * tests/test-open.c (main): Likewise.
39583         * tests/test-openat-safer.c (main): Likewise.
39584         * tests/test-openat.c (main): Likewise.
39585         * tests/test-quotearg.c (main): Likewise.
39586         * tests/test-rawmemchr.c (main): Likewise.
39587         * tests/test-readlink.c (main): Likewise.
39588         * tests/test-remove.c (main): Likewise.
39589         * tests/test-rename.c (main): Likewise.
39590         * tests/test-renameat.c (main): Likewise.
39591         * tests/test-rmdir.c (main): Likewise.
39592         * tests/test-sha1.c (main): Likewise.
39593         * tests/test-signal.c (main): Likewise.
39594         * tests/test-sigaction.c (main): Likewise.
39595         * tests/test-stat.c (main): Likewise.
39596         * tests/test-stat-time.c (main): Likewise.
39597         * tests/test-stddef.c (main): Likewise.
39598         * tests/test-stdint.c (main): Likewise.
39599         * tests/test-stdio.c (main): Likewise.
39600         * tests/test-stdlib.c (main): Likewise.
39601         * tests/test-strchrnul.c (main): Likewise.
39602         * tests/test-strerror.c (main): Likewise.
39603         * tests/test-string.c (main): Likewise.
39604         * tests/test-strtod.c (main): Likewise.
39605         * tests/test-strverscmp.c (main): Likewise.
39606         * tests/test-symlink.c (main): Likewise.
39607         * tests/test-symlinkat.c (main): Likewise.
39608         * tests/test-sys_stat.c (main): Likewise.
39609         * tests/test-sys_time.c (main): Likewise.
39610         * tests/test-time.c (main): Likewise.
39611         * tests/test-unistd.c (main): Likewise.
39612         * tests/test-unlink.c (main): Likewise.
39613         * tests/test-unlinkat.c (main): Likewise.
39614         * tests/test-utimens.c (main): Likewise.
39615         * tests/test-utimensat.c (main): Likewise.
39616         * tests/test-version-etc.c (main): Likewise.
39617         * tests/test-wchar.c (main): Likewise.
39618         * tests/test-wctype.c (main): Likewise.
39619         * tests/test-xprintf-posix.c (main): Likewise.
39620         * tests/test-posixtm.c (main): Likewise.
39621         (STREQ): Delete unused macro.
39622         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39623         shadowed variables.
39624         * tests/test-memchr.c (main): Likewise.
39625
39626 2009-10-21  Eric Blake  <ebb9@byu.net>
39627
39628         areadlinkat: avoid failure on older glibc
39629         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39630         rather than mis-comparing 0 against FUNC_RESULT of char*.
39631
39632 2009-10-21  Bruno Haible  <bruno@clisp.org>
39633
39634         * modules/stpncpy (License): Relicense under LGPLv2+.
39635         Reported by David Lutterkort <lutter@redhat.com>.
39636
39637 2009-10-20  Eric Blake  <ebb9@byu.net>
39638
39639         utimensat: work around Solaris 9 bug
39640         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39641         has trailing slash bugs.
39642         * tests/test-lutimens.h (test_lutimens): Enhance test.
39643         * tests/test-utimens.h (test_utimens): Likewise.
39644         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39645         * doc/posix-functions/utimes.texi (utimes): Likewise.
39646         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39647         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39648         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39649         * doc/posix-functions/futimens.texi (futimens): Likewise.
39650
39651         fdutimensat: new module
39652         * modules/fdutimensat: New file.
39653         * lib/fdutimensat.c (fdutimensat): Likewise.
39654         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39655         * MODULES.html.sh (File system functions): Mention module.
39656         * modules/fdutimensat-tests: New test.
39657         * tests/test-fdutimensat.c: Likewise.
39658
39659         doc: regenerate INSTALL
39660         * doc/INSTALL: Reflect recent autoconf update.
39661         * doc/INSTALL.ISO: Likewise.
39662         * doc/INSTALL.UTF-8: Likewise.
39663
39664 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39665
39666         acl: warn if ACL support is not detected
39667         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39668
39669 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39670
39671         * lib/nproc.h: Add extern "C" block for C++.
39672
39673 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39674             Bruno Haible  <bruno@clisp.org>
39675
39676         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39677         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39678         * doc/posix-functions/isalpha.texi: Likewise.
39679         * doc/posix-functions/isblank.texi: Likewise.
39680         * doc/posix-functions/iscntrl.texi: Likewise.
39681         * doc/posix-functions/isdigit.texi: Likewise.
39682         * doc/posix-functions/isgraph.texi: Likewise.
39683         * doc/posix-functions/islower.texi: Likewise.
39684         * doc/posix-functions/isprint.texi: Likewise.
39685         * doc/posix-functions/ispunct.texi: Likewise.
39686         * doc/posix-functions/isspace.texi: Likewise.
39687         * doc/posix-functions/isupper.texi: Likewise.
39688         * doc/posix-functions/isxdigit.texi: Likewise.
39689
39690 2009-10-18  Bruno Haible  <bruno@clisp.org>
39691
39692         Tests for module 'isblank'.
39693         * modules/isblank-tests: New file.
39694         * tests/test-isblank.c: New file.
39695
39696         New module 'isblank'.
39697         * lib/isblank.c: New file.
39698         * m4/isblank.m4: New file.
39699         * modules/isblank: New file.
39700         * doc/posix-functions/isblank.texi: Mention the new module.
39701
39702 2009-10-18  Bruno Haible  <bruno@clisp.org>
39703
39704         New module 'ctype'.
39705         * lib/ctype.in.h: New file.
39706         * m4/ctype.m4: New file.
39707         * modules/ctype: New file.
39708         * doc/posix-headers/ctype.texi: Mention the new module.
39709
39710 2009-10-18  Jim Meyering  <meyering@redhat.com>
39711
39712         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39713         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39714         right after its initialization, rather than farther down.
39715         Keeping these in close proximity makes it easier to ensure
39716         that each such variable is initialized.  E.g.,
39717
39718             LIB_CLOCK_GETTIME=
39719             AC_SUBST([LIB_CLOCK_GETTIME])
39720
39721         This change also increments these serial numbers.
39722         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39723         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39725
39726 2009-10-18  Bruno Haible  <bruno@clisp.org>
39727
39728         Don't let environment variables perturb build.
39729         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39730         (gl_PREREQ_GETHRXTIME): ... not here.
39731
39732 2009-10-18  Bruno Haible  <bruno@clisp.org>
39733
39734         Avoid symlink attack in localcharset module.
39735         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39736         (O_NOFOLLOW): Define fallback.
39737         (get_charset_aliases): Don't open the file if it is a symbolic link.
39738         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39739         gl_FCNTL_H.
39740         (gl_FCNTL_H): Require it.
39741         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39742         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39743         Reported by Fergal Glynn <fglynn@veracode.com>.
39744
39745 2009-10-18  Bruno Haible  <bruno@clisp.org>
39746
39747         Implement nproc for mingw.
39748         * lib/nproc.c: Include <windows.h>
39749         (num_processors): On native Windows platforms, try GetSystemInfo.
39750
39751 2009-10-18  Bruno Haible  <bruno@clisp.org>
39752
39753         Implement nproc for IRIX.
39754         * lib/nproc.c: Include <sys/sysmp.h>.
39755         (num_processors): On IRIX systems, try sysmp.
39756         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39757
39758 2009-10-18  Bruno Haible  <bruno@clisp.org>
39759
39760         Implement nproc for HP-UX.
39761         * lib/nproc.c: Include <sys/pstat.h>
39762         (num_processors): On HP-UX systems, try pstat_getdynamic.
39763         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39764         pstat_getdynamic.
39765
39766 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39767             Bruno Haible  <bruno@clisp.org>
39768
39769         Implement nproc for NetBSD, OpenBSD.
39770         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39771         (ARRAY_SIZE): New macro.
39772         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39773         * m4/nproc.m4: New file.
39774         * modules/nproc (Files): Add m4/nproc.m4.
39775         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39776         (Makefile.am): Instead, augment lib_SOURCES.
39777
39778 2009-10-18  Bruno Haible  <bruno@clisp.org>
39779
39780         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39781         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39782         sys/param.h.
39783
39784 2009-10-16  Eric Blake  <ebb9@byu.net>
39785
39786         utimensat: new module
39787         * modules/utimensat: New file.
39788         * lib/utimensat.c (utimensat): Likewise.
39789         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39790         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39791         so we can work around Linux bugs.
39792         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39793         * modules/sys_stat (Makefile.am): Substitute them.
39794         * lib/sys_stat.in.h (utimensat): Declare it.
39795         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39796         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39797         * modules/utimensat-tests: New test.
39798         * tests/test-utimensat.c: Likewise.
39799
39800         utimens: let lutimens work on non-symlinks
39801         * lib/utimens.c (lutimens): Fall back to utimens rather than
39802         failing with ENOSYS, when file is not a symlink.
39803         (utimens): Reduce redirection.
39804         * tests/test-lutimens.h (test_lutimens): Update test to cover
39805         non-symlinks.
39806         * tests/test-utimens.h (test_utimens): Update test to cover
39807         symlinks.
39808         * tests/test-utimens.c (main): Update caller.
39809
39810         utimens: cache whether utimensat syscall works
39811         * lib/utimens.c (utimensat_works_really): New cache variable.
39812         (fdutimens, lutimens): Use it to avoid failing syscall.
39813
39814         test-stat-time, test-utimens: improve portability
39815         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39816         ext4 on alpha, and for cygwin.
39817         * tests/test-utimens-common.h: New file.
39818         (nap): Factor delays into single function.
39819         * tests/test-lutimens.h (test_lutimens): Use new header.
39820         * tests/test-futimens.h (test_futimens): Likewise.
39821         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39822         timestamps to occur from same machine, as was done previously for
39823         test_utimens.
39824         * modules/utimens-tests (Files): Ship new file.
39825         * modules/futimens-tests (Files): Likewise.
39826         Reported in part by Jim Meyering.
39827
39828         sys_stat: sort replacement declarations
39829         * lib/sys_stat.in.h: Sort declarations.
39830         * lib/futimens.c (futimens): Fix typo.
39831
39832 2009-10-15  Jim Meyering  <meyering@redhat.com>
39833
39834         don't let environment settings perturb build
39835         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39836         could cause a configure-time and/or build-time malfunction.
39837         Typically, a configure-time function-in-library test is performed
39838         via code like this:
39839
39840           LIB_VAR=
39841           AC_SUBST([LIB_VAR])
39842           prefix_saved_LIBS=$LIBS
39843             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39844                        [test "$ac_cv_search_FUNC" = "none required" ||
39845                         LIB_VAR=$ac_cv_search_FUNC])
39846           LIBS=$prefix_saved_LIBS
39847
39848         However, in each of the files affected by this change, the LIB_VAR=
39849         initialization was omitted.  Thus, when set in the environment, its
39850         value would propagate into generated Makefiles when FUNC is not found
39851         in LIB_NAME.
39852         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39853         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39854         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39855
39856 2009-10-14  Eric Blake  <ebb9@byu.net>
39857
39858         fchdir: avoid infinite recursion in mingw
39859         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39860         recursing.
39861
39862         test-stat-time: port to mingw
39863         * tests/test-stat-time.c (force_unlink): Return a value.
39864         (test_ctime) [W32]: Fix compilation error.
39865         (nap): Don't call usleep with too large an argument.  Use
39866         force_unlink.
39867         * doc/pastposix-functions/usleep.texi (usleep): Document the
39868         portability issue.
39869
39870 2009-10-13  Jim Meyering  <meyering@redhat.com>
39871
39872         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39873         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39874         * modules/pipe-filter-ii: Likewise.
39875         * modules/sys_socket-tests: Likewise.
39876         * modules/tsearch-tests: Likewise.
39877         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39878         (check): Depend on it.
39879
39880 2009-10-12  Eric Blake  <ebb9@byu.net>
39881
39882         utimens-tests: port to NFS file systems
39883         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39884         comparisons to avoid spurious failures from timestamp drift
39885         between NFS machines.
39886
39887 2009-10-12  Eric Blake  <ebb9@byu.net>
39888
39889         stat-time-tests: minor cleanups
39890         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39891         * tests/test-stat-time.c (nap): Separate assignment from call.
39892         Suggested by Paolo Bonzini and Bruno Haible.
39893
39894         sys_stat: guarantee struct timespec
39895         * lib/sys_stat.in.h (includes): Always include <time.h>
39896         * modules/sys_stat (Depends-on): Add time.
39897         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39898         mode_t permission values.
39899         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39900         get at subsecond timestamps.
39901
39902 2009-10-10  Eric Blake  <ebb9@byu.net>
39903
39904         futimens: new module
39905         * modules/futimens: New file.
39906         * lib/futimens.c (futimens): Likewise.
39907         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39908         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39909         we can work around Linux bugs.
39910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39911         * modules/sys_stat (Makefile.am): Substitute them.
39912         * lib/sys_stat.in.h (futimens): Declare it.
39913         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39914         * doc/posix-functions/futimens.texi (futimens): Likewise.
39915         * modules/futimens-tests: New test.
39916         * tests/test-futimens.c: Likewise.
39917
39918         utimens: introduce fdutimens
39919         * lib/utimens.h (fdutimens): New prototype.
39920         * lib/utimens.c (gl_futimens): Move guts...
39921         (fdutimens): ...to new interface.
39922         * tests/test-utimens.c (do_fdutimens): Use it.
39923
39924         utimens: add UTIME_NOW and UTIME_OMIT support
39925         * lib/utimens.c (validate_timespec, update_timespec): New helper
39926         functions.
39927         (gl_futimens, lutimens): Use them.
39928         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39929         stdbool, sys_stat.
39930         (Link): Mention resulting library dependency.
39931         * modules/utimecmp (Link): Likewise.
39932         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39933         (Makefile.am): Pick up library dependency.
39934         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39935         definition.
39936         * tests/test-sys_stat.c: Test the definitions.
39937         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39938         * NEWS: Document library dependency.
39939
39940         utimecmp: support symlink timestamps
39941         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39942         hashing when possible.  Use pathconf when available.
39943         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39944         * modules/utimecmp (Depends-on): Add lstat.
39945
39946         utimens: add lutimens interface
39947         * lib/utimens.c (lutimens): New function.
39948         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39949         * lib/utimens.h (lutimens): Declare new interface.
39950         * tests/test-utimens.c (main): Enhance test.
39951         * tests/test-lutimens.h (test_lutimens): New file.
39952         * modules/utimens-tests (Files): Distribute it.
39953         (Depends-on): Add symlink.
39954         (configure.ac): Check for usleep.
39955
39956         utimens: validate futimens usage
39957         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39958         fewer syscalls on failure later on.  Avoid compiler warning on
39959         mingw.
39960         * modules/utimens (Depends-on): Add dup2.
39961
39962         utimens: add test
39963         * modules/utimens-tests: New test.
39964         * tests/test-utimens.h: New file.
39965         * tests/test-futimens.h: Likewise.
39966         * tests/test-utimens.c: Likewise.
39967
39968         doc: mention timestamp portability issues
39969         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39970         instead.
39971         * doc/posix-functions/utime.texi (utime): Likewise.
39972         * doc/posix-functions/utimes.texi (utimes): Likewise.
39973         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39974         instead.
39975         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39976         module.
39977         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39978         Mention weakness with symlink timestamps.
39979         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39980         to utimensat/futimens instead.
39981         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39982
39983         test-dup2: enhance test
39984         * tests/test-dup2.c (main): Also check AT_FDCWD.
39985
39986         test-stat-time: avoid more spurious failures
39987         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39988         xfs; and avoid race if the two timestamps cross quantization edge.
39989
39990         relocatable: prefer 'file system' over 'filesystem'
39991         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39992         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39993         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39994         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39995         * lib/relocatable.c (compute_curr_prefix): Likewise.
39996
39997 2009-10-10  Jim Meyering  <meyering@redhat.com>
39998
39999         stat-time-tests: check for the usleep function
40000         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40001
40002 2009-10-10  Bruno Haible  <bruno@clisp.org>
40003
40004         * modules/xnanosleep: Put the Link section after the Include section.
40005
40006 2009-10-09  Eric Blake  <ebb9@byu.net>
40007
40008         dup2: work around FreeBSD 6.1 bug
40009         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40010         * doc/posix-functions/dup2.texi (dup2): Document it.
40011         Reported by Nelson H. F. Beebe and Jim Meyering.
40012
40013         test-stat-time: port to buggy NFS clients
40014         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40015         (test_ctime): Also skip test if mtime and ctime are skewed.
40016
40017         maint: prefer 'file system' over 'filesystem'
40018         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40019         * doc/posix-functions/lstat.texi (lstat): Likewise.
40020         * lib/file-has-acl.c (file_has_acl): Likewise.
40021         * lib/fwriteerror.c [TEST]: Likewise.
40022         * tests/test-areadlink.h (test_areadlink): Likewise.
40023         * tests/test-areadlinkat-with-size.c (main): Likewise.
40024         * tests/test-areadlinkat.c (main): Likewise.
40025         * tests/test-canonicalize-lgpl.c (main): Likewise.
40026         * tests/test-canonicalize.c (main): Likewise.
40027         * tests/test-fstatat.c (main): Likewise.
40028         * tests/test-linkat.c (main): Likewise.
40029         * tests/test-lstat.h (test_lstat_func): Likewise.
40030         * tests/test-mkdir.h (test_mkdir): Likewise.
40031         * tests/test-readlink.h (test_readlink): Likewise.
40032         * tests/test-remove.c (main): Likewise.
40033         * tests/test-rename.h (test_rename): Likewise.
40034         * tests/test-renameat.c (main): Likewise.
40035         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40036         * tests/test-symlink.h (test_symlink): Likewise.
40037         * tests/test-symlinkat.c (main): Likewise.
40038         * tests/test-unlink.h (test_unlink_func): Likewise.
40039         * tests/test-unlinkat.c (main): Likewise.
40040
40041         maint: make realtime library usage explicit
40042         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40043         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40044         * modules/settime (Link): Likewise.
40045         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40046
40047         test-stat-time: speed up execution
40048         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40049         warning on mingw.
40050         (nap): New helper function.
40051         (prepare_test): Use it to reduce sleep time.
40052         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40053         execution.
40054         * modules/stat-time-tests (configure.ac): Check for usleep.
40055
40056 2009-10-09  Jim Meyering  <meyering@redhat.com>
40057
40058         selinux-h: always use getfilecon wrappers
40059         * lib/getfilecon.c: New file.
40060         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40061         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40062         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40063         (fgetfilecon): Provide a stub.
40064         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40065         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40066         file unconditionally.
40067         When <selinux/selinux.h> is found, arrange to use wrappers.
40068         * modules/selinux-h (Files): Add getfilecon.c.
40069         (Makefile.am): Substitute include-next-related bits
40070         into the now-always-generated selinux/selinux.h file.
40071         * doc/glibc-functions/lgetfilecon.texi: New file.
40072         * doc/glibc-functions/fgetfilecon.texi: New file.
40073         * doc/glibc-functions/getfilecon.texi: New file.
40074         * doc/glibc-functions/getfilecon-desc.texi: New file.
40075         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40076         which to pull in the new files.
40077         * MODULES.html.sh (Misc): Add selinux-h.
40078
40079 2009-10-08  Jim Meyering  <meyering@redhat.com>
40080
40081         unistd: fix comment typo
40082         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40083
40084 2009-10-08  Eric Blake  <ebb9@byu.net>
40085
40086         areadlink: use SIZE_MAX consistently
40087         * modules/areadlink (Depends-on): Add stdint.
40088         * modules/areadlink-with-size (Depends-on): Likewise.
40089         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40090         gives NULL; drop sys/types, since unistd gives size_t; and add
40091         stdint for SIZE_MAX.
40092         (SIZE_MAX): Rely on headers.
40093         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40094         and add stdint.
40095         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40096         (SIZE_MAX): Likewise.
40097         (INITIAL_BUF_SIZE): Turn into enum.
40098         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40099
40100 2009-10-08  Jim Meyering  <meyering@redhat.com>
40101
40102         areadlinkat: avoid compilation failure
40103         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40104         Fix typo in comment.
40105
40106 2009-10-07  Eric Blake  <ebb9@byu.net>
40107
40108         areadlinkat-with-size: new module
40109         * modules/areadlinkat-with-size: New module.
40110         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40111         * lib/areadlink.h (areadlinkat): Declare it.
40112         * MODULES.html.sh (File system functions): Mention it.
40113         * modules/areadlinkat-with-size-tests: New test.
40114         * tests/test-areadlinkat-with-size.c: New file.
40115
40116         xreadlinkat: new module
40117         * modules/xreadlinkat: New module.
40118         * lib/xreadlinkat.c (xreadlinkat): New file.
40119         * lib/xreadlink.h (xreadlinkat): Declare it.
40120         * MODULES.html.sh (File system functions): Mention it.
40121
40122         areadlinkat: new module
40123         * lib/at-func.c (FUNC_FAIL): New define.
40124         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40125         * modules/areadlinkat: New module.
40126         * lib/linkat.c (areadlinkat): Move...
40127         * lib/areadlinkat.c (areadlinkat): ...to new file.
40128         * lib/areadlink.h (areadlinkat): Declare it.
40129         * modules/linkat (Depends-on): Add areadlinkat.
40130         * MODULES.html.sh (File system functions): Mention it.
40131         * modules/areadlinkat-tests: New test.
40132         * tests/test-areadlinkat.c: New file.
40133
40134         areadlink, areadlink-with-size: add tests
40135         * modules/areadlink-tests: New test.
40136         * modules/areadlink-with-size-tests: Likewise.
40137         * tests/test-areadlink.h: New file.
40138         * tests/test-areadlink.c: Likewise.
40139         * tests/test-areadlink-with-size.c: Likewise.
40140
40141         maint: minor cleanups
40142         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40143         _UNUSED_PARAMETER_ instead.
40144         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40145         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40146         * modules/linkat-tests (Files): Distribute test-link.h.
40147
40148         openat, utimens: whitespace cleanup
40149         * lib/openat.c: Prefer space throughout, rather than mix of 8
40150         spaces vs. tabs.
40151         * lib/at-func.c: Likewise.
40152         * lib/utimens.c: Likewise.
40153
40154         openat: avoid using wrong fd
40155         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40156         working directory chooses same fd.
40157         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40158
40159         mkdir, mkdirat: fix cygwin 1.5.x bug
40160         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40161         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40162         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40163         bug.
40164         (gl_PREREQ_MKDIR): Delete unused macro.
40165         * modules/mkdir (Files): Track file rename.
40166         (configure.ac): Update macro name.
40167         * modules/openat (Depends-on): Add mkdir.
40168         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40169
40170         mkdir, mkdirat: add tests
40171         * modules/mkdir-tests: New test.
40172         * tests/test-mkdir.h: New file.
40173         * tests/test-mkdir.c: Likewise.
40174         * tests/test-mkdirat.c: Likewise.
40175         * modules/openat-tests (Files): Add new files.
40176         (Makefile.am): Run new test.
40177
40178 2009-10-06  Eric Blake  <ebb9@byu.net>
40179
40180         doc: tweak *at function documentation
40181         * doc/posix-functions/faccessat.texi (faccessat): Mention
40182         known issue with replacement.
40183         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40184         * doc/posix-functions/linkat.texi (linkat): Likewise.
40185         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40186         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40187         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40188         * doc/posix-functions/renameat.texi (renameat): Likewise.
40189         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40190
40191         openat: fix GNU/Hurd bug in unlinkat
40192         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40193         broken.
40194         * doc/posix-functions/unlink.texi (unlink): Document this.
40195         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40196
40197         fdopendir: fix GNU/Hurd bug
40198         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40199         allowing non-directory fds.
40200         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40201         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40202         * modules/dirent (Makefile.am): Substitute it.
40203         * lib/dirent.in.h (fdopendir): Declare replacement.
40204         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40205         * tests/test-fdopendir.c (main): Test something other than
40206         /dev/null, since on Hurd that behaves like a directory.
40207
40208         test-symlink: port to GNU/Hurd
40209         * tests/test-symlink.h (test_symlink): Relax expected errno.
40210
40211         doc: tweak more cygwin information
40212         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40213         now compatible with glibc.
40214         * doc/posix-functions/getopt.texi (getopt): Likewise.
40215
40216         getopt-gnu: add another test
40217         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40218         guarantee behavior relied on by m4.
40219         * tests/test-getopt.c (main): Use it.
40220         * modules/getopt-posix-tests (Depends-on): Add setenv.
40221         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40222
40223         getopt: fix compilation on darwin
40224         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40225         include.
40226         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40227         Reported by Ludovic Courtès.
40228
40229 2009-10-06  Bruno Haible  <bruno@clisp.org>
40230
40231         * modules/size_max (Description): Discourage its use.
40232         Reported by Simon Josefsson.
40233
40234 2009-10-06  Jim Meyering  <meyering@redhat.com>
40235
40236         linkat: avoid compilation failure
40237         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40238
40239 2009-10-05  Eric Blake  <ebb9@byu.net>
40240
40241         linkat: support Linux 2.6.17
40242         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40243         linkat on Linux, but allow cache variable override.
40244         * lib/linkat.c (rpl_linkat): Define override.
40245         * modules/linkat (Depends-on): Add symlinkat.
40246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40247         * modules/unistd (Makefile.am): Substitute it.
40248         * lib/unistd.in.h (linkat): Declare replacement.
40249         Reported by Pádraig Brady.
40250
40251         quotearg: port test to systems with C.UTF-8 locale
40252         * tests/test-quotearg.c (struct result_strings): Add another
40253         member, differentiating between C.ASCII and C.UTF-8 handling.
40254         (compare_strings): Add parameter.
40255         (main): Adjust all callers.
40256
40257         getopt: avoid clash with FreeBSD _getopt_internal
40258         * lib/getopt.in.h (_getopt_internal): Override the name.
40259         * lib/getopt_int.h (includes): Pick up any overrides.
40260         Reported by Reuben Thomas.
40261
40262         hash: allow C89 compilation
40263         * lib/hash.c (check_tuning): Move declaration before statement.
40264         Reported by Reuben Thomas.
40265
40266 2009-10-05  Karl Berry  <karl@gnu.org>
40267
40268         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40269
40270 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40271             Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/uname.c (uname): Use a table-driven algorithm to compute
40274         Windows NT versions.
40275
40276 2009-10-04  Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40279         program_invocation_short_name.
40280         * modules/progname (configure.ac): Test for presence of
40281         program_invocation_short_name.
40282         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40283
40284 2009-10-04  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/progname.c (set_program_name): Fix comment.
40287         Reported by Jim Meyering.
40288
40289 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40290             Bruno Haible  <bruno@clisp.org>
40291
40292         * lib/uname.c: Include <string.h>.
40293         (uname): Do only one call to GetVersionEx in the common case.
40294
40295 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40296             Bruno Haible  <bruno@clisp.org>
40297
40298         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40299         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40300         (uname): Add support for Windows CE and various non-x86 CPU types.
40301
40302 2009-10-03  Bruno Haible  <bruno@clisp.org>
40303
40304         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40305         invocation to tests/configure.ac.
40306         Reported by Ian Beckwith <ianb@erislabs.net>.
40307
40308 2009-10-02  Eric Blake  <ebb9@byu.net>
40309
40310         fchdir: avoid compiler warning
40311         * lib/fchdir.c (canonicalize_file_name)
40312         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40313
40314         test-open: support mingw errno values
40315         * tests/test-open.h (test_open): Relax test.
40316         * tests/test-fopen.h (test_fopen): Likewise.
40317         * tests/test-openat-safer.c (main): Likewise.
40318
40319         open: fix opening directory on mingw
40320         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40321
40322         test-open: on GNU/Hurd, /dev/null is a directory
40323         * tests/test-fopen.h (main): Rename...
40324         (test_fopen): ...to this.  Use a guaranteed non-directory when
40325         confirming open behavior on trailing slash.
40326         * tests/test-openat-safer.c (main): Likewise.
40327         * tests/test-open.h (main): Likewise....
40328         (test_open): ...to this.
40329         * tests/test-fopen.c (main): Adjust caller.
40330         * tests/test-fopen-safer.c (main): Likewise.
40331         * tests/test-open.c (main): Likewise.
40332         * tests/test-fcntl-safer.c (main): Likewise.
40333         Reported by Samuel Thibault.
40334
40335         rename, fchdir: don't ignore chdir failure
40336         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40337         * lib/rename.c (rpl_rename) [W32]: Likewise.
40338         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40339         an empty destination directory if source cannot be renamed,
40340         although there is still possibility for failure.
40341         * doc/posix-functions/rename.texi (rename): Document the race.
40342         Reported by Jim Meyering.
40343
40344         maint: cleanup whitespace in recent commits
40345         * lib/rename.c (rpl_rename): Remove tabs.
40346         * tests/test-link.h (test_link): Likewise.
40347         * lib/fchdir.c (get_name): Likewise.
40348         Reported by Jim Meyering.
40349
40350 2009-10-02  Ben Pfaff  <blp@gnu.org>
40351
40352         relocatable-prog-wrapper: Add missing dependency on
40353         double-slash-root.
40354         * modules/relocatable-prog-wrapper: Add dependency.
40355         Reported by Ian Beckwith <ianb@erislabs.net>.
40356
40357 2009-10-02  Eric Blake  <ebb9@byu.net>
40358
40359         renameat: fix Solaris bugs
40360         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40361         needed fixing.
40362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40363         * modules/stdio (Makefile.am): Substitute it.
40364         * lib/stdio.in.h (renameat): Declare replacement.
40365         * lib/renameat.c (rpl_renameat): Implement fix.
40366
40367         renameat: new module
40368         * modules/renameat: New file.
40369         * lib/renameat.c (renameat): Likewise.
40370         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40372         * modules/stdio (Makefile.am): Substitute them.
40373         * lib/stdio.in.h (renameat): Declare it.
40374         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40375         * doc/posix-functions/renameat.texi (renameat): Likewise.
40376         * modules/renameat-tests: New test.
40377         * tests/test-renameat.c: Likewise.
40378
40379         rename: fix mingw bugs
40380         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40381         directory overwrite bugs.
40382
40383         rename: fix another cygwin 1.5 bug
40384         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40385         checks.
40386         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40387         unnecessary cygwin workarounds.  Also work around bug with moving
40388         full directory onto an empty one.
40389         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40390
40391         rename-dest-slash: merge into rename module
40392         * modules/rename-dest-slash (Status): Mark obsolete.
40393         (Depends-on): Add rename.
40394         (Files): Let rename do it all.
40395         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40396         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40397         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40398         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40399         * lib/rename.c (rpl_rename): Update comments.
40400
40401         rename: fix cygwin 1.5.x bugs
40402         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40403         * lib/rename.c (rpl_rename): Work around them.
40404         * modules/rename (Depends-on): Add same-inode.
40405
40406         rename: fix Solaris 10 bug
40407         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40408         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40409         was the only bug.
40410
40411         rename: fix Solaris 9 bug
40412         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40413         on non-directory.  Avoid calling exit.
40414         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40415         strdup.
40416         * modules/rename-tests (Depends-on): Drop lstat.
40417         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40418         (gl_PREREQ_RENAME): Delete unused macro.
40419
40420         rename-dest-slash: fix NetBSD bug
40421         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40422         links.
40423         * modules/rename-dest-slash (Depends-on): Add same-inode.
40424
40425         rename-tests: new test, exposes several platform bugs
40426         * modules/rename-tests: New file.
40427         * tests/test-rename.h: Likewise.
40428         * tests/test-rename.c: Likewise.
40429         * doc/posix-functions/rename.texi (rename): Improve documentation,
40430         including bugs that will eventually be fixed in gnulib.
40431
40432 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40433
40434         * lib/uname.c: Include <stdlib.h>
40435         (uname): Assume version info is available.
40436
40437 2009-10-02  Jim Meyering  <meyering@redhat.com>
40438
40439         gnu-web-doc-update: correct --help output
40440         * build-aux/gnu-web-doc-update: Make --help output relevant.
40441
40442         gnu-web-doc-update: add standard options
40443         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40444
40445         gnu-web-doc-update: New module.
40446         Use this script to automatically update the on-line web documentation
40447         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40448         * modules/gnu-web-doc-update: New file, from coreutils.
40449         * build-aux/gnu-web-doc-update: New script.
40450
40451 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40452
40453         link: LoadLibrary is not needed.
40454         * lib/link.c: Use GetModuleHandle.
40455
40456 2009-10-01  Eric Blake  <ebb9@byu.net>
40457
40458         getopt: bump serial number
40459         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40460         change.
40461
40462         tests: tighten link, rmdir, and remove tests
40463         * tests/test-link.h (includes): No need to use <config.h> here.
40464         Clean up if directory hard link was created, otherwise test for
40465         trailing '.'.
40466         * tests/test-linkat.c (main): Simplify.
40467         * tests/test-remove.c (main): Enhance test for trailing '.'.
40468         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40469
40470 2009-10-01  Jim Meyering  <meyering@redhat.com>
40471
40472         maint.mk: requiring "make major" was annoying, for a "minor" release.
40473         What is intended is "stable", to contrast with alpha and beta,
40474         so require "make stable", not "make major".
40475         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40476         (get_tool_versions): Likewise.
40477         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40478
40479 2009-09-30  Ben Pfaff  <blp@gnu.org>
40480
40481         Fix broken build of replacement for Windows tmpfile().
40482         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40483         flags argument added along with the 'mkostemp' module.
40484
40485 2009-09-28  Bruno Haible  <bruno@clisp.org>
40486
40487         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40488         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40489         to 'remove_elt'.
40490         (gl_list_remove): Update.
40491         * lib/gl_list.c (gl_list_remove): Update.
40492         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40493         to 'remove_elt'.
40494         (gl_oset_remove): Update.
40495         * lib/gl_list.c (gl_oset_remove): Update.
40496         Reported by Eric Blake.
40497
40498 2009-09-28  Eric Blake  <ebb9@byu.net>
40499
40500         doc: mention yet more cygwin 1.7 status
40501         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40502         cygwin.
40503         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40504         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40505
40506         argp: fix test failure
40507         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40508         that are not upper-case.  Pass correct range to tolower.
40509
40510 2009-09-27  Jim Meyering  <meyering@redhat.com>
40511
40512         test-yesno: work around sparc-dash here-document infelicity
40513         Without this change, the literal \177 byte in a here document
40514         would make dash 0.5.5.1-3 access uninitialized memory.
40515         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40516         Instead, use a marker, "@", and filter through tr to create the desired
40517         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40518
40519 2009-09-27  Bruno Haible  <bruno@clisp.org>
40520
40521         Disable untested support for new flavours of ACLs on AIX.
40522         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40523         progress.
40524         * lib/set-mode-acl.c (qset_acl): Likewise.
40525
40526 2008-12-07  Bruno Haible  <bruno@clisp.org>
40527
40528         Add support for new flavours of ACLs on AIX. (Untested.)
40529         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40530         (file_has_acl): Add support for newer AIX.
40531         * lib/set-mode-acl.c (qset_acl): Likewise.
40532         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40533         Rainer Tammer <tammer@tammer.net>.
40534
40535 2009-09-26  Eric Blake  <ebb9@byu.net>
40536
40537         argp: fix compilation of getopt
40538         * lib/getopt.in.h (includes): Use different guard than glibc.
40539         Reported by Sergey Poznyakoff.
40540
40541         doc: mention more cygwin 1.7 status
40542         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40543         bug.
40544         * doc/posix-functions/execl.texi (execl): Likewise.
40545         * doc/posix-functions/execle.texi (execle): Likewise.
40546         * doc/posix-functions/execlp.texi (execlp): Likewise.
40547         * doc/posix-functions/execv.texi (execv): Likewise.
40548         * doc/posix-functions/execve.texi (execve): Likewise.
40549         * doc/posix-functions/execvp.texi (execvp): Likewise.
40550         * doc/glibc-functions/canonicalize_file_name.texi
40551         (canonicalize_file_name): Cygwin 1.7 now provides this.
40552         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40553         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40554         on AT_SYMLINK_NOFOLLOW.
40555
40556 2009-09-24  Eric Blake  <ebb9@byu.net>
40557
40558         test-linkat: make test more robust
40559         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40560
40561         getopt: fix inclusion guards for cygwin
40562         * modules/getopt-posix (Depends-on): Add include-next.
40563         (Makefile.am): Substitute more items in replacement header.
40564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40565         <getopt.h>.
40566         * lib/getopt.in.h (includes): Use split inclusion guard, and
40567         prefer <getopt.h> over include <unistd.h> when one is present.
40568         (option): Also override name of 'struct option'.
40569
40570         same-inode: revert prior change; it is not yet ready
40571         * NEWS: Undo mention of this change.
40572         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40573         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40574         * lib/cycle-check.c (cycle_check): Likewise.
40575         * lib/same.c (same_name): Likewise.
40576         * lib/at-func2.c (at_func2): Likewise.
40577
40578 2009-09-23  Eric Blake  <ebb9@byu.net>
40579
40580         linkat: new module
40581         * modules/linkat: New file.
40582         * lib/at-func2.c (at_func2): Likewise.
40583         * lib/linkat.c (linkat): Likewise.
40584         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40585         * lib/openat-priv.h (at_func2): Add declaration.
40586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40587         * modules/unistd (Makefile.am): Substitute them.
40588         * lib/unistd.in.h (linkat): Declare it.
40589         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40590         * doc/posix-functions/linkat.texi (linkat): Likewise.
40591         * doc/posix-functions/link.texi (link): Tweak wording.
40592         * tests/test-link.c (main): Move guts...
40593         * tests/test-link.h (test_link): ...into new file.
40594         * modules/linkat-tests: New test.
40595         * tests/test-linkat.c: Likewise.
40596         * modules/link-tests (Files): Ship new file.
40597         (Depends-on): Add stdbool.
40598
40599         dirname: add library-safe mdir_name
40600         * lib/dirname.h (mdir_name): New prototype.
40601         * lib/dirname.c (dir_name): Move guts...
40602         (mdir_name): ...to new function that avoids xalloc_die.
40603
40604         fchdir: another mingw fix
40605         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40606         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40607         on mingw (where it has not yet been ported), and make it optional
40608         elsewhere.
40609         (_gl_register_fd): Use it.
40610
40611         same-inode: make SAME_INODE tri-state, to port to mingw
40612         * NEWS: Mention this change.
40613         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40614         st_ino always being 0.
40615         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40616         * lib/cycle-check.c (cycle_check): Likewise.
40617         * lib/same.c (same_name): Likewise.
40618
40619         lstat: avoid mingw compilation error
40620         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40621         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40622         lstat ourselves.
40623         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40624         was adequate.
40625         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40626         the checks for lstat.
40627         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40628
40629         link: fix test failure on Solaris 9
40630         * lib/link.c (rpl_link): Don't assume link will catch bogus
40631         trailing slash on source.
40632
40633         test-symlinkat: enhance test
40634         * tests/test-readlink.c (main): Move guts...
40635         * tests/test-readlink.h (test_readlink): ...into new file.
40636         * tests/test-symlink.c (main): Move guts...
40637         * tests/test-symlink.h (test_symlink): ...into new file.
40638         * tests/test-symlinkat.c (main): Use new files for further
40639         coverage.
40640         (do_symlink, do_readlink): New helper functions.
40641         * modules/symlink-tests (Files): Ship new file.
40642         (Depends-on): Add stdbool.
40643         * modules/readlink-tests (Files): Ship new file.
40644         (Depends-on): Add stdbool.
40645         * modules/symlinkat-tests (Files): Use new files.
40646
40647 2009-09-23  Eric Blake  <ebb9@byu.net>
40648
40649         readlink: document portability issue with symlink length
40650         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40651         systems have bogus st_size on symlinks, and mention the
40652         areadlink-with-size module.
40653         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40654         * doc/posix-functions/readlink.texi (readlink): Mention the
40655         areadlink module, and ERANGE failure.
40656         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40657         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40658
40659         readlink: fix Solaris 9 bug with trailing slash
40660         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40661         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40662         * doc/posix-functions/readlink.texi (readlink): Document this.
40663         * modules/readlink-tests: New test.
40664         * tests/test-readlink.c: Likewise.
40665
40666         readlink: fix cygwin 1.5.x bug with return type
40667         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40668         * lib/unistd.in.h (readlink): Use ssize_t.
40669         * lib/readlink.c (readlink): Likewise.
40670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40671         * modules/unistd (Makefile.am): Substitute it.
40672         * lib/unistd.in.h (readlink): Declare replacement.
40673         * doc/posix-functions/readlink.texi (readlink): Document this.
40674
40675         symlink: use throughout gnulib
40676         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40677         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40678         symlink is not used.
40679         * modules/symlinkat (Depends-on): Add symlink.
40680         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40681         * modules/canonicalize-tests (Depends-on): Likewise.
40682         * modules/lstat-tests (Depends-on): Likewise.
40683         * modules/openat-tests (Depends-on): Likewise.
40684         * modules/remove-tests (Depends-on): Likewise.
40685         * modules/rmdir-tests (Depends-on): Likewise.
40686         * modules/unlink-tests (Depends-on): Likewise.
40687         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40688         * tests/test-canonicalize.c (symlink): Likewise.
40689         * tests/test-fstatat.c (symlink): Likewise.
40690         * tests/test-lstat.c (symlink): Likewise.
40691         * tests/test-remove.c (symlink): Likewise.
40692         * tests/test-rmdir.c (symlink): Likewise.
40693         * tests/test-unlink.c (symlink): Likewise.
40694         * tests/test-unlinkat.c (symlink): Likewise.
40695
40696         symlink: new module, for Solaris 9 bug
40697         * modules/symlink: New file.
40698         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40699         * lib/symlink.c: Likewise.
40700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40701         * modules/unistd (Makefile.am): Substitute them.
40702         * lib/unistd.in.h (symlink): Declare replacement.
40703         * MODULES.html.sh (File system functions): Mention it.
40704         * doc/posix-functions/symlink.texi (symlink): Likewise.
40705         * modules/symlink-tests: New test.
40706         * tests/test-symlink.c: Likewise.
40707
40708 2009-09-23  Bruno Haible  <bruno@clisp.org>
40709
40710         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40711         when needed.
40712         Test case: gnulib-tool --import --with-tests atexit inttypes.
40713         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40714
40715 2009-09-23  Bruno Haible  <bruno@clisp.org>
40716
40717         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40718         subcommand, not in a subshell.
40719
40720 2009-09-22  Eric Blake  <ebb9@byu.net>
40721
40722         unistd: sort replacement declarations
40723         * lib/unistd.in.h: Sort declarations.
40724
40725         open, openat: minor optimization
40726         * lib/open.c (open): If open succeeded, len is non-zero.
40727         * lib/openat.c (rpl_openat): Likewise.
40728
40729         link-follow: ensure correct result
40730         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40731         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40732         distinguish between possible failures.
40733
40734 2009-09-21  Eric Blake  <ebb9@byu.net>
40735
40736         fts: avoid compiler warning
40737         * lib/fts.c (dirent_inode_sort_may_be_useful)
40738         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40739
40740 2009-09-19  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/progreloc.c (canonicalize_file_name): New declaration.
40743
40744 2009-09-19  Eric Blake  <ebb9@byu.net>
40745
40746         link: fix quoting
40747         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40748
40749         openat: fix openat bugs on Solaris 9
40750         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40751         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40752         * modules/openat (Depends-on): Add open.
40753         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40754         * modules/fcntl-h (Makefile.am): Substitute it.
40755         * lib/fcntl.in.h (openat): Declare replacement.
40756         * doc/posix-functions/openat.texi (openat): Document this.
40757
40758         openat: move fstatat and unlinkat into correct files
40759         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40760         compiled.
40761         * lib/openat.c (fstatat, unlinkat): Move...
40762         * lib/fstatat.c (fstatat): ...into correct files.
40763         * lib/unlinkat.c (unlinkat): Likewise.
40764
40765         openat: fix unlinkat bugs on Solaris 9
40766         * lib/unlinkat.c (unlinkat): New file.
40767         * modules/openat (Depends-on): Add unlink.
40768         (Files): Distribute it.
40769         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40770         trailing slash behavior is broken.
40771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40772         * modules/unistd (Makefile.am): Substitute it.
40773         * lib/unistd.in.h (unlinkat): Declare replacement.
40774         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40775
40776         openat: fix fstatat bugs on Solaris 9
40777         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40778         stat.
40779         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40780
40781         test-unlinkat: enhance test, to expose Solaris 9 bug
40782         * tests/test-unlink.c (main): Factor guts...
40783         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40784         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40785         * tests/test-rmdir.c (main): Adjust caller.
40786         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40787         (unlinker): New helper function.
40788         (rmdirat): Enhance check.
40789         * modules/rmdir-tests (Depends-on): Add stdbool.
40790         * modules/unlink-tests (Depends-on): Likewise.
40791         (Files): Add test-unlink.h.
40792         * modules/openat-tests (Files): Likewise.
40793         (Depends-on): Add unlinkdir.
40794
40795         test-fstatat: new test, to expose Solaris 9 bugs
40796         * tests/test-stat.c (main): Factor guts...
40797         * tests/test-stat.h (test_stat_func): ...into new file.
40798         * tests/test-lstat.c (main): Factor guts...
40799         * tests/test-lstat.h (test_lstat_func): ...into new file.
40800         * tests/test-fstatat.c: New file.
40801         * modules/stat-tests (Files): Add test-stat.h.
40802         * modules/lstat-tests (Files): Add test-lstat.h.
40803         (Depends-on): Add stdbool.
40804         * modules/openat-tests (Depends-on): Add pathmax.
40805         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40806         (Makefile.am): Run new test.
40807
40808         remove: new module, for mingw and Solaris 9 bugs
40809         * modules/remove: New file.
40810         * lib/remove.c: Likewise.
40811         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40813         * modules/stdio (Makefile.am): Use them.
40814         * lib/stdio.in.h (remove): Declare replacement.
40815         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40816         * doc/posix-functions/remove.texi (remove): Likewise.
40817         * modules/remove-tests: New test.
40818         * tests/test-remove.c: Likewise.
40819
40820         unlink: new module, for Solaris 9 bug
40821         * modules/unlink: New file.
40822         * lib/unlink.c: Likewise.
40823         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40825         * modules/unistd (Makefile.am): Use them.
40826         * lib/unistd.in.h (stat): Declare replacement.
40827         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40828         * doc/posix-functions/unlink.texi (unlink): Likewise.
40829         * modules/unlink-tests: New test.
40830         * tests/test-unlink.c: Likewise.
40831
40832         lstat: fix Solaris 9 bug
40833         * lib/lstat.c (lstat): Also check for trailing slash on
40834         non-symlink, non-directories.  Use stat module to simplify logic.
40835         * doc/posix-functions/lstat.texi (lstat): Document it.
40836         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40837         (configure.ac): Check for symlink.
40838         * tests/test-lstat.c (main): Add more tests.
40839
40840         stat: add as dependency to other modules
40841         * modules/chown (Depends-on): Add stat.
40842         * modules/euidaccess (Depends-on): Likewise.
40843         * modules/fchdir (Depends-on): Likewise.
40844         * modules/isdir (Depends-on): Likewise.
40845         * modules/link (Depends-on): Likewise.
40846         * modules/lstat (Depends-on): Likewise.
40847         * modules/mkdir-p (Depends-on): Likewise.
40848         * modules/modechange (Depends-on): Likewise.
40849         * modules/open (Depends-on): Likewise.
40850         * modules/readlink (Depends-on): Likewise.
40851         * modules/same (Depends-on): Likewise.
40852
40853         stat: fix Solaris 9 bug
40854         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40855         slash.
40856         * lib/stat.c (rpl_stat): Work around it.
40857         * doc/posix-functions/stat.texi (stat): Update documentation.
40858
40859         stat: new module, for mingw bug
40860         * modules/stat: New file.
40861         * lib/stat.c: Likewise.
40862         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40863         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40864         * modules/sys_stat (Makefile.am): Use them.
40865         * lib/sys_stat.in.h (stat): Declare replacement.
40866         * lib/openat.c (fstatat): Deal with lstat and stat being function
40867         macros.
40868         * modules/openat (Depends-on): Add inline.
40869         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40870         * doc/posix-functions/stat.texi (stat): Likewise.
40871         * modules/stat-tests: New test.
40872         * tests/test-stat.c: Likewise.
40873
40874 2009-09-19  Jim Meyering  <meyering@redhat.com>
40875
40876         syntax-check: detect unnecessary inclusion of canonicalize.h
40877         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40878
40879 2009-09-19  Eric Blake  <ebb9@byu.net>
40880
40881         canonicalize-lgpl: adjust clients to use correct header
40882         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40883         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40884         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40885         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40886         * lib/progreloc.c (includes): Likewise.
40887
40888 2009-09-19  Jim Meyering  <meyering@redhat.com>
40889
40890         test-posixtm.c: correct a comment
40891         * tests/test-posixtm.c: Correct first-line comment.
40892         Spotted by Eric Blake.
40893
40894 2009-09-16  Jim Meyering  <meyering@redhat.com>
40895
40896         posixtm-tests: make T const-correct; add a test case
40897         * tests/test-posixtm.c (T): Declare const.
40898         Add a test for -(2^31+1).
40899         Remove useless can-succeed-only-in-2002 test.
40900
40901         posixtm-tests: adjust the sole failing test
40902         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40903         expected output matches what mktime now produces.  Cross-checked via
40904         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40905
40906         posixtm: move #ifdef'd tests into a new module
40907         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40908         * tests/test-posixtm.c: ... this new file.
40909         * modules/posixtm-tests: New module.
40910
40911 2009-09-19  Eric Blake  <ebb9@byu.net>
40912
40913         openat: simplify use of at-func.c
40914         * lib/at-func.c (includes): Include prerequisites here, to
40915         simplify requirements on client files.
40916         * lib/openat-priv.h: Add double-inclusion guard.
40917         * lib/faccessat.c (includes): Simplify.
40918         * lib/fchmodat.c (includes): Likewise.
40919         * lib/fchownat.c (includes): Likewise.
40920         * lib/mkdirat.c (includes): Likewise.
40921         * lib/mkfifoat.c (includes): Likewise.
40922         * lib/symlinkat.c (includes): Likewise.
40923
40924         openat: allow return of fd 0
40925         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40926         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40927         unistd-safer.
40928         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40929         <fcntl.h>; this module does not leak fds.
40930         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40931         must be allowed to return 0, leaving openat_safer to add the
40932         safety.
40933         (openat_permissive): Avoid writing to just-opened fd 2 if
40934         restoring the current directory fails.
40935         * lib/openat-die.c (openat_restore_fail): Add comment.
40936         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40937         (save_cwd): Guarantee safe fd, but without use of open_safer.
40938         * tests/test-openat.c: New test.
40939         * modules/openat-tests (Files, Makefile.am): Distribute and build
40940         new file.
40941
40942         relocatable-prog-wrapper: fix build
40943         * modules/relocatable-prog-wrapper (Files): Update name of
40944         canonicalize m4 file, broken on 2009-09-17.
40945         Reported by emad hajjar <aleppos@hotmail.com>.
40946
40947 2009-09-19  Bruno Haible  <bruno@clisp.org>
40948
40949         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40950         * lib/safe-alloc.c: Likewise.
40951         Reported by Ian Beckwith <ianb@erislabs.net>.
40952
40953 2009-09-18  Bruno Haible  <bruno@clisp.org>
40954
40955         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40956         Reported by <erobles@sensacd.com.mx>.
40957
40958 2009-09-17  Eric Blake  <ebb9@byu.net>
40959
40960         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40961         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40962         slashes when checking if last component is missing.
40963         * tests/test-canonicalize.c (main): Test this.
40964
40965         canonicalize, canonicalize-lgpl: honor // if distinct from /
40966         * modules/canonicalize (Files): Add double-slash-root.m4.
40967         * modules/canonicalize-lgpl (Files): Likewise.
40968         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40969         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40970         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40971         fallback definition.
40972         (canonicalize_filename_mode): Use it to protect //.
40973         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40974         (__realpath): Likewise.
40975         * tests/test-canonicalize.c (main): Test this.
40976         * tests/test-canonicalize-lgpl.c (main): Likewise.
40977         * modules/canonicalize-tests (Depends-on): Add same-inode.
40978         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40979
40980         canonicalize-lgpl: fix glibc bug with trailing slash
40981         * m4/canonicalize-lgpl.m4: Move contents...
40982         * m4/canonicalize.m4: ...here.
40983         (gl_CANONICALIZE_LGPL): Factor realpath check...
40984         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40985         glibc 2.3.5 bug, fixed 2005-04-27.
40986         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40987         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40988         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40989         * modules/canonicalize-lgpl (Files): Manage file rename.
40990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40991         * modules/stdlib (Makefile.am): Substitute witness.
40992         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40993         is needed.
40994         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40995         replacement is required.
40996         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40997         * doc/glibc-functions/canonicalize_file_name.texi
40998         (canonicalize_file_name): Document this.
40999         * doc/posix-functions/realpath.texi (realpath): Likewise.
41000
41001         canonicalize-lgpl: reject non-directory with trailing slash
41002         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41003         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41004         catches failures in glibc 2.3.5.
41005         * tests/test-canonicalize.c (main): Likewise.
41006
41007         canonicalize-lgpl: use native realpath if it works
41008         * lib/canonicalize-lgpl.c (realpath): Guard with
41009         FUNC_REALPATH_WORKS.
41010         * lib/stdlib.in.h (realpath): Make declaration optional based on
41011         HAVE_REALPATH.
41012         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41013         native realpath works.
41014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41015         * modules/stdlib (Makefile.am): Substitute witness.
41016
41017         canonicalize, canonicalize-lgpl: use <stdlib.h>
41018         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41019         (Include): Mention <stdlib.h>.
41020         (configure.ac): Mention functions we provide.
41021         * modules/canonicalize (configure.ac): Likewise.
41022         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41023         realpath if canonicalize_file_name is missing.
41024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41025         * modules/stdlib (Makefile.am): Substitute witnesses.
41026         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41027         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41028         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41029         * NEWS: Document this.
41030         * doc/glibc-functions/canonicalize_file_name.texi
41031         (canonicalize_file_name): Likewise.
41032         * doc/posix-functions/realpath.texi (realpath): Likewise.
41033         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41034
41035         test-canonicalize: consolidate into single C program
41036         * tests/test-canonicalize.sh: Delete; move setup into...
41037         * tests/test-canonicalize.c (main): ...the program, making it
41038         easier to run in debugger.  Add some tests.
41039         * modules/canonicalize-tests (Files): Remove unused file.
41040         (Depends-on): Add progname.
41041         (configure.ac, Makefile.am): Simplify.
41042
41043         test-canonicalize-lgpl: consolidate into single C program
41044         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41045         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41046         easier to run in debugger.  Add some tests.
41047         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41048         (configure.ac, Makefile.am): Simplify.
41049
41050         canonicalize: avoid resolvepath
41051         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41052         unnecessary checks.
41053         * lib/canonicalize.c (includes): Simplify.
41054         (canonicalize_file_name): Drop resolvepath implementation.
41055         * modules/canonicalize (Depends-on): Drop filenamecat.
41056
41057         canonicalize: don't lose errno
41058         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41059         over calls to free.
41060
41061         canonicalize: simplify errno handling
41062         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41063         assignment.
41064
41065         canonicalize, canonicalize-lgpl: update module dependencies
41066         * modules/canonicalize (Depends-on): Add extensions, lstat,
41067         pathmax, stdlib.
41068         (Files): Drop pathmax.h.
41069         (configure.ac): Adjust macro name.
41070         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41071         lstat, stdlib, sys_stat.
41072         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41073         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41074         extensions.
41075         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41076         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41077         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41078         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41079         declaration, if available.
41080         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41081         we can rely on the readlink module.
41082         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41083         (includes): Use <unistd.h> unconditionally.
41084
41085 2009-09-17  Eric Blake  <ebb9@byu.net>
41086
41087         maint: make Include sections of modules consistent
41088         * modules/alloca: Use only header name; no need to list #include.
41089         * modules/alloca-opt: Likewise.
41090         * modules/arpa_inet: Likewise.
41091         * modules/canon-host: Likewise.
41092         * modules/configmake: Likewise.
41093         * modules/dirent: Likewise.
41094         * modules/eealloc: Likewise.
41095         * modules/environ: Likewise.
41096         * modules/fchdir: Likewise.
41097         * modules/fcntl: Likewise.
41098         * modules/fcntl-h: Likewise.
41099         * modules/gethrxtime: Likewise.
41100         * modules/gettime: Likewise.
41101         * modules/ignore-value: Likewise.
41102         * modules/inet_ntop: Likewise.
41103         * modules/inet_pton: Likewise.
41104         * modules/inttypes: Likewise.
41105         * modules/isnand-nolibm: Likewise.
41106         * modules/isnanf-nolibm: Likewise.
41107         * modules/mbchar: Likewise.
41108         * modules/mbfile: Likewise.
41109         * modules/mbiter: Likewise.
41110         * modules/mbuiter: Likewise.
41111         * modules/netdb: Likewise.
41112         * modules/netinet_in: Likewise.
41113         * modules/nproc: Likewise.
41114         * modules/pagealign_alloc: Likewise.
41115         * modules/poll: Likewise.
41116         * modules/printf-frexp: Likewise.
41117         * modules/pthread: Likewise.
41118         * modules/putenv: Likewise.
41119         * modules/random_r: Likewise.
41120         * modules/relocatable-prog: Likewise.
41121         * modules/search: Likewise.
41122         * modules/select: Likewise.
41123         * modules/selinux-h: Likewise.
41124         * modules/settime: Likewise.
41125         * modules/signal: Likewise.
41126         * modules/size_max: Likewise.
41127         * modules/socklen: Likewise.
41128         * modules/ssize_t: Likewise.
41129         * modules/stdarg: Likewise.
41130         * modules/stdbool: Likewise.
41131         * modules/stddef: Likewise.
41132         * modules/stdint: Likewise.
41133         * modules/stdio: Likewise.
41134         * modules/stdlib: Likewise.
41135         * modules/string: Likewise.
41136         * modules/strings: Likewise.
41137         * modules/sys_file: Likewise.
41138         * modules/sys_ioctl: Likewise.
41139         * modules/sys_select: Likewise.
41140         * modules/sys_socket: Likewise.
41141         * modules/sys_stat: Likewise.
41142         * modules/sys_time: Likewise.
41143         * modules/sys_times: Likewise.
41144         * modules/sys_utsname: Likewise.
41145         * modules/sys_wait: Likewise.
41146         * modules/sysexits: Likewise.
41147         * modules/time: Likewise.
41148         * modules/times: Likewise.
41149         * modules/tmpfile: Likewise.
41150         * modules/trim: Likewise.
41151         * modules/unistd: Likewise.
41152         * modules/wchar: Likewise.
41153         * modules/wctype: Likewise.
41154
41155 2009-09-17  Bruno Haible  <bruno@clisp.org>
41156
41157         Make getdate.y compile on QNX and NetBSD 5 / i386.
41158         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41159         TIME_T_FITS_IN_LONG_INT.
41160         * lib/getdate.y (long_time_t): New type.
41161         (relative_time): Change type of 'seconds' field to long_time_t.
41162         (get_date): Update types of local variables. Check against overflow
41163         during conversion from long_time_t to time_t.
41164         Reported by Matt Kraai <kraai@ftbfs.org>
41165         and Hasso Tepper <hasso@netbsd.org>.
41166
41167 2009-09-17  Bruno Haible  <bruno@clisp.org>
41168
41169         * modules/COPYING: Update copyright years.
41170         * modules/README: Likeiwse.
41171         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41172         Reported by Ian Beckwith <ianb@erislabs.net>.
41173
41174 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41175
41176         * users.txt: Update references for gnuit package.
41177
41178 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41179
41180         * m4/getdelim.m4: Fix typo in copyright line.
41181
41182 2009-09-17  Bruno Haible  <bruno@clisp.org>
41183
41184         * lib/atoll.c: Use the standard header with GPL copyright.
41185         * lib/argz.in.h: Likewise.
41186         * lib/glob.c: Likewise.
41187         * lib/glob-libc.h: Likewise.
41188         * lib/random_r.c: Likewise.
41189         * lib/siglist.h: Likewise.
41190         * lib/strsignal.c: Likewise.
41191         Reported by Ian Beckwith <ianb@erislabs.net>.
41192
41193 2009-09-17  Eric Blake  <ebb9@byu.net>
41194
41195         rmdir: ensure correct dependency order
41196         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41197
41198 2009-09-17  Bruno Haible  <bruno@clisp.org>
41199
41200         Disable assertion that fails on NetBSD 5 / i386.
41201         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41202         Reported by Sam Steingold <sds@gnu.org>
41203         and Hasso Tepper <hasso@netbsd.org>.
41204
41205 2009-09-16  Eric Blake  <ebb9@byu.net>
41206
41207         unlinkdir: port to mingw
41208         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41209         on which no one can unlink a directory.
41210
41211         stdlib: sort witness names
41212         * modules/stdlib (Makefile.am): Sort replacements.
41213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41214         * lib/stdlib.in.h: Likewise.
41215
41216         parse-duration-tests: avoid link failure
41217         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41218         LIBINTL.
41219         Reported by Tom G. Christensen.
41220
41221         openat-tests: ensure unlinkat behaves like rmdir
41222         * tests/test-rmdir.c (main): Factor guts...
41223         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41224         * modules/rmdir-tests (Files): Ship new file.
41225         * modules/openat-tests: New test.
41226         * tests/test-unlinkat.c: Likewise.
41227
41228         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41229         * modules/rmdir-errno (Status, Notice): Now obsolete.
41230
41231         rmdir: work around cygwin 1.5.x and mingw bugs
41232         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41233         * lib/rmdir.c (rmdir): Work around it.
41234         * modules/rmdir (Status, Notice): No longer obsolete.
41235         (Files): Add dos.m4.
41236         (Depends-on): Add unistd.
41237         (configure.ac): Set witnesses.
41238         (License): Relax to LGPLv2+.
41239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41240         * modules/unistd (Makefile.am): Substitute witnesses.
41241         * lib/unistd.in.h (rmdir): Declare replacement.
41242         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41243         * modules/rmdir-tests: New tests.
41244         * tests/test-rmdir.c: Likewise.
41245
41246 2009-09-15  Eric Blake  <ebb9@byu.net>
41247
41248         fchdir: improve use of replacement functions
41249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41250         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41251         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41252         REPLACE_CLOSEDIR.
41253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41254         * modules/sys_stat (Makefile.am): Substitute correct witness.
41255         * modules/dirent (Makefile.am): Likewise.
41256         * modules/unistd (Makefile.am): Likewise.
41257         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41258         * lib/unistd.in.h (dup): Likewise.
41259         * lib/sys_stat.in.h (fstat): Likewise.
41260
41261         maint: ignore gnulib-tool temp files
41262         * .gitignore: Ignore files created during gnulib-tool --test.
41263
41264 2009-09-13  Jim Meyering  <meyering@redhat.com>
41265
41266         posixtm: don't reject a time that specify "60" as the number of seconds
41267         * lib/posixtm.c (posixtime): The code to reject invalid dates
41268         would also reject a time specified with the .60 suffix.
41269         But POSIX allows that, in order to accommodate leap seconds.
41270         So don't reject it.
41271         (main): Adjust tests accordingly.
41272         * modules/posixtm (Depends-on): Add stpcpy.
41273
41274 2009-09-11  Jim Meyering  <meyering@redhat.com>
41275
41276         announce-gen: include [$release_type] in emitted Subject:
41277         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41278         e.g., [stable] in the emitted Subject: line.
41279
41280 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41281
41282         Remove obsolete macros from several modules.
41283         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41284         obsolete Autoconf macros with their modern counterparts.
41285         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41286         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41287         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41288         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41289         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41290         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41291         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41292         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41293         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41294         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41295         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41296         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41297         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41298         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41299         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41301         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41302         * m4/time_r.m4 (gl_TIME_R): Likewise.
41303         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41304         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41305         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41306
41307         Fix copyright header in build-aux scripts.
41308         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41309         recommendation.
41310         * build-aux/ncftpput-ftp: Likewise.
41311         * build-aux/update-copyright: Likewise.
41312
41313 2009-09-09  Eric Blake  <ebb9@byu.net>
41314
41315         test-link: allow Linux choice of errno
41316         * tests/test-link.c (main): Relax test for alternate error.
41317
41318         strndup: fix improper m4 caching
41319         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41320         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41321         (gl_PREREQ_STRNDUP): Delete.
41322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41323         * modules/string (Makefile.am): Substitute it.
41324         * lib/string.in.h (strndup): Modernize prototype.
41325
41326         getcwd: port to mingw
41327         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41328         different from the POSIX assumptions made throughout the getcwd
41329         module; fortunately, the mingw getcwd does not need replacement.
41330         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41331         * modules/getcwd-tests: New test.
41332         * tests/test-getcwd.c: Likewise.
41333
41334         link: fix platform bugs
41335         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41336         * lib/link.c (link): Work around them.  Fix related mingw bug.
41337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41338         * modules/unistd (Makefile.am): Substitute it.
41339         * lib/unistd.in.h (link): Declare replacement.
41340         * doc/posix-functions/link.texi (link): Document this.
41341         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41342
41343         test-link: consolidate into single C program, test more cases
41344         * tests/test-link.sh: Delete.
41345         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41346         at least Cygwin and Solaris.
41347         * modules/link-tests (Files): Remove unused file.
41348         (Depends-on): Add errno, sys_stat.
41349         (Makefile.am): Simplify.
41350
41351 2009-09-08  Bruno Haible  <bruno@clisp.org>
41352
41353         Work around towlower, towupper bug on mingw.
41354         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41355         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41356         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41357         * doc/posix-functions/towupper.texi: Likewise.
41358         Reported by Eric Blake.
41359
41360 2009-09-08  Jim Meyering  <meyering@redhat.com>
41361
41362         build: don't try to run autoheader if we don't use it
41363         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41364         is not used in configure.ac.
41365
41366 2009-09-08  Eric Blake  <ebb9@byu.net>
41367
41368         euidaccess: fix compilation error
41369         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41370
41371         rawmemchr: relax license
41372         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41373         okay.
41374         Reported by Jim Meyering.
41375
41376         mkfifoat: new module
41377         * modules/mkfifoat: New file.
41378         * lib/mkfifoat.c: Likewise.
41379         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41381         * modules/sys_stat (Makefile.am): Use them.
41382         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41383         * MODULES.html.sh (File system functions): Mention module.
41384         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41385         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41386         * modules/mkfifoat-tests: New test.
41387         * tests/test-mkfifoat.c: Likewise.
41388
41389         strchrnul: relax license
41390         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41391         okay.
41392         Reported by Jim Meyering.
41393
41394 2009-09-08  Eric Blake  <ebb9@byu.net>
41395
41396         fstatat: fix compilation on Solaris
41397         * lib/fstatat.c (includes): Add fcntl.h.
41398         Reported by Pádraig Brady.
41399
41400 2009-09-07  Eric Blake  <ebb9@byu.net>
41401
41402         rename: modernize replacement
41403         * modules/rename (Depends-on): Add stdio.
41404         (configure.ac): Declare witness.
41405         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41406         stdio take care of replacement.
41407         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41408         * modules/stdio (Makefile.am): Substitute them.
41409         * lib/stdio.in.h (rename): Declare replacement.
41410         * lib/rename.c (includes): Allow cross-compilation to non-windows
41411         machines.
41412         * doc/posix-functions/rename.texi (rename): Improve
41413         documentation.
41414
41415         stdio: sort witness names
41416         * modules/stdio (Makefile.am): Sort replacements.
41417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41418         * lib/stdio.in.h: Likewise.
41419
41420         getcwd: minor cleanups
41421         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41422         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41423
41424         openat: provide more convenience names
41425         * modules/faccessat (configure.ac): Add C witness.
41426         * lib/unistd.in.h (readlinkat): Fix typo.
41427         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41428         convenience wrappers.
41429         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41430         wrappers in syntax checks.
41431
41432 2009-09-06  Eric Blake  <ebb9@byu.net>
41433
41434         doc: fix comments in recent patches
41435         * lib/faccessat.c: Mention correct function.
41436         * lib/fchmodat.c: Likewise.
41437         * lib/fchownat.c: Likewise.
41438         * lib/symlinkat.c: Likewise.
41439         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41440         constants.
41441
41442         faccessat, symlinkat: continue cleanup of previous patch
41443         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41444         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41445         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41447         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41448         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41449         set.
41450
41451 2009-09-06  Bruno Haible  <bruno@clisp.org>
41452
41453         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41454         (fstatat): Declare if GNULIB_FSTATAT is set.
41455         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41456         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41457         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41458         * modules/fcntl-h (Files): Remove m4/openat.m4.
41459         * modules/sys_stat (Files): Remove m4/openat.m4.
41460         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41461         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41462         * modules/unistd (Files): Remove m4/openat.m4.
41463         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41464         GNULIB_OPENAT.
41465         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41466         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41468         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41469         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41470         gl_OPENAT_DEFAULTS.
41471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41472         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41473         Don't require gl_OPENAT_DEFAULTS.
41474         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41475         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41476         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41477         (gl_OPENAT_DEFAULTS): Remove macro.
41478
41479 2009-09-06  Bruno Haible  <bruno@clisp.org>
41480
41481         * modules/openat (configure.ac): Remove unneeded witness.
41482
41483 2009-09-06  Bruno Haible  <bruno@clisp.org>
41484
41485         Set errno to ENOSYS when a function is entirely unsupported.
41486         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41487         EOPNOTSUPP.
41488         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41489         * modules/chown (Depends-on): Remove errno.
41490
41491 2009-09-06  Bruno Haible  <bruno@clisp.org>
41492
41493         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41494
41495 2009-09-06  Bruno Haible  <bruno@clisp.org>
41496
41497         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41498
41499 2009-09-06  Ben Pfaff  <blp@gnu.org>
41500             Bruno Haible  <bruno@clisp.org>
41501
41502         Work around a glibc bug in strtok_r.
41503         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41504         Undefine if UNDEFINE_STRTOK_R is set.
41505         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41506         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41507         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41508         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41509         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41510         UNDEFINE_STRTOK_R.
41511         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41512
41513 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41514
41515         exclude: minor fix
41516         * lib/exclude.c: Include wctype.h
41517
41518 2009-09-06  Akim Demaille  <demaille@gostai.com>
41519
41520         bootstrap: improve error message
41521         * build-aux/bootstrap (find_tool): Upon failure, report the list
41522         of candidates.
41523         Honor the initial value of the envvar.
41524
41525 2009-09-05  Eric Blake  <ebb9@byu.net>
41526
41527         symlinkat: new module
41528         * modules/symlinkat: New file.
41529         * lib/symlinkat.c: Likewise.
41530         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41532         * modules/unistd (Makefile.am): Use them.
41533         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41534         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41535         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41536         * MODULES.html.sh (File system functions): Mention module.
41537         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41538         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41539         * modules/symlinkat-tests: New test.
41540         * tests/test-symlinkat.c: Likewise.
41541
41542         test-openat-safer: add more checks
41543         * tests/test-openat-safer.c (main): Check more code paths.
41544
41545 2009-09-05  Jim Meyering  <meyering@redhat.com>
41546
41547         syntax-check: detect unnecessary inclusion of openat.h
41548         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41549
41550 2009-09-05  Bruno Haible  <bruno@clisp.org>
41551
41552         Support towlower, towupper.
41553         * doc/posix-functions/towlower.texi: Mention module wctype.
41554         * doc/posix-functions/towupper.texi: Likewise.
41555         * lib/wctype.in.h (towlower, towupper): New functions.
41556         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41557         (ASSERT): New macro.
41558         (e): New variable.
41559         (main): Test also towlower, towupper. Test WEOF argument.
41560         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41561
41562 2009-09-05  Bruno Haible  <bruno@clisp.org>
41563
41564         Fix conversion behaviour when the input is invalid.
41565         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41566         mark occurring in first pass of indirect conversion.
41567         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41568         input.
41569         Found by clang's static analyzer.
41570
41571 2009-09-05  Bruno Haible  <bruno@clisp.org>
41572
41573         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41574         where direct conversion is possible.
41575
41576 2009-09-04  Eric Blake  <ebb9@byu.net>
41577
41578         openat: fail with ENOENT on empty name
41579         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41580         buffer.
41581
41582         link-follow: fix logic bug in prior patch
41583         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41584         reversed sense of yes and no in prior patch.  Avoid confusing
41585         compilation failure with desired semantics.
41586
41587         link-follow: accomodate mingw and cross-compilation
41588         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41589         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41590         cross-compilation results to -1, to make linkat easier to
41591         implement when cross-compiling.  Trivially support mingw.
41592         * modules/link-follow (configure.ac): Call new name.
41593         * NEWS: Mention this.
41594
41595 2009-09-03  Eric Blake  <ebb9@byu.net>
41596
41597         faccessat: compile replacement
41598         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41599         needed.
41600
41601         fts: fix compilation error
41602         * lib/fts.c (includes): Re-add "openat.h", for
41603         openat_needs_fchdir.
41604
41605         faccessat: new module
41606         * modules/faccessat: New file.
41607         * lib/faccessat.c: Likewise.
41608         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41610         * modules/unistd (Makefile.am): Use it.
41611         * lib/unistd.in.h (faccessat): Declare it.
41612         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41613         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41614         * MODULES.html.sh (File system functions): Mention it.
41615         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41616         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41617
41618         euidaccess: prefer POSIX over non-standard implementation
41619         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41620         * lib/euidaccess.c (euidaccess): Use it if available.
41621
41622         openat: make template easier to use
41623         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41624         AT_FUNC_F2 to be undefined.
41625         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41626         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41627         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41628         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41629         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41630         Likewise.
41631         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41632         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41633         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41634         Likewise.
41635
41636         openat: declare in POSIX headers
41637         * NEWS: Mention this.
41638         * modules/openat (configure.ac): Declare witnesses.
41639         (Depends-on): Add fcntl-h, sys_stat, unistd.
41640         (Include): Mention correct headers.
41641         * modules/fcntl-h (Depends-on): Add link-warning.
41642         (Files): Add openat.m4.
41643         (Makefile.am): Substitute witnesses.
41644         * modules/sys_stat (Files, Makefile.am): Likewise.
41645         * modules/unistd (Files, Makefile.am): Likewise.
41646         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41647         (gl_OPENAT_DEFAULTS): New macro.
41648         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41650         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41651         (SYS_STAT_H): Remove unused variable.
41652         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41653         * lib/fcntl--.h (includes): Remove unneeded header.
41654         * lib/openat-safer.c (includes): Likewise.
41655         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41656         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41657         appropriate headers.
41658         (__OPENAT_PREFIX): Delete.
41659         * lib/fcntl.in.h (openat): Provide declaration.
41660         (AT_FDCWD): Fix Solaris bug.
41661         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41662         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41663         * lib/fchmodat.c (includes):  Adjust to find declaration.
41664         * lib/fchownat.c (includes): Likewise.
41665         * lib/mkdirat.c (includes): Likewise.
41666         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41667         still visible.
41668
41669 2009-09-02  Eric Blake  <ebb9@byu.net>
41670
41671         errno: use consistently
41672         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41673         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41674         * lib/canonicalize.c (ELOOP): Likewise.
41675         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41676         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41677         * lib/lchown.c (EOPNOTSUPP): Likewise.
41678         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41679         * lib/savewd.c (ESTALE): Likewise.
41680         * lib/settime.c (ENOSYS): Likewise.
41681         * lib/utimens.c (ENOSYS): Likewise.
41682         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41683         * lib/chdir-safer.c (ELOOP): Likewise.
41684         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41685         * modules/c-stack (Depends-on): Add errno.
41686         * modules/canonicalize (Depends-on): Likewise.
41687         * modules/chdir-safer (Depends-on): Likewise.
41688         * modules/fdopendir (Depends-on): Likewise.
41689         * modules/inet_ntop (Depends-on): Likewise.
41690         * modules/inet_pton (Depends-on): Likewise.
41691         * modules/lchown (Depends-on): Likewise.
41692         * modules/openat (Depends-on): Likewise.
41693         * modules/savewd (Depends-on): Likewise.
41694         * modules/settime (Depends-on): Likewise.
41695         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41696
41697         fts: avoid leaking fds
41698         * modules/fts (Depends-on): Add cloexec.
41699         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41700         flag.
41701
41702         fts: make directory fds more robust
41703         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41704         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41705
41706         backupfile, chdir-long, fts, savedir: make safer
41707         * lib/backupfile.c (includes): Use "dirent--.h", since
41708         numbered_backup can write to stderr during readdir.
41709         * lib/savedir.c (includes): Likewise.
41710         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41711         emulation can write to stderr on failure.
41712         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41713         * lib/getcwd.c: Document why opendir_safer is unused.
41714         * lib/glob.c: Likewise.
41715         * lib/scandir.c: Likewise.
41716         * lib/openat-proc.c: Likewise, for open_safer.
41717         * modules/backupfile (Depends-on): Add dirent-safer.
41718         * modules/savedir (Depends-on): Likewise.
41719         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41720         * modules/chdir-long (Depends-on): Add openat-safer.
41721
41722         openat-safer: new module
41723         * modules/openat-safer: New file.
41724         * lib/openat-safer.c: Likewise.
41725         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41726         * lib/fcntl-safer.h (openat_safer): Declare.
41727         * lib/fcntl--.h (openat): Override.
41728         * MODULES.html.sh (File descriptor based I/O): Mention it.
41729         * lib/openat.h: Add double-inclusion guards.
41730         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41731         "fcntl--.h", so we can implement openat.
41732         * modules/openat-safer-tests: New test.
41733         * tests/test-openat-safer.c: New file.
41734
41735         dirent-safer: new module
41736         * modules/dirent-safer: New file.
41737         * lib/dirent--.h: Likewise.
41738         * lib/dirent-safer.h: Likewise.
41739         * lib/opendir-safer.c: Likewise.
41740         * m4/dirent-safer.m4: Likewise.
41741         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41742         * modules/dirent-safer-tests: New test.
41743         * tests/test-dirent-safer.c: New file.
41744         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41745
41746         fdopendir: optimize on mingw
41747         * lib/unistd.in.h (_gl_directory_name): New prototype.
41748         * lib/fchdir.c (_gl_directory_name): Implement it.
41749         (fchdir): Use it to simplify implementation.
41750         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41751         fchdir, when available, to avoid calling [f]chdir().
41752
41753         fdopendir: split into its own module
41754         * lib/openat.c (fdopendir): Move...
41755         * lib/fdopendir.c: ...into new file.
41756         * modules/fdopendir: New module.
41757         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41758         * modules/openat (Depends-on): Add fdopendir.
41759         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41760         fdopendir here.
41761         * modules/savedir (Depends-on): Only need fdopendir, not full
41762         openat.
41763         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41764         * lib/openat.h (fdopendir): Drop prototype.
41765         * lib/dirent.in.h (fdopendir): Provide prototype.
41766         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41767         * modules/dirent (Makefile.am): Substitute them.
41768         * MODULES.html.sh (File system functions): Mention it.
41769         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41770         * modules/fdopendir-tests: New file.
41771         * tests/test-fdopendir.c: Likewise.
41772
41773         fchdir: use more consistent macro convention
41774         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41775         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41776         REPLACE_FCHDIR, rather than relying on config.h macros.
41777         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41778         inside a single make-time REPLACE_FCHDIR block, rather than using
41779         the config.h FCHDIR_REPLACEMENT.
41780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41781         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41782         Manage fstat replacement.
41783         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41784         REPLACE_FCHDIR.
41785         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41786         (Makefile.am): Substitute REPLACE_FCHDIR.
41787         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41788         FCHDIR_REPLACEMENT.
41789         * lib/dup-safer.c (dup_safer): Likewise.
41790         * lib/dup2.c (rpl_dup2): Likewise.
41791         * lib/dup3.c (rpl_dup3): Likewise.
41792         * lib/open.c (rpl_open): Likewise.
41793
41794         fchdir: simplify error handling, and support dup3
41795         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41796         stdbool, malloc-posix, realloc-posix.
41797         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41798         (ensure_dirs_slot): Return false on allocation failure.
41799         (rpl_dup2): Delete.
41800         (_gl_register_dup): New function.
41801         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41802         (_gl_register_fd): Close fd on allocation failure.
41803         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41804         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41805         prototype.
41806         (rpl_dup2_fchdir): Delete prototype.
41807         * lib/open.c (open): Update caller.
41808         * lib/dup2.c (dup2): Track fchdir metadata.
41809         * lib/dup3.c (dup3): Likewise.
41810         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41811         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41812
41813 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41814
41815         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41816         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41817         don't pass arguments to AC_OUTPUT.
41818
41819 2009-09-02  Bruno Haible  <bruno@clisp.org>
41820
41821         * modules/mkdtemp (License): Relicense under LGPLv2+.
41822         Reported by Paolo Bonzini.
41823
41824 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41825
41826         Replace uses of obsolete autoconf macros in Jim's modules.
41827         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41828         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41829         can evoke a warning from autoconf when run with -Wobsolete
41830         enabled.  They were declared obsolete for good reasons (see
41831         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41832         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41833         should not continue using the deprecated macros.
41834         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41835         obsolete Autoconf macros with modern counterparts.
41836         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41837         * m4/dos.m4 (gl_AC_DOS): Likewise.
41838         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41839         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41840         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41841         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41842         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41843         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41844         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41845         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41846         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41847         Likewise.
41848         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41849         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41850         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41851         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41852         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41853         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41854
41855 2009-09-01  Eric Blake  <ebb9@byu.net>
41856
41857         fchdir: fix off-by-one bug in previous patch
41858         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41859         (_gl_unregister_fd): Delete useless if.
41860
41861 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41862
41863         maint.mk: sort the list of syntax-check rules
41864         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41865         easier to get a sense of progress when the rules are run sequentially
41866         and take a long time.
41867
41868 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41869
41870         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41871         * modules/netinet_in: Likewise.
41872         * modules/sys_file: Likewise.
41873         * modules/sys_ioctl: Likewise.
41874         * modules/sys_select: Likewise.
41875         * modules/sys_socket: Likewise.
41876         * modules/sys_stat: Likewise.
41877         * modules/sys_time: Likewise.
41878         * modules/sys_times: Likewise.
41879         * modules/sys_utsname: Likewise.
41880         * modules/sys_wait: Likewise.
41881
41882 2009-09-01  Jim Meyering  <meyering@redhat.com>
41883
41884         fts: help ensure that return values are not ignored
41885         * lib/fts_.h (__GNUC_PREREQ): Define.
41886         (__attribute_warn_unused_result__): Define.
41887         (fts_children, fts_close, fts_open, fts_read): Declare with
41888         __attribute_warn_unused_result__.
41889
41890         fts: fts_close now fails also when closing a dir file descriptor fails
41891         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41892         and propagate to caller, along with errno.
41893
41894         announce-gen: correct formatting in --help output
41895         * build-aux/announce-gen (usage): Move the one-line description in
41896         --help output "up", to where it belongs, just after Usage:.
41897
41898 2009-08-31  Eric Blake  <ebb9@byu.net>
41899
41900         fchdir: port to mingw
41901         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41902         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41903         opened, then use a substitute.
41904         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41905         replacement.
41906         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41907         (_gl_register_fd): No need to check stat if open already filters
41908         all directories.
41909         (fchdir): Fix error condition to match POSIX.
41910         * modules/fchdir (Depends-on): Add sys_stat.
41911         * doc/posix-functions/open.texi (open): Document the limitation.
41912         * modules/fchdir-tests: New file.
41913         * tests/test-fchdir.c: Likewise.
41914
41915         canonicalize: allow cross-testing from cygwin to mingw
41916         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41917         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41918         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41919         Likewise.
41920         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41921         target does not support symlinks.
41922         * tests/test-canonicalize-lgpl.sh: Likewise.
41923
41924         chown: avoid compilation warning on mingw
41925         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41926         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41927         mingw.
41928         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41929         * modules/chown (Depends-on): Add errno.
41930
41931 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41932
41933         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41934         command.
41935
41936 2009-08-31  Jim Meyering  <meyering@redhat.com>
41937
41938         canonicalize: remove useless initialization
41939         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41940         initialization of local, "end".
41941
41942 2009-08-30  Bruno Haible  <bruno@clisp.org>
41943
41944         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41945         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41946         ENOSYS.
41947
41948 2009-08-30  Bruno Haible  <bruno@clisp.org>
41949
41950         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41951         /usr/xpg4/bin/tr when it exists.
41952         * tests/test-pipe-filter-gi1.sh: Likewise.
41953
41954 2009-08-30  Bruno Haible  <bruno@clisp.org>
41955
41956         Work around deficient /usr/bin/id program on Solaris.
41957         * tests/test-file-has-acl.sh (ID): New variable.
41958         * tests/test-set-mode-acl.sh (ID): Likewise.
41959         * tests/test-copy-acl.sh (ID): Likewise.
41960         * tests/test-copy-file.sh (ID): Likewise.
41961
41962 2009-08-30  Bruno Haible  <bruno@clisp.org>
41963
41964         New module 'xstriconveh'.
41965         * lib/xstriconveh.h: New file.
41966         * lib/xstriconveh.c: New file.
41967         * modules/xstriconveh: New file.
41968
41969 2009-08-30  Bruno Haible  <bruno@clisp.org>
41970
41971         Make it easier to use mem_cd_iconveh.
41972         * lib/striconveh.h (iconveh_t): New type.
41973         (iconveh_open, iconveh_close): New declarations.
41974         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41975         with a single 'const iconveh_t *' argument.
41976         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41977         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41978         with a single 'const iconveh_t *' argument.
41979         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41980         * tests/test-striconveh.c (main): Update.
41981         * NEWS: Mention the change.
41982
41983 2009-08-30  Bruno Haible  <bruno@clisp.org>
41984
41985         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41986         problem.
41987
41988 2009-08-30  Bruno Haible  <bruno@clisp.org>
41989
41990         Work around iconv_open problem on Solaris.
41991         * lib/iconv_open-solaris.gperf: New file.
41992         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41993         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41994         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41995         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41996         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41997         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41998
41999 2009-08-29  Jim Meyering  <meyering@redhat.com>
42000
42001         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42002         * top/maint.mk (cvs-check): Remove target; it was just an alias
42003         to the better-named vc-diff-check.
42004         (maintainer-distcheck): Remove rule.  It was used only from
42005         the (alpha/beta/major) target, and all of its commands but one
42006         were coreutils-specific.
42007         (vc-dist): Remove rule.
42008         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42009         Run vc-diff-check, not vc-dist.
42010         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42011
42012 2009-08-27  Bruno Haible  <bruno@clisp.org>
42013
42014         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42015         of 0.
42016
42017 2009-08-27  Bruno Haible  <bruno@clisp.org>
42018
42019         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42020         compilers.
42021         * doc/func.texi: Document the SunPRO C bug.
42022
42023 2009-08-27  Bruno Haible  <bruno@clisp.org>
42024
42025         Fix link error on Solaris.
42026         * tests/test-parse-duration.c (xstrdup): Remove function.
42027
42028 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42029
42030         ignore-value: handle pointer types, too
42031         * lib/ignore-value.h (__attribute__): Remove definition.
42032         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42033         of a more concise and more-often effective "(void) i" statement.
42034         (ignore_ptr): New function to suppress warnings from functions that
42035         return pointers, and to make it explicit that one function doesn't
42036         handle all cases.
42037
42038 2009-08-25  Bruno Haible  <bruno@clisp.org>
42039
42040         dup2: work around a Linux bug.
42041         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42042         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42043         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42044         Reported by Simon Josefsson.
42045
42046 2009-08-25  Jim Meyering  <meyering@redhat.com>
42047
42048         libguestfs uses gnulib
42049         * users.txt: Add libguestfs.
42050
42051 2009-08-24  Eric Blake  <ebb9@byu.net>
42052
42053         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42054         * lib/pipe2.c (includes): Add binary-io.h.
42055         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42056
42057 2009-08-24  Bruno Haible  <bruno@clisp.org>
42058
42059         Tolerate declared but missing accept4 syscall.
42060         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42061         available.
42062         * lib/sys_socket.in.h (accept4): If the function is already present,
42063         override it.
42064         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42065         * modules/accept4 (Makefile.am): Compile accept4.c always.
42066         Reported by Paolo Bonzini and Eric Blake.
42067
42068 2009-08-23  Bruno Haible  <bruno@clisp.org>
42069
42070         New module 'accept4'.
42071         * lib/sys_socket.in.h (accept4): New declaration.
42072         * lib/accept4.c: New file.
42073         * m4/accept4.m4: New file.
42074         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42075         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42076         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42077         HAVE_ACCEPT4.
42078         * modules/accept4: New file.
42079         * doc/glibc-functions/accept4.texi: Mention the new module.
42080
42081 2009-08-24  Jim Meyering  <meyering@redhat.com>
42082
42083         progname: also set global program_invocation_name, when possible
42084         Before this change, a libtool-enabled program that calls glibc's
42085         error function would report the program name as
42086         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42087         * modules/progname (configure.ac): Check for a declaration of
42088         program_invocation_name.
42089         * lib/progname.c:  Include <errno.h>.
42090         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42091         Set program_invocation_name.
42092
42093 2009-08-23  Bruno Haible  <bruno@clisp.org>
42094
42095         * lib/dup3.c: Include <string.h>.
42096
42097 2009-08-23  Bruno Haible  <bruno@clisp.org>
42098
42099         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42100         * lib/pipe2.c (pipe2): Likewise.
42101         Suggested by Eric Blake.
42102
42103 2009-08-23  Bruno Haible  <bruno@clisp.org>
42104
42105         Tolerate declared but missing dup3 syscall.
42106         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42107         * lib/unistd.in.h (dup3): If the function is already present,
42108         override it.
42109         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42110         * modules/dup3 (Makefile.am): Compile dup3.c always.
42111         Reported by Paolo Bonzini.
42112
42113 2009-08-23  Bruno Haible  <bruno@clisp.org>
42114
42115         Tolerate declared but missing pipe2 syscall.
42116         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42117         available.
42118         * lib/unistd.in.h (pipe2): If the function is already present,
42119         override it.
42120         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42121         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42122         Reported by Paolo Bonzini.
42123
42124 2009-08-23  Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/pipe2.c (pipe2): Move #ifs inside function.
42127
42128 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42129
42130         quotearg: document limitations of quote_these_too
42131         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42132         those limitations are created.
42133         * lib/quotearg.h (set_char_quoting): Document that digits and
42134         letters that are special after backslash are not permitted.
42135         (quotearg_char): Cross-reference set_char_quoting documentation.
42136
42137 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42138
42139         quotearg: implement custom_quoting_style
42140         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42141         right_quote fields.
42142         (set_custom_quoting): New public function.
42143         (quotearg_buffer_restyled): Add left_quote and right_quote
42144         arguments, handle them very much like locale quoting, and update
42145         all uses.
42146         (quotearg_n_custom): New public function.
42147         (quotearg_n_custom_mem): New public function.
42148         (quotearg_custom): New public function.
42149         (quotearg_custom_mem): New public function.
42150         * lib/quotearg.h: Prototype and document new public functions.
42151         (enum quoting_style): For escape_quoting_style and
42152         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42153         ignored even though they're otherwise like c_quoting_style.
42154         Add custom_quoting_style member and document with comparison to
42155         clocale_quoting_style.
42156         * tests/test-quotearg.c (custom_quotes): New array.
42157         (custom_results): New array.
42158         (main): Extend to test custom quoting.
42159
42160 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42161
42162         quotearg: fix right quote escaping when it's in quote_these_too
42163         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42164         quote, be sure to prepend only one backslash.
42165         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42166         (main): Test it.
42167
42168 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42169
42170         quotearg-tests: test escaping of embedded locale quotes
42171         * tests/test-quotearg.c (struct result_strings): Add member for
42172         new input.
42173         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42174         (inputs): Add new input.
42175         (results_g): Add expected results.
42176         (flag_results): Likewise.
42177         (locale_results): Likewise.
42178         (compare_strings): Check those.
42179
42180 2009-08-23  Bruno Haible  <bruno@clisp.org>
42181
42182         Tests for module 'dup3'.
42183         * modules/dup3-tests: New file.
42184         * tests/test-dup3.c: New file.
42185
42186         New module 'dup3'.
42187         * lib/unistd.in.h (dup3): New declaration.
42188         * lib/dup3.c: New file.
42189         * m4/dup3.m4: New file.
42190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42191         HAVE_DUP3.
42192         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42193         * modules/dup3: New file.
42194         * doc/glibc-functions/dup3.texi: Mention the new module.
42195
42196 2009-08-23  Bruno Haible  <bruno@clisp.org>
42197
42198         Tweak the dup2 test.
42199         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42200         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42201         the test file is still empty. Fix argument order of lseek.
42202
42203 2009-08-23  Bruno Haible  <bruno@clisp.org>
42204
42205         Avoid test link errors when the modules getopt-gnu, gettext are used.
42206         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42208
42209 2009-08-23  Bruno Haible  <bruno@clisp.org>
42210
42211         Fix getdtablesize() on mingw.
42212         * lib/getdtablesize.c (getdtablesize): Implement differently.
42213         * lib/unistd.in.h (getdtablesize): Improve comment.
42214
42215 2009-08-23  Bruno Haible  <bruno@clisp.org>
42216
42217         New module 'mkostemp'.
42218         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42219         * lib/stdlib.in.h (mksotemp): New declaration.
42220         * lib/mkostemp.c: New file, from glibc with modifications.
42221         * lib/tempname.h (GT_FILE): Remove outdated comment.
42222         (gen_tempname): Add flags argument.
42223         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42224         (__GT_FILE): Map to 1.
42225         (small_open, large_open): Remove macros.
42226         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42227         * lib/mkstemp.c (mkstemp): Update.
42228         * lib/mkdtemp.c (mkdtemp): Likewise.
42229         * m4/mkostemp.m4: New file.
42230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42231         HAVE_MKOSTEMP.
42232         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42233         HAVE_MKOSTEMP.
42234         * modules/mkostemp: New file, based on modules/mkstemp.
42235         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42236         * NEWS: Mention the change.
42237
42238 2009-08-23  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42241         Reported by Eric Blake.
42242
42243 2009-08-23  Bruno Haible  <bruno@clisp.org>
42244
42245         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42246         Reported by Eric Blake.
42247
42248 2009-08-23  Bruno Haible  <bruno@clisp.org>
42249
42250         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42251         * modules/pipe2 (Depends-on): Likewise.
42252
42253 2009-08-23  Eric Blake  <ebb9@byu.net>
42254
42255         fcntl-h: add O_TTY_INIT support
42256         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42257         * tests/test-fcntl-h.c (o): Test it.
42258         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42259
42260         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42261         * modules/fcntl: Move <fcntl.h> header replacement...
42262         * modules/fcntl-h: ...to new name, so as not to collide with
42263         like-named function.
42264         * tests/test-fcntl.c: Rename...
42265         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42266         * modules/fcntl-tests: Rename...
42267         * modules/fcntl-h-tests: ...to this.  Update test file name.
42268         * modules/chdir-long (Depends-on): Update clients.
42269         * modules/chdir-safer (Depends-on): Likewise.
42270         * modules/fcntl-safer (Depends-on): Likewise.
42271         * modules/fts (Depends-on): Likewise.
42272         * modules/mkancesdirs (Depends-on): Likewise.
42273         * modules/mkdir-p (Depends-on): Likewise.
42274         * modules/open (Depends-on): Likewise.
42275         * modules/savewd (Depends-on): Likewise.
42276         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42277         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42278
42279 2009-08-22  Bruno Haible  <bruno@clisp.org>
42280
42281         * modules/binary-io (License): Relicense under LGPL.
42282         * modules/pipe2 (License): Likewise.
42283
42284 2009-08-22  Bruno Haible  <bruno@clisp.org>
42285
42286         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42287         return value.
42288         * lib/pipe-filter-gi.c (filter_init): Likewise.
42289         Reported by Eric Blake.
42290
42291 2009-08-22  Bruno Haible  <bruno@clisp.org>
42292
42293         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42294         * modules/pipe (Depends-on): Add pipe2.
42295
42296 2009-08-22  Bruno Haible  <bruno@clisp.org>
42297
42298         Tests for module 'pipe2'.
42299         * modules/pipe2-tests: New file.
42300         * tests/test-pipe2.c: New file.
42301
42302         New module 'pipe2'.
42303         * lib/unistd.in.h (pipe2): New declaration.
42304         * lib/pipe2.c: New file.
42305         * m4/pipe2.m4: New file.
42306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42307         HAVE_PIPE2.
42308         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42309         * modules/pipe2: New file.
42310         * doc/glibc-functions/pipe2.texi: Mention the new module.
42311
42312 2009-08-22  Bruno Haible  <bruno@clisp.org>
42313
42314         Reference some new glibc functions.
42315         * doc/glibc-functions/accept4.texi: New file.
42316         * doc/glibc-functions/dup3.texi: New file.
42317         * doc/glibc-functions/mkostemp.texi: New file.
42318         * doc/glibc-functions/pipe2.texi: New file.
42319         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42320         (Glibc sys/socket.h): Refer to accept4.
42321         (Glibc unistd.h): Refer to dup3, pipe2.
42322         Reported by Eric Blake.
42323
42324 2009-08-22  Jim Meyering  <meyering@redhat.com>
42325             Bruno Haible  <bruno@clisp.org>
42326
42327         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42328         This makes it so packages using automake-1.11's silent-rules option
42329         can print e.g., a single "GEN    configmake.h" line, rather than
42330         the 30+ statements that perform the job.  If you want to see the
42331         actual commands, you can still run "make V=1".
42332         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42333         so that make output is abbreviated when those variables are defined
42334         appropriately.
42335         * modules/argz: Likewise.
42336         * modules/arpa_inet: Likewise.
42337         * modules/byteswap: Likewise.
42338         * modules/configmake: Likewise.
42339         * modules/dirent: Likewise.
42340         * modules/errno: Likewise.
42341         * modules/fcntl: Likewise.
42342         * modules/float: Likewise.
42343         * modules/fnmatch: Likewise.
42344         * modules/getopt-posix: Likewise.
42345         * modules/glob: Likewise.
42346         * modules/iconv_open: Likewise.
42347         * modules/inttypes: Likewise.
42348         * modules/localcharset: Likewise.
42349         * modules/locale: Likewise.
42350         * modules/math: Likewise.
42351         * modules/netdb: Likewise.
42352         * modules/netinet_in: Likewise.
42353         * modules/poll: Likewise.
42354         * modules/posix_spawnp-tests: Likewise.
42355         * modules/sched: Likewise.
42356         * modules/search: Likewise.
42357         * modules/selinux-h: Likewise.
42358         * modules/signal: Likewise.
42359         * modules/spawn: Likewise.
42360         * modules/stdarg: Likewise.
42361         * modules/stdbool: Likewise.
42362         * modules/stddef: Likewise.
42363         * modules/stdint: Likewise.
42364         * modules/stdio: Likewise.
42365         * modules/stdlib: Likewise.
42366         * modules/string: Likewise.
42367         * modules/strings: Likewise.
42368         * modules/sys_file: Likewise.
42369         * modules/sys_ioctl: Likewise.
42370         * modules/sys_select: Likewise.
42371         * modules/sys_socket: Likewise.
42372         * modules/sys_stat: Likewise.
42373         * modules/sys_time: Likewise.
42374         * modules/sys_times: Likewise.
42375         * modules/sys_utsname: Likewise.
42376         * modules/sys_wait: Likewise.
42377         * modules/sysexits: Likewise.
42378         * modules/time: Likewise.
42379         * modules/unistd: Likewise.
42380         * modules/wchar: Likewise.
42381         * modules/wctype: Likewise.
42382
42383 2009-08-22  Jim Meyering  <meyering@redhat.com>
42384
42385         announce-gen: detect write failure
42386         * build-aux/announce-gen: Add Coda at end.
42387         Remove equivalent-but-more-verbose block at top.
42388
42389 2009-08-19  Akim Demaille  <demaille@gostai.com>
42390
42391         bootstrap: --help to stdout.
42392         * bootstrap (usage): Don't send --help to stderr.
42393         Use a here doc instead of a long string.
42394
42395 2009-08-21  Eric Blake  <ebb9@byu.net>
42396
42397         test-popen-safer: split from test-popen
42398         * tests/test-popen.c (main): Move...
42399         * tests/test-popen.h: ...into new file.
42400         * tests/test-popen-safer2.c: New file.
42401         * modules/popen-tests (Files): Add test-popen.h.
42402         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42403         Suggested by Bruno Haible.
42404
42405         test-fcntl-safer: split from test-open
42406         * tests/test-open.c (main): Move...
42407         * tests/test-open.h: ...into new file.
42408         * tests/test-fcntl-safer.c: New file.
42409         * modules/open-tests (Files): Add test-open.h.
42410         * modules/fcntl-safer-tests: New file.
42411         Suggested by Bruno Haible.
42412
42413         test-fopen-safer: split from test-fopen
42414         * tests/test-fopen.c (main): Move...
42415         * tests/test-fopen.h: ...into new file.
42416         * tests/test-fopen-safer.c: New file.
42417         * modules/fopen-tests (Files): Add test-fopen.h.
42418         * modules/fopen-safer-tests: New file.
42419         Suggested by Bruno Haible.
42420
42421 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42422
42423         popen-safer: test O_CLOEXEC at run-time.
42424         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42425
42426 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42427
42428         fcntl: move more flags to the header
42429         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42430         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42431         * lib/fcntl.in.h: Do both things here.
42432
42433 2009-08-21  Jim Meyering  <meyering@redhat.com>
42434
42435         consistently remove $@-t before redirecting to it
42436         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42437         * modules/alloca-opt: Likewise.
42438         * modules/byteswap: Likewise.
42439         * modules/fnmatch: Likewise.
42440         * modules/getopt-posix: Likewise.
42441         * modules/glob: Likewise.
42442         * modules/poll: Likewise.
42443         * modules/posix_spawnp-tests: Likewise.
42444         * modules/sys_socket: Likewise.
42445         * modules/sysexits: Likewise.
42446
42447 2009-08-21  Eric Blake  <ebb9@byu.net>
42448
42449         popen: simplify access to original popen
42450         * lib/popen.c (rpl_popen): No need to worry about popen being a
42451         macro.
42452         Reported by Bruno Haible.
42453
42454 2009-08-20  Eric Blake  <ebb9@byu.net>
42455
42456         build: avoid some compiler warnings
42457         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42458         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42459         type.
42460         (new_exclude_segment, excluded_file_pattern_p)
42461         (excluded_file_name_p): Reduce scope.
42462         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42463         old-style declaration.
42464
42465 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42466
42467         * tests/test-exclude1.sh: Handle Windows EOL.
42468         * tests/test-exclude2.sh: Likewise.
42469         * tests/test-exclude3.sh: Likewise.
42470         * tests/test-exclude4.sh: Likewise.
42471         * tests/test-exclude5.sh: Likewise.
42472         * tests/test-exclude6.sh: Likewise.
42473         * tests/test-exclude7.sh: Likewise.
42474
42475 2009-08-19  Akim Demaille  <demaille@gostai.com>
42476
42477         bootstrap: find sha1sum when named gsha1sum.
42478         * bootstrap (find_tool): New.
42479         ($SHA1SUM): New.
42480         Use it.
42481
42482 2009-08-20  Jim Meyering  <meyering@redhat.com>
42483
42484         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42485         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42486         expression that converts "." in a file name to "\." in the resulting
42487         regexp.  Start with a dummy statement, so that prior shell variable
42488         definitions are expanded portably.  Reported by Simon Josefsson.
42489
42490 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42491
42492         Fix polling for writeability of a screen buffer.
42493         * lib/poll.c: Distinguish input and screen buffers for the
42494         Win32 implementation.
42495         * lib/select.c: Likewise.
42496
42497 2009-08-19  Eric Blake  <ebb9@byu.net>
42498
42499         popen-safer: prevent popen from clobbering std descriptors
42500         * modules/popen-safer: New file.
42501         * lib/popen-safer.c: Likewise.
42502         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42503         * lib/stdio--.h (popen): Provide override.
42504         * lib/stdio-safer.h (popen_safer): Provide declaration.
42505         * tests/test-popen.c (includes): Partially test this.
42506         * modules/popen-safer-tests: New file, for more tests.
42507         * tests/test-popen-safer.c: Likewise.
42508         * MODULES.html.sh (file stream based Input/Output): Mention it.
42509
42510         tests: test some of the *-safer modules
42511         * modules/fopen-safer (Depends-on): Add fopen.
42512         * modules/fcntl-safer (Depends-on): Add fcntl.
42513         * modules/stdlib-safer (Depends-on): Add stdlib.
42514         (configure.ac): Set indicator.
42515         * modules/unistd-safer (configure.ac): Likewise.
42516         * modules/tmpfile-safer (configure.ac): Likewise.
42517         (Depends-on): Add tmpfile.
42518         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42519         active.
42520         * tests/test-fopen.c (includes): Test safer versions when they are
42521         in use.
42522         * tests/test-open.c (includes): Likewise.
42523
42524         popen: fix cygwin 1.5 bug when stdin closed
42525         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42526         * modules/popen: New file.
42527         * modules/popen-tests: Likewise.
42528         * tests/test-popen.c: Likewise.
42529         * m4/popen.m4: Likewise.
42530         * lib/popen.c: Likewise.
42531         * lib/stdio.in.h (popen): New declaration.
42532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42533         * modules/stdio (Makefile.am): Likewise.
42534         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42535
42536 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42537
42538         maint.mk: give full control over update-copyright exclusions
42539         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42540         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42541         (update-copyright): Don't force inclusion of top-level
42542         ChangeLog.  Don't force exclusion of all COPYING files, but make
42543         them the default exclusion instead.
42544
42545 2009-08-16  Bruno Haible  <bruno@clisp.org>
42546
42547         Fix test failures on Solaris 10.
42548         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42549         tests when Solaris iconv() is used.
42550         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42551         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42552         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42553         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42554         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42555
42556 2009-08-16  Bruno Haible  <bruno@clisp.org>
42557
42558         Fix test failures on Solaris 10.
42559         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42560         'tr' program and pass it as first argument.
42561         * tests/test-pipe-filter-gi1.sh: Likewise.
42562         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42563         program as first argument.
42564         * tests/test-pipe-filter-gi1.c (main): Likewise.
42565
42566 2009-08-16  Eric Blake  <ebb9@byu.net>
42567
42568         fpurge: fix previous commits
42569         * modules/fpurge (Makefile.am): Make replacement conditional,
42570         partially reverting 2007-04-29 change; missed in previous
42571         attempt.
42572         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42573         is missing.
42574
42575 2009-08-16  Bruno Haible  <bruno@clisp.org>
42576
42577         Clarify fpurge's effect on the file position.
42578         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42579         * tests/test-fpurge.c (main): Make a second pass for checking the file
42580         position.
42581
42582 2009-08-16  Bruno Haible  <bruno@clisp.org>
42583
42584         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42585         declaration of fpurge is missing.
42586         * tests/test-fpurge.c (main): Check that the file has not more contents
42587         than expected. Close the file before removing it.
42588
42589 2009-08-15  Eric Blake  <ebb9@byu.net>
42590
42591         fpurge: don't wrap working cygwin implementation
42592         * lib/fpurge.c (fpurge): Fix comment typo.
42593         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42594         1.7 to avoid replacement.
42595         * tests/test-fpurge.c (main): Enhance test.
42596
42597 2009-08-15  Eric Blake  <ebb9@byu.net>
42598         and Jim Meyering  <meyering@redhat.com>
42599
42600         test-update-copyright: skip if perl is insufficient
42601         * tests/test-update-copyright.sh: Failure to run maintainer tool
42602         should not cause testsuite failure on cygwin 1.5.
42603
42604 2009-08-14  Eric Blake  <ebb9@byu.net>
42605
42606         doc: mention more functions added in cygwin 1.7.0
42607         * doc/posix-headers/limits.texi (limits.h): Update for recent
42608         cygwin additions.
42609         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42610         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42611         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42612         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42613         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42614
42615 2009-08-14  Eric Blake  <ebb9@byu.net>
42616
42617         maint.mk: simplify update-copyright rule
42618         * top/maint.mk (update-copyright-local): Delete, and document how
42619         to do it in cfg.mk instead.
42620         (update-copyright-exclude-regexp): Delete, and document how to do
42621         it in .x-update-copyright instead.
42622         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42623         exclude ChangeLog.
42624
42625 2009-08-14  Bruno Haible  <bruno@clisp.org>
42626
42627         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42628
42629 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42630
42631         maint.mk: support update-copyright-env
42632         * top/maint.mk (update-copyright-env): Define place-holder.
42633         (update-copyright): Expand $(update-copyright-env) before
42634         invoking update-copyright.
42635
42636 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42637
42638         update-copyright: implement forced reformatting
42639         * build-aux/update-copyright: Implement and document
42640         UPDATE_COPYRIGHT_FORCE.
42641         * tests/test-update-copyright.sh: Test it.
42642
42643 2009-08-14  Eric Blake  <ebb9@byu.net>
42644         and Bruno Haible  <bruno@clisp.org>
42645
42646         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42647         * tests/test-locale.c: Revert previous patch related to NULL.
42648         * tests/test-stdio.c: Likewise.
42649         * tests/test-stdlib.c: Likewise.
42650         * tests/test-string.c: Likewise.
42651         * tests/test-unistd.c: Likewise.
42652         * modules/time-tests (Depends-on): Add verify.
42653         * modules/wchar-tests (Depends-on): Likewise.
42654         * tests/test-time.c: Test for NULL compliance.
42655         * tests/test-wchar.c: Likewise.
42656         * modules/locale (Depends-on): Add stddef.
42657         * modules/stdio (Depends-on): Likewise.
42658         * modules/stdlib (Depends-on): Likewise.
42659         * modules/string (Depends-on): Likewise.
42660         * modules/time (Depends-on): Likewise.
42661         * modules/unistd (Depends-on): Likewise.
42662         * modules/wchar (Depends-on): Likewise.
42663         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42664         * lib/stdlib.in.h (includes): Likewise.
42665         * lib/string.in.h (includes): Likewise.
42666         * lib/time.in.h (includes): Likewise.
42667         * lib/unistd.in.h (includes): Likewise.
42668         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42669         replaced.
42670         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42671         * m4/stddef_h.m4: New file.
42672         * modules/stddef: Likewise.
42673         * lib/stddef.in.h: Likewise.
42674         * modules/stddef-tests: Likewise.
42675         * tests/test-stddef.c: Likewise.
42676         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42677         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42678         * doc/posix-headers/locale.texi (locale.h): Likewise.
42679         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42680         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42681         * doc/posix-headers/string.texi (string.h): Likewise.
42682         * doc/posix-headers/time.texi (time.h): Likewise.
42683         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42684         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42685
42686 2009-08-14  Eric Blake  <ebb9@byu.net>
42687
42688         doc: improve git diff of texinfo files
42689         * .gitattributes: Add rule for *.texi files, with hint on how to
42690         use it.
42691         Copied from m4, and based on a report by Bruno Haible.
42692
42693 2009-08-14  Bruno Haible  <bruno@clisp.org>
42694
42695         Disable multithread support by default on Cygwin 1.5.x for real.
42696         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42697
42698 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42699
42700         update-copyright: much ado about intervals
42701         * build-aux/update-copyright: Implement and document
42702         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42703         of copyright year intervals.
42704         Also, document UPDATE_COPYRIGHT_YEAR.
42705         * tests/test-update-copyright.sh: Test it.
42706
42707         update-copyright: convert 2-digit to 4-digit years
42708         * build-aux/update-copyright: Implement and document.
42709         * tests/test-update-copyright.sh: Update.
42710
42711 2009-08-14  Jim Meyering  <meyering@redhat.com>
42712
42713         test-exclude: avoid coreutils "make check" failure
42714         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42715         just as in test-argmatch.c.
42716
42717 2009-08-13  Eric Blake  <ebb9@byu.net>
42718
42719         test-dup2: fix bad assumption
42720         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42721         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42722
42723         test-version-etc: fix CRLF portability issue
42724         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42725         recognize \r.
42726         * tests/test-argp-version-etc-1.sh: Likewise.
42727
42728         getopt: update client modules
42729         * modules/argp (Depends-on): Use getopt-gnu.
42730         * modules/git-merge-changelog (Depends-on): Likewise.
42731         * modules/long-options (Depends-on): Likewise.
42732         * modules/xstrtol (Depends-on): Likewise.
42733
42734 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42735
42736         * tests/test-version-etc.sh: Don't fail on different
42737         project/version.  Don't fail on CRLF differences.  Rewrite to use
42738         multiple -e instead of multiple sed forks, suggested by Eric Blake
42739         <ebb9@byu.net>.
42740         * tests/test-argp-version-etc-1.sh: Likewise.
42741
42742 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42743
42744         * tests/test-version-etc.sh: Don't fail on different
42745         project/version.
42746
42747 2009-08-12  Bruno Haible  <bruno@clisp.org>
42748
42749         Tests for modules 'getopt-posix', 'getopt-gnu'.
42750         * modules/getopt-posix-tests: New file.
42751         * tests/test-getopt.c: New file.
42752         * tests/test-getopt.h: New file.
42753         * tests/test-getopt_long.h: New file.
42754
42755         New modules 'getopt-posix', 'getopt-gnu'.
42756         * modules/getopt-gnu: New file, renamed from modules/getopt.
42757         * modules/getopt-posix: New file.
42758         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42759         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42760         (gl_GETOPT): Remove macro.
42761         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42762         Disable the test against BSD systems that declare optreset. Test
42763         against mingw bug. Test against lack of support of optional arguments
42764         on many platforms.
42765         * doc/glibc-headers/getopt.texi: Update module name and list of
42766         relevant platforms.
42767         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42768         'getopt-gnu' and more portability problems.
42769         * NEWS: Mention the changes.
42770
42771 2009-08-12  Bruno Haible  <bruno@clisp.org>
42772
42773         Ensure that optarg etc. get declared by <unistd.h>.
42774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42775         AC_USE_SYSTEM_EXTENSIONS.
42776         * modules/getopt (Depends-on): Add 'extensions'.
42777
42778 2009-08-12  Bruno Haible  <bruno@clisp.org>
42779
42780         Avoid test link errors.
42781         * modules/pipe-filter-ii-tests (Makefile.am): Define
42782         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42783         * modules/pipe-filter-gi-tests (Makefile.am): Define
42784         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42786
42787 2009-08-12  Bruno Haible  <bruno@clisp.org>
42788
42789         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42790         gl_GETOPT_SUBSTITUTE before.
42791         (gl_GETOPT): Use it.
42792         * m4/argp.m4 (gl_ARGP): Update.
42793         Reported by Sergey Poznyakoff.
42794
42795         * m4/getopt.m4: Reorder macros.
42796         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42797         (gl_GETOPT_SUBSTITUTE): Remove macro.
42798
42799 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42800
42801         Minor improvement in gitlog-to-changelog
42802
42803         * build-aux/gitlog-to-changelog: New option `--format' makes
42804         output format string configurable.
42805
42806 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42807
42808         Optimize exclude: use hash tables for non-wildcard patterns.
42809
42810         * lib/exclude.c: Include hash.h and mbuiter.h
42811         (struct exclude_pattern, exclude_segment): New data types.
42812         (struct exclude): Rewrite.
42813         (fnmatch_pattern_has_wildcards): New function.
42814         (new_exclude_segment, free_exclude_segment): New functions.
42815         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42816         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42817         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42818         * modules/exclude: Depend on hash and mbuiter.
42819
42820         * modules/exclude-tests: New file.
42821         * tests/test-exclude.c: New file.
42822         * tests/test-exclude1.sh: New file.
42823         * tests/test-exclude2.sh: New file.
42824         * tests/test-exclude3.sh: New file.
42825         * tests/test-exclude4.sh: New file.
42826         * tests/test-exclude5.sh: New file.
42827         * tests/test-exclude6.sh: New file.
42828         * tests/test-exclude7.sh: New file.
42829
42830 2009-08-12  Bruno Haible  <bruno@clisp.org>
42831
42832         Ensure that getopt() gets declared by <unistd.h>.
42833         * lib/unistd.in.h: Conditionally include getopt.h.
42834         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42835         Set GNULIB_UNISTD_H_GETOPT.
42836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42837         GNULIB_UNISTD_H_GETOPT.
42838         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42839
42840 2009-08-12  Bruno Haible  <bruno@clisp.org>
42841
42842         Clarify logic.
42843         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42844         gl_replace_getopt instead of GETOPT_H.
42845
42846 2009-08-12  Bruno Haible  <bruno@clisp.org>
42847
42848         * m4/getopt.m4: Add comments.
42849
42850 2009-08-12  Bruno Haible  <bruno@clisp.org>
42851
42852         Disable multithread support by default on Cygwin 1.5.x.
42853         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42854         set gl_use_threads=no if not specified otherwise.
42855
42856 2009-08-11  Bruno Haible  <bruno@clisp.org>
42857
42858         Avoid compilation error on NetBSD 5.0.
42859         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42860         * tests/test-stdio.c: Likewise.
42861         * tests/test-stdlib.c: Likewise.
42862         * tests/test-string.c: Likewise.
42863         * tests/test-unistd.c: Likewise.
42864         Reported by Greg Troxel <gdt@ir.bbn.com>
42865         at <https://savannah.gnu.org/support/?106973>.
42866
42867 2009-08-11  Bruno Haible  <bruno@clisp.org>
42868
42869         * modules/dup2-tests (Depends-on): Remove close.
42870
42871         Undo 2009-07-19 commit.
42872         * modules/acl-tests (Depends-on): Remove close.
42873         * modules/binary-io-tests (Depends-on): Likewise.
42874         * modules/closein-tests (Depends-on): Likewise.
42875         * modules/flock-tests (Depends-on): Likewise.
42876         * modules/fsync-tests (Depends-on): Likewise.
42877         * modules/lseek-tests (Depends-on): Likewise.
42878         * modules/pipe-tests (Depends-on): Likewise.
42879         * modules/posix_spawn-tests (Depends-on): Likewise.
42880         * modules/posix_spawnp-tests (Depends-on): Likewise.
42881         * modules/stat-time-tests (Depends-on): Likewise.
42882         * modules/yesno-tests (Depends-on): Likewise.
42883
42884 2009-08-10  Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42887
42888 2009-08-10  Bruno Haible  <bruno@clisp.org>
42889
42890         Fix a gcc warning.
42891         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42892
42893 2009-08-10  Bruno Haible  <bruno@clisp.org>
42894
42895         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42896         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42897         not only the first time.
42898         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42899         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42900         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42901         is 1, not only the the first time.
42902
42903 2009-08-10  Bruno Haible  <bruno@clisp.org>
42904
42905         Make it possible to use module 'gethostname' without module 'close'.
42906         * lib/unistd.in.h (close): Evoke a link error only if
42907         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42909         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42910         * modules/unistd (Makefile.am): Substitute
42911         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42912         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42913         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42914         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42915         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42916         * modules/sys_ioctl (Makefile.am): Substitute
42917         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42918         * modules/socket (configure.ac): On native Windows, set
42919         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42920         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42921         Reported by Sam Steingold <sds@gnu.org>.
42922
42923 2009-08-10  Bruno Haible  <bruno@clisp.org>
42924
42925         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42926         * modules/ioctl (configure.ac): Likewise.
42927
42928 2009-08-10  Bruno Haible  <bruno@clisp.org>
42929
42930         Avoid collision between gnulib wrapper and libintl wrapper.
42931         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42932         already defined in intl/printf.c.
42933         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42934         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42935
42936 2009-08-09  Bruno Haible  <bruno@clisp.org>
42937
42938         Make <sys/select.h> really self-contained, also on Solaris 10.
42939         * lib/sys_select.in.h: Include <string.h>.
42940         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42941         Solaris 10 problem.
42942         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42943         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42944         Reported by Jim Meyering.
42945
42946 2009-08-09  Bruno Haible  <bruno@clisp.org>
42947
42948         Avoid warnings from 'aclocal' that are due to a use of macro name
42949         AM_XGETTEXT_OPTION that is not defined in automake.
42950         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42951         automake.
42952         * modules/error (configure.ac): Likewise.
42953         * modules/propername (configure.ac): Likewise.
42954         * modules/vasprintf (configure.ac): Likewise.
42955         * modules/verror (configure.ac): Likewise.
42956         * modules/xprintf (configure.ac): Likewise.
42957         * modules/xvasprintf (configure.ac): Likewise.
42958
42959 2009-08-08  Bruno Haible  <bruno@clisp.org>
42960
42961         Avoid compilation error in C++ mode.
42962         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42963         Reported by Sam Steingold <sds@gnu.org>.
42964
42965 2009-08-08  Bruno Haible  <bruno@clisp.org>
42966
42967         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42968         for the various Unix platforms.
42969         * doc/posix-headers/limits.texi: Update platforms list regarding
42970         HOST_NAME_MAX.
42971         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42972
42973 2009-08-07  Jim Meyering  <meyering@redhat.com>
42974
42975         selinux-at: fix typo in a comment
42976         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42977         Spotted by Paolo Bonzini.
42978
42979         selinux-at: remove redundant m4 code, add documentation
42980         * modules/selinux-at (configure.ac): Remove redundant code.
42981         LIB_SELINUX is already set via the dependent module, selinux-h.
42982         (Include): Add quotes around selinux-at.h.
42983         * lib/selinux-at.h: Add documentation.
42984         Reported by Bruno Haible in
42985         http://marc.info/?l=gnulib-bug&m=124958988300749
42986
42987 2009-08-07  Bruno Haible  <bruno@clisp.org>
42988
42989         Avoid link error on MacOS X 10.3 and 10.4.
42990         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42991         on non-ELF systems.
42992         * lib/argp-pv.c (argp_program_version): Likewise.
42993         Reported by Simon Josefsson.
42994
42995 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42996
42997         * tests/test-version-etc.sh: Use $EXEEXT.
42998
42999 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43000
43001         update-copyright: update documentation to point to maint.mk
43002         * build-aux/update-copyright: Here.
43003
43004 2009-08-06  Jim Meyering  <meyering@redhat.com>
43005
43006         maint.mk: support update-copyright-local
43007         * top/maint.mk (update-copyright-local): Define place-holder.
43008         (update-copyright): Depend on $(update-copyright-local).
43009
43010 2009-08-06  Jim Meyering  <meyering@redhat.com>
43011
43012         selinux-at: new module
43013         Initially written for coreutils, this module will soon be
43014         used by findutils, too.
43015         * MODULES.html.sh [Misc]: Add selinux-at.
43016         * lib/selinux-at.h: New file, from coreutils.
43017         * lib/selinux-at.c: Likewise.
43018         * modules/selinux-at: Likewise.
43019         (License): Change from LGPL to GPL, since it depends
43020         on the GPL'd openat module.
43021
43022         doc: update README
43023         * README: Remove references to cogito.
43024         Remove cvs-repo-updating instructions from 2007.
43025         Don't imply that CVS is better if you have limited disk space.
43026
43027 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43028
43029         update-copyright: support C-style comments
43030         * build-aux/update-copyright: Implement and document.
43031         * tests/test-update-copyright.sh: Test.
43032
43033 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43034
43035         update-copyright: support omitted "(C)"
43036         * build-aux/update-copyright: Implement and document.  Also,
43037         allow variable whitespace before "(C)".
43038         * tests/test-update-copyright.sh: Test.
43039
43040 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43041
43042         update-copyright: don't trip on non-FSF copyright statements
43043         * build-aux/update-copyright: Fix so that the first correctly
43044         formatted FSF copyright statement is recognized no matter what
43045         appears before it.  Update documentation.
43046         * tests/test-update-copyright.sh: Test that.
43047
43048 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43049
43050         update-copyright: clean up code a little
43051         * build-aux/update-copyright: Append "_re" to the name of any
43052         variable holding a regular expression.
43053         Replace "old" and "new" with "stmt" in variable names.
43054         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43055         handled correctly.
43056         Format code more consistently.
43057
43058 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43059
43060         update-copyright-tests: improve portability
43061         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43062         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43063
43064 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43065
43066         update-copyright: support @copyright{} and &copy;
43067         * build-aux/update-copyright: Implement and document.
43068         * tests/test-update-copyright.sh: Test.
43069
43070 2009-08-04  Jim Meyering  <meyering@redhat.com>
43071
43072         update-copyright-tests: correctly test EOL=\r\n handling
43073         * tests/test-update-copyright.sh: Put \r at the end of some lines
43074         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43075
43076         maint.mk: make update-copyright exclusion list more configurable
43077         * top/maint.mk (update-copyright): Default to excluding COPYING,
43078         but allow an override, in case someone does want to update that file.
43079
43080         maint.mk: don't update copyright date in COPYING
43081         * top/maint.mk (update-copyright): Exclude COPYING.
43082
43083         maint.mk: add a copyright-updating rule
43084         * top/maint.mk (update-copyright): New rule.
43085         Derived from coreutils/Makefile.am.
43086
43087         update-copyright: rename some variables
43088         * build-aux/update-copyright: Rename a few variables for clarity.
43089         Tweak syntax.  List Joel E. Denny as coauthor.
43090
43091 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43092
43093         update-copyright: fix bug for 2-digit last year and add tests
43094         * build-aux/update-copyright: Fix bug.
43095         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43096         specified.
43097         * modules/update-copyright-tests: New
43098         * tests/test-update-copyright.sh: New.
43099
43100 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43101
43102         update-copyright: handle leading tabs in line prefix
43103         * build-aux/update-copyright: Count leading tabs as 8 spaces
43104         when computing margin.  This helps with the formatting of
43105         ChangeLogs, for example.
43106         Fix documentation a little.
43107
43108 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43109
43110         update-copyright: support EOL=\r\n
43111         * build-aux/update-copyright: Implement that.
43112
43113 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43114
43115         update-copyright: automatically format copyright statements
43116         * build-aux/update-copyright: Implement that.
43117         Also, be a little more predictable and safer by always failing
43118         when the full copyright format is not perfectly recognized as an
43119         unbroken whole.  Discussed at
43120         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43121         Rewrite documentation.
43122
43123 2009-08-03  Bruno Haible  <bruno@clisp.org>
43124
43125         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43126
43127 2009-08-02  Bruno Haible  <bruno@clisp.org>
43128
43129         Tests for module 'uname'.
43130         * modules/uname-tests: New file.
43131         * tests/test-uname.c: New file.
43132
43133         New module 'uname'.
43134         * lib/uname.c: New file.
43135         * m4/uname.m4: New file.
43136         * modules/uname: New file.
43137         * doc/posix-functions/uname.texi: Mention the new module.
43138
43139 2009-08-02  Bruno Haible  <bruno@clisp.org>
43140
43141         Tests for module 'sys_utsname'.
43142         * modules/sys_utsname-tests: New file.
43143         * tests/test-sys_utsname.c: New file.
43144
43145         New module 'sys_utsname'.
43146         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43147         * m4/sys_utsname_h.m4: New file.
43148         * modules/sys_utsname: New file.
43149         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43150
43151 2009-08-02  Bruno Haible  <bruno@clisp.org>
43152
43153         Implicitly initialize the sockets library.
43154         * lib/gethostname.c: Include sockets.h.
43155         (rpl_gethostname): Invoke gl_sockets_startup.
43156         * lib/socket.c: Include sockets.h.
43157         (rpl_socket): Invoke gl_sockets_startup.
43158         * modules/gethostname (Depends-on): Add sockets.
43159         * modules/socket (Depends-on): Likewise.
43160         * tests/test-poll.c: Don't include sockets.h.
43161         (main): Don't invoke gl_sockets_startup.
43162         * tests/test-select.c: Don't include sockets.h.
43163         (main): Don't invoke gl_sockets_startup.
43164
43165 2009-08-02  Bruno Haible  <bruno@clisp.org>
43166
43167         Allow multiple calls to gl_sockets_startup.
43168         * lib/sockets.c (initialized_sockets_version): New variable.
43169         (gl_sockets_startup): Do nothing if already called for this or a higher
43170         version.
43171         (gl_sockets_cleanup): Reset initialized_sockets_version.
43172
43173 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43174
43175         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43176         different project/version.
43177
43178 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43179             Bruno Haible  <bruno@clisp.org>
43180
43181         Tests for module 'pipe-filter-gi'.
43182         * modules/pipe-filter-gi-tests: New file.
43183         * tests/test-pipe-filter-gi1.sh: New file.
43184         * tests/test-pipe-filter-gi1.c: New file.
43185         * tests/test-pipe-filter-gi2.sh: New file.
43186         * tests/test-pipe-filter-gi2-main.c: New file.
43187         * tests/test-pipe-filter-gi2-child.c: New file.
43188
43189         New module 'pipe-filter-gi'.
43190         * lib/pipe-filter-gi.c: New file.
43191         * modules/pipe-filter-gi: New file.
43192
43193 2009-08-02  Bruno Haible  <bruno@clisp.org>
43194             Paolo Bonzini  <bonzini@gnu.org>
43195
43196         Tests for module 'pipe-filter-ii'.
43197         * modules/pipe-filter-ii-tests: New file.
43198         * tests/test-pipe-filter-ii1.sh: New file.
43199         * tests/test-pipe-filter-ii1.c: New file.
43200         * tests/test-pipe-filter-ii2.sh: New file.
43201         * tests/test-pipe-filter-ii2-main.c: New file.
43202         * tests/test-pipe-filter-ii2-child.c: New file.
43203
43204         New module 'pipe-filter-ii'.
43205         * lib/pipe-filter.h: New file.
43206         * lib/pipe-filter-ii.c: New file.
43207         * lib/pipe-filter-aux.h: New file.
43208         * modules/pipe-filter-ii: New file.
43209
43210 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43211
43212         * lib/gc-libgcrypt.c: Change copyright to FSF.
43213         * lib/gc-gnulib.c: Likewise.
43214
43215 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43216
43217         * lib/gethostname.c: Include limits.h.
43218
43219 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43220             Bruno Haible  <bruno@clisp.org>
43221
43222         Ensure HOST_NAME_MAX as part of the gethostname module.
43223         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43224         define also HOST_NAME_MAX.
43225         * tests/test-gethostname.c: Include <limits.h>.
43226         (main): Check also HOST_NAME_MAX.
43227         * doc/posix-headers/limits.texi: Document the mingw problem.
43228
43229 2009-08-02  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43232         Add comments.
43233
43234 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43235
43236         * lib/gethostname.c: Add Windows wrapper.
43237         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43238         * modules/gethostname: Depend on sys_socket & errno, for also
43239         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43240         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43241
43242 2009-07-31  Jim Meyering  <meyering@redhat.com>
43243
43244         getloadavg: fix symbol name in comment
43245         * lib/getloadavg.c: Correct a typo I introduced when adding
43246         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43247         Matt Kraai spotted the problem.
43248
43249 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43250
43251         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43252         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43253         code also if ! defined N_NAME_POINTER.
43254         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43255         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43256         but the n_name member is a 12-byte array.
43257
43258 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43259
43260         update-copyright: generalize comment handling
43261         * build-aux/update-copyright: Handle copyright statements
43262         within more comment styles.
43263         Document usage.
43264         Report any file with an external copyright holder or parse failure.
43265
43266 2009-07-29  Jim Meyering  <meyering@redhat.com>
43267
43268         mktime: correct setting of REPLACE_MKTIME
43269         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43270
43271         update-copyright: new module
43272         * modules/update-copyright: New file.
43273         * build-aux/update-copyright: New file.
43274         * MODULES.html.sh (maint+release support): Add update-copyright.
43275
43276 2009-07-27  Bruno Haible  <bruno@clisp.org>
43277
43278         Fix compilation error when <ctime> is used and mktime is replaced.
43279         * lib/time.in.h (mktime): New declaration.
43280         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43281         REPLACE_MKTIME instead of defining mktime in config.h.
43282         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43283         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43284         Reported by Ross McFarland <rwmcfa1@neces.com>.
43285
43286 2009-07-27  Bruno Haible  <bruno@clisp.org>
43287
43288         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43289         Reported by Matt Kraai <mkraai@beckman.com>.
43290
43291 2009-07-25  Jim Meyering  <meyering@redhat.com>
43292
43293         maint.mk: avoid warnings about missing files
43294         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43295         diagnostic when .prev-version does not exist.
43296         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43297         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43298         nonexistent cfg.mk.
43299         Suggestions from Simon Josefsson.
43300
43301 2009-07-25  Bruno Haible  <bruno@clisp.org>
43302
43303         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43304         defined as macros. Needed on QNX 6.4.1.
43305         Reported by Matt Kraai <mkraai@beckman.com>.
43306
43307 2009-07-23  Jim Meyering  <meyering@redhat.com>
43308
43309         maint.mk: invoke "make dist" with a working value of XZ_OPT
43310         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43311
43312 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43313
43314         Make fseeko.c compile on QNX.
43315         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43316
43317 2009-07-22  Peter Simons  <simons@cryp.to>
43318
43319         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43320         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43321         * lib/md4.h: Likewise.
43322         * lib/md5.h: Likewise.
43323         * lib/sha1.h: Likewise.
43324         * lib/sha256.h: Likewise.
43325         * lib/sha512.h: Likewise.
43326
43327         tests-sha1: don't assign literal string to 'char *' variable
43328         * tests/test-sha1.c (main): Declare locals with "const" to match
43329         attributes of the right hand side.
43330
43331 2009-07-21  Eric Blake  <ebb9@byu.net>
43332
43333         dup2: fix more mingw problems
43334         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43335         fd to itself.
43336         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43337         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43338         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43339         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43340         care of mingw bugs.
43341
43342 2009-07-21  Jim Meyering  <meyering@redhat.com>
43343
43344         vc-list-files: avoid failure when /bin/sh is dash
43345         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43346         On some Debian based systems, /bin/sh is a symlink to dash, and running
43347         this command would omit the "/" following each 'tests' prefix:
43348           dash -x build-aux/vc-list-files -C . tests
43349         That is because bash and dash work differently:
43350           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43351           bash ok
43352           dash odd
43353
43354 2009-07-21  Eric Blake  <ebb9@byu.net>
43355
43356         dup2-tests: test previous patch
43357         * modules/dup2-tests: New file.
43358         * tests/test-dup2.c: Likewise.
43359         * tests/test-open.c (main): Avoid unspecified behavior.
43360         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43361         test.
43362
43363         dup2: work around mingw and cygwin 1.5 bug
43364         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43366         * modules/unistd (Makefile.am): Substitute it.
43367         * lib/unistd.in.h (dup2): Declare the replacement.
43368         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43369         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43370         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43371         * modules/execute (Depends-on): Add dup2.
43372         * modules/fseterr (Depends-on): Likewise.
43373         * modules/pipe (Depends-on): Likewise.
43374         * modules/posix_spawn-internal (Depends-on): Likewise.
43375
43376 2009-07-21  Bruno Haible  <bruno@clisp.org>
43377
43378         * modules/.gitattributes: New file.
43379
43380 2009-07-20  Bruno Haible  <bruno@clisp.org>
43381
43382         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43383         (main): Use it.
43384
43385 2009-07-20  Eric Blake  <ebb9@byu.net>
43386
43387         test-pipe: make a bit more robust.
43388         * tests/test-pipe.c (myerr): Allow error messages regardless of
43389         what we do to stderr.
43390         (test_pipe): Rearrange to avoid deadlock.
43391         (child_main): Try a larger read, to ensure we avoided deadlock.
43392         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43393         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43394         if misused.
43395
43396 2009-07-19  Jim Meyering  <meyering@redhat.com>
43397
43398         fts: avoid false-positive cycle-detection
43399         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43400         for each new command line argument.
43401
43402 2009-07-19  Bruno Haible  <bruno@clisp.org>
43403
43404         Fix build error on mingw with the modules sys_select and unistd.
43405         * modules/acl-tests (Depends-on): Add close.
43406         * modules/binary-io-tests (Depends-on): Likewise.
43407         * modules/closein-tests (Depends-on): Likewise.
43408         * modules/flock-tests (Depends-on): Likewise.
43409         * modules/fsync-tests (Depends-on): Likewise.
43410         * modules/lseek-tests (Depends-on): Likewise.
43411         * modules/pipe-tests (Depends-on): Likewise.
43412         * modules/posix_spawn-tests (Depends-on): Likewise.
43413         * modules/posix_spawnp-tests (Depends-on): Likewise.
43414         * modules/stat-time-tests (Depends-on): Likewise.
43415         * modules/yesno-tests (Depends-on): Likewise.
43416
43417 2009-07-19  Bruno Haible  <bruno@clisp.org>
43418
43419         Unify conditionals.
43420         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43421         macros, not at the compiler macros.
43422         * lib/pipe.c: Likewise.
43423         * lib/execute.c: Likewise.
43424         * lib/spawni.c: Likewise.
43425
43426 2009-07-19  Bruno Haible  <bruno@clisp.org>
43427
43428         Fix handling of closed stdin/stdout/stderr on mingw.
43429         * lib/w32spawn.h: Include unistd.h.
43430         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43431         file descriptor with O_NOINHERIT flag.
43432         (fd_safer_noinherit): New function, based on fd-safer.c.
43433         (dup_safer_noinherit): New function, based on dup-safer.c.
43434         (undup_safer_noinherit): New function.
43435         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43436         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43437         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43438         instead of fd_safer.
43439         * tests/test-pipe.c: Include <windows.h>.
43440         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43441         result.
43442
43443         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43444         from main.
43445         (test_pipe): Pass an extra argument for disambiguation.
43446         (main): Invoke parent_main or child_main.
43447
43448         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43449         consistently.
43450
43451 2009-07-18  Eric Blake  <ebb9@byu.net>
43452
43453         test-pipe: fix mingw build
43454         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43455
43456 2009-07-18  Bruno Haible  <bruno@clisp.org>
43457
43458         * modules/pipe-tests (Makefile.am): Fix typo.
43459
43460 2009-07-18  Eric Blake  <ebb9@byu.net>
43461
43462         error: fix mingw build
43463         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43464         Reported by Bruno Haible.
43465
43466         error: avoid undefined use of stdout
43467         * lib/error.c (error, error_at_line): Check that fd 1 is open
43468         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43469         is handling faults and the close_stdout module wants to report the
43470         detection of closed stdout as an error.
43471
43472 2009-07-17  Eric Blake  <ebb9@byu.net>
43473
43474         pipe: be robust in face of closed fds
43475         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43476         should cause child to misbehave.
43477         * modules/pipe-tests: New module.
43478         * tests/test-pipe.c: New file.
43479         * tests/test-pipe.sh: New file.
43480         Reported by Akim Demaille.
43481
43482 2009-07-14  Bruno Haible  <bruno@clisp.org>
43483
43484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43485         Reported by anonymous kc.
43486
43487 2009-07-07  Jim Meyering  <meyering@redhat.com>
43488
43489         maint.mk: don't look for translatable strings in *.m4 or *.mk
43490         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43491         when searching for translatable strings.
43492
43493 2009-07-05  Jim Meyering  <meyering@redhat.com>
43494
43495         remove superfluous parentheses in STREQ definition
43496         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43497         * lib/getugroups.c (STREQ): Likewise.
43498         * lib/fnmatch.c (STREQ): Likewise.
43499         Spotted by Bruno Haible.
43500
43501 2009-07-04  Jim Meyering  <meyering@redhat.com>
43502
43503         argv-iter: new module
43504         * MODULES.html.sh: Add argv-iter.
43505         * lib/argv-iter.c, lib/argv-iter.h: New files.
43506         * modules/argv-iter: New file.
43507         * modules/argv-iter-tests: New file.
43508         * tests/test-argv-iter.c: Test it.
43509
43510 2009-07-04  Bruno Haible  <bruno@clisp.org>
43511
43512         Fix assertion.
43513         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43514         contains more exact copies of a given entry than file2, leave the extra
43515         copies unpaired rather than aborting.
43516         Reported by Eric Blake.
43517
43518 2009-07-02  Bruno Haible  <bruno@clisp.org>
43519
43520         Speedup git-merge-changelog for git cherry-pick.
43521         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43522         (entries_mapping_get): New function, extracted from compute_mapping.
43523         (entries_mapping_reverse_get): New function.
43524         (compute_mapping): Add a 'full' argument. Return the result in a
43525         'struct entries_mapping'.
43526         (main): Update. Access the mappings through entries_mapping_get.
43527         Reported by Eric Blake.
43528
43529 2009-07-02  Bruno Haible  <bruno@clisp.org>
43530
43531         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43532         best_i.
43533
43534 2009-07-02  Bruno Haible  <bruno@clisp.org>
43535
43536         Speed up approximate search for matching ChangeLog entries.
43537         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43538         argument. Call fstrcmp_bounded instead of fstrcmp.
43539         (compute_mapping, try_split_merged_entry, main): Update callers.
43540
43541 2009-07-02  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43544
43545 2009-06-30  Bruno Haible  <bruno@clisp.org>
43546
43547         Reduce the number of uc_is_cased calls.
43548         * lib/unicase.h (casing_suffix_context_t): Add
43549         'first_char_except_ignorable' field.
43550         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43551         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43552         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43553         Update initializer.
43554         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43555         case-ignorable characters.
43556         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43557         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43558         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43559         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43560         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43561
43562 2009-06-30  Bruno Haible  <bruno@clisp.org>
43563
43564         Tests for module 'unicase/ignorable'.
43565         * modules/unicase/ignorable-tests: New file.
43566         * tests/unicase/test-ignorable.c: New file, generated by
43567         gen-uni-tables.
43568
43569         Tests for module 'unicase/cased'.
43570         * modules/unicase/cased-tests: New file.
43571         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43572         * tests/unicase/test-predicate-part1.h: New file, derived from
43573         tests/unictype/test-predicate-part1.h.
43574         * tests/unicase/test-predicate-part2.h: New file, same as
43575         tests/unictype/test-predicate-part2.h.
43576
43577         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43578         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43579         (output_casing_properties): New function.
43580         (main): Call it.
43581         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43582         * lib/unicase/cased.c: Include unictype/bitmap.h.
43583         (uc_is_cased): Define through a bitmap lookup.
43584         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43585         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43586         (uc_is_case_ignorable): Define through a bitmap lookup.
43587         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43588         lib/unictype/bitmap.h.
43589         (Depends-on): Add inline. Clean up.
43590         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43591         lib/unictype/bitmap.h.
43592         (Depends-on): Add inline. Clean up.
43593         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43594         recognition.
43595         * tests/unicase/test-u16-tolower.c (main): Likewise.
43596         * tests/unicase/test-u32-tolower.c (main): Likewise.
43597
43598 2009-06-30  Bruno Haible  <bruno@clisp.org>
43599
43600         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43601         * lib/unicase/u16-casemap.c: Likewise.
43602         * lib/unicase/u32-casemap.c: Likewise.
43603
43604 2009-06-29  Bruno Haible  <bruno@clisp.org>
43605
43606         Define u32_casefold as a wrapper around u32_ct_casefold.
43607         * lib/unicase/u32-casefold.c: Update.
43608         * modules/unicase/u32-casefold (Depends-on): Add
43609         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43610         unicase/empty-suffix-context. Clean up.
43611
43612         Define u16_casefold as a wrapper around u16_ct_casefold.
43613         * lib/unicase/u16-casefold.c: Update.
43614         * modules/unicase/u16-casefold (Depends-on): Add
43615         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43616         unicase/empty-suffix-context. Clean up.
43617
43618         Define u8_casefold as a wrapper around u8_ct_casefold.
43619         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43620         * lib/unicase/u8-casefold.c: Update.
43621         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43622         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43623
43624         Define u32_totitle as a wrapper around u32_ct_totitle.
43625         * lib/unicase/u32-totitle.c: Update.
43626         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43627         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43628
43629         Define u16_totitle as a wrapper around u16_ct_totitle.
43630         * lib/unicase/u16-totitle.c: Update.
43631         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43632         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43633
43634         Define u8_totitle as a wrapper around u8_ct_totitle.
43635         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43636         functions.
43637         (FUNC): Delegate to U_CT_TOTITLE.
43638         * lib/unicase/u8-totitle.c: Update.
43639         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43640         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43641
43642         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43643         invocation.
43644         * modules/unicase/u32-tolower (Depends-on): Add
43645         unicase/empty-prefix-context, unicase/empty-suffix-context.
43646
43647         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43648         invocation.
43649         * modules/unicase/u16-tolower (Depends-on): Add
43650         unicase/empty-prefix-context, unicase/empty-suffix-context.
43651
43652         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43653         * modules/unicase/u8-tolower (Depends-on): Add
43654         unicase/empty-prefix-context, unicase/empty-suffix-context.
43655
43656         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43657         invocation.
43658         * modules/unicase/u32-toupper (Depends-on): Add
43659         unicase/empty-prefix-context, unicase/empty-suffix-context.
43660
43661         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43662         invocation.
43663         * modules/unicase/u16-toupper (Depends-on): Add
43664         unicase/empty-prefix-context, unicase/empty-suffix-context.
43665
43666         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43667         * modules/unicase/u8-toupper (Depends-on): Add
43668         unicase/empty-prefix-context, unicase/empty-suffix-context.
43669
43670         New module 'unicase/u32-ct-casefold'.
43671         * lib/unicase/u32-ct-casefold.c: New file.
43672         * modules/unicase/u32-ct-casefold: New file.
43673
43674         New module 'unicase/u16-ct-casefold'.
43675         * lib/unicase/u16-ct-casefold.c: New file.
43676         * modules/unicase/u16-ct-casefold: New file.
43677
43678         New module 'unicase/u8-ct-casefold'.
43679         * lib/unicase/u8-ct-casefold.c: New file.
43680         * lib/unicase/u-ct-casefold.h: New file, derived from
43681         lib/unicase/u-casefold.h.
43682         * modules/unicase/u8-ct-casefold: New file.
43683
43684         New module 'unicase/u32-ct-totitle'.
43685         * lib/unicase/u32-ct-totitle.c: New file.
43686         * modules/unicase/u32-ct-totitle: New file.
43687
43688         New module 'unicase/u16-ct-totitle'.
43689         * lib/unicase/u16-ct-totitle.c: New file.
43690         * modules/unicase/u16-ct-totitle: New file.
43691
43692         New module 'unicase/u8-ct-totitle'.
43693         * lib/unicase/u8-ct-totitle.c: New file.
43694         * lib/unicase/u-ct-totitle.h: New file, derived from
43695         lib/unicase/u-totitle.h.
43696         * modules/unicase/u8-ct-totitle: New file.
43697
43698         New module 'unicase/u32-ct-tolower'.
43699         * lib/unicase/u32-ct-tolower.c: New file.
43700         * modules/unicase/u32-ct-tolower: New file.
43701
43702         New module 'unicase/u16-ct-tolower'.
43703         * lib/unicase/u16-ct-tolower.c: New file.
43704         * modules/unicase/u16-ct-tolower: New file.
43705
43706         New module 'unicase/u8-ct-tolower'.
43707         * lib/unicase/u8-ct-tolower.c: New file.
43708         * modules/unicase/u8-ct-tolower: New file.
43709
43710         New module 'unicase/u32-ct-toupper'.
43711         * lib/unicase/u32-ct-toupper.c: New file.
43712         * modules/unicase/u32-ct-toupper: New file.
43713
43714         New module 'unicase/u16-ct-toupper'.
43715         * lib/unicase/u16-ct-toupper.c: New file.
43716         * modules/unicase/u16-ct-toupper: New file.
43717
43718         New module 'unicase/u8-ct-toupper'.
43719         * lib/unicase/u8-ct-toupper.c: New file.
43720         * modules/unicase/u8-ct-toupper: New file.
43721
43722         Add context arguments to u*_casemap functions.
43723         * lib/unicase/unicasemap.h: Include unicase.h.
43724         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43725         suffix_context arguments.
43726         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43727         functions.
43728         (FUNC): Add prefix_context and suffix_context arguments. Use
43729         uc_is_cased and uc_is_case_ignorable.
43730         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43731         * lib/unicase/u16-casemap.c: Likewise.
43732         * lib/unicase/u32-casemap.c: Likewise.
43733         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43734         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43735         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43736         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43737         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43738         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43739
43740         New module 'unicase/u32-suffix-context'.
43741         * lib/unicase/u32-suffix-context.c: New file.
43742         * modules/unicase/u32-suffix-context: New file.
43743
43744         New module 'unicase/u16-suffix-context'.
43745         * lib/unicase/u16-suffix-context.c: New file.
43746         * modules/unicase/u16-suffix-context: New file.
43747
43748         New module 'unicase/u8-suffix-context'.
43749         * lib/unicase/u8-suffix-context.c: New file.
43750         * lib/unicase/u-suffix-context.h: New file.
43751         * modules/unicase/u8-suffix-context: New file.
43752
43753         New module 'unicase/empty-suffix-context'.
43754         * lib/unicase/empty-suffix-context.c: New file.
43755         * modules/unicase/empty-suffix-context: New file.
43756
43757         New module 'unicase/u32-prefix-context'.
43758         * lib/unicase/u32-prefix-context.c: New file.
43759         * modules/unicase/u32-prefix-context: New file.
43760
43761         New module 'unicase/u16-prefix-context'.
43762         * lib/unicase/u16-prefix-context.c: New file.
43763         * modules/unicase/u16-prefix-context: New file.
43764
43765         New module 'unicase/u8-prefix-context'.
43766         * lib/unicase/u8-prefix-context.c: New file.
43767         * lib/unicase/u-prefix-context.h: New file.
43768         * lib/unicase/context.h: New file.
43769         * modules/unicase/u8-prefix-context: New file.
43770
43771         New module 'unicase/empty-prefix-context'.
43772         * lib/unicase/empty-prefix-context.c: New file.
43773         * modules/unicase/empty-prefix-context: New file.
43774
43775         New module 'unicase/ignorable'.
43776         * lib/unicase/ignorable.c: New file.
43777         * modules/unicase/ignorable: New file.
43778
43779         New module 'unicase/cased'.
43780         * lib/unicase/caseprop.h: New file.
43781         * lib/unicase/cased.c: New file.
43782         * modules/unicase/cased: New file.
43783
43784         New functions for case mapping of substrings.
43785         * lib/unicase.h (casing_prefix_context_t): New type.
43786         (unicase_empty_prefix_context): New variable.
43787         (u8_casing_prefix_context, u16_casing_prefix_context,
43788         u32_casing_prefix_context, u8_casing_prefixes_context,
43789         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43790         declarations.
43791         (casing_suffix_context_t): New type.
43792         (unicase_empty_suffix_context): New variable.
43793         (u8_casing_suffix_context, u16_casing_suffix_context,
43794         u32_casing_suffix_context, u8_casing_suffixes_context,
43795         u16_casing_suffixes_context, u32_casing_suffixes_context,
43796         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43797         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43798         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43799         declarations.
43800
43801 2009-06-28  Jim Meyering  <meyering@redhat.com>
43802
43803         boostrap: indent only with spaces
43804         * build-aux/bootstrap: Indent only with spaces, never TABs.
43805
43806         bootstrap: split long lines
43807         * build-aux/bootstrap: Keep line length < 80.
43808
43809         bootstrap: sync from coreutils
43810         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43811         just as autoreconf does.  Verify a list of prerequisite
43812         package-name,version-number pairs if defined in bootstrap.conf.
43813         Refer to README-prereq, if prerequisites are not satisfied.
43814
43815 2009-06-27  Eric Blake  <ebb9@byu.net>
43816
43817         tests: add test for bogus NULL definition
43818         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43819         * tests/test-stdlib.c: Likewise.
43820         * tests/test-string.c: Likewise.
43821         * tests/test-locale.c: Likewise.
43822         * tests/test-unistd.c: Likewise.
43823         * modules/stdio-tests (Depends-on): Add verify.
43824         * modules/stdlib-tests (Depends-on): Likewise.
43825         * modules/string-tests (Depends-on): Likewise.
43826         * modules/locale-tests (Depends-on): Likewise.
43827         * modules/unistd-tests (Depends-on): Likewise.
43828
43829 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43830
43831         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43832         self-explaining comment.
43833         * m4/selinux-selinux-h: Update serial.
43834         (gl_LIBSELINUX): New macro, adding a warning for missing development
43835         packages to code extracted from...
43836         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43837         Add warning for missing development packages here, too.
43838
43839 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43840
43841         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43842
43843 2009-06-25  Eric Blake  <ebb9@byu.net>
43844
43845         version-etc: fix regression
43846         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43847         gcc.
43848         (version_etc): Use it, to catch bugs with trailing NULL.
43849         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43850         (version_etc_va): Fix logic bug.
43851         * modules/version-etc-tests: Add test.
43852         * tests/test-version-etc.c: New file.
43853         * tests/test-version-etc.sh: Likewise.
43854
43855 2009-06-25  Sam Steingold  <sds@gnu.org>
43856
43857         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43858         mbtowc declaration.
43859
43860 2009-06-25  Eric Blake  <ebb9@byu.net>
43861
43862         fpurge: migrate into <stdio.h>
43863         * lib/fpurge.h: Delete...
43864         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43865         * lib/fpurge.c (fpurge): Change declaring header.
43866         * modules/fpurge (Files): Drop deleted file.
43867         (Depends-on): Add stdio.
43868         (configure.ac): Set witness.
43869         * modules/stdio (Makefile.am): Support fpurge macros.
43870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43871         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43872         * lib/fflush.c: Update client.
43873         * tests/test-fpurge.c: Likewise.
43874         * NEWS: Mention the change.
43875
43876 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43877
43878         * lib/argp-version-etc.c (program_authors): Add const
43879         qualifier.
43880         * lib/version-etc.c: Fix typos in the comments.
43881         * modules/argp-version-etc: Depends on version-etc.
43882
43883 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43884
43885         argp-version-etc: new module.
43886
43887         * lib/argp-version-etc.c: New file.
43888         * lib/argp-version-etc.h: New file.
43889         * modules/argp-version-etc: New file.
43890         * modules/argp-version-etc-tests: New file.
43891         * tests/test-argp-version-etc.c: New test.
43892         * tests/test-argp-version-etc-1.sh: New test.
43893
43894 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43895
43896         Provide additional interfaces and documentation for version-etc
43897         module.
43898
43899         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43900         interfaces.
43901         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43902         prototypes.
43903
43904 2009-06-24  Bruno Haible  <bruno@clisp.org>
43905
43906         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43907         HAVE_LIB${NAME} macro.
43908         Reported by Sam Steingold <sds@gnu.org>.
43909
43910 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43911
43912         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43913         needed.
43914
43915 2009-06-21  Bruno Haible  <bruno@clisp.org>
43916
43917         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43918         work.
43919         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43920         together with LIB${NAME}, LTLIB${NAME}.
43921         Reported by Sam Steingold <sds@gnu.org>.
43922
43923 2009-06-20  Jim Meyering  <meyering@redhat.com>
43924
43925         tests: make sc_require_test_exit_idiom more generic
43926         * top/maint.mk (Exit_witness_file): New overridable variable.
43927         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43928         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43929
43930 2009-06-19  Jim Meyering  <meyering@redhat.com>
43931
43932         hash: reverse order of src/dst parameters in an internal interface
43933         * lib/hash.c (transfer_entries): Reverse order of parameters to
43934         put DST before SRC.  Adjust callers.
43935
43936         tests: test-hash: avoid wholesale duplication
43937         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43938         Instead, use a loop and add a single conditional.
43939
43940         tests: test-hash: allow seed selection via a command line argument
43941         * tests/test-hash.c (get_seed): New function.
43942         (main): Use it.
43943
43944 2009-06-19  Eric Blake  <ebb9@byu.net>
43945
43946         hash: avoid memory leak on allocation failure
43947         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43948         failure.  Factor repeated algorithm...
43949         (transfer_entries): ...into new helper routine.
43950         (hash_delete): React to hash_rehash return value.
43951
43952         hash: reduce memory pressure in hash_rehash no-op case
43953         * lib/hash.c (next_prime): Avoid overflow.
43954         (hash_initialize): Factor bucket size computation...
43955         (compute_bucket_size): ...into new helper function.
43956         (hash_rehash): Use new function and open coding to reduce memory
43957         pressure, and avoid a memory leak in USE_OBSTACK code.
43958         Reported by Jim Meyering.
43959
43960 2009-06-18  Eric Blake  <ebb9@byu.net>
43961
43962         hash: make rotation more obvious
43963         * modules/hash (Depends-on): Add bitrotate and stdint.
43964         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43965         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43966         (SIZE_MAX): Rely on headers for definition.
43967         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43968         (raw_hasher): Use rotr_sz.
43969         Suggested by Jim Meyering.
43970
43971         hash: fix memory leak in last patch
43972         * lib/hash.c (hash_rehash): Avoid memory leak.
43973
43974         hash: avoid no-op rehashing
43975         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43976
43977         hash: provide default callback functions
43978         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43979         (hash_initialize): Use them as defaults.
43980         * tests/test-hash.c (main): Test this.
43981
43982         hash: minor optimization
43983         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43984         when possible.
43985         (hash_initialize): Document this promise.
43986         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43987         * tests/test-hash.c (hash_compare_strings): Test this.
43988
43989 2009-06-18  Bruno Haible  <bruno@clisp.org>
43990
43991         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43992         going to be replaced anyway.
43993
43994 2009-06-18  Bruno Haible  <bruno@clisp.org>
43995
43996         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43997         in one place.
43998         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43999         be replaced anyway.
44000
44001 2009-06-18  Eric Blake  <ebb9@byu.net>
44002
44003         hash: check for resize before insertion
44004         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44005         threshold before insertion, so that a pathological hash_rehash
44006         that fills every bucket can still trigger another rehash.
44007
44008 2009-06-18  Jim Meyering  <meyering@redhat.com>
44009
44010         hash-tests: add a loop around the small tests
44011         * tests/test-hash.c (main): Repeat small tests with selected
44012         small initial table sizes.
44013
44014 2009-06-17  Eric Blake  <ebb9@byu.net>
44015
44016         hash: minor cleanups
44017         * lib/hash.h (hash_entry): Make opaque, by moving...
44018         * lib/hash.c (hash_entry): ...here.
44019         (hash_insert): Clarify restrictions on what can be inserted.
44020         (hash_get_next): Clarify when it is safe to remove an element
44021         during traversal.
44022         (check_tuning): Skip verification when tuning is known safe.
44023         (hash_initialize): Clarify restrictions on tuning.
44024
44025 2009-06-17  Jim Meyering  <jim@meyering.net>
44026         and Eric Blake  <ebb9@byu.net>
44027
44028         hash-tests: new module
44029         * modules/hash-tests: New file.
44030         * tests/test-hash.c: New file.
44031
44032 2009-06-17  Eric Blake  <ebb9@byu.net>
44033
44034         strstr-simple: document new module
44035         * MODULES.html.sh: Document new module.
44036
44037         strstr, strcasestr: replace on platforms with broken memchr
44038         * modules/strstr: Split into...
44039         * modules/strstr-simple: ...new module that does not care about
44040         performance, but does care about glibc bug.
44041         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44042         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44043         if platform memchr is broken, per Debian bug 521737.
44044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44045         memchr.
44046         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44047         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44048         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44049         * modules/mountlist (Depends-on): Add strstr-simple.
44050         * modules/gen-uni-tables (Depends-on): Likewise.
44051         * modules/argz (Depends-on): Add strstr.
44052
44053 2009-06-17  Bruno Haible  <bruno@clisp.org>
44054
44055         * modules/posix_spawn-internal (Depends-on): Add errno.
44056
44057 2009-06-17  Bruno Haible  <bruno@clisp.org>
44058
44059         Define missing ESTALE on Interix 3.5.
44060         * lib/errno.in.h (ESTALE): Assign a value if missing.
44061         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44062         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44063         missing.
44064         * doc/posix-headers/errno.texi: Mention the Interix bug.
44065         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44066
44067 2009-06-15  Eric Blake  <ebb9@byu.net>
44068
44069         memchr, memchr2: add valgrind exception
44070         * lib/memchr.valgrind: New file.
44071         * lib/memchr2.valgrind: New file.
44072         * modules/memchr (Files): Distribute valgrind file.
44073         * modules/memchr2 (Files): Likewise.
44074
44075         docs: memchr is no longer obsolete
44076         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44077         * lib/string.in.h (memchr): Simplify logic.
44078
44079 2009-06-14  Jim Meyering  <meyering@redhat.com>
44080
44081         link-follow: fix the "checking..." message to not mention trailing slash
44082         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44083         never considered trailing slashes.
44084
44085 2009-06-14  Bruno Haible  <bruno@clisp.org>
44086
44087         * m4/memchr.m4: Mention also the bug on IA-64.
44088         * doc/posix-functions/memchr.texi: Likewise.
44089
44090 2009-06-12  Eric Blake  <ebb9@byu.net>
44091
44092         memchr: detect broken x86_64 and alpha implementations
44093         * modules/memchr-tests (Depends-on): Move mmap detection...
44094         * modules/memchr (Depends-on): ...here.
44095         (configure.ac): Set indicator.
44096         * lib/string.in.h (memchr): Declare replacement.
44097         * modules/string (Makefile.am): Trigger replacement.
44098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44099         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44100         bugs.
44101         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44102         * modules/getpagesize (License): Relax license.
44103
44104 2009-06-11  Bruno Haible  <bruno@clisp.org>
44105
44106         * lib/idpriv.h: Add more references.
44107
44108 2009-06-08  Bruno Haible  <bruno@clisp.org>
44109
44110         Tests for module 'idpriv-droptemp'.
44111         * modules/idpriv-droptemp-tests: New file.
44112         * tests/test-idpriv-droptemp.sh: New file.
44113         * tests/test-idpriv-droptemp.su.sh: New file.
44114         * tests/test-idpriv-droptemp.c: New file.
44115
44116         New module 'idpriv-droptemp'.
44117         * lib/idpriv-droptemp.c: New file.
44118         * modules/idpriv-droptemp: New file.
44119
44120 2009-06-08  Bruno Haible  <bruno@clisp.org>
44121
44122         Tests for module 'idpriv-drop'.
44123         * modules/idpriv-drop-tests: New file.
44124         * tests/test-idpriv-drop.sh: New file.
44125         * tests/test-idpriv-drop.su.sh: New file.
44126         * tests/test-idpriv-drop.c: New file.
44127
44128         New module 'idpriv-drop'.
44129         * lib/idpriv.h: New file.
44130         * lib-idpriv-drop.c: New file.
44131         * m4/idpriv.m4: New file.
44132         * modules/idpriv-drop: New file.
44133
44134 2009-06-08  Bruno Haible  <bruno@clisp.org>
44135
44136         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44137         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44138         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44139         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44140         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44141         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44142         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44143
44144 2009-06-08  Eric Blake  <ebb9@byu.net>
44145
44146         test-strstr: use memory fence, when possible
44147         * tests/test-strstr.c (main): Use memory fence, in order to be
44148         more likely to trigger Debian bug 521737.
44149         * modules/strstr-tests (Files): Pull in additional files.
44150
44151         memchr: no longer obsolete, for wider field testing
44152         * modules/memchr (Status, Notice): Delete, this module is no
44153         longer obsolete.
44154         * modules/vasnprintf (Depends-on): Add memchr.
44155
44156 2009-06-07  Jim Meyering  <meyering@redhat.com>
44157
44158         hash: declare some functions with the warn_unused_result attribute
44159         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44160
44161 2009-06-07  Bruno Haible  <bruno@clisp.org>
44162
44163         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44164         Reported by Eric Blake.
44165
44166 2009-06-06  Eric Blake  <ebb9@byu.net>
44167
44168         test-alignof: fix typo with long double
44169         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44170         compiler error.
44171
44172 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44173
44174         Escape non-texinfo { and }s.
44175         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44176         markup error.
44177
44178 2009-06-04  Jim Meyering  <meyering@redhat.com>
44179
44180         gitlog-to-changelog: don't infloop on an empty commit log
44181         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44182         Reported by Boris Petersen <transacid@centerim.org>.
44183
44184 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44185
44186         version-etc: extend for packagers
44187         Add three new configure options, intended for packagers:
44188           --with-packager="packager name"
44189           --with-packager-version="packager-specific version"
44190           --with-packager-bug-reports="packager bug reporting"
44191         An example with coreutils:
44192           $ ./configure \
44193             --with-packager=Gentoo \
44194             --with-packager-bug-report=http://bugs.gentoo.org/ \
44195             --with-packager-version="patchset 1.6"
44196           $ ./src/ls --version | head -n2
44197           ls (GNU coreutils) 7.1-dirty
44198           Packaged by Gentoo (patchset 1.6)
44199         Note that the bug reporting info via --help doesn't show up because
44200         coreutils uses its own custom emit_bug_reporting_address() implementation
44201         in src/system.h.  If it didn't, it'd look like:
44202           $ ./src/ls --help | tail -n4
44203           Report bugs to <bug-coreutils@gnu.org>.
44204           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44205           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44206           General help using GNU software: <http://www.gnu.org/gethelp/>.
44207         * lib/version-etc.c: Print new information, if provided.
44208         * m4/version-etc.m4: New file.
44209         * modules/version-etc (Files): Add m4/version-etc.m4.
44210         (configure.ac): Add gl_VERSION_ETC.
44211
44212 2009-05-31  Bruno Haible  <bruno@clisp.org>
44213
44214         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44215         and 'int64_t'.
44216         * modules/alignof-tests (Dependencies): Add stdint.
44217         Reported by Eric Blake.
44218
44219 2009-05-31  Bruno Haible  <bruno@clisp.org>
44220
44221         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44222         restriction due to compiler bugs.
44223         Reported by Eric Blake.
44224
44225 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44226             Bruno Haible  <bruno@clisp.org>
44227
44228         Fix test-alignof failure.
44229         * lib/alignof.h (alignof_slot): New macro.
44230         (alignof_type): New macro, with the same semantics as the previous
44231         'alignof'.
44232         (alignof): Alias to alignof_slot.
44233         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44234         check that the results are usable as constant expressions.
44235
44236 2009-05-31  Bruno Haible  <bruno@clisp.org>
44237
44238         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44239         * tests/test-memchr.c (main): Check that memchr does not read past the
44240         first occurrence of the byte.
44241         * tests/test-strstr.c (main): Update comment.
44242         Suggested by Eric Blake.
44243
44244 2009-05-30  Bruno Haible  <bruno@clisp.org>
44245
44246         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44247         detail how to use dumpbin.
44248         Reported by David Byron <dbyron@dbyron.com>.
44249
44250 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44251
44252         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44253
44254 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44255
44256         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44257
44258 2009-05-28  Bruno Haible  <bruno@clisp.org>
44259
44260         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44261         build-aux/ files.
44262
44263 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44264
44265         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44266
44267 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44268
44269         * gnulib-tool (sed_transform_main_lib_file)
44270         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44271         regexps.
44272
44273 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44274
44275         * tests/test-strstr.c: Add another self-test.
44276         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44277         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44278
44279 2009-05-23  Bruno Haible  <bruno@clisp.org>
44280
44281         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44282         change.
44283
44284 2009-05-21  Bruno Haible  <bruno@clisp.org>
44285
44286         Simplify use of mode_t varargs.
44287         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44288         uses 'mode_t' or 'int'.
44289         * lib/openat.c (openat): Likewise.
44290         * lib/open-safer.c (open_safer): Likewise.
44291         * m4/mode_t.m4: New file.
44292         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44293         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44294         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44295         * modules/open (Files): Add m4/mode_t.m4.
44296         * modules/openat (Files): Likewise.
44297         * modules/fcntl-safer (Files): Likewise.
44298         Suggested by Eric Blake.
44299
44300 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44301
44302         * doc/glibc-functions/fallocate.texi: New file.
44303         * doc/gnulib.texi: Include it.
44304
44305 2009-05-21  Eric Blake  <ebb9@byu.net>
44306             Bruno Haible  <bruno@clisp.org>
44307
44308         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44309         invocations.
44310         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44311
44312 2009-05-21  Eric Blake  <ebb9@byu.net>
44313             Bruno Haible  <bruno@clisp.org>
44314
44315         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44316         include_next. Fix of 2008-11-20 commit.
44317         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44318         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44319         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44320         NEXT_MATH_H.
44321         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44322         instead of NEXT_MATH_H.
44323
44324 2009-05-21  Bruno Haible  <bruno@clisp.org>
44325
44326         Avoid redefinition warnings for SIZE_MAX.
44327         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44328         Reported by Simon Josefsson.
44329
44330 2009-05-21  Bruno Haible  <bruno@clisp.org>
44331
44332         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44333         AC_CACHE_VAL.
44334
44335 2009-05-20  Bruno Haible  <bruno@clisp.org>
44336
44337         Make zeroptr.h work on mingw.
44338         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44339         mprotect.
44340         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44341         * modules/memchr2-tests (configure.ac): Likewise.
44342         * modules/memcmp-tests (configure.ac): Likewise.
44343         * modules/memmem-tests (configure.ac): Likewise.
44344         * modules/memrchr-tests (configure.ac): Likewise.
44345         Reported by Simon Josefsson.
44346
44347 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44348
44349         * tests/test-glob.c: Include string.h for strcmp prototype.
44350
44351 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44352
44353         * modules/getdelim (Depends-on): Add explicit stdint, although it
44354         was implicitly already pulled in via realloc-posix.
44355         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44356
44357 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44358
44359         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44360         G. Christensen" <tgc@jupiterrise.com>.
44361         * m4/sys_socket_h.m4: Check for sa_family_t.
44362         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44363         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44364         * tests/test-sys_socket.c: Check that sa_family_t works.
44365
44366 2009-05-18  Eric Blake  <ebb9@byu.net>
44367
44368         maint.mk: allow gnulib_dir in VPATH build
44369         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44370
44371 2009-05-15  Jim Meyering  <meyering@redhat.com>
44372
44373         maint.mk: Give gnulib_dir a default definition.
44374         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44375         Thus, most packages no longer need to specify this variable in cfg.mk
44376
44377 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44378
44379         rename.m4: fix typos that would make non-mingw cross-configure fail
44380         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44381
44382 2009-05-13  Eric Blake  <ebb9@byu.net>
44383
44384         mmap-anon: avoid out-of-order autoconf expansion
44385         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44386         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44387         * modules/memchr-tests (Depends-on): Add extensions.
44388         * modules/memchr2-tests (Depends-on): Add extensions.
44389         * modules/memcmp-tests (Depends-on): Add extensions.
44390         * modules/memmem-tests (Depends-on): Add extensions.
44391         * modules/memrchr-tests (Depends-on): Add extensions.
44392
44393 2009-05-13  Bruno Haible  <bruno@clisp.org>
44394
44395         Make some tests ISO C 99 compliant.
44396         * tests/zerosize-ptr.h: New file.
44397         * tests/test-memchr.c: Include zerosize-ptr.h.
44398         (main): Use a zero-size object pointer instead of NULL.
44399         * tests/test-memchr2.c: Include zerosize-ptr.h.
44400         (main): Use a zero-size object pointer instead of NULL.
44401         * tests/test-memcmp.c: Include zerosize-ptr.h.
44402         (main): Use a zero-size object pointer instead of NULL.
44403         * tests/test-memmem.c: Include zerosize-ptr.h.
44404         (main): Use a zero-size object pointer instead of NULL.
44405         * tests/test-memrchr.c: Include zerosize-ptr.h.
44406         (main): Use a zero-size object pointer instead of NULL.
44407         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44408         m4/mmap-anon.m4.
44409         (Depends-on): Add getpagesize.
44410         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44411         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44412         m4/mmap-anon.m4.
44413         (Depends-on): Add getpagesize.
44414         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44415         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44416         m4/mmap-anon.m4.
44417         (Depends-on): Add getpagesize.
44418         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44419         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44420         m4/mmap-anon.m4.
44421         (Depends-on): Add getpagesize.
44422         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44423         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44424         m4/mmap-anon.m4.
44425         (Depends-on): Add getpagesize.
44426         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44427
44428 2009-05-12  Bruno Haible  <bruno@clisp.org>
44429
44430         Tests for module 'alignof'.
44431         * modules/alignof-tests: New file.
44432         * tests/test-alignof.c: New file.
44433
44434 2009-05-12  Bruno Haible  <bruno@clisp.org>
44435
44436         Fix alignof macro.
44437         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44438         vendor compilers that are always correct.
44439
44440 2009-05-12  Bruno Haible  <bruno@clisp.org>
44441
44442         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44443         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44444         not whether its fully works.
44445
44446 2009-05-12  Bruno Haible  <bruno@clisp.org>
44447
44448         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44449
44450 2009-05-12  Jim Meyering  <meyering@redhat.com>
44451
44452         * top/maint.mk: Adjust backslash alignment.
44453
44454 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44455
44456         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44457
44458 2009-05-11  Eric Blake  <ebb9@byu.net>
44459
44460         argp: avoid undefined behavior
44461         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44462         macros.
44463
44464 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44465
44466         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44467         user.name to prevent git commit from complaining.
44468
44469 2009-05-10  Bruno Haible  <bruno@clisp.org>
44470
44471         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44472         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44473         it rewrites every file name only once.
44474         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44475
44476 2009-05-08  Bruno Haible  <bruno@clisp.org>
44477
44478         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44479         instead of 'max'.
44480
44481 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44482
44483         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44484         sockaddr_storage test.
44485
44486 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44487
44488         * modules/sys_socket (Makefile.am): Substitute
44489         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44490         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44491         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44492         * tests/test-sys_socket.c: Check sockaddr_storage.
44493
44494 2009-05-08  Bruno Haible  <bruno@clisp.org>
44495
44496         New module 'alignof'.
44497         * lib/alignof.h: New file.
44498         * modules/alignof: New file.
44499
44500 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44501             Bruno Haible  <bruno@clisp.org>
44502
44503         Fix test-file-has-acl on FreeBSD.
44504         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44505         mask is implicitly added.
44506         * tests/test-file-has-acl.c: Include <signal.h>.
44507         (main): Terminate the test after 5 seconds.
44508         * modules/acl-tests (configure.ac): Check for alarm function.
44509
44510 2009-05-04  Bruno Haible  <bruno@clisp.org>
44511
44512         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44513         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44514         * modules/errno (configure.ac): Drop AC_REQUIRE.
44515         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44516         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44517
44518 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44519
44520         * modules/glob-tests: New module.
44521         * tests/test-glob.c: Add.
44522
44523 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44524
44525         * modules/fnmatch-tests: New module.
44526         * tests/test-fnmatch.c: Add.
44527
44528 2009-05-04  Eric Blake  <ebb9@byu.net>
44529
44530         maint: make the new no-submodule-changes rule VPATH-safe
44531         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44532
44533 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44534             Bruno Haible  <bruno@clisp.org>
44535
44536         acl: Fix infinite loop on FreeBSD.
44537         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44538         of return value from acl_get_entry.
44539         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44540         Likewise.
44541
44542 2009-05-03  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/acl-internal.h (acl_entries): Clarify return value.
44545         * lib/acl_entries.c (acl_entries): Likewise.
44546
44547 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44548
44549         Bug fix in acl module.
44550         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44551
44552 2009-05-03  Bruno Haible  <bruno@clisp.org>
44553
44554         Create gperf-generated file in the source dir, not in the build dir.
44555         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44556         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44557         * modules/unicase/locale-language (unicase/locale-languages.h):
44558         Likewise.
44559         * modules/unicase/special-casing (unicase/special-casing-table.h):
44560         Likewise.
44561         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44562         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44563         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44564         Reported by Ralf Wildenhues.
44565
44566 2009-05-03  Bruno Haible  <bruno@clisp.org>
44567
44568         * modules/fnmatch (Description, configure.ac): Taken from
44569         fnmatch-posix.
44570         * modules/fnmatch-posix: Turn into a symbolic reference to the
44571         'fnmatch' module, and deprecate.
44572         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44573
44574 2009-05-03  Bruno Haible  <bruno@clisp.org>
44575
44576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44577         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44578         Reported by Ralf Wildenhues.
44579
44580 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44581
44582         * m4/fnmatch.m4: Fix fnmatch re-define.
44583
44584 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44585
44586         priv-set: new module and tests; adapt write-any-file
44587         * lib/priv-set.c: New file.
44588         * lib/priv-set.h: New file.
44589         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44590         * lib/write-any-file.c: Simplify by using priv-set module.
44591         * m4/priv-set.m4: New file.
44592         * modules/priv-set: New file.
44593         * modules/unlinkdir: Add dependency on priv-set module.
44594         * modules/write-any-file: Likewise.
44595
44596         Tests for module 'priv-set'.
44597         * modules/priv-set-tests: New file.
44598         * tests/test-priv-set.c: New file.
44599
44600 2009-05-03  Jim Meyering  <meyering@redhat.com>
44601             Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44604         use the converted UTF-8 variant of the name instead.
44605
44606 2009-05-03  Jim Meyering  <meyering@redhat.com>
44607
44608         tests: tighten some getdate tests
44609         * tests/test-getdate.c (main): Tighten tests: require equality,
44610         not just greater than.  Set TZ envvar to UTC0.
44611
44612 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44613
44614         getdate: correctly interpret "next monday" when run on a Monday
44615         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44616         that e.g., "next tues" (when run on a tuesday) results in a date
44617         that is one week in the future, and not today's date.
44618         I.e., add a week when the wday is the same as the current one.
44619         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44620         and earlier by Martin Bernreuther and Jan Minář.
44621         * tests/test-getdate.c (main): Check that "next DAY" is always in
44622         the future and that "last DAY" is always in the past.
44623
44624 2009-05-02  Jim Meyering  <meyering@redhat.com>
44625
44626         build: ensure that a release build fails when a submodule is unclean
44627         * top/maint.mk (no-submodule-changes): New rule.
44628         (alpha beta major): Depend on it.
44629
44630 2009-05-02  Bruno Haible  <bruno@clisp.org>
44631
44632         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44633         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44634         shell variable gl_fnmatch_required to detect which variant is
44635         requested.
44636         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44637         gl_FUNC_FNMATCH_POSIX.
44638         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44639         exclude fnmatch-posix.
44640
44641 2009-05-02  Bruno Haible  <bruno@clisp.org>
44642
44643         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44644         * modules/mbsrtowcs (License): Change to LGPLv2+.
44645         * modules/strnlen1 (License): Likewise.
44646         Reported by Simon Josefsson.
44647
44648 2009-05-02  Bruno Haible  <bruno@clisp.org>
44649
44650         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44651         "cross".
44652         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44653         gnulib-tool was called with option --source-base=lib.
44654
44655 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44656
44657         Use automake *-local hooks without commands, for extensibility.
44658         * modules/localcharset (Makefile.am): Rename install-exec-local
44659         rule to install-exec-localcharset, and make it a prerequisite of
44660         install-exec-local.  Likewise, rename the uninstall-local rule to
44661         uninstall-localcharset, and make it a prerequisite of the former.
44662
44663 2009-05-01  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44666         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44667         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44669         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44670         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44671         m4/locale-zh.m4, m4/codeset.m4.
44672
44673         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44674         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44675         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44676         m4/locale-zh.m4.
44677
44678         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44679         REPLACE_WCRTOMB if mbstate_t must be replaced.
44680         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44681         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44682
44683 2009-05-01  Bruno Haible  <bruno@clisp.org>
44684
44685         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44686         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44687         dngettext, dcngettext, textdomain, bindtextdomain,
44688         bind_textdomain_codeset): Undefine before redefining.
44689
44690 2009-04-30  Bruno Haible  <bruno@clisp.org>
44691
44692         Fix bug introduced on 2009-04-25.
44693         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44694         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44695         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44696         is defined.
44697         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44698         is defined.
44699         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44700         is defined.
44701         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44702
44703 2009-04-28  Bruno Haible  <bruno@clisp.org>
44704
44705         Comment tweaks.
44706         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44707         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44708         * lib/unicase.h (u*_casexfrm): Likewise.
44709         Reported by Paolo Bonzini.
44710
44711 2009-04-28  Bruno Haible  <bruno@clisp.org>
44712
44713         Fix a compilation error.
44714         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44715         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44716         Reported by Jim Meyering.
44717
44718 2009-04-27  Bruno Haible  <bruno@clisp.org>
44719
44720         New module 'libunistring'.
44721         * modules/libunistring: New file.
44722         * m4/libunistring.m4: New file.
44723         * MODULES.html.sh (Unicode string functions): Add it.
44724
44725 2009-04-27  Eric Blake  <ebb9@byu.net>
44726
44727         maint.mk: allow package-specific header to provide <config.h>
44728         * top/maint.mk (sc_require_config_h): New variable.
44729         (sc_require_config_h, sc_require_config_h_first): Use it.
44730
44731 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44732
44733         * top/maint.mk (sc_avoid_if_before_free): Except
44734         useless-if-before-free script.
44735
44736 2009-04-27  Eric Blake  <ebb9@byu.net>
44737
44738         maintainer-makefile: depend on all required helper scripts
44739         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44740         useless-if-before-free.
44741         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44742         version, rather than assuming gnulib checkout is available.
44743         Reported by Simen Josefsson.
44744
44745 2009-04-26  Bruno Haible  <bruno@clisp.org>
44746
44747         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44748         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44749         "../" or "..".
44750
44751 2009-04-26  Bruno Haible  <bruno@clisp.org>
44752
44753         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44754         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44755         AC_LIB_HAVE_LINKFLAGS.
44756
44757 2009-04-26  Bruno Haible  <bruno@clisp.org>
44758
44759         Simplify calling convention of u*_conv_from_encoding.
44760         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44761         u32_conv_from_encoding): Expect a resultbuf argument and return the
44762         result directly as a pointer.
44763         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44764         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44765         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44766         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44767         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44768         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44769         Update.
44770         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44771         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44772         * lib/vasnprintf.c (VASNPRINTF): Update.
44773         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44774         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44775         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44776         * NEWS: Mention the change.
44777
44778 2009-04-26  Bruno Haible  <bruno@clisp.org>
44779
44780         Simplify calling convention of u*_conv_to_encoding.
44781         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44782         u32_conv_to_encoding): Expect a resultbuf argument and return the
44783         result directly as a pointer.
44784         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44785         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44786         freeing scaled_offsets if mem_iconveha failed.
44787         * lib/unicase/u-casexfrm.h (FUNC): Update.
44788         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44789         * lib/vasnprintf.c (VASNPRINTF): Update.
44790         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44791         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44792         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44793         * NEWS: Mention the change.
44794
44795 2009-04-26  Bruno Haible  <bruno@clisp.org>
44796
44797         Avoid test failures on AIX and OSF/1.
44798         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44799         malloc(0).
44800         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44801         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44802         Likewise.
44803         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44804         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44805         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44806         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44807         * doc/posix-functions/malloc.texi: Document the portability problem
44808         related to malloc(0).
44809
44810 2009-04-26  Bruno Haible  <bruno@clisp.org>
44811
44812         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44813         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44814         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44815
44816 2009-04-25  Bruno Haible  <bruno@clisp.org>
44817
44818         Avoid link error when creating a namespace clean library.
44819         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44820         as macro with arguments if already defined as an alias.
44821         * lib/signbitf.c (gl_signbitf): Don't undefine.
44822         * lib/signbitd.c (gl_signbitd): Don't undefine.
44823         * lib/signbitl.c (gl_signbitl): Don't undefine.
44824
44825 2009-04-25  Jim Meyering  <meyering@redhat.com>
44826
44827         vc-list-files: fix another quoting bug
44828         * build-aux/vc-list-files: Avoid sed backslash expansion
44829         of pathological directory names.
44830
44831 2009-04-25  Eric Blake  <ebb9@byu.net>
44832
44833         vc-list-files: fix shell quoting error
44834         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44835         timestamp.
44836
44837 2009-04-25  Jim Meyering  <meyering@redhat.com>
44838
44839         vc-list-files: restore lost functionality with subdir argument
44840         * build-aux/vc-list-files: When given a non-"." sub-directory
44841         argument, substitute the $dir/ prefix back onto each resulting name.
44842         Otherwise, coreutils' root_tests check would fail.
44843
44844 2009-04-24  Eric Blake  <ebb9@byu.net>
44845
44846         vc-list-files: ignore git symlinks
44847         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44848         than ls-files, to ignore git symlinks.
44849
44850         maint.mk: import improvements from m4
44851         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44852         (move_if_change): Delete unused macro.
44853         (news-date-check, vc-diff-check): Support VPATH builds.
44854         (announcement): Likewise.  Split --bootstrap-tools list...
44855         (boostrap-tools): ...into separate list, which can be overridden
44856         in cfg.mk.
44857         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44858         requiring dependency on useless-if-before-free module.
44859         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44860         Support VPATH builds.
44861
44862 2009-04-24  Jim Meyering  <meyering@redhat.com>
44863
44864         maint.mk: remove coreutils-specific rules and variables
44865         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44866         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44867         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44868
44869         maint.mk: remove obsolete rule
44870         * top/maint.mk (rel-check): Remove rule.
44871         (WGET, WGETFLAGS): Remove now-unused variables.
44872
44873 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44874
44875         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44876         consistency.
44877
44878         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44879         '$(PATH_SEPARATOR)' instead of ':'.
44880
44881 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44882
44883         * lib/getopt1.c (main): Use 'const' for static array.
44884
44885 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44886
44887         * top/maint.mk: Sync with coreutils.
44888         * NEWS: Explain incompatibilities.
44889
44890 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44891             Bruno Haible  <bruno@clisp.org>
44892
44893         Fix cross-compilation results.
44894         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44895         statement, as third argument of AC_TRY_RUN.
44896         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44897         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44898         Likewise.
44899         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44900         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44901         Likewise.
44902         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44903         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44904         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44905
44906 2009-04-20  Bruno Haible  <bruno@clisp.org>
44907
44908         Avoid test failure on mingw.
44909         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44910
44911 2009-04-20  Bruno Haible  <bruno@clisp.org>
44912
44913         Avoid compilation error on mingw.
44914         * modules/localename-tests (Depends-on): Add locale.
44915
44916 2009-04-19  Bruno Haible  <bruno@clisp.org>
44917
44918         Support for building a shared library on Windows platforms.
44919         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44920         (main): Test the presence of UNINORM_NFC here.
44921         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44922         (main): Test the presence of UNINORM_NFD here.
44923         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44924         (main): Test the presence of UNINORM_NFKC here.
44925         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44926         (main): Test the presence of UNINORM_NFKD here.
44927
44928 2009-04-19  Bruno Haible  <bruno@clisp.org>
44929
44930         Avoid a compiler warning.
44931         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44932         Change type of variable 'sequence'.
44933
44934 2009-04-19  Bruno Haible  <bruno@clisp.org>
44935
44936         * modules/configmake (Makefile.am): When the contents of configmake.h
44937         does not change, arrange to preserve its modification time.
44938
44939 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44940
44941         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44942         gettext domain.
44943
44944 2009-04-16  Jim Meyering  <meyering@redhat.com>
44945
44946         useless-if-before-free: improve conversion code
44947         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44948         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44949
44950 2009-04-14  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/fcntl (Depends-on): Add extensions.
44953         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44954
44955 2009-04-12  Ben Pfaff  <blp@gnu.org>
44956
44957         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44958         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44959
44960 2009-03-20  Ben Pfaff  <blp@gnu.org>
44961
44962         Make rename replace existing destinations on Windows.
44963         * m4/rename.m4: Add test for Mingw.
44964         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44965         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44966         * doc/posix-functions/rename.texi: Document.
44967
44968 2009-04-10  Bruno Haible  <bruno@clisp.org>
44969
44970         New include file "iconveh.h".
44971         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44972         * lib/striconveh.h: Include it.
44973         (enum iconv_ilseq_handler): Remove definition.
44974         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44975         striconveh.h.
44976         * lib/striconveha.c: Include striconveh.h.
44977         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44978         * modules/striconveh (Files): Add lib/iconveh.h.
44979         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44980         lib/striconveh.h.
44981
44982 2009-04-10  Bruno Haible  <bruno@clisp.org>
44983
44984         * lib/uniconv.h: Update comment.
44985
44986 2009-04-10  Bruno Haible  <bruno@clisp.org>
44987
44988         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44989         always.
44990         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44991         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44992         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44993         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44994         "unistring-notinline.h", so that the function gets defined always.
44995         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44996         * lib/unistr/u8-uctomb.c: Likewise.
44997         * lib/unistr/u16-mbtouc.c: Likewise.
44998         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44999         * lib/unistr/u16-uctomb.c: Likewise.
45000         * lib/unistr/u32-mbtouc.c: Likewise.
45001         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45002         * lib/unistr/u32-uctomb.c: Likewise.
45003
45004 2009-04-10  Bruno Haible  <bruno@clisp.org>
45005
45006         Mark 'utime' obsolete.
45007         * modules/utime (Status, Notice): New sections.
45008         Suggested by Jim Meyering.
45009
45010         Fix cross-compile guess for utime test.
45011         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45012         autoconf.
45013         * doc/posix-functions/utime.texi: Give more precisions.
45014         Reported by Jan <ipif@ymail.com>.
45015
45016 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45017
45018         filevercmp: correct today's change
45019         * lib/filevercmp.c: Also handle coreutils' test inputs.
45020         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45021
45022         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45023         for reporting it.
45024         * lib/filevercmp.c: Special handle for "", "." and "..".
45025         * tests/test-filevercmp.c: Enlarge the set suite.
45026
45027 2009-04-07  Jim Meyering  <meyering@redhat.com>
45028
45029         useless-if-before-free: show how to remove braced useless free, too
45030         * build-aux/useless-if-before-free: still only in a comment, though.
45031
45032 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45033
45034         maint.mk: import changes to syntax-check macros from coreutils
45035         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45036         Use them in the relevant macros.
45037
45038 2009-04-06  Bruno Haible  <bruno@clisp.org>
45039
45040         Fix unportable use of bit-fields.
45041         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45042         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45043         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45044
45045 2009-04-06  Bruno Haible  <bruno@clisp.org>
45046
45047         Avoid test failures on AIX and OSF/1.
45048         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45049         that malloc(0) = NULL.
45050         * tests/unicase/test-u8-tolower.c (check): Likewise.
45051         * tests/unicase/test-u8-totitle.c (check): Likewise.
45052         * tests/unicase/test-u8-toupper.c (check): Likewise.
45053         * tests/unicase/test-u16-casefold.c (check): Likewise.
45054         * tests/unicase/test-u16-tolower.c (check): Likewise.
45055         * tests/unicase/test-u16-totitle.c (check): Likewise.
45056         * tests/unicase/test-u16-toupper.c (check): Likewise.
45057         * tests/unicase/test-u32-casefold.c (check): Likewise.
45058         * tests/unicase/test-u32-tolower.c (check): Likewise.
45059         * tests/unicase/test-u32-totitle.c (check): Likewise.
45060         * tests/unicase/test-u32-toupper.c (check): Likewise.
45061         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45062         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45063         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45064         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45065         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45066         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45067         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45068         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45069         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45070         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45071         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45072         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45073
45074 2009-04-05  Bruno Haible  <bruno@clisp.org>
45075
45076         Work around an autoconf limitation.
45077         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45078         comment line if it would be longer than 3 KB.
45079
45080 2009-04-05  Bruno Haible  <bruno@clisp.org>
45081
45082         Avoid test failure with libiconv-1.13.
45083         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45084         of the expected test results.
45085
45086 2009-04-05  Bruno Haible  <bruno@clisp.org>
45087
45088         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45089         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45090         that it should be installed.
45091
45092 2009-04-05  Bruno Haible  <bruno@clisp.org>
45093
45094         * gnulib-tool: New option --copy-file.
45095         (func_usage): Document it.
45096         (func_dest_tmpfilename): Moved out of func_import.
45097         (func_add_file, func_update_file): New functions, extracted from
45098         func_import.
45099         (func_import): Update.
45100
45101 2009-04-05  Karl Berry  <karl@gnu.org>
45102
45103         * README: prominently mention gnulib-tool.
45104         Rearrange sections so getting the code is near the top.
45105
45106 2009-04-05  Bruno Haible  <bruno@clisp.org>
45107
45108         * lib/unicase.h: Mention u*_cmp2.
45109         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45110         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45111         * lib/unicase/ulc-casecmp.c: Likewise.
45112         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45113         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45114         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45115         unistr/u8-cmp.
45116         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45117         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45118         unistr/u16-cmp.
45119         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45120         unistr/u32-cmp.
45121
45122         * lib/uninorm.h: Mention u*_cmp2.
45123         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45124         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45125         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45126         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45127         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45128         unistr/u8-cmp.
45129         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45130         unistr/u16-cmp.
45131         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45132         unistr/u32-cmp.
45133
45134         New module 'unistr/u32-cmp2'.
45135         * lib/unistr/u32-cmp2.c: New file.
45136         * modules/unistr/u32-cmp2: New file.
45137
45138         New module 'unistr/u16-cmp2'.
45139         * lib/unistr/u16-cmp2.c: New file.
45140         * modules/unistr/u16-cmp2: New file.
45141
45142         New module 'unistr/u8-cmp2'.
45143         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45144         * lib/unistr/u8-cmp2.c: New file.
45145         * lib/unistr/u-cmp2.h: New file.
45146         * modules/unistr/u8-cmp2: New file.
45147
45148 2009-04-05  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/unictype.h (uc_property_is_valid): New macro.
45151         * tests/unictype/test-pr_byname.c (main): Use it.
45152
45153         * lib/unistr.h: Doc fixes.
45154         * lib/uniconv.h: Doc fixes.
45155         * lib/unictype.h: Doc fixes.
45156
45157 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45158
45159         Port coreutils 7.2 to Solaris 8.
45160
45161         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45162         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45163         for Solaris 8.  This is a bit of a hack, as it means it's the
45164         caller's responsibility to add -lnsl if needed, but most likely it
45165         won't be needed since only getaddrinfo uses this and getaddrinfo
45166         isn't needed on Solaris 8.
45167
45168         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45169         problem to Solaris 8 encountered with coreutils 7.2, which
45170         resulted in a message "fnmatch.c:292: warning: passing argument 4
45171         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45172         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45173
45174 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45175
45176         * m4/ld-version-script.m4: Add FIXME comment.
45177
45178 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45179
45180         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45181         SOVERSION variable.
45182
45183 2009-04-02  Bruno Haible  <bruno@clisp.org>
45184
45185         * Makefile (info, html, dvi, pdf): Combine the rules.
45186         Suggested by Jim Meyering.
45187
45188 2009-04-01  Bruno Haible  <bruno@clisp.org>
45189
45190         * Makefile (info, html, dvi, pdf): New targets.
45191         Reported by Reuben Thomas <rrt@sc3d.org>.
45192
45193 2009-04-01  Bruno Haible  <bruno@clisp.org>
45194
45195         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45196         can be put into PATH.
45197         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45198
45199 2009-04-01  Bruno Haible  <bruno@clisp.org>
45200
45201         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45202
45203 2009-04-01  Bruno Haible  <bruno@clisp.org>
45204
45205         Rename module 'visibility'.
45206         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45207         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45208         * doc/gnulib.texi: Update.
45209         * MODULES.html.sh (Misc): Update.
45210         * NEWS: Mention the change.
45211
45212 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45213
45214         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45215         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45216         Eric Blake <ebb9@byu.net> for review.
45217         * MODULES.html.sh: Add lib-msvc-compat.
45218         * doc/gnulib.texi: Link to new section.
45219         * m4/ld-output-def.m4: New file.
45220         * doc/ld-output-def.texi: New file.
45221
45222 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45223
45224         Rename ld-version-script to lib-symbol-versions.  Suggested by
45225         Bruno Haible <bruno@clisp.org>.
45226         * modules/ld-version-script: Renamed to lib-symbol-versions.
45227         * doc/ld-version-script.texi: Fix module name.
45228         * MODULES.html.sh: Add lib-symbol-versions.
45229
45230 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45231
45232         * modules/u64-tests: New file.
45233         * tests/test-u64.c: New file.
45234
45235 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45236
45237         * MODULES.html.sh: Mention u64.
45238         * modules/u64: New module.
45239         * modules/crypto/sha512: Depend on u64 module instead of providing
45240         u64.h.
45241
45242 2009-03-27  Eric Blake  <ebb9@byu.net>
45243
45244         test-strerror: make debugging EAI_SYSTEM easier
45245         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45246         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45247         failure was EAI_SYSTEM.
45248
45249 2009-03-25  Bruno Haible  <bruno@clisp.org>
45250
45251         Fix a problem with --enable-relocatable on Solaris 7.
45252         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45253         since 2008-02-24.
45254
45255 2009-03-25  Eric Blake  <ebb9@byu.net>
45256
45257         test-sockets: avoid gcc warning
45258         * tests/test-sockets.c (main): Silence compiler warning.
45259
45260 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45261
45262         New modules nproc, pthread, contributed by Glen Lenker.
45263
45264         * MODULES.html.sh: Add pthread, nproc.
45265         * lib/nproc.c: New file.
45266         * lib/nproc.h: New file.
45267         * lib/pthread.in.h: New file.
45268         * m4/pthread.m4: New file.
45269         * modules/nproc: New file.
45270         * modules/pthread: New file.
45271
45272 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45273
45274         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45275         New variable.
45276
45277 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45278
45279         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45280         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45281         * tests/test-filevercmp.c: Add tests for backup suffixes.
45282
45283 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45284
45285         * modules/stdlib (Depends-on): Add stdint, needed when defining
45286         struct random_data on, for example, HP-UX 10.20.  Reported by
45287         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45288
45289 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45290
45291         * lib/readline.c (readline): Call fflush on stdout after printing
45292         prompt.
45293
45294 2009-03-20  Bruno Haible  <bruno@clisp.org>
45295
45296         Remove dependency from 'close' module to -lws2_32 on native Windows.
45297         * lib/close-hook.h: New file.
45298         * lib/close-hook.c: New file.
45299         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45300         w32sock.h.
45301         (_gl_close_fd_maybe_socket): Remove function.
45302         (rpl_close): Invoke execute_all_close_hooks instead of
45303         _gl_close_fd_maybe_socket.
45304         * lib/sockets.c: Include close-hook.h, w32sock.h.
45305         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45306         (close_sockets_hook): New variable.
45307         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45308         (gl_sockets_cleanup): Unregister it.
45309         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45310         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45311         * modules/close-hook: New file.
45312         * modules/close (Files): Remove lib/w32sock.h.
45313         (Depends-on): Add close-hook.
45314         (Link): Remove section.
45315         * modules/sockets (Files): Add lib/w32sock.h.
45316         (Depends-on): Add close-hook.
45317         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45318         invocation.
45319         * NEWS: Mention that LIB_CLOSE is gone.
45320
45321 2009-03-23  Eric Blake  <ebb9@byu.net>
45322
45323         signal-tests: test previous patch
45324         * tests/test-signal.c: New file.
45325         * modules/signal-tests: Likewise.
45326
45327         signal.h: always support 'volatile sig_atomic_t'
45328         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45329         (gl_SIGNAL_H_DEFAULTS): Add a default.
45330         * modules/signal (Makefile.am): Substitute if needed.
45331         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45332         users can blindly add volatile.
45333         * doc/posix-headers/signal.texi (signal.h): Document it.
45334         Reported by Matthew Woehlke.
45335
45336 2009-03-23  Jim Meyering  <meyering@redhat.com>
45337
45338         pathmax: PATH_MAX: use pathconf only when available
45339         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45340         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45341         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45342         This avoids a link failure in a PSP cross-compilation environment
45343         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45344
45345         * lib/vasnprintf.c (divide): Fix typo in comment.
45346
45347 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45348
45349         * gnulib-tool (func_filter_filelist): Fix comment.
45350
45351 2009-03-20  Bruno Haible  <bruno@clisp.org>
45352
45353         Make sockets.h self-contained.
45354         * lib/sockets.c: Include sockets.h first.
45355         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45356
45357 2009-03-19  Eric Blake  <ebb9@byu.net>
45358
45359         doc: mention more functions added in cygwin 1.7.0
45360         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45361         addition.
45362         * doc/posix-functions/log2f.texi: Likewise.
45363
45364 2009-03-19  Jim Meyering  <meyering@redhat.com>
45365
45366         fsusage: avoid syntax error due to statement-before-declaration
45367         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45368         after all declarations.  Reported by Matthew Woehlke in
45369         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45370
45371 2009-03-18  Eric Blake  <ebb9@byu.net>
45372
45373         build-aux/compile: sync from automake
45374         * build-aux/compile: New file, from automake.
45375         * config/srclist.txt: Mention build-aux/compile.
45376
45377 2009-03-17  Bruno Haible  <bruno@clisp.org>
45378
45379         * lib/git-merge-changelog.c: Fix typo in comment.
45380         Reported by Reuben Thomas <rrt@sc3d.org>.
45381
45382 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45383
45384         * m4/regex.m4: update and improve help for
45385         --without-included-regex.
45386
45387 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45388
45389         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45390         failure on missing include files.
45391
45392 2009-03-17  Eric Blake  <ebb9@byu.net>
45393
45394         doc: mention more functions added in cygwin 1.7.0
45395         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45396         addition.
45397         * doc/posix-functions/fwscanf.texi: Likewise.
45398         * doc/posix-functions/swprintf.texi: Likewise.
45399         * doc/posix-functions/swscanf.texi: Likewise.
45400         * doc/posix-functions/vfwprintf.texi: Likewise.
45401         * doc/posix-functions/vfwscanf.texi: Likewise.
45402         * doc/posix-functions/vswprintf.texi: Likewise.
45403         * doc/posix-functions/vswscanf.texi: Likewise.
45404         * doc/posix-functions/vwprintf.texi: Likewise.
45405         * doc/posix-functions/vwscanf.texi: Likewise.
45406         * doc/posix-functions/wcscasecmp.texi: Likewise.
45407         * doc/posix-functions/wcsdup.texi: Likewise.
45408         * doc/posix-functions/wcsftime.texi: Likewise.
45409         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45410         * doc/posix-functions/wprintf.texi: Likewise.
45411         * doc/posix-functions/wscanf.texi: Likewise.
45412         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45413
45414 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45415
45416         maint.mk: really add $(AM_MAKEFLAGS)
45417         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45418         was inadvertently omitted in the last commit.
45419         Spotted by Bruno Haible.
45420
45421         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45422         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45423         $(AM_MAKEFLAGS)' rather than plain `make'.
45424
45425         gnulib-tool: execute $MAKE not make
45426         * gnulib-tool: Default $MAKE to 'make'.
45427         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45428         than make.  Initialize $MAKE in the do-autobuild script.
45429
45430         gnulib-tool: use $MAKE not make in generated files
45431         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45432         make, in generated files.  Initialize $MAKE in the do-autobuild
45433         script.
45434
45435         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45436
45437         GNUmakefile: disable parallelism only for multiple, recursive targets
45438         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45439         additions in the Makefile.
45440         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45441         by Automake.
45442         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45443         are listed on the command line and at least one of them is
45444         listed in $(ALL_RECURSIVE_TARGETS).
45445
45446 2009-03-14  Bruno Haible  <bruno@clisp.org>
45447
45448         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45449         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45450         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45451         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45452         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45453         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45454         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45455         unistr/u8-uctomb.
45456         * modules/unistr/u8-strchr (Depends-on): Likewise.
45457         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45458         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45459         unistr/u16-uctomb.
45460         * modules/unistr/u16-strchr (Depends-on): Likewise.
45461         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45462
45463 2009-03-12  Bruno Haible  <bruno@clisp.org>
45464
45465         Work around select() bug on Interix 3.5.
45466         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45467         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45468         * m4/select.m4: New file.
45469         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45470         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45471         * modules/select (Files): Add m4/select.m4.
45472         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45473         * modules/nanosleep (Depends-on): Add select.
45474         * modules/poll (Depends-on): Likewise.
45475         * doc/posix-functions/select.texi: Mention the Interix bug.
45476         Reported by Markus Duft <mduft@gentoo.org>.
45477
45478         * lib/select.c: Renamed from lib/winsock-select.c.
45479         * modules/select (Files): Add lib/select.c, remove
45480         lib/winsock-select.c.
45481         (configure.ac): Update.
45482
45483 2009-03-12  Jim Meyering  <meyering@redhat.com>
45484
45485         avoid gcc warnings about unused macro definitions
45486         * lib/readtokens.c (STREQ): Remove unused definition.
45487         * lib/xmalloc.c (SIZE_MAX): Likewise.
45488         * lib/openat-die.c (N_): Likewise.
45489         * lib/mountlist.c (SIZE_MAX): Remove definition.
45490         Instead, include <stdint.h>.
45491         * lib/readutmp.c: Likewise.
45492         * modules/readutmp (Depends-on): Add stdint.
45493         * modules/mountlist (Depends-on): Add stdint.
45494         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45495
45496 2009-03-10  Bruno Haible  <bruno@clisp.org>
45497
45498         Tests for module 'mbmemcasecoll'.
45499         * modules/mbmemcasecoll-tests: New file.
45500         * tests/test-mbmemcasecoll1.sh: New file.
45501         * tests/test-mbmemcasecoll2.sh: New file.
45502         * tests/test-mbmemcasecoll3.sh: New file.
45503         * tests/test-mbmemcasecoll.c: New file.
45504
45505         New module 'mbmemcasecoll'.
45506         * lib/mbmemcasecoll.h: New file.
45507         * lib/mbmemcasecoll.c: New file.
45508         * modules/mbmemcasecoll: New file.
45509
45510         * tests/test-mbmemcasecmp.h: New file, extracted from
45511         tests/test-mbmemcasecmp.c.
45512         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45513         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45514         (main): Update.
45515         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45516
45517 2009-03-09  Bruno Haible  <bruno@clisp.org>
45518
45519         Tests for module 'mbmemcasecmp'.
45520         * modules/mbmemcasecmp-tests: New file.
45521         * tests/test-mbmemcasecmp1.sh: New file.
45522         * tests/test-mbmemcasecmp2.sh: New file.
45523         * tests/test-mbmemcasecmp3.sh: New file.
45524         * tests/test-mbmemcasecmp.c: New file.
45525
45526         New module 'mbmemcasecmp'.
45527         * lib/mbmemcasecmp.h: New file.
45528         * lib/mbmemcasecmp.c: New file.
45529         * modules/mbmemcasecmp: New file.
45530
45531 2009-03-09  Bruno Haible  <bruno@clisp.org>
45532
45533         Tests for module 'unicase/ulc-casecoll'.
45534         * modules/unicase/ulc-casecoll-tests: New file.
45535         * tests/unicase/test-ulc-casecoll1.sh: New file.
45536         * tests/unicase/test-ulc-casecoll2.sh: New file.
45537         * tests/unicase/test-ulc-casecoll.c: New file.
45538
45539         New module 'unicase/ulc-casecoll'.
45540         * lib/unicase.h (ulc_casecoll): New declaration.
45541         * lib/unicase/ulc-casecoll.c: New file.
45542         * modules/unicase/ulc-casecoll: New file.
45543
45544         New module 'unicase/ulc-casexfrm'.
45545         * lib/unicase.h (ulc_casexfrm): New declaration.
45546         * lib/unicase/ulc-casexfrm.c: New file.
45547         * modules/unicase/ulc-casexfrm: New file.
45548
45549 2009-03-09  Bruno Haible  <bruno@clisp.org>
45550
45551         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45552         invocations.
45553
45554         * m4/mbscasecmp.m4: Remove file.
45555         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45556         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45557
45558         * m4/mbscasestr.m4: Remove file.
45559         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45560         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45561
45562         * m4/mbschr.m4: Remove file.
45563         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45564         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45565
45566         * m4/mbscspn.m4: Remove file.
45567         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45568         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45569
45570         * m4/mbslen.m4: Remove file.
45571         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45572         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45573
45574         * m4/mbsncasecmp.m4: Remove file.
45575         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45576         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45577
45578         * m4/mbsnlen.m4: Remove file.
45579         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45580         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45581
45582         * m4/mbspbrk.m4: Remove file.
45583         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45584         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45585
45586         * m4/mbspcasecmp.m4: Remove file.
45587         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45588         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45589
45590         * m4/mbsrchr.m4: Remove file.
45591         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45592         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45593
45594         * m4/mbssep.m4: Remove file.
45595         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45596         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45597
45598         * m4/mbsspn.m4: Remove file.
45599         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45600         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45601
45602         * m4/mbsstr.m4: Remove file.
45603         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45604         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45605
45606         * m4/mbstok_r.m4: Remove file.
45607         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45608         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45609
45610         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45611
45612         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45613         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45614
45615         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45616
45617 2009-03-08  Bruno Haible  <bruno@clisp.org>
45618
45619         Tests for module 'unicase/ulc-casecmp'.
45620         * modules/unicase/ulc-casecmp-tests: New file.
45621         * tests/unicase/test-ulc-casecmp1.sh: New file.
45622         * tests/unicase/test-ulc-casecmp2.sh: New file.
45623         * tests/unicase/test-ulc-casecmp.c: New file.
45624
45625         New module 'unicase/ulc-casecmp'.
45626         * lib/unicase.h (ulc_casecmp): New declaration.
45627         * lib/unicase/ulc-casecmp.c: New file.
45628         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45629         'const SRC_UNIT *'.
45630         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45631         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45632         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45633         * modules/unicase/ulc-casecmp: New file.
45634
45635         Tests for module 'unicase/u32-is-cased'.
45636         * modules/unicase/u32-is-cased-tests: New file.
45637         * tests/unicase/test-u32-is-cased.c: New file.
45638
45639         Tests for module 'unicase/u16-is-cased'.
45640         * modules/unicase/u16-is-cased-tests: New file.
45641         * tests/unicase/test-u16-is-cased.c: New file.
45642
45643         Tests for module 'unicase/u8-is-cased'.
45644         * modules/unicase/u8-is-cased-tests: New file.
45645         * tests/unicase/test-u8-is-cased.c: New file.
45646         * tests/unicase/test-is-cased.h: New file.
45647
45648         New module 'unicase/u32-is-cased'.
45649         * lib/unicase/u32-is-cased.c: New file.
45650         * modules/unicase/u32-is-cased: New file.
45651
45652         New module 'unicase/u16-is-cased'.
45653         * lib/unicase/u16-is-cased.c: New file.
45654         * modules/unicase/u16-is-cased: New file.
45655
45656         New module 'unicase/u8-is-cased'.
45657         * lib/unicase/u8-is-cased.c: New file.
45658         * lib/unicase/u-is-cased.h: New file.
45659         * modules/unicase/u8-is-cased: New file.
45660
45661         Tests for module 'unicase/u32-is-casefolded'.
45662         * modules/unicase/u32-is-casefolded-tests: New file.
45663         * tests/unicase/test-u32-is-casefolded.c: New file.
45664
45665         Tests for module 'unicase/u16-is-casefolded'.
45666         * modules/unicase/u16-is-casefolded-tests: New file.
45667         * tests/unicase/test-u16-is-casefolded.c: New file.
45668
45669         Tests for module 'unicase/u8-is-casefolded'.
45670         * modules/unicase/u8-is-casefolded-tests: New file.
45671         * tests/unicase/test-u8-is-casefolded.c: New file.
45672         * tests/unicase/test-is-casefolded.h: New file.
45673
45674         New module 'unicase/u32-is-casefolded'.
45675         * lib/unicase/u32-is-casefolded.c: New file.
45676         * modules/unicase/u32-is-casefolded: New file.
45677
45678         New module 'unicase/u16-is-casefolded'.
45679         * lib/unicase/u16-is-casefolded.c: New file.
45680         * modules/unicase/u16-is-casefolded: New file.
45681
45682         New module 'unicase/u8-is-casefolded'.
45683         * lib/unicase/u8-is-casefolded.c: New file.
45684         * modules/unicase/u8-is-casefolded: New file.
45685
45686         Tests for module 'unicase/u32-is-titlecase'.
45687         * modules/unicase/u32-is-titlecase-tests: New file.
45688         * tests/unicase/test-u32-is-titlecase.c: New file.
45689
45690         Tests for module 'unicase/u16-is-titlecase'.
45691         * modules/unicase/u16-is-titlecase-tests: New file.
45692         * tests/unicase/test-u16-is-titlecase.c: New file.
45693
45694         Tests for module 'unicase/u8-is-titlecase'.
45695         * modules/unicase/u8-is-titlecase-tests: New file.
45696         * tests/unicase/test-u8-is-titlecase.c: New file.
45697         * tests/unicase/test-is-titlecase.h: New file.
45698
45699         New module 'unicase/u32-is-titlecase'.
45700         * lib/unicase/u32-is-titlecase.c: New file.
45701         * modules/unicase/u32-is-titlecase: New file.
45702
45703         New module 'unicase/u16-is-titlecase'.
45704         * lib/unicase/u16-is-titlecase.c: New file.
45705         * modules/unicase/u16-is-titlecase: New file.
45706
45707         New module 'unicase/u8-is-titlecase'.
45708         * lib/unicase/u8-is-titlecase.c: New file.
45709         * modules/unicase/u8-is-titlecase: New file.
45710
45711         Tests for module 'unicase/u32-is-lowercase'.
45712         * modules/unicase/u32-is-lowercase-tests: New file.
45713         * tests/unicase/test-u32-is-lowercase.c: New file.
45714
45715         Tests for module 'unicase/u16-is-lowercase'.
45716         * modules/unicase/u16-is-lowercase-tests: New file.
45717         * tests/unicase/test-u16-is-lowercase.c: New file.
45718
45719         Tests for module 'unicase/u8-is-lowercase'.
45720         * modules/unicase/u8-is-lowercase-tests: New file.
45721         * tests/unicase/test-u8-is-lowercase.c: New file.
45722         * tests/unicase/test-is-lowercase.h: New file.
45723
45724         New module 'unicase/u32-is-lowercase'.
45725         * lib/unicase/u32-is-lowercase.c: New file.
45726         * modules/unicase/u32-is-lowercase: New file.
45727
45728         New module 'unicase/u16-is-lowercase'.
45729         * lib/unicase/u16-is-lowercase.c: New file.
45730         * modules/unicase/u16-is-lowercase: New file.
45731
45732         New module 'unicase/u8-is-lowercase'.
45733         * lib/unicase/u8-is-lowercase.c: New file.
45734         * modules/unicase/u8-is-lowercase: New file.
45735
45736         Tests for module 'unicase/u32-is-uppercase'.
45737         * modules/unicase/u32-is-uppercase-tests: New file.
45738         * tests/unicase/test-u32-is-uppercase.c: New file.
45739
45740         Tests for module 'unicase/u16-is-uppercase'.
45741         * modules/unicase/u16-is-uppercase-tests: New file.
45742         * tests/unicase/test-u16-is-uppercase.c: New file.
45743
45744         Tests for module 'unicase/u8-is-uppercase'.
45745         * modules/unicase/u8-is-uppercase-tests: New file.
45746         * tests/unicase/test-u8-is-uppercase.c: New file.
45747         * tests/unicase/test-is-uppercase.h: New file.
45748
45749         New module 'unicase/u32-is-uppercase'.
45750         * lib/unicase/u32-is-uppercase.c: New file.
45751         * modules/unicase/u32-is-uppercase: New file.
45752
45753         New module 'unicase/u16-is-uppercase'.
45754         * lib/unicase/u16-is-uppercase.c: New file.
45755         * modules/unicase/u16-is-uppercase: New file.
45756
45757         New module 'unicase/u8-is-uppercase'.
45758         * lib/unicase/u8-is-uppercase.c: New file.
45759         * modules/unicase/u8-is-uppercase: New file.
45760
45761         New module 'unicase/u32-is-invariant'.
45762         * lib/unicase/u32-is-invariant.c: New file.
45763         * modules/unicase/u32-is-invariant: New file.
45764
45765         New module 'unicase/u16-is-invariant'.
45766         * lib/unicase/u16-is-invariant.c: New file.
45767         * modules/unicase/u16-is-invariant: New file.
45768
45769         New module 'unicase/u8-is-invariant'.
45770         * lib/unicase/u8-is-invariant.c: New file.
45771         * lib/unicase/invariant.h: New file.
45772         * lib/unicase/u-is-invariant.h: New file.
45773         * modules/unicase/u8-is-invariant: New file.
45774
45775         Tests for module 'unicase/u32-casecoll'.
45776         * modules/unicase/u32-casecoll-tests: New file.
45777         * tests/unicase/test-u32-casecoll.c: New file.
45778
45779         Tests for module 'unicase/u16-casecoll'.
45780         * modules/unicase/u16-casecoll-tests: New file.
45781         * tests/unicase/test-u16-casecoll.c: New file.
45782
45783         Tests for module 'unicase/u8-casecoll'.
45784         * modules/unicase/u8-casecoll-tests: New file.
45785         * tests/unicase/test-u8-casecoll.c: New file.
45786
45787         New module 'unicase/u32-casecoll'.
45788         * lib/unicase/u32-casecoll.c: New file.
45789         * modules/unicase/u32-casecoll: New file.
45790
45791         New module 'unicase/u16-casecoll'.
45792         * lib/unicase/u16-casecoll.c: New file.
45793         * modules/unicase/u16-casecoll: New file.
45794
45795         New module 'unicase/u8-casecoll'.
45796         * lib/unicase/u8-casecoll.c: New file.
45797         * lib/unicase/u-casecoll.h: New file.
45798         * modules/unicase/u8-casecoll: New file.
45799
45800         New module 'unicase/u32-casexfrm'.
45801         * lib/unicase/u32-casexfrm.c: New file.
45802         * modules/unicase/u32-casexfrm: New file.
45803
45804         New module 'unicase/u16-casexfrm'.
45805         * lib/unicase/u16-casexfrm.c: New file.
45806         * modules/unicase/u16-casexfrm: New file.
45807
45808         New module 'unicase/u8-casexfrm'.
45809         * lib/unicase/u8-casexfrm.c: New file.
45810         * lib/unicase/u-casexfrm.h: New file.
45811         * modules/unicase/u8-casexfrm: New file.
45812
45813         Tests for module 'unicase/u32-casecmp'.
45814         * modules/unicase/u32-casecmp-tests: New file.
45815         * tests/unicase/test-u32-casecmp.c: New file.
45816
45817         Tests for module 'unicase/u16-casecmp'.
45818         * modules/unicase/u16-casecmp-tests: New file.
45819         * tests/unicase/test-u16-casecmp.c: New file.
45820
45821         Tests for module 'unicase/u8-casecmp'.
45822         * modules/unicase/u8-casecmp-tests: New file.
45823         * tests/unicase/test-u8-casecmp.c: New file.
45824         * tests/unicase/test-casecmp.h: New file.
45825
45826         New module 'unicase/u32-casecmp'.
45827         * lib/unicase/u32-casecmp.c: New file.
45828         * modules/unicase/u32-casecmp: New file.
45829
45830         New module 'unicase/u16-casecmp'.
45831         * lib/unicase/u16-casecmp.c: New file.
45832         * modules/unicase/u16-casecmp: New file.
45833
45834         New module 'unicase/u8-casecmp'.
45835         * lib/unicase/u8-casecmp.c: New file.
45836         * lib/unicase/u-casecmp.h: New file.
45837         * modules/unicase/u8-casecmp: New file.
45838
45839         Tests for module 'unicase/u32-casefold'.
45840         * modules/unicase/u32-casefold-tests: New file.
45841         * tests/unicase/test-u32-casefold.c: New file.
45842
45843         Tests for module 'unicase/u16-casefold'.
45844         * modules/unicase/u16-casefold-tests: New file.
45845         * tests/unicase/test-u16-casefold.c: New file.
45846
45847         Tests for module 'unicase/u8-casefold'.
45848         * modules/unicase/u8-casefold-tests: New file.
45849         * tests/unicase/test-u8-casefold.c: New file.
45850
45851         New module 'unicase/u32-casefold'.
45852         * lib/unicase/u32-casefold.c: New file.
45853         * modules/unicase/u32-casefold: New file.
45854
45855         New module 'unicase/u16-casefold'.
45856         * lib/unicase/u16-casefold.c: New file.
45857         * modules/unicase/u16-casefold: New file.
45858
45859         New module 'unicase/u8-casefold'.
45860         * lib/unicase/u8-casefold.c: New file.
45861         * lib/unicase/u-casefold.h: New file.
45862         * modules/unicase/u8-casefold: New file.
45863
45864         New module 'unicase/tocasefold'.
45865         * lib/unicase/casefold.h: New file.
45866         * lib/unicase/tocasefold.c: New file.
45867         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45868         * modules/unicase/tocasefold: New file.
45869
45870         Tests for module 'unicase/u32-totitle'.
45871         * modules/unicase/u32-totitle-tests: New file.
45872         * tests/unicase/test-u32-totitle.c: New file.
45873
45874         Tests for module 'unicase/u16-totitle'.
45875         * modules/unicase/u16-totitle-tests: New file.
45876         * tests/unicase/test-u16-totitle.c: New file.
45877
45878         Tests for module 'unicase/u8-totitle'.
45879         * modules/unicase/u8-totitle-tests: New file.
45880         * tests/unicase/test-u8-totitle.c: New file.
45881
45882         New module 'unicase/u32-totitle'.
45883         * lib/unicase/u32-totitle.c: New file.
45884         * modules/unicase/u32-totitle: New file.
45885
45886         New module 'unicase/u16-totitle'.
45887         * lib/unicase/u16-totitle.c: New file.
45888         * modules/unicase/u16-totitle: New file.
45889
45890         New module 'unicase/u8-totitle'.
45891         * lib/unicase/u8-totitle.c: New file.
45892         * lib/unicase/u-totitle.h: New file.
45893         * modules/unicase/u8-totitle: New file.
45894
45895         Tests for module 'unicase/u32-tolower'.
45896         * modules/unicase/u32-tolower-tests: New file.
45897         * tests/unicase/test-u32-tolower.c: New file.
45898
45899         Tests for module 'unicase/u16-tolower'.
45900         * modules/unicase/u16-tolower-tests: New file.
45901         * tests/unicase/test-u16-tolower.c: New file.
45902
45903         Tests for module 'unicase/u8-tolower'.
45904         * modules/unicase/u8-tolower-tests: New file.
45905         * tests/unicase/test-u8-tolower.c: New file.
45906
45907         New module 'unicase/u32-tolower'.
45908         * lib/unicase/u32-tolower.c: New file.
45909         * modules/unicase/u32-tolower: New file.
45910
45911         New module 'unicase/u16-tolower'.
45912         * lib/unicase/u16-tolower.c: New file.
45913         * modules/unicase/u16-tolower: New file.
45914
45915         New module 'unicase/u8-tolower'.
45916         * lib/unicase/u8-tolower.c: New file.
45917         * modules/unicase/u8-tolower: New file.
45918
45919         Tests for module 'unicase/u32-toupper'.
45920         * modules/unicase/u32-toupper-tests: New file.
45921         * tests/unicase/test-u32-toupper.c: New file.
45922
45923         Tests for module 'unicase/u16-toupper'.
45924         * modules/unicase/u16-toupper-tests: New file.
45925         * tests/unicase/test-u16-toupper.c: New file.
45926
45927         Tests for module 'unicase/u8-toupper'.
45928         * modules/unicase/u8-toupper-tests: New file.
45929         * tests/unicase/test-u8-toupper.c: New file.
45930
45931         New module 'unicase/u32-toupper'.
45932         * lib/unicase/u32-toupper.c: New file.
45933         * modules/unicase/u32-toupper: New file.
45934
45935         New module 'unicase/u16-toupper'.
45936         * lib/unicase/u16-toupper.c: New file.
45937         * modules/unicase/u16-toupper: New file.
45938
45939         New module 'unicase/u8-toupper'.
45940         * lib/unicase/u8-toupper.c: New file.
45941         * modules/unicase/u8-toupper: New file.
45942
45943         New module 'unicase/u32-casemap'.
45944         * lib/unicase/u32-casemap.c: New file.
45945         * modules/unicase/u32-casemap: New file.
45946
45947         New module 'unicase/u16-casemap'.
45948         * lib/unicase/u16-casemap.c: New file.
45949         * modules/unicase/u16-casemap: New file.
45950
45951         New module 'unicase/u8-casemap'.
45952         * lib/unicase/unicasemap.h: New file.
45953         * lib/unicase/u8-casemap.c: New file.
45954         * lib/unicase/u-casemap.h: New file.
45955         * modules/unicase/u8-casemap: New file.
45956
45957         New module 'unicase/special-casing'.
45958         * lib/unicase/special-casing.h: New file.
45959         * lib/unicase/special-casing.c: New file.
45960         * lib/unicase/special-casing-table.gperf: New file, generated by
45961         gen-uni-tables.c.
45962         * modules/unicase/special-casing: New file.
45963
45964         Tests for module 'unicase/locale-language'.
45965         * modules/unicase/locale-language-tests: New file.
45966         * tests/unicase/test-locale-language.sh: New file.
45967         * tests/unicase/test-locale-language.c: New file.
45968
45969         New module 'unicase/locale-language'.
45970         * lib/unicase/locale-language.c: New file.
45971         * lib/unicase/locale-languages.gperf: New file.
45972         * modules/unicase/locale-language: New file.
45973
45974         Generate more tables for case conversion and case folding.
45975         * lib/gen-uni-tables.c (SCC_*): New enum items.
45976         (struct special_casing_rule): New type.
45977         (casing_rules, num_casing_rules, allocated_casing_rules): New
45978         variables.
45979         (add_casing_rule, fill_casing_rules): New functions.
45980         (struct casefold_rule): New type.
45981         (casefolding_rules, num_casefolding_rules,
45982         allocated_casefolding_rules): New variables.
45983         (fill_casefolding_rules): New function.
45984         (unicode_casefold): New variable.
45985         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45986         sort_casing_rules, output_casing_rules): New functions.
45987         (main): Accept to more arguments: SpecialCasing.txt and
45988         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45989         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45990         Output mapping for casefolding.
45991
45992         * lib/unicase.h: Include stdbool.h, uninorm.h.
45993         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45994         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45995         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45996         arguments.
45997         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45998         resultp arguments.
45999         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46000         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46001         resultp arguments.
46002         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46003         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46004         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46005         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46006         declarations.
46007         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46008
46009 2009-03-08  Bruno Haible  <bruno@clisp.org>
46010
46011         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46012         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46013         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46014         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46015
46016 2009-03-07  Bruno Haible  <bruno@clisp.org>
46017
46018         Adjust u*_normcmp, u*_normcoll API.
46019         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46020         u16_normcoll, u32_normcoll): Change failure conventions.
46021         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46022         errno and return -1.
46023         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46024
46025 2009-03-07  Bruno Haible  <bruno@clisp.org>
46026
46027         Tests for module 'uninorm/u32-normcoll'.
46028         * modules/uninorm/u32-normcoll-tests: New file.
46029         * tests/uninorm/test-u32-normcoll.c: New file.
46030
46031         Tests for module 'uninorm/u16-normcoll'.
46032         * modules/uninorm/u16-normcoll-tests: New file.
46033         * tests/uninorm/test-u16-normcoll.c: New file.
46034
46035         Tests for module 'uninorm/u8-normcoll'.
46036         * modules/uninorm/u8-normcoll-tests: New file.
46037         * tests/uninorm/test-u8-normcoll.c: New file.
46038
46039 2009-03-07  Bruno Haible  <bruno@clisp.org>
46040
46041         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46042         tests/uninorm/test-u32-normcmp.c.
46043         * tests/uninorm/test-u32-normcmp.c: Include it.
46044         (test_nonascii): New function, extracted from main. Add some more
46045         tests.
46046         (main): Invoke test_ascii and test_nonascii.
46047         * modules/uninorm/u32-normcmp-tests (Files): Add
46048         tests/uninorm/test-u32-normcmp.h.
46049         (Depends-on): Remove uninorm/u32-normcmp.
46050
46051         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46052         tests/uninorm/test-u16-normcmp.c.
46053         * tests/uninorm/test-u16-normcmp.c: Include it.
46054         (test_nonascii): New function, extracted from main. Add some more
46055         tests.
46056         (main): Invoke test_ascii and test_nonascii.
46057         * modules/uninorm/u16-normcmp-tests (Files): Add
46058         tests/uninorm/test-u16-normcmp.h.
46059         (Depends-on): Remove uninorm/u16-normcmp.
46060
46061         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46062         tests/uninorm/test-u8-normcmp.c.
46063         * tests/uninorm/test-u8-normcmp.c: Include it.
46064         (test_nonascii): New function, extracted from main. Add some more
46065         tests.
46066         (main): Invoke test_ascii and test_nonascii.
46067         * modules/uninorm/u8-normcmp-tests (Files): Add
46068         tests/uninorm/test-u8-normcmp.h.
46069         (Depends-on): Remove uninorm/u8-normcmp.
46070
46071 2009-03-07  Bruno Haible  <bruno@clisp.org>
46072
46073         New module 'uninorm/u32-normcoll'.
46074         * lib/uninorm/u32-normcoll.c: New file.
46075         * modules/uninorm/u32-normcoll: New file.
46076
46077         New module 'uninorm/u16-normcoll'.
46078         * lib/uninorm/u16-normcoll.c: New file.
46079         * modules/uninorm/u16-normcoll: New file.
46080
46081         New module 'uninorm/u8-normcoll'.
46082         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46083         declarations.
46084         * lib/uninorm/u8-normcoll.c: New file.
46085         * lib/uninorm/u-normcoll.h: New file.
46086         * modules/uninorm/u8-normcoll: New file.
46087
46088         New module 'uninorm/u32-normxfrm'.
46089         * lib/uninorm/u32-normxfrm.c: New file.
46090         * modules/uninorm/u32-normxfrm: New file.
46091
46092         New module 'uninorm/u16-normxfrm'.
46093         * lib/uninorm/u16-normxfrm.c: New file.
46094         * modules/uninorm/u16-normxfrm: New file.
46095
46096         New module 'uninorm/u8-normxfrm'.
46097         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46098         declarations.
46099         * lib/uninorm/u8-normxfrm.c: New file.
46100         * lib/uninorm/u-normxfrm.h: New file.
46101         * modules/uninorm/u8-normxfrm: New file.
46102
46103 2009-03-07  Bruno Haible  <bruno@clisp.org>
46104
46105         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46106         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46107         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46108
46109 2009-03-07  Bruno Haible  <bruno@clisp.org>
46110
46111         New module 'memxfrm'.
46112         * lib/memxfrm.h: New file.
46113         * lib/memxfrm.c: New file.
46114         * modules/memxfrm: New file.
46115
46116 2009-03-07  Bruno Haible  <bruno@clisp.org>
46117
46118         New module 'memcmp2'.
46119         * lib/memcmp2.h: New file.
46120         * lib/memcmp2.c: New file.
46121         * modules/memcmp2: New file.
46122
46123 2009-03-07  Bruno Haible  <bruno@clisp.org>
46124
46125         Tests for module 'uninorm/decomposing-form'.
46126         * modules/uninorm/decomposing-form-tests: New file.
46127         * tests/uninorm/test-decomposing-form.c: New file.
46128
46129         New module 'uninorm/decomposing-form'.
46130         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46131         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46132         Add 'decomposing_variant' field.
46133         * lib/uninorm/decomposing-form.c: New file.
46134         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46135         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46136         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46137         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46138         * modules/uninorm/decomposing-form: New file.
46139         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46140         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46141
46142 2009-03-07  Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46145         strings.
46146
46147 2009-03-06  Bruno Haible  <bruno@clisp.org>
46148
46149         Tests for module 'uninorm/u32-normcmp'.
46150         * tests/uninorm/test-u32-normcmp.c: New file.
46151         * modules/uninorm/u32-normcmp-tests: New file.
46152
46153         Tests for module 'uninorm/u16-normcmp'.
46154         * tests/uninorm/test-u16-normcmp.c: New file.
46155         * modules/uninorm/u16-normcmp-tests: New file.
46156
46157         Tests for module 'uninorm/u8-normcmp'.
46158         * tests/uninorm/test-u8-normcmp.c: New file.
46159         * modules/uninorm/u8-normcmp-tests: New file.
46160
46161         New module 'uninorm/u32-normcmp'.
46162         * lib/uninorm/u32-normcmp.c: New file.
46163         * modules/uninorm/u32-normcmp: New file.
46164
46165         New module 'uninorm/u16-normcmp'.
46166         * lib/uninorm/u16-normcmp.c: New file.
46167         * modules/uninorm/u16-normcmp: New file.
46168
46169         New module 'uninorm/u8-normcmp'.
46170         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46171         declarations.
46172         * lib/uninorm/u8-normcmp.c: New file.
46173         * lib/uninorm/u-normcmp.h: New file.
46174         * modules/uninorm/u8-normcmp: New file.
46175
46176 2009-03-06  Bruno Haible  <bruno@clisp.org>
46177
46178         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46179         Reported by Eric Blake.
46180
46181 2009-03-06  Eric Blake  <ebb9@byu.net>
46182             Bruno Haible  <bruno@clisp.org>
46183
46184         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46185         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46186         condition.
46187         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46188         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46189         condition.
46190         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46191
46192 2009-03-06  Eric Blake  <ebb9@byu.net>
46193
46194         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46195         to avoid compiler warnings.
46196         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46197
46198 2009-03-05  Bruno Haible  <bruno@clisp.org>
46199
46200         * tests/test-ftell.c (main): Disable test beyond end of file on
46201         FreeMiNT.
46202         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46203
46204 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46205
46206         * lib/filevercmp.c: Move hidden files up in ordering.
46207         * tests/test-filevercmp.c: Add tests for hidden files.
46208
46209 2009-03-04  Bruno Haible  <bruno@clisp.org>
46210
46211         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46212         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46213         AM_CFLAGS.
46214         Reported by Simon Josefsson.
46215
46216 2009-03-03  Bruno Haible  <bruno@clisp.org>
46217
46218         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46219         Reported by Simon Josefsson.
46220
46221         * doc/ld-version-script.texi: Update node reference.
46222
46223 2009-03-03  Bruno Haible  <bruno@clisp.org>
46224
46225         * modules/visibility (License): Change to 'unlimited'.
46226         Suggested by Simon Josefsson.
46227
46228 2009-03-03  Jim Meyering  <meyering@redhat.com>
46229
46230         unlinkdir: cannot_unlink_dir may modify process state
46231         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46232         it's neither thread-safe nor appropriate for use in a library.
46233
46234 2009-03-03  Eric Blake  <ebb9@byu.net>
46235
46236         test-closein: silence test under Darwin
46237         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46238         care if it dies from EPIPE or EBADF.
46239
46240 2009-03-03  Bruno Haible  <bruno@clisp.org>
46241
46242         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46243         earlier.
46244         * doc/visibility.texi: Fix @node and @section.
46245
46246 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46247
46248         * doc/gnulib.texi: Link to sections for ld version script and
46249         visibility.
46250         * doc/visibility.texi: Add @node and @section.
46251         * modules/ld-version-script: New module.
46252         * m4/ld-version-script.m4: New file.
46253         * doc/ld-version-script.texi: New file.
46254
46255 2009-03-02  David Lutterkort  <lutter@redhat.com>
46256
46257         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46259
46260 2009-03-02  Bruno Haible  <bruno@clisp.org>
46261
46262         * doc/visibility.texi: Mention libtool's -export-symbols option.
46263
46264 2009-03-02  Jim Meyering  <meyering@redhat.com>
46265
46266         announce-gen: new option: --no-print-checksums
46267         * build-aux/announce-gen (usage): Describe it.
46268         (print_checksums): Print a newline here, not in the [*] footnote.
46269         (main): Honor it.
46270
46271 2009-03-01  Bruno Haible  <bruno@clisp.org>
46272
46273         Use socklen_t in the native Windows replacements prototypes.
46274         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46275         instead of 'int'.
46276         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46277         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46278         * modules/getsockopt (Depends-on): Add socklen.
46279         * modules/setsockopt (Depends-on): Add socklen.
46280
46281 2009-03-01  Bruno Haible  <bruno@clisp.org>
46282
46283         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46284         least 4.2.
46285
46286 2009-03-01  Eric Blake  <ebb9@byu.net>
46287             Bruno Haible  <bruno@clisp.org>
46288
46289         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46290         error messages.
46291         * lib/wait-process.c (wait_subprocess): Omit error message about
46292         deadly signal sent to the child of termsigp != NULL.
46293
46294 2009-03-01  Eric Blake  <ebb9@byu.net>
46295
46296         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46297
46298 2009-03-01  Bruno Haible  <bruno@clisp.org>
46299
46300         Avoid a gcc warning.
46301         * tests/test-sched.c (b): Make global.
46302         Reported by Eric Blake.
46303
46304 2009-01-19  Martin Lambers  <marlam@marlam.de>
46305
46306         Provide POSIX semantics for socket timeout options on W32.
46307         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46308         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46309         * modules/setsockopt: Depend on sys_time module for struct timeval.
46310         * modules/getsockopt: Depend on sys_time module for struct timeval.
46311
46312 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46313
46314         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46315         __USE_GNU, for consistency with netdb.in.h.
46316         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46317
46318 2009-03-01  Bruno Haible  <bruno@clisp.org>
46319
46320         More support for FreeMiNT.
46321         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46322         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46323
46324 2009-03-01  Bruno Haible  <bruno@clisp.org>
46325
46326         More support for FreeMiNT.
46327         * lib/fpurge.c (fpurge): Correct last commit.
46328         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46329
46330 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46331
46332         Fix unportable awk script in vc-list-files.
46333         * build-aux/vc-list-files: In the replacement awk script, use
46334         substr with a second argument of 1, not zero.
46335         Report by Simon Josefsson.
46336
46337 2009-02-28  Bruno Haible  <bruno@clisp.org>
46338
46339         More support for FreeMiNT.
46340         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46341         to FreeMiNT today.
46342         * lib/fwriting.c (fwriting): Likewise.
46343         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46344
46345 2009-02-28  Bruno Haible  <bruno@clisp.org>
46346
46347         * tests/test-freadseek.c (main): Disable test beyond end of file on
46348         FreeMiNT.
46349         * tests/test-ftello.c (main): Likewise.
46350         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46351
46352 2009-02-28  Bruno Haible  <bruno@clisp.org>
46353
46354         Add tentative support for FreeMiNT.
46355         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46356         * lib/fpurge.c (fpurge): Likewise.
46357         * lib/freadable.c (freadable): Likewise.
46358         * lib/freading.c (freading): Likewise.
46359         * lib/freadptr.c (freadptr): Likewise.
46360         * lib/freadseek.c (freadptrinc): Likewise.
46361         * lib/fseeko.c (rpl_fseeko): Likewise.
46362         * lib/fseterr.c (fseterr): Likewise.
46363         * lib/fwritable.c (fwritable): Likewise.
46364         * lib/fwriting.c (fwriting): Likewise.
46365         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46366         Hourihane.
46367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46368
46369 2009-02-28  Bruno Haible  <bruno@clisp.org>
46370
46371         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46372         SIGCHLD.
46373         Reported by Jim Meyering.
46374
46375 2009-02-28  Bruno Haible  <bruno@clisp.org>
46376
46377         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46378         Mention the results of these tests on various platforms.
46379         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46380         order.
46381         * doc/posix-functions/printf.texi: Likewise.
46382         * doc/posix-functions/snprintf.texi: Likewise.
46383         * doc/posix-functions/sprintf.texi: Likewise.
46384         * doc/posix-functions/vfprintf.texi: Likewise.
46385         * doc/posix-functions/vprintf.texi: Likewise.
46386         * doc/posix-functions/vsnprintf.texi: Likewise.
46387         * doc/posix-functions/vsprintf.texi: Likewise.
46388         * doc/glibc-functions/obstack_printf.texi: Likewise.
46389         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46390
46391 2009-02-28  Bruno Haible  <bruno@clisp.org>
46392
46393         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46394         Reported by Loïc Minier <lool@dooz.org>.
46395
46396 2009-02-27  Bruno Haible  <bruno@clisp.org>
46397
46398         * gnulib-tool (func_import): Make the sed expression used to create the
46399         sed script for updating the .gitignore file POSIX compliant.
46400         Reported by Eric Blake.
46401
46402 2009-02-27  Bruno Haible  <bruno@clisp.org>
46403
46404         * gnulib-tool (sed): Don't alias as "sed --posix".
46405         Reported by Eric Blake.
46406
46407 2009-02-27  Bruno Haible  <bruno@clisp.org>
46408
46409         Avoid test link errors.
46410         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46411         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46412         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46413         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46415
46416 2009-02-27  Bruno Haible  <bruno@clisp.org>
46417
46418         Avoid spurious "(cached)" in configure output.
46419         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46420         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46421         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46422         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46423         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46424         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46425         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46426         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46427         Reported by Eric Blake.
46428
46429 2009-02-27  Eric Blake  <ebb9@byu.net>
46430
46431         printf: fix regression in previous patch
46432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46433
46434 2009-02-27  Bruno Haible  <bruno@clisp.org>
46435
46436         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46437         value.
46438         * lib/stdint.in.h: Likewise.
46439         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46440
46441 2009-02-27  Eric Blake  <ebb9@byu.net>
46442
46443         doc: mention more functions added in cygwin 1.7.0
46444         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46445         addition.
46446         * doc/posix-functions/open_wmemstream.texi: Likewise.
46447         * doc/posix-functions/wcsnlen.texi: Likewise.
46448         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46449         * doc/posix-functions/wcstod.texi: Likewise.
46450         * doc/posix-functions/wcstof.texi: Likewise.
46451         * doc/posix-functions/wcstoimax.texi: Likewise.
46452         * doc/posix-functions/wcstok.texi: Likewise.
46453         * doc/posix-functions/wcstoumax.texi: Likewise.
46454
46455         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46456         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46457         * doc/posix-functions/fprintf.texi: Update.
46458         * doc/posix-functions/printf.texi: Update.
46459         * doc/posix-functions/snprintf.texi: Update.
46460         * doc/posix-functions/sprintf.texi: Update.
46461         * doc/posix-functions/vfprintf.texi: Update.
46462         * doc/posix-functions/vprintf.texi: Update.
46463         * doc/posix-functions/vsnprintf.texi: Update.
46464         * doc/posix-functions/vsprintf.texi: Update.
46465         * doc/glibc-functions/obstack_printf.texi: Update.
46466         * doc/glibc-functions/obstack_vprintf.texi: Update.
46467
46468 2009-02-26  Eric Blake  <ebb9@byu.net>
46469
46470         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46471         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46472         compilation bug by using runtime conversion.
46473         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46474         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46475         * modules/ceill-tests (Files): Use nan.h.
46476         * modules/floorl-tests (Files): Likewise.
46477         * modules/frexpl-tests (Files): Likewise.
46478         * modules/isnanl-tests (Files): Likewise.
46479         * modules/ldexpl-tests (Files): Likewise.
46480         * modules/roundl-tests (Files): Likewise.
46481         * modules/truncl-tests (Files): Likewise.
46482         * tests/test-ceill.c (main): Use a working NaN.
46483         * tests/test-floorl.c (main): Likewise.
46484         * tests/test-frexpl.c (main): Likewise.
46485         * tests/test-isnan.c (test_long_double): Likewise.
46486         * tests/test-isnanl.h (main): Likewise.
46487         * tests/test-ldexpl.h (main): Likewise.
46488         * tests/test-roundl.h (main): Likewise.
46489         * tests/test-truncl.h (main): Likewise.
46490         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46491
46492 2009-02-26  Eric Blake  <ebb9@byu.net>
46493             Bruno Haible  <bruno@clisp.org>
46494
46495         Work around a *printf bug with %ls on Solaris.
46496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46497         precision is specified, sprintf stops converting the wide string
46498         argument when the number of bytes that have been produced by this
46499         conversion equals or exceeds the precision.
46500         * doc/posix-functions/fprintf.texi: Update.
46501         * doc/posix-functions/printf.texi: Update.
46502         * doc/posix-functions/snprintf.texi: Update.
46503         * doc/posix-functions/sprintf.texi: Update.
46504         * doc/posix-functions/vfprintf.texi: Update.
46505         * doc/posix-functions/vprintf.texi: Update.
46506         * doc/posix-functions/vsnprintf.texi: Update.
46507         * doc/posix-functions/vsprintf.texi: Update.
46508         * doc/glibc-functions/obstack_printf.texi: Update.
46509         * doc/glibc-functions/obstack_vprintf.texi: Update.
46510
46511 2009-02-26  Eric Blake  <ebb9@byu.net>
46512
46513         stdlib: favor compiler check of random.h
46514         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46515         to avoid an ObjC random.h installed by Swarm.
46516
46517 2009-02-26  Bruno Haible  <bruno@clisp.org>
46518
46519         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46520         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46521         Reported by Gary V. Vaughan <gary@gnu.org>.
46522
46523 2009-02-26  Bruno Haible  <bruno@clisp.org>
46524
46525         Fix *printf behaviour regarding the %ls directive.
46526         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46527         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46528         NEED_PRINTF_DIRECTIVE_LS.
46529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46530         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46532         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46533         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46534         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46535         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46537         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46538         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46539         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46540         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46541         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46542         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46544         * doc/posix-functions/fprintf.texi: Update.
46545         * doc/posix-functions/printf.texi: Update.
46546         * doc/posix-functions/snprintf.texi: Update.
46547         * doc/posix-functions/sprintf.texi: Update.
46548         * doc/posix-functions/vfprintf.texi: Update.
46549         * doc/posix-functions/vprintf.texi: Update.
46550         * doc/posix-functions/vsnprintf.texi: Update.
46551         * doc/posix-functions/vsprintf.texi: Update.
46552         * doc/glibc-functions/obstack_printf.texi: Update.
46553         * doc/glibc-functions/obstack_vprintf.texi: Update.
46554         Reported by Eric Blake.
46555
46556 2009-02-25  Bruno Haible  <bruno@clisp.org>
46557
46558         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46559         with known value.
46560         Reported by Gary V. Vaughan <gary@gnu.org>.
46561
46562 2009-02-25  Bruno Haible  <bruno@clisp.org>
46563
46564         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46565         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46566         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46567         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46568         Reported by Gary V. Vaughan <gary@gnu.org>.
46569
46570 2009-02-25  Bruno Haible  <bruno@clisp.org>
46571
46572         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46573         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46574         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46575         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46576         Reported by Gary V. Vaughan <gary@gnu.org>.
46577
46578 2009-02-25  Eric Blake  <ebb9@byu.net>
46579
46580         tests: skip fseek/ftell tests if ungetc is broken
46581         * m4/ungetc.m4: New file.
46582         * modules/fseek-tests: Split test, so ungetc dependency is
46583         separate from rest of test.
46584         * modules/fseeko-tests: Likewise.
46585         * modules/ftell-tests: Likewise.
46586         * modules/ftello-tests: Likewise.
46587         * tests/test-fseek.c (main): Isolate ungetc dependency.
46588         * tests/test-fseeko.c (main): Likewise.
46589         * tests/test-ftell.c (main): Likewise.
46590         * tests/test-ftello.c (main): Likewise.
46591         * tests/test-fseek2.sh: New file.
46592         * tests/test-fseeko2.sh: Likewise.
46593         * tests/test-ftell2.sh: Likewise.
46594         * tests/test-ftello2.sh: Likewise.
46595
46596 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46597
46598         test-getaddrinfo: fix usage of skip return code 77
46599         * tests/test-gettaddrinfo.c: Return skip code 77 only
46600         for first occurance of skip (4x77 is not 77)
46601
46602 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46603
46604         strtod: avoid C99 decl-after-statement
46605         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46606
46607 2009-02-24  Eric Blake  <ebb9@byu.net>
46608
46609         strtod: detect HP-UX 11.31 bug
46610         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46611         Reported by Gary V. Vaughan.
46612
46613 2009-02-23  Bruno Haible  <bruno@clisp.org>
46614
46615         Fix invalid read past end of memory block.
46616         * lib/vasnprintf.c (DCHAR_SET): Define.
46617         (local_wcslen): Define only when needed.
46618         (local_strnlen, local_wcsnlen): New functions.
46619         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46620         directives that involve a conversion ourselves.
46621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46622         wcsnlen, mbrtowc, wcrtomb.
46623         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46624         * tests/test-vasprintf-posix.c (test_function): Likewise.
46625         * tests/test-snprintf-posix.h (test_function): Likewise.
46626         * tests/test-sprintf-posix.h (test_function): Likewise.
46627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46628
46629 2009-02-22  Bruno Haible  <bruno@clisp.org>
46630
46631         Implement new clarified decomposition of Hangul syllables.
46632         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46633         of type LTV, return only a pairwise decomposition.
46634         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46635         Likewise.
46636         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46637         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46638         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46639
46640 2009-02-22  Bruno Haible  <bruno@clisp.org>
46641
46642         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46643         zero-length results and shrink excess allocated memory.
46644         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46645         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46646         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46647         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46648         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46649         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46650         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46651         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46652         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46653         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46654         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46655         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46656
46657 2009-02-21  Bruno Haible  <bruno@clisp.org>
46658
46659         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46660         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46661         spaces after a period. Put a space between a macro name and its
46662         argument list. Trivial rewordings.
46663         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46664         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46665         (main): Return 0 explicitly.
46666
46667 2009-02-21  Bruno Haible  <bruno@clisp.org>
46668
46669         Tests for module 'uninorm/filter'.
46670         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46671         * modules/uninorm/filter-tests: New file.
46672
46673         New module 'uninorm/filter'.
46674         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46675         uninorm_filter_flush, uninorm_filter_free): New declarations.
46676         * lib/uninorm/uninorm-filter.c: New file.
46677         * modules/uninorm/filter: New file.
46678
46679 2009-02-21  Bruno Haible  <bruno@clisp.org>
46680
46681         Tests for module 'uninorm/nfkc'.
46682         * tests/uninorm/test-nfkc.c: New file.
46683         * tests/uninorm/test-u8-nfkc.c: New file.
46684         * tests/uninorm/test-u16-nfkc.c: New file.
46685         * tests/uninorm/test-u32-nfkc.c: New file.
46686         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46687         * tests/uninorm/test-u32-nfkc-big.c: New file.
46688         * modules/uninorm/nfkc-tests: New file.
46689
46690         New module 'uninorm/nfkc'.
46691         * lib/uninorm/nfkc.c: New file.
46692         * modules/uninorm/nfkc: New file.
46693
46694         Tests for module 'uninorm/nfkd'.
46695         * tests/uninorm/test-nfkd.c: New file.
46696         * tests/uninorm/test-u8-nfkd.c: New file.
46697         * tests/uninorm/test-u16-nfkd.c: New file.
46698         * tests/uninorm/test-u32-nfkd.c: New file.
46699         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46700         * tests/uninorm/test-u32-nfkd-big.c: New file.
46701         * modules/uninorm/nfkd-tests: New file.
46702
46703         New module 'uninorm/nfkd'.
46704         * lib/uninorm/nfkd.c: New file.
46705         * modules/uninorm/nfkd: New file.
46706
46707         Tests for module 'uninorm/nfc'.
46708         * tests/uninorm/test-nfc.c: New file.
46709         * tests/uninorm/test-u8-nfc.c: New file.
46710         * tests/uninorm/test-u16-nfc.c: New file.
46711         * tests/uninorm/test-u32-nfc.c: New file.
46712         * tests/uninorm/test-u32-nfc-big.sh: New file.
46713         * tests/uninorm/test-u32-nfc-big.c: New file.
46714         * modules/uninorm/nfc-tests: New file.
46715
46716         New module 'uninorm/nfc'.
46717         * lib/uninorm/nfc.c: New file.
46718         * modules/uninorm/nfc: New file.
46719
46720         Tests for module 'uninorm/nfd'.
46721         * tests/uninorm/test-nfd.c: New file.
46722         * tests/uninorm/test-u8-nfd.c: New file.
46723         * tests/uninorm/test-u16-nfd.c: New file.
46724         * tests/uninorm/test-u32-nfd.c: New file.
46725         * tests/uninorm/test-u32-nfd-big.sh: New file.
46726         * tests/uninorm/test-u32-nfd-big.c: New file.
46727         * tests/uninorm/test-u32-normalize-big.h: New file.
46728         * tests/uninorm/test-u32-normalize-big.c: New file.
46729         * tests/uninorm/NormalizationTest.txt: New file, created from
46730         Unicode 5.1.0 NormalizationTest.txt.
46731         * modules/uninorm/nfd-tests: New file.
46732
46733         New module 'uninorm/nfd'.
46734         * lib/uninorm/nfd.c: New file.
46735         * modules/uninorm/nfd: New file.
46736
46737         New module 'uninorm/u32-normalize'.
46738         * lib/uninorm/u32-normalize.c: New file.
46739         * modules/uninorm/u32-normalize: New file.
46740
46741         New module 'uninorm/u16-normalize'.
46742         * lib/uninorm/u16-normalize.c: New file.
46743         * modules/uninorm/u16-normalize: New file.
46744
46745         New module 'uninorm/u8-normalize'.
46746         * lib/uninorm/u8-normalize.c: New file.
46747         * lib/uninorm/normalize-internal.h: New file.
46748         * lib/uninorm/u-normalize-internal.h: New file.
46749         * modules/uninorm/u8-normalize: New file.
46750
46751         New module 'uninorm/decompose-internal'.
46752         * lib/uninorm/decompose-internal.c: New file.
46753         * modules/uninorm/decompose-internal: New file.
46754
46755         Tests for module 'uninorm/composition'.
46756         * tests/uninorm/test-composition.c: New file.
46757         * modules/uninorm/composition-tests: New file.
46758
46759         New module 'uninorm/composition'.
46760         * lib/uninorm/composition.c: New file.
46761         * lib/uninorm/composition-table.gperf: New file, generated by
46762         gen-uni-tables.
46763         * modules/uninorm/composition: New file.
46764
46765         Tests for module 'uninorm/compat-decomposition'.
46766         * tests/uninorm/test-compat-decomposition.c: New file.
46767         * modules/uninorm/compat-decomposition-tests: New file.
46768
46769         New module 'uninorm/compat-decomposition'.
46770         * lib/uninorm/decompose-internal.h: New file.
46771         * lib/uninorm/compat-decomposition.c: New file.
46772         * modules/uninorm/compat-decomposition: New file.
46773
46774         Tests for module 'uninorm/canonical-decomposition'.
46775         * tests/uninorm/test-canonical-decomposition.c: New file.
46776         * modules/uninorm/canonical-decomposition-tests: New file.
46777
46778         New module 'uninorm/canonical-decomposition'.
46779         * lib/uninorm/canonical-decomposition.c: New file.
46780         * modules/uninorm/canonical-decomposition: New file.
46781
46782         Tests for module 'uninorm/decomposition'.
46783         * tests/uninorm/test-decomposition.c: New file.
46784         * modules/uninorm/decomposition-tests: New file.
46785
46786         New module 'uninorm/decomposition'.
46787         * lib/uninorm/decomposition.c: New file.
46788         * modules/uninorm/decomposition: New file.
46789
46790         New module 'uninorm/decomposition-table'.
46791         * lib/uninorm/decomposition-table.h: New file.
46792         * lib/uninorm/decomposition-table.c: New file.
46793         * lib/uninorm/decomposition-table1.h: New file, generated by
46794         gen-uni-tables.
46795         * lib/uninorm/decomposition-table2.h: New file, generated by
46796         gen-uni-tables.
46797         * modules/uninorm/decomposition-table: New file.
46798
46799         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46800         (UC_DECOMP_*): New enumeration items.
46801         (get_decomposition): New function.
46802         (struct decomp_table): New type.
46803         (output_decomposition, output_decomposition_tables): New functions.
46804         (unicode_composition_exclusions): New variable.
46805         (fill_composition_exclusions, debug_output_composition_tables): New
46806         functions.
46807         (main): Accept one more argument. Invoke fill_composition_exclusions.
46808         Output decomposition and composition tables.
46809
46810         New module 'uninorm/base'.
46811         * lib/uninorm.h: New file.
46812         * lib/unictype.h: Update comment.
46813         * modules/uninorm/base: New file.
46814
46815 2009-02-21  David Lutterkort  <lutter@redhat.com>
46816
46817         Tests for module 'safe-alloc'.
46818         * tests/test-safe-alloc.c: New file.
46819         * modules/safe-alloc-tests: New file.
46820
46821         New module 'safe-alloc'.
46822         * lib/safe-alloc.h: New file.
46823         * lib/safe-alloc.c: New file.
46824         * m4/safe-alloc.m4: New file.
46825         * modules/safe-alloc: New file.
46826         * doc/safe-alloc.texi: New file.
46827         * doc/gnulib.texi: Include it.
46828         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46829         safe-alloc.
46830
46831 2009-02-18  Bruno Haible  <bruno@clisp.org>
46832
46833         Fix link error on non-glibc systems.
46834         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46835         variable.
46836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46837
46838 2009-02-18  Jim Meyering  <meyering@redhat.com>
46839
46840         fts: avoid used-uninitialized error due to recent change
46841         * lib/fts.c (fts_read): Guard uses of the new member,
46842         parent->fts_n_dirs_remaining, since it's not relevant for
46843         the parent of a directory specified on the command-line.
46844
46845 2009-02-17  James Youngman  <jay@gnu.org>
46846             Bruno Haible  <bruno@clisp.org>
46847
46848         * m4/include_next.m4: Reformulate comment.
46849
46850 2009-02-16  Jim Meyering  <meyering@redhat.com>
46851
46852         fts: add #if guards so that the fts_lgpl module still builds
46853         * lib/fts.c: Guard just-added hash-table-using parts with
46854         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46855         Reported by Simon Josefsson.
46856
46857 2009-02-15  Bruno Haible  <bruno@clisp.org>
46858
46859         * modules/array-mergesort-tests: New file.
46860         * tests/test-array-mergesort.c: New file.
46861
46862         New module 'array-mergesort'.
46863         * modules/array-mergesort: New file.
46864         * lib/array-mergesort.h: New file.
46865
46866 2009-02-15  Bruno Haible  <bruno@clisp.org>
46867
46868         Fix 2009-02-07 commit.
46869         * lib/gen-uni-tables.c (output_predicate, output_category,
46870         output_combclass, output_bidi_category, output_decimal_digit,
46871         output_digit, output_numeric, output_mirror, output_scripts,
46872         output_ident_category, output_simple_mapping): Fix format directives.
46873         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46874
46875 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46876
46877         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46878         fixes are available from IBM.
46879
46880 2009-02-13  Jim Meyering  <meyering@redhat.com>
46881
46882         fts: arrange not to stat non-directories in more cases
46883         This makes GNU find (when it doesn't need to stat each file)
46884         *much* more efficient at traversing reiserfs file systems.
46885         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46886         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46887         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46888         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46889         (leaf_optimization_applies): New function.
46890         (LCO_hash, LCO_compare): New helper functions.
46891         (link_count_optimize_ok): New function.
46892         (fts_stat): Initialize new member (if dir).
46893         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46894         we've just stat'ed a directory.  Skip the stat call when possible.
46895         ---
46896         Note this AFS-related exchange:
46897         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46898         and note find's pioctl call in find/fstype.c.
46899         But that is necessary only if you want to enable the
46900         optimization for AFS, and for now, I don't.
46901
46902         fts: move a function definition "up" (no semantic change)
46903         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46904         "up" to precede upcoming use of a related function.
46905
46906 2009-02-11  Jim Meyering  <meyering@redhat.com>
46907
46908         fts: correct internal computation of nlinks (optimization-related)
46909         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46910         whether the current entry is a directory, so don't test it.
46911
46912 2009-02-10  Bruno Haible  <bruno@clisp.org>
46913
46914         Tests for module 'uniwbrk/ulc-wordbreaks'.
46915         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46916         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46917         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46918
46919         Tests for module 'uniwbrk/u32-wordbreaks'.
46920         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46921         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46922
46923         Tests for module 'uniwbrk/u16-wordbreaks'.
46924         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46925         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46926
46927         Tests for module 'uniwbrk/u8-wordbreaks'.
46928         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46929         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46930
46931 2009-02-10  Bruno Haible  <bruno@clisp.org>
46932
46933         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46934         property.
46935         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46936         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46937         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46938
46939 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46940
46941         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46942         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46943
46944 2009-02-10  Bruno Haible  <bruno@clisp.org>
46945
46946         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46947         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46948         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46949         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46950         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46951         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46952
46953 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46954
46955         * lib/sockets.h (gl_fd_to_handle): New function.
46956
46957         * tests/test-sockets.c: Call gl_fd_to_handle.
46958
46959 2009-02-09  Bruno Haible  <bruno@clisp.org>
46960
46961         * doc/havelib.texi: Document the conventions on bi-arch systems.
46962
46963 2009-02-08  Bruno Haible  <bruno@clisp.org>
46964
46965         Document the AC_LIB_LINKFLAGS macro.
46966         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46967         * doc/gnulib.texi: Include it.
46968
46969 2009-02-08  Bruno Haible  <bruno@clisp.org>
46970
46971         Fix wrong order of sections, compared to TOC.
46972         * doc/gnulib.texi: Include relocatable-maint.texi after the
46973         "Regular expressions" node, not before.
46974
46975 2009-02-08  Bruno Haible  <bruno@clisp.org>
46976
46977         Tests for module 'unicase/totitle'.
46978         * modules/unicase/totitle-tests: New file.
46979
46980         Tests for module 'unicase/tolower'.
46981         * modules/unicase/tolower-tests: New file.
46982
46983         Tests for module 'unicase/toupper'.
46984         * modules/unicase/toupper-tests: New file.
46985         * tests/unicase/test-mapping-part1.h: New file.
46986         * tests/unicase/test-mapping-part2.h: New file.
46987
46988         New module 'unicase/totitle'.
46989         * modules/unicase/totitle: New file.
46990         * lib/unicase/totitle.c: New file.
46991
46992         New module 'unicase/tolower'.
46993         * modules/unicase/tolower: New file.
46994         * lib/unicase/tolower.c: New file.
46995
46996         New module 'unicase/toupper'.
46997         * modules/unicase/toupper: New file.
46998         * lib/unicase/toupper.c: New file.
46999         * lib/unicase/simple-mapping.h: New file.
47000
47001         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47002         (mapping_table): New structure.
47003         (output_simple_mapping): New function.
47004         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47005         * modules/gen-uni-tables (Description): Update.
47006         * lib/unicase/toupper.h: New file, automatically generated by
47007         gen-uni-tables.
47008         * lib/unicase/tolower.h: New file, automatically generated by
47009         gen-uni-tables.
47010         * lib/unicase/totitle.h: New file, automatically generated by
47011         gen-uni-tables.
47012         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47013         gen-uni-tables.
47014         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47015         gen-uni-tables.
47016         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47017         gen-uni-tables.
47018
47019         New module 'unicase/base'.
47020         * modules/unicase/base: New file.
47021         * lib/unicase.h: New file.
47022
47023 2009-02-08  Bruno Haible  <bruno@clisp.org>
47024
47025         New module 'uniwbrk/ulc-wordbreaks'.
47026         * modules/uniwbrk/ulc-wordbreaks: New file.
47027         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47028
47029         New module 'uniwbrk/u32-wordbreaks'.
47030         * modules/uniwbrk/u32-wordbreaks: New file.
47031         * lib/uniwbrk/u32-wordbreaks.c: New file.
47032
47033         New module 'uniwbrk/u16-wordbreaks'.
47034         * modules/uniwbrk/u16-wordbreaks: New file.
47035         * lib/uniwbrk/u16-wordbreaks.c: New file.
47036
47037         New module 'uniwbrk/u8-wordbreaks'.
47038         * modules/uniwbrk/u8-wordbreaks: New file.
47039         * lib/uniwbrk/u8-wordbreaks.c: New file.
47040         * lib/uniwbrk/u-wordbreaks.h: New file.
47041
47042         New module 'uniwbrk/table'.
47043         * modules/uniwbrk/table: New file.
47044         * lib/uniwbrk/wbrktable.h: New file.
47045         * lib/uniwbrk/wbrktable.c: New file.
47046
47047         New module 'uniwbrk/wordbreak-property'.
47048         * modules/uniwbrk/wordbreak-property: New file.
47049         * lib/uniwbrk/wordbreak-property.c: New file.
47050
47051         * lib/gen-uni-tables.c (WBP_*): New enum items.
47052         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47053         (unicode_org_wbp): New variable.
47054         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47055         New functions.
47056         (wbp_table): New structure.
47057         (output_wbp, output_wbrk_tables): New functions.
47058         (main): Accept additional argument. Invoke fill_org_wbp,
47059         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47060         output_wbrk_tables.
47061         * modules/gen-uni-tables (Description): Update.
47062         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47063         gen-uni-tables.
47064
47065         New module 'uniwbrk/base'.
47066         * modules/uniwbrk/base: New file.
47067         * lib/uniwbrk.h: New file.
47068
47069 2009-02-08  Bruno Haible  <bruno@clisp.org>
47070
47071         Update to Unicode 5.1.0.
47072         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47073         U+2185..U+2188.
47074         (is_property_default_ignorable_code_point): Don't include characters
47075         of category Cc or Cs and not-a-characters.
47076         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47077         U+0D79, U+109E, U+109F, U+A60C.
47078         * lib/unictype/bidi_of.h: Regenerated.
47079         * lib/unictype/blocks.h: Regenerated.
47080         * lib/unictype/categ_C.h: Regenerated.
47081         * lib/unictype/categ_Cf.h: Regenerated.
47082         * lib/unictype/categ_Cn.h: Regenerated.
47083         * lib/unictype/categ_L.h: Regenerated.
47084         * lib/unictype/categ_Ll.h: Regenerated.
47085         * lib/unictype/categ_Lm.h: Regenerated.
47086         * lib/unictype/categ_Lo.h: Regenerated.
47087         * lib/unictype/categ_Lu.h: Regenerated.
47088         * lib/unictype/categ_M.h: Regenerated.
47089         * lib/unictype/categ_Mc.h: Regenerated.
47090         * lib/unictype/categ_Me.h: Regenerated.
47091         * lib/unictype/categ_Mn.h: Regenerated.
47092         * lib/unictype/categ_N.h: Regenerated.
47093         * lib/unictype/categ_Nd.h: Regenerated.
47094         * lib/unictype/categ_Nl.h: Regenerated.
47095         * lib/unictype/categ_No.h: Regenerated.
47096         * lib/unictype/categ_P.h: Regenerated.
47097         * lib/unictype/categ_Pd.h: Regenerated.
47098         * lib/unictype/categ_Pe.h: Regenerated.
47099         * lib/unictype/categ_Pf.h: Regenerated.
47100         * lib/unictype/categ_Pi.h: Regenerated.
47101         * lib/unictype/categ_Po.h: Regenerated.
47102         * lib/unictype/categ_Ps.h: Regenerated.
47103         * lib/unictype/categ_S.h: Regenerated.
47104         * lib/unictype/categ_Sk.h: Regenerated.
47105         * lib/unictype/categ_Sm.h: Regenerated.
47106         * lib/unictype/categ_So.h: Regenerated.
47107         * lib/unictype/categ_of.h: Regenerated.
47108         * lib/unictype/combining.h: Regenerated.
47109         * lib/unictype/ctype_alnum.h: Regenerated.
47110         * lib/unictype/ctype_alpha.h: Regenerated.
47111         * lib/unictype/ctype_graph.h: Regenerated.
47112         * lib/unictype/ctype_lower.h: Regenerated.
47113         * lib/unictype/ctype_print.h: Regenerated.
47114         * lib/unictype/ctype_punct.h: Regenerated.
47115         * lib/unictype/ctype_upper.h: Regenerated.
47116         * lib/unictype/decdigit.h: Regenerated.
47117         * lib/unictype/digit.h: Regenerated.
47118         * lib/unictype/mirror.h: Regenerated.
47119         * lib/unictype/numeric.h: Regenerated.
47120         * lib/unictype/pr_alphabetic.h: Regenerated.
47121         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47122         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47123         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47124         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47125         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47126         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47127         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47128         * lib/unictype/pr_combining.h: Regenerated.
47129         * lib/unictype/pr_dash.h: Regenerated.
47130         * lib/unictype/pr_decimal_digit.h: Regenerated.
47131         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47132         * lib/unictype/pr_deprecated.h: Regenerated.
47133         * lib/unictype/pr_diacritic.h: Regenerated.
47134         * lib/unictype/pr_extender.h: Regenerated.
47135         * lib/unictype/pr_format_control.h: Regenerated.
47136         * lib/unictype/pr_grapheme_base.h: Regenerated.
47137         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47138         * lib/unictype/pr_grapheme_link.h: Regenerated.
47139         * lib/unictype/pr_id_continue.h: Regenerated.
47140         * lib/unictype/pr_id_start.h: Regenerated.
47141         * lib/unictype/pr_ideographic.h: Regenerated.
47142         * lib/unictype/pr_ignorable_control.h: Regenerated.
47143         * lib/unictype/pr_lowercase.h: Regenerated.
47144         * lib/unictype/pr_math.h: Regenerated.
47145         * lib/unictype/pr_numeric.h: Regenerated.
47146         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47147         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47148         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47149         * lib/unictype/pr_other_id_continue.h: Regenerated.
47150         * lib/unictype/pr_other_lowercase.h: Regenerated.
47151         * lib/unictype/pr_other_math.h: Regenerated.
47152         * lib/unictype/pr_punctuation.h: Regenerated.
47153         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47154         * lib/unictype/pr_soft_dotted.h: Regenerated.
47155         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47156         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47157         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47158         * lib/unictype/pr_uppercase.h: Regenerated.
47159         * lib/unictype/pr_xid_continue.h: Regenerated.
47160         * lib/unictype/pr_xid_start.h: Regenerated.
47161         * lib/unictype/pr_zero_width.h: Regenerated.
47162         * lib/unictype/scripts.h: Regenerated.
47163         * lib/unictype/scripts_byname.gperf: Regenerated.
47164         * lib/unictype/sy_java_ident.h: Regenerated.
47165         * lib/unilbrk/lbrkprop1.h: Regenerated.
47166         * lib/unilbrk/lbrkprop2.h: Regenerated.
47167         * tests/unictype/test-categ_C.c: Regenerated.
47168         * tests/unictype/test-categ_Cf.c: Regenerated.
47169         * tests/unictype/test-categ_Cn.c: Regenerated.
47170         * tests/unictype/test-categ_L.c: Regenerated.
47171         * tests/unictype/test-categ_Ll.c: Regenerated.
47172         * tests/unictype/test-categ_Lm.c: Regenerated.
47173         * tests/unictype/test-categ_Lo.c: Regenerated.
47174         * tests/unictype/test-categ_Lu.c: Regenerated.
47175         * tests/unictype/test-categ_M.c: Regenerated.
47176         * tests/unictype/test-categ_Mc.c: Regenerated.
47177         * tests/unictype/test-categ_Me.c: Regenerated.
47178         * tests/unictype/test-categ_Mn.c: Regenerated.
47179         * tests/unictype/test-categ_N.c: Regenerated.
47180         * tests/unictype/test-categ_Nd.c: Regenerated.
47181         * tests/unictype/test-categ_Nl.c: Regenerated.
47182         * tests/unictype/test-categ_No.c: Regenerated.
47183         * tests/unictype/test-categ_P.c: Regenerated.
47184         * tests/unictype/test-categ_Pd.c: Regenerated.
47185         * tests/unictype/test-categ_Pe.c: Regenerated.
47186         * tests/unictype/test-categ_Pf.c: Regenerated.
47187         * tests/unictype/test-categ_Pi.c: Regenerated.
47188         * tests/unictype/test-categ_Po.c: Regenerated.
47189         * tests/unictype/test-categ_Ps.c: Regenerated.
47190         * tests/unictype/test-categ_S.c: Regenerated.
47191         * tests/unictype/test-categ_Sk.c: Regenerated.
47192         * tests/unictype/test-categ_Sm.c: Regenerated.
47193         * tests/unictype/test-categ_So.c: Regenerated.
47194         * tests/unictype/test-ctype_alnum.c: Regenerated.
47195         * tests/unictype/test-ctype_alpha.c: Regenerated.
47196         * tests/unictype/test-ctype_graph.c: Regenerated.
47197         * tests/unictype/test-ctype_lower.c: Regenerated.
47198         * tests/unictype/test-ctype_print.c: Regenerated.
47199         * tests/unictype/test-ctype_punct.c: Regenerated.
47200         * tests/unictype/test-ctype_upper.c: Regenerated.
47201         * tests/unictype/test-decdigit.h: Regenerated.
47202         * tests/unictype/test-digit.h: Regenerated.
47203         * tests/unictype/test-numeric.h: Regenerated.
47204         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47205         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47206         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47207         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47208         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47209         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47210         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47211         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47212         * tests/unictype/test-pr_combining.c: Regenerated.
47213         * tests/unictype/test-pr_dash.c: Regenerated.
47214         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47215         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47216         * tests/unictype/test-pr_deprecated.c: Regenerated.
47217         * tests/unictype/test-pr_diacritic.c: Regenerated.
47218         * tests/unictype/test-pr_extender.c: Regenerated.
47219         * tests/unictype/test-pr_format_control.c: Regenerated.
47220         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47221         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47222         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47223         * tests/unictype/test-pr_id_continue.c: Regenerated.
47224         * tests/unictype/test-pr_id_start.c: Regenerated.
47225         * tests/unictype/test-pr_ideographic.c: Regenerated.
47226         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47227         * tests/unictype/test-pr_lowercase.c: Regenerated.
47228         * tests/unictype/test-pr_math.c: Regenerated.
47229         * tests/unictype/test-pr_numeric.c: Regenerated.
47230         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47231         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47232         Regenerated.
47233         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47234         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47235         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47236         * tests/unictype/test-pr_other_math.c: Regenerated.
47237         * tests/unictype/test-pr_punctuation.c: Regenerated.
47238         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47239         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47240         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47241         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47242         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47243         * tests/unictype/test-pr_uppercase.c: Regenerated.
47244         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47245         * tests/unictype/test-pr_xid_start.c: Regenerated.
47246         * tests/unictype/test-pr_zero_width.c: Regenerated.
47247
47248         Update to Unicode 5.1.0.
47249         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47250         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47251         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47252         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47253         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47254         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47255         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47256         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47257         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47258         (nonspacing_table_ind): Update.
47259         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47260
47261         Update to Unicode 5.1.0.
47262         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47263         code transform.
47264         * lib/uniname/uniname.c (unicode_character_name,
47265         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47266         * lib/uniname/uninames.h: Regenerated.
47267         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47268
47269 2009-02-07  Bruno Haible  <bruno@clisp.org>
47270
47271         Merge gen-ctype and gen-lbrk into a single program.
47272         * lib/gen-uni-tables.c: New file, incorporating
47273         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47274         Add directory prefixes to the names of the generated files.
47275         * lib/unictype/gen-ctype.c: Remove file.
47276         * lib/unilbrk/gen-lbrk.c: Remove file.
47277         * modules/gen-uni-tables: New file.
47278         * modules/unictype/gen-ctype: Remove file.
47279         * modules/unilbrk/gen-lbrk: Remove file.
47280
47281 2009-02-07  Bruno Haible  <bruno@clisp.org>
47282
47283         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47284
47285         New module 'unistr/u32-strcoll'.
47286         * modules/unistr/u32-strcoll: New file.
47287         * lib/unistr/u32-strcoll.c: New file.
47288
47289         New module 'unistr/u16-strcoll'.
47290         * modules/unistr/u16-strcoll: New file.
47291         * lib/unistr/u16-strcoll.c: New file.
47292
47293         New module 'unistr/u8-strcoll'.
47294         * modules/unistr/u8-strcoll: New file.
47295         * lib/unistr/u8-strcoll.c: New file.
47296         * lib/unistr/u-strcoll.h: New file.
47297
47298 2009-02-07  Bruno Haible  <bruno@clisp.org>
47299
47300         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47301         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47302         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47303         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47304         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47305         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47306
47307 2009-02-07  Bruno Haible  <bruno@clisp.org>
47308
47309         Make 64-bit clean.
47310         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47311         output_combclass, output_bidi_category, output_decimal_digit,
47312         output_digit, output_numeric, output_mirror, output_scripts,
47313         output_ident_category): Use proper width specifier in format strings.
47314
47315 2009-02-07  Bruno Haible  <bruno@clisp.org>
47316
47317         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47318         failure behaviour.
47319
47320 2009-02-07  Jim Meyering  <meyering@redhat.com>
47321
47322         regex: avoid compilation failure with upcoming gcc-4.4
47323         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47324         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47325         "... error: integer overflow in preprocessor expression".
47326
47327 2009-02-05  Ben Pfaff  <blp@gnu.org>
47328
47329         Fix link errors on Windows when close module is used.
47330         * modules/close: Add $(LIB_CLOSE) to Link section.
47331         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47332         $(LIB_CLOSE) on Windows.
47333
47334 2009-02-05  Jim Meyering  <meyering@redhat.com>
47335
47336         still avoid unused-parameter warnings, but do it cleanly
47337         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47338         (get_fs_usage): Cast to void instead.
47339         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47340         (dev_from_mount_options, read_file_system_list): Cast to void.
47341         Prompted by Bruno Haible.
47342
47343 2009-02-04  Jim Meyering  <meyering@redhat.com>
47344
47345         fsusage.c: correct copyright year
47346         * lib/fsusage.c: Reflect year in which the change is pushed into
47347
47348         avoid misc. warnings
47349         * lib/fsusage.c (UNUSED_PARAM): Define.
47350         (get_fs_usage): Mark parameter "disk" as unused.
47351         * lib/getugroups.c (getgrent): Use "void" in prototype.
47352         * lib/mountlist.c: Mark unused parameters.
47353         (read_file_system_list): Declare a local with "const".
47354         * lib/nanosleep.c (getnow): Declare static.
47355         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47356
47357         dirfd: set errno upon failure
47358         * lib/dirfd.c: Include <errno.h>.
47359         Set errno to ENOTSUP when returning -1.
47360         * modules/dirfd (Depends-on): Add errno.
47361         Suggested by John Kodis <kodis@comcast.net>.
47362
47363 2009-02-01  Bruno Haible  <bruno@clisp.org>
47364
47365         Don't assume sizeof (long) >= sizeof (void *).
47366         * lib/memcmp.c: Include stdint.h.
47367         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47368         srcp2 to 'const byte *'.
47369         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47370         types to uintptr_t.
47371         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47372         * modules/memcmp (Depends-on): Add stdint.
47373         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47374
47375 2009-01-30  Eric Blake  <ebb9@byu.net>
47376
47377         fix more require-before-expand issues
47378         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47379         expand, AC_PROG_AWK.
47380         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47381
47382 2009-01-28  Eric Blake  <ebb9@byu.net>
47383
47384         version-etc: use consistent URL formatting
47385         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47386         Improve formatting.  Use fputs for string without %.
47387
47388 2009-01-28  Jim Meyering  <meyering@redhat.com>
47389
47390         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47391         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47392         "underquoted definition of NAME" from autoconf-2.59.
47393
47394 2009-01-28  Bruno Haible  <bruno@clisp.org>
47395
47396         * doc/gnulib.texi: Add "Obsolete modules" to index.
47397
47398 2009-01-28  Jim Meyering  <meyering@redhat.com>
47399
47400         useless-if-before-free: recognize more variants
47401         * build-aux/useless-if-before-free: Also recognize e.g.,
47402         if (NULL != p) free (p);
47403
47404 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47405
47406         test-getaddrinfo: skip (don't fail) this test when there's no network
47407         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47408         on the presumption that it means you lack network access.
47409
47410 2009-01-26  Jim Meyering  <meyering@redhat.com>
47411
47412         fflush: avoid warnings on modern systems
47413         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47414         pos and result, into scopes where they're used.
47415
47416 2009-01-26  Eric Blake  <ebb9@byu.net>
47417
47418         Silence warning reintroduced by recent extensions patch.
47419         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47420         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47421         autoconf.
47422
47423         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47424         * m4/00gnulib.m4: New file.
47425         * gnulib-tool (func_get_filelist): Always use it.
47426         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47427         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47428
47429 2009-01-25  Bruno Haible  <bruno@clisp.org>
47430
47431         Make test-quotearg work on MacOS X and AIX.
47432         * tests/test-quotearg.sh: New file.
47433         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47434         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47435         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47436         include <libintl.h>.
47437         (fake_locale): Remove variable.
47438         (gettext, dgettext, dcgettext): Remove functions.
47439         (main): Instead of setting a fake locale, set a real locale. Call
47440         textdomain and bindtextdomain.
47441         * modules/quotearg-tests (Files): Add the new files.
47442         (Depends-on): Add gettext, setenv, unsetenv.
47443         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47444         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47445         Augment TESTS_ENVIRONMENT.
47446
47447 2009-01-25  Bruno Haible  <bruno@clisp.org>
47448
47449         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47450         fr_FR.ISO8859-1 locale on MacOS X.
47451         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47452         ja_JP.eucJP locale on MacOS X.
47453         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47454         zh_CN.GB18030 locale on MacOS X.
47455
47456 2009-01-25  Bruno Haible  <bruno@clisp.org>
47457
47458         Avoid link errors on MacOS X 10.3.
47459         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47460         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47461
47462 2009-01-25  Bruno Haible  <bruno@clisp.org>
47463
47464         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47465         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47466         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47467         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47468         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47469         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47470         posix_spawnattr_init, posix_spawnattr_setsigmask,
47471         posix_spawnattr_setflags, posix_spawnattr_destroy.
47472
47473         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47474         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47475         * modules/execute (Files): Remove m4/posix_spawn.m4.
47476         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47477         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47478         posix_spawnattr_init, posix_spawnattr_setsigmask,
47479         posix_spawnattr_setflags, posix_spawnattr_destroy.
47480
47481 2009-01-25  Bruno Haible  <bruno@clisp.org>
47482
47483         * lib/glthread/threadlib.c: Include <stdlib.h>.
47484
47485 2009-01-25  Bruno Haible  <bruno@clisp.org>
47486
47487         * lib/glthread/threadlib.c (dummy): New declaration.
47488
47489 2009-01-25  Bruno Haible  <bruno@clisp.org>
47490
47491         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47492         multibyte characters also for the GB18030 encoding. Don't crash when
47493         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47494
47495 2009-01-25  Bruno Haible  <bruno@clisp.org>
47496
47497         Avoid redefining 'struct random_data' on OSF/1 5.1.
47498         * lib/stdlib.in.h: Include <random.h> if it exists.
47499         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47500         HAVE_RANDOM_H. Include <random.h> when testing whether
47501         'struct random_data' exists.
47502         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47503
47504 2009-01-25  Bruno Haible  <bruno@clisp.org>
47505
47506         Don't install charset.alias on MacOS X >= 10.3.
47507         * lib/localcharset.c (DARWIN7): New macro.
47508         (get_charset_aliases): Hardcode the result for Darwin7.
47509         * modules/localcharset (install-exec-local): Don't install
47510         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47511
47512 2009-01-25  Bruno Haible  <bruno@clisp.org>
47513
47514         Don't install charset.alias on mingw and Cygwin.
47515         * modules/localcharset (install-exec-local): Don't install
47516         charset.alias on mingw and Cygwin, if the file does not yet exist.
47517         The result for these platforms is hardcoded in localcharset.c.
47518
47519 2009-01-25  Bruno Haible  <bruno@clisp.org>
47520
47521         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47523         before requiring AC_USE_SYSTEM_EXTENSIONS.
47524
47525 2009-01-25  Jim Meyering  <meyering@redhat.com>
47526
47527         c-strtod: avoid warnings
47528         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47529         "assignment discards qualifiers from pointer target type" warnings.
47530
47531 2009-01-24  Bruno Haible  <bruno@clisp.org>
47532
47533         Add support for non-UTF-8 locales on MacOS X.
47534         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47535         canonical encodings. For Darwin 7 and newer, don't map traditional
47536         encodings to UTF-8.
47537         Reported by Vincent Lefevre <vincent@vinc17.org>
47538         at <http://savannah.gnu.org/bugs/?25235>.
47539
47540 2009-01-24  Bruno Haible  <bruno@clisp.org>
47541
47542         * doc/gnulib.texi (Obsolete modules): New section.
47543         Reported by Mike Frysinger <vapier@gentoo.org>.
47544
47545 2009-01-24  Bruno Haible  <bruno@clisp.org>
47546
47547         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47548         (%.dvi): New rule.
47549
47550 2009-01-24  Bruno Haible  <bruno@clisp.org>
47551
47552         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47553         Reported by Eric Blake.
47554
47555 2009-01-24  Bruno Haible  <bruno@clisp.org>
47556
47557         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47558         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47559         Reported by Gary V. Vaughan <gary@gnu.org>.
47560
47561 2009-01-24  Bruno Haible  <bruno@clisp.org>
47562
47563         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47564
47565 2009-01-23  Bruno Haible  <bruno@clisp.org>
47566
47567         Make c-strtod, c-strtold usable in libraries.
47568         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47569         (C_STRTOD): Call strdup instead of xstrdup.
47570         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47571         * modules/c-strtold (Depends-on): Likewise.
47572         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47573         * NEWS: Mention the change.
47574         Reported by Michael Gold <mgold@ncf.ca>.
47575
47576 2009-01-23  Jim Meyering  <meyering@redhat.com>
47577
47578         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47579         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47580         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47581
47582 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47583
47584         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47585         GNU CoreUtils.
47586         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47587         * modules/version-etc (Description): Update.
47588
47589 2009-01-22  Bruno Haible  <bruno@clisp.org>
47590
47591         Cache the C locale object.
47592         * lib/c-strtod.c (c_locale_cache): New variable.
47593         (c_locale): New function.
47594         (C_STRTOD): Use it, and don't call freelocale.
47595         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47596         Suggested by Paolo Bonzini.
47597
47598 2009-01-21  Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47601         conditions other than overflow.
47602
47603 2009-01-21  Bruno Haible  <bruno@clisp.org>
47604
47605         * lib/c-strtod.c: Include errno.h.
47606         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47607         value from STRTOD_L and STRTOD.
47608
47609 2009-01-21  Bruno Haible  <bruno@clisp.org>
47610         and Jim Meyering  <meyering@redhat.com>
47611
47612         nanosleep: skip configure test (fail it) for apple universal builds
47613         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47614         universal builds, assume that nanosleep does not work.
47615         * modules/nanosleep (Depends-on): Add multiarch.
47616
47617         mktime: skip configure test (fail it) for apple universal builds
47618         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47619         universal builds, assume that mktime does not work.
47620         * modules/mktime (Depends-on): Add multiarch.
47621
47622 2009-01-21  Eric Blake  <ebb9@byu.net>
47623
47624         multiarch: avoid expand-before-require warning
47625         * modules/multiarch (configure.ac): Require, rather than expand,
47626         gl_MULTIARCH.
47627         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47628         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47629         enforce that all clients require it.  Partial reversion of
47630         2008-12-29 patch.
47631
47632         error: avoid expand-before-require warning
47633         * modules/errno (configure.ac): Require, rather than expand,
47634         gl_HEADER_ERRNO_H.
47635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47636         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47637         enforce that all clients require it.
47638
47639         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47640         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47641         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47642         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47643
47644 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47645
47646         Revert:
47647         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47648
47649         regex: do not depend on obsolete modules.
47650         * modules/regex: Remove memcmp and memmove.
47651
47652 2009-01-20  Bruno Haible  <bruno@clisp.org>
47653
47654         Make the 'link' module link on Windows NT 4.
47655         * lib/link.c (_WIN32_WINNT): Don't define.
47656         (CreateHardLinkFuncType): New type.
47657         (CreateHardLinkFunc, initialized): New variables.
47658         (initialize): New function.
47659         (link): Invoke CreateHardLink indirectly through the function pointer.
47660
47661 2009-01-20  Bruno Haible  <bruno@clisp.org>
47662
47663         Fix compilation failure on mingw.
47664         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47665
47666 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47667
47668         * doc/c-strtod.texi: Mention a couple of restrictions.
47669
47670 2009-01-20  Jim Meyering  <meyering@redhat.com>
47671
47672         gettimeofday: move more declarations out of functions
47673         * lib/gettimeofday.c: Move extern declarations of tzset and
47674         gmtime out of containing functions.  Prompted by Bruno Haible.
47675
47676 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47677
47678         regex: do not depend on obsolete modules.
47679         * modules/regex: Remove memcmp and memmove.
47680
47681 2009-01-19  Bruno Haible  <bruno@clisp.org>
47682
47683         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47684         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47685         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47686         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47687         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47688
47689 2009-01-19  Bruno Haible  <bruno@clisp.org>
47690
47691         * tests/test-link.c: Include <errno.h>.
47692         (main): Exit with code 77 when a hard link cannot be created due to
47693         the file system.
47694         * tests/test-link.sh: Skip test when a hard link cannot be created due
47695         to the file system.
47696         Suggested by Eric Blake.
47697
47698 2009-01-19  Martin Lambers  <marlam@marlam.de>
47699
47700         * modules/link-tests: New file.
47701         * tests/test-link.sh: New file.
47702         * tests/test-link.c: New file.
47703
47704 2009-01-19  Eric Blake  <ebb9@byu.net>
47705
47706         doc: mention another function added in cygwin 1.7.0
47707         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47708         Another new function in cygwin 1.7.
47709
47710 2009-01-19  Bruno Haible  <bruno@clisp.org>
47711
47712         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47713         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47714         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47715         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47716         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47717         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47718         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47719         * m4/md4.m4 (gl_MD4): Likewise.
47720         * m4/md5.m4 (gl_MD5): Likewise.
47721         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47722         * m4/sha1.m4 (gl_SHA1): Likewise.
47723         * m4/sha256.m4 (gl_SHA256): Likewise.
47724         * m4/sha512.m4 (gl_SHA512): Likewise.
47725
47726 2009-01-19  Bruno Haible  <bruno@clisp.org>
47727
47728         * modules/uniname/uniname-tests (Depends-on): Add progname.
47729         * tests/uniname/test-uninames.c: Include progname.h.
47730         (main): Call set_program_name.
47731
47732         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47733         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47734         (main): Call set_program_name.
47735
47736         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47737         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47738         (main): Call set_program_name.
47739
47740         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47741         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47742         (main): Call set_program_name.
47743
47744         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47745         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47746         (main): Call set_program_name.
47747
47748         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47749         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47750         (main): Call set_program_name.
47751
47752         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47753         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47754         (main): Call set_program_name.
47755
47756         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47757         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47758         (main): Call set_program_name.
47759
47760         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47761         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47762         (main): Call set_program_name.
47763
47764 2009-01-19  Eric Blake  <ebb9@byu.net>
47765
47766         test-unistd: test previous patch
47767         * tests/test-unistd.c: Test *_FILENO macros.
47768
47769         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47770         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47771         Guarantee a definition.
47772         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47773         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47774         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47775         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47776         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47777         Likewise.
47778         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47779         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47780         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47781         Likewise.
47782         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47783         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47784         (STDERR_FILENO): Likewise.
47785         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47786         (STDERR_FILENO): Likewise.
47787         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47788         (STDERR_FILENO): Likewise.
47789         Reported by Elbert Pol.
47790
47791 2009-01-19  Eric Blake  <ebb9@byu.net>
47792
47793         doc: mention more functions added in cygwin 1.7.0
47794         * doc/posix-functions/abort.texi (abort): Update wording related
47795         to cygwin.
47796         * doc/posix-functions/daylight.texi (daylight): Likewise.
47797         * doc/posix-functions/optarg.texi (optarg): Likewise.
47798         * doc/posix-functions/optarg.texi (opterr): Likewise.
47799         * doc/posix-functions/optarg.texi (optind): Likewise.
47800         * doc/posix-functions/optarg.texi (optopt): Likewise.
47801         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47802         worked in 1.5.x, and was withdrawn in 1.7.
47803         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47804         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47805         cygwin versions.
47806         * doc/posix-functions/perror.texi (perror): Likewise.
47807         * doc/posix-functions/printf.texi (printf): Likewise.
47808         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47809         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47810         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47811         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47812         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47813         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47814         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47815         Likewise.
47816         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47817         Likewise.
47818         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47819         this function.
47820         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47821         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47822         Likewise.
47823         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47824         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47825         * doc/posix-functions/confstr.texi (confstr): Likewise.
47826         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47827         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47828         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47829         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47830         * doc/posix-functions/fputws.texi (fputws): Likewise.
47831         * doc/posix-functions/fwide.texi (fwide): Likewise.
47832         * doc/posix-functions/getwc.texi (getwc): Likewise.
47833         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47834         * doc/posix-functions/putwc.texi (putwc): Likewise.
47835         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47836         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47837         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47838         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47839         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47840         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47841         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47842         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47843         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47844         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47845         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47846
47847 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47848
47849         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47850         * lib/ioctl.c: Include <sys/ioctl.h>.
47851
47852 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47853
47854         * modules/getdate-tests (Depends-on): Add progname.
47855         * tests/test-getdate.c: Use progname module, to avoid link errors
47856         on non-glibc systems.
47857
47858 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47859
47860         * modules/filenamecat-tests (Depends-on): Add progname.
47861         * modules/fstrcmp-tests (Depends-on): Likewise.
47862
47863         * tests/test-filenamecat.c: Use progname module, to avoid link
47864         errors on non-glibc systems.
47865         * tests/test-fstrcmp.c: Likewise.
47866
47867 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47868
47869         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47870         * lib/gettimeofday.c: Move extern declaration out of function.
47871
47872 2009-01-18  Bruno Haible  <bruno@clisp.org>
47873
47874         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47875         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47876         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47877
47878 2009-01-18  Bruno Haible  <bruno@clisp.org>
47879
47880         * lib/strftime.c (MEMPCPY): Remove unused macro.
47881         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47882
47883 2009-01-18  Martin Lambers  <marlam@marlam.de>
47884
47885         New module 'link'.
47886         * lib/unistd.in.h (link): New declaration.
47887         * lib/link.c: New file.
47888         * m4/link.m4: New file.
47889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47890         HAVE_LINK.
47891         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47892         * modules/link: New file.
47893         * doc/posix-functions/link.texi: Mention the new module.
47894
47895 2009-01-18  Bruno Haible  <bruno@clisp.org>
47896
47897         * tests/test-avltree_list.c (main): Call set_program_name.
47898         * tests/test-avltree_oset.c (main): Likewise.
47899         * tests/test-obstack-printf.c: Include progname.h.
47900         (main): Call set_program_name.
47901         * tests/test-quotearg.c: Include progname.h.
47902         (main): Call set_program_name.
47903         * tests/test-xmemdup0.c: Include progname.h.
47904         (main): Call set_program_name.
47905
47906 2009-01-18  Bruno Haible  <bruno@clisp.org>
47907
47908         New module 'alphasort'.
47909         * lib/dirent.in.h (alphasort): New declaration.
47910         * lib/alphasort.c: New file, from glibc with modifications.
47911         * m4/alphasort.m4: New file.
47912         * modules/alphasort: New file.
47913         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47914         HAVE_ALPHASORT.
47915         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47916         HAVE_ALPHASORT.
47917         * doc/posix-functions/alphasort.texi: Mention the new module and the
47918         portability problems.
47919
47920 2009-01-18  Bruno Haible  <bruno@clisp.org>
47921
47922         New module 'scandir'.
47923         * lib/dirent.in.h (scandir): New declaration.
47924         * lib/scandir.c: New file, from glibc with modifications.
47925         * m4/scandir.m4: New file.
47926         * modules/scandir: New file.
47927         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47928         HAVE_SCANDIR.
47929         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47930         HAVE_SCANDIR.
47931         * doc/posix-functions/scandir.texi: Mention the new module and the
47932         portability problems.
47933
47934 2009-01-17  Bruno Haible  <bruno@clisp.org>
47935
47936         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47937         Update documentation.
47938         (func_remove_suffix): Escape all dots in the suffix. Update
47939         documentation.
47940         (func_filter_filelist): Update documentation.
47941         Reported by Ralf Wildenhues.
47942
47943 2009-01-17  Bruno Haible  <bruno@clisp.org>
47944
47945         * modules/dprintf-posix-tests: New file.
47946         * tests/test-dprintf-posix.sh: New file.
47947         * tests/test-dprintf-posix.c: New file.
47948
47949         New modules 'dprintf', 'dprintf-posix'.
47950         * lib/stdio.in.h (dprintf): New declaration.
47951         * lib/dprintf.c: New file.
47952         * m4/dprintf.m4: New file.
47953         * m4/dprintf-posix.m4: New file.
47954         * modules/dprintf: New file.
47955         * modules/dprintf-posix: New file.
47956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47957         HAVE_DPRINTF, REPLACE_DPRINTF.
47958         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47959         HAVE_DPRINTF, REPLACE_DPRINTF.
47960         * doc/posix-functions/dprintf.texi: Mention the new modules.
47961
47962 2009-01-17  Bruno Haible  <bruno@clisp.org>
47963
47964         * modules/vdprintf-posix-tests: New file.
47965         * tests/test-vdprintf-posix.sh: New file.
47966         * tests/test-vdprintf-posix.c: New file.
47967
47968         New modules 'vdprintf', 'vdprintf-posix'.
47969         * lib/stdio.in.h (vdprintf): New declaration.
47970         * lib/vdprintf.c: New file.
47971         * m4/vdprintf.m4: New file.
47972         * m4/vdprintf-posix.m4: New file.
47973         * modules/vdprintf: New file.
47974         * modules/vdprintf-posix: New file.
47975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47976         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47977         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47978         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47979         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47980
47981 2009-01-17  Bruno Haible  <bruno@clisp.org>
47982
47983         Fix replacement of fopen on mingw.
47984         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47985         mingw.
47986
47987 2009-01-17  Bruno Haible  <bruno@clisp.org>
47988
47989         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47990         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47991
47992 2009-01-17  Bruno Haible  <bruno@clisp.org>
47993
47994         Avoid test-fflush2.sh failure on mingw.
47995         * tests/test-fflush2.c: Include binary-io.h.
47996         (main): Put standard input into binary mode.
47997         * modules/fflush-tests (Depends-on): Add binary-io.
47998
47999 2009-01-17  Bruno Haible  <bruno@clisp.org>
48000
48001         * lib/wchar.in.h: In another particular situation, include only the
48002         system's <wchar.h> file.
48003         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48004         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48005         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48006
48007 2009-01-17  Bruno Haible  <bruno@clisp.org>
48008
48009         Support for stripping executables in --enable-relocatable.
48010         * build-aux/install-reloc: Expect one more argument, or an environment
48011         variable RELOC_STRIP_PROG. If set, strip the destination program and
48012         its wrapper.
48013         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48014         RELOC_STRIP_PROG.
48015         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48016         to set RELOCATABLE_STRIP.
48017         * NEWS: Mention the new Makefile requirement.
48018
48019 2009-01-17  Bruno Haible  <bruno@clisp.org>
48020
48021         * build-aux/install-reloc: Remove debugging information left over by
48022         C compiler on MacOS X.
48023
48024 2009-01-17  Bruno Haible  <bruno@clisp.org>
48025
48026         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48027         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48028         _NSGetExecutablePath.
48029
48030 2009-01-16  Jim Meyering  <meyering@redhat.com>
48031
48032         strerror: avoid warnings about discarding "const"
48033         * lib/strerror.c (rpl_strerror): Instead of returning a const
48034         string from each and every "case", use a variable, and add a single
48035         cast after the switch.
48036
48037 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48038
48039         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48040
48041 2009-01-16  Bruno Haible  <bruno@clisp.org>
48042
48043         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48044         array initializer syntax that also works in C++ mode.
48045         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48046
48047 2009-01-16  Jim Meyering  <meyering@redhat.com>
48048
48049         poll: suppress a warning
48050         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48051         to ignore "...unsigned expression < 0 is always false" warnings.
48052
48053 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48054
48055         poll: remove declarations of unused variables
48056         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48057         sockbuf and optlen.
48058
48059 2009-01-15  Bruno Haible  <bruno@clisp.org>
48060
48061         Make fflush-after-ungetc POSIX compliant on BSD systems.
48062         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48063         (clear_ungetc_buffer): Implement also for other systems.
48064         (rpl_fflush): On glibc systems, invoke
48065         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48066         clear_ungetc_buffer after fetching the stream's position, not before.
48067
48068 2009-01-15  Bruno Haible  <bruno@clisp.org>
48069
48070         Make fflush-after-ungetc POSIX compliant on glibc systems.
48071         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48072         after ungetc.
48073         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48074         (rpl_fflush): On glibc systems, simply call the system's fflush
48075         function after clearing the ungetc buffer.
48076         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48077         Instead, lseek only to the end of file, then use the system's fseeko
48078         for the rest. On glibc systems, reset the EOF indicator bit.
48079
48080 2009-01-15  Jim Meyering  <meyering@redhat.com>
48081
48082         openmp.m4: revert quote-adding change, for portability to older autoconf
48083         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48084         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48085         Simon Josefsson noticed the problem when using autoconf-2.61.
48086
48087 2009-01-15  Bruno Haible  <bruno@clisp.org>
48088
48089         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48090         * tests/test-fflush2.c (ASSERT): Always fail.
48091         (main): Add two tests for fflush() after ungetc(), taking into account
48092         the Austin Group's clarification.
48093         Suggested by Eric Blake.
48094
48095 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48096
48097         mktime.m4: remove K&R-style function prototypes
48098         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48099         for the Sun C++ compiler.
48100
48101 2009-01-14  Bruno Haible  <bruno@clisp.org>
48102
48103         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48104         while including <wchar.h>.
48105         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48106         the system's <wchar.h> file.
48107         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48108
48109 2009-01-14  Bruno Haible  <bruno@clisp.org>
48110
48111         * m4/csharp.m4: Don't mention gettext on the serial number line.
48112         * m4/csharpexec.m4: Likewise.
48113         * m4/eaccess.m4: Likewise.
48114         * m4/javaexec.m4: Likewise.
48115         * m4/sig_atomic_t.m4: Likewise.
48116         * m4/tmpdir.m4: Likewise.
48117         * m4/intldir.m4: Bump gettext version.
48118         * m4/lib-ld.m4: Likewise.
48119
48120 2009-01-14  Bruno Haible  <bruno@clisp.org>
48121
48122         * lib/progname.c (set_program_name): Add more comments.
48123         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48124
48125 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48126
48127         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48128         were sys/stat.h does not define it.
48129
48130 2009-01-14  Jim Meyering  <meyering@redhat.com>
48131
48132         many *.m4 files: improve m4 quoting
48133         99% of this change was performed by running the following commands:
48134         git ls-files | grep '\.m4$' | xargs perl -pi \
48135           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48136           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48137           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48138           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48139         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48140         The remainder were to add Copyright dates, increment serial numbers,
48141         undo some changes in comments, exclude m4/intl.m4, and add quotes
48142         around the "1" in ",1" where the unusual spacing prohibited the
48143         above regexps from doing the job.  For more details, see
48144         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48145         * m4/acl.m4: Modified.
48146         * m4/afs.m4: Likewise.
48147         * m4/alloca.m4: Likewise.
48148         * m4/argp.m4: Likewise.
48149         * m4/argz.m4: Likewise.
48150         * m4/atexit.m4: Likewise.
48151         * m4/bison-i18n.m4: Likewise.
48152         * m4/bison.m4: Likewise.
48153         * m4/byteswap.m4: Likewise.
48154         * m4/c-stack.m4: Likewise.
48155         * m4/c-strtod.m4: Likewise.
48156         * m4/calloc.m4: Likewise.
48157         * m4/canonicalize-lgpl.m4: Likewise.
48158         * m4/chown.m4: Likewise.
48159         * m4/clock_time.m4: Likewise.
48160         * m4/codeset.m4: Likewise.
48161         * m4/copy-file.m4: Likewise.
48162         * m4/csharp.m4: Likewise.
48163         * m4/csharpcomp.m4: Likewise.
48164         * m4/csharpexec.m4: Likewise.
48165         * m4/d-ino.m4: Likewise.
48166         * m4/d-type.m4: Likewise.
48167         * m4/dirfd.m4: Likewise.
48168         * m4/double-slash-root.m4: Likewise.
48169         * m4/eaccess.m4: Likewise.
48170         * m4/eealloc.m4: Likewise.
48171         * m4/environ.m4: Likewise.
48172         * m4/errno_h.m4: Likewise.
48173         * m4/euidaccess.m4: Likewise.
48174         * m4/execute.m4: Likewise.
48175         * m4/fatal-signal.m4: Likewise.
48176         * m4/fchdir.m4: Likewise.
48177         * m4/fcntl_h.m4: Likewise.
48178         * m4/fileblocks.m4: Likewise.
48179         * m4/filenamecat.m4: Likewise.
48180         * m4/findprog.m4: Likewise.
48181         * m4/flexmember.m4: Likewise.
48182         * m4/fnmatch.m4: Likewise.
48183         * m4/fopen.m4: Likewise.
48184         * m4/fpending.m4: Likewise.
48185         * m4/fprintf-posix.m4: Likewise.
48186         * m4/free.m4: Likewise.
48187         * m4/frexp.m4: Likewise.
48188         * m4/frexpl.m4: Likewise.
48189         * m4/fsusage.m4: Likewise.
48190         * m4/ftruncate.m4: Likewise.
48191         * m4/gc-camellia.m4: Likewise.
48192         * m4/gc-random.m4: Likewise.
48193         * m4/gc.m4: Likewise.
48194         * m4/getaddrinfo.m4: Likewise.
48195         * m4/getcwd-abort-bug.m4: Likewise.
48196         * m4/getcwd-path-max.m4: Likewise.
48197         * m4/getdate.m4: Likewise.
48198         * m4/getdomainname.m4: Likewise.
48199         * m4/getgroups.m4: Likewise.
48200         * m4/gethostname.m4: Likewise.
48201         * m4/gethrxtime.m4: Likewise.
48202         * m4/getline.m4: Likewise.
48203         * m4/getloadavg.m4: Likewise.
48204         * m4/getndelim2.m4: Likewise.
48205         * m4/getpass.m4: Likewise.
48206         * m4/gettext.m4: Likewise.
48207         * m4/gettime.m4: Likewise.
48208         * m4/gettimeofday.m4: Likewise.
48209         * m4/gnulib-common.m4: Likewise.
48210         * m4/group-member.m4: Likewise.
48211         * m4/host-os.m4: Likewise.
48212         * m4/iconv.m4: Likewise.
48213         * m4/iconv_open.m4: Likewise.
48214         * m4/inet_ntop.m4: Likewise.
48215         * m4/inet_pton.m4: Likewise.
48216         * m4/inline.m4: Likewise.
48217         * m4/intldir.m4: Likewise.
48218         * m4/intlmacosx.m4: Likewise.
48219         * m4/intmax.m4: Likewise.
48220         * m4/intmax_t.m4: Likewise.
48221         * m4/inttypes.m4: Likewise.
48222         * m4/inttypes_h.m4: Likewise.
48223         * m4/inttypes-pri.m4: Likewise.
48224         * m4/isapipe.m4: Likewise.
48225         * m4/isnand.m4: Likewise.
48226         * m4/isnanf.m4: Likewise.
48227         * m4/isnanl.m4: Likewise.
48228         * m4/javacomp.m4: Likewise.
48229         * m4/javaexec.m4: Likewise.
48230         * m4/jm-winsz1.m4: Likewise.
48231         * m4/jm-winsz2.m4: Likewise.
48232         * m4/lchown.m4: Likewise.
48233         * m4/lcmessage.m4: Likewise.
48234         * m4/ldexpl.m4: Likewise.
48235         * m4/lib-ld.m4: Likewise.
48236         * m4/lib-link.m4: Likewise.
48237         * m4/libsigsegv.m4: Likewise.
48238         * m4/link-follow.m4: Likewise.
48239         * m4/localcharset.m4: Likewise.
48240         * m4/locale-fr.m4: Likewise.
48241         * m4/locale-ja.m4: Likewise.
48242         * m4/locale-tr.m4: Likewise.
48243         * m4/locale-zh.m4: Likewise.
48244         * m4/lock.m4: Likewise.
48245         * m4/longlong.m4: Likewise.
48246         * m4/ls-mntd-fs.m4: Likewise.
48247         * m4/lstat.m4: Likewise.
48248         * m4/malloc.m4: Likewise.
48249         * m4/mathl.m4: Likewise.
48250         * m4/mbrtowc.m4: Likewise.
48251         * m4/mbstate_t.m4: Likewise.
48252         * m4/mbswidth.m4: Likewise.
48253         * m4/memchr.m4: Likewise.
48254         * m4/memcmp.m4: Likewise.
48255         * m4/memcpy.m4: Likewise.
48256         * m4/memmem.m4: Likewise.
48257         * m4/memmove.m4: Likewise.
48258         * m4/mempcpy.m4: Likewise.
48259         * m4/memrchr.m4: Likewise.
48260         * m4/memset.m4: Likewise.
48261         * m4/minmax.m4: Likewise.
48262         * m4/mkdir-slash.m4: Likewise.
48263         * m4/mkdtemp.m4: Likewise.
48264         * m4/mktime.m4: Likewise.
48265         * m4/mmap-anon.m4: Likewise.
48266         * m4/mountlist.m4: Likewise.
48267         * m4/nanosleep.m4: Likewise.
48268         * m4/nls.m4: Likewise.
48269         * m4/nocrash.m4: Likewise.
48270         * m4/open.m4: Likewise.
48271         * m4/openat.m4: Likewise.
48272         * m4/openmp.m4: Likewise.
48273         * m4/pathmax.m4: Likewise.
48274         * m4/perl.m4: Likewise.
48275         * m4/physmem.m4: Likewise.
48276         * m4/pipe.m4: Likewise.
48277         * m4/po.m4: Likewise.
48278         * m4/poll.m4: Likewise.
48279         * m4/posixtm.m4: Likewise.
48280         * m4/posixver.m4: Likewise.
48281         * m4/printf-frexp.m4: Likewise.
48282         * m4/printf-frexpl.m4: Likewise.
48283         * m4/printf-posix.m4: Likewise.
48284         * m4/printf-posix-rpl.m4: Likewise.
48285         * m4/printf.m4: Likewise.
48286         * m4/progtest.m4: Likewise.
48287         * m4/putenv.m4: Likewise.
48288         * m4/readline.m4: Likewise.
48289         * m4/readlink.m4: Likewise.
48290         * m4/readutmp.m4: Likewise.
48291         * m4/realloc.m4: Likewise.
48292         * m4/regex.m4: Likewise.
48293         * m4/relocatable.m4: Likewise.
48294         * m4/relocatable-lib.m4: Likewise.
48295         * m4/rename-dest-slash.m4: Likewise.
48296         * m4/rename.m4: Likewise.
48297         * m4/rmdir-errno.m4: Likewise.
48298         * m4/rmdir.m4: Likewise.
48299         * m4/roundf.m4: Likewise.
48300         * m4/roundl.m4: Likewise.
48301         * m4/rpmatch.m4: Likewise.
48302         * m4/save-cwd.m4: Likewise.
48303         * m4/selinux-selinux-h.m4: Likewise.
48304         * m4/setenv.m4: Likewise.
48305         * m4/settime.m4: Likewise.
48306         * m4/sig2str.m4: Likewise.
48307         * m4/sig_atomic_t.m4: Likewise.
48308         * m4/signalblocking.m4: Likewise.
48309         * m4/signbit.m4: Likewise.
48310         * m4/sigpipe.m4: Likewise.
48311         * m4/sockets.m4: Likewise.
48312         * m4/sockpfaf.m4: Likewise.
48313         * m4/st_dm_mode.m4: Likewise.
48314         * m4/stat-time.m4: Likewise.
48315         * m4/stdbool.m4: Likewise.
48316         * m4/stdint.m4: Likewise.
48317         * m4/stdint_h.m4: Likewise.
48318         * m4/stpcpy.m4: Likewise.
48319         * m4/stpncpy.m4: Likewise.
48320         * m4/strcase.m4: Likewise.
48321         * m4/strchrnul.m4: Likewise.
48322         * m4/strcspn.m4: Likewise.
48323         * m4/strdup.m4: Likewise.
48324         * m4/strftime.m4: Likewise.
48325         * m4/strndup.m4: Likewise.
48326         * m4/strnlen.m4: Likewise.
48327         * m4/strpbrk.m4: Likewise.
48328         * m4/strptime.m4: Likewise.
48329         * m4/strsep.m4: Likewise.
48330         * m4/strtod.m4: Likewise.
48331         * m4/strtoimax.m4: Likewise.
48332         * m4/strtok_r.m4: Likewise.
48333         * m4/strtol.m4: Likewise.
48334         * m4/strtoll.m4: Likewise.
48335         * m4/strtoul.m4: Likewise.
48336         * m4/strtoull.m4: Likewise.
48337         * m4/strtoumax.m4: Likewise.
48338         * m4/strverscmp.m4: Likewise.
48339         * m4/threadlib.m4: Likewise.
48340         * m4/timegm.m4: Likewise.
48341         * m4/tm_gmtoff.m4: Likewise.
48342         * m4/tmpdir.m4: Likewise.
48343         * m4/tmpfile.m4: Likewise.
48344         * m4/tzset.m4: Likewise.
48345         * m4/uintmax_t.m4: Likewise.
48346         * m4/unlinkdir.m4: Likewise.
48347         * m4/unlocked-io.m4: Likewise.
48348         * m4/uptime.m4: Likewise.
48349         * m4/userspec.m4: Likewise.
48350         * m4/utimbuf.m4: Likewise.
48351         * m4/utime.m4: Likewise.
48352         * m4/utimes-null.m4: Likewise.
48353         * m4/utimes.m4: Likewise.
48354         * m4/vararrays.m4: Likewise.
48355         * m4/vasnprintf.m4: Likewise.
48356         * m4/vfprintf-posix.m4: Likewise.
48357         * m4/vprintf-posix.m4: Likewise.
48358         * m4/wait-process.m4: Likewise.
48359         * m4/wchar_t.m4: Likewise.
48360         * m4/wint_t.m4: Likewise.
48361         * m4/write-any-file.m4: Likewise.
48362         * m4/yield.m4: Likewise.
48363
48364 2009-01-13  Bruno Haible  <bruno@clisp.org>
48365
48366         Avoid test-copy-file.sh failures when ACL support insufficient.
48367         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48368         TESTS_ENVIRONMENT.
48369         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48370         Reported by Jim Meyering.
48371
48372 2009-01-13  Bruno Haible  <bruno@clisp.org>
48373
48374         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48375         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48376         * modules/unistdio/u8-printf-parse (Files): Likewise.
48377         * modules/unistdio/u32-printf-parse (Files): Likewise.
48378         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48379
48380 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48381
48382         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48383         and m4/inttypes_h.m4 too.
48384
48385 2009-01-12  Eric Blake  <ebb9@byu.net>
48386
48387         tests: IRIX 6.2 cc can't compile -0.0 into .data
48388         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48389         rather than at compile-time.
48390         * tests/test-floorl.c (minus_zero): Likewise.
48391         * tests/test-frexpl.c (minus_zero): Likewise.
48392         * tests/test-isnan.c (minus_zerol): Likewise.
48393         * tests/test-isnanl.h (minus_zero): Likewise.
48394         * tests/test-ldexpl.c (minus_zero): Likewise.
48395         * tests/test-roundl.c (minus_zero): Likewise.
48396         * tests/test-signbit.c (minus_zerol): Likewise.
48397         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48398         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48399         * tests/test-truncl.c (minus_zero): Likewise.
48400         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48401         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48402         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48403
48404 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48405
48406         regex: fix glibc bug 9697
48407         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48408         handling.
48409
48410 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48411
48412         regex: fix glibc bug 697
48413         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48414         being NULL also if there are no backreferences.
48415
48416 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48417
48418         regex: merge glibc changes
48419         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48420         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48421         re_string_skip_chars, re_string_reconstruct): Likewise.
48422         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48423
48424 2009-01-07  Jim Meyering  <meyering@redhat.com>
48425
48426         poll: filter through cppi
48427         * lib/poll.c: Indent cpp directives to reflect nesting.
48428
48429 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48430
48431         poll: don't return uninitialized
48432         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48433
48434 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48435
48436         avoid compile failure on AIX 6.1
48437         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48438         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48439
48440 2009-01-04  Jim Meyering  <meyering@redhat.com>
48441
48442         remove duplicate inclusion of <stdio.h>
48443         * tests/test-fprintf-posix.c: Likewise.
48444         * tests/test-printf-posix.c: Likewise.
48445         * tests/test-snprintf-posix.c: Likewise.
48446         * tests/test-sprintf-posix.c: Likewise.
48447         * tests/test-vasprintf-posix.c: Likewise.
48448         * tests/test-vfprintf-posix.c: Likewise.
48449         * tests/test-vprintf-posix.c: Likewise.
48450         * tests/test-vsnprintf-posix.c: Likewise.
48451         * tests/test-vsprintf-posix.c: Likewise.
48452
48453 2009-01-03  Jim Meyering  <meyering@redhat.com>
48454
48455         gnulib-tool: fix sed-based filtering
48456         * gnulib-tool (func_filter_filelist): Remove extra backslash
48457         in sed_fff_filter definition.
48458
48459 2009-01-02  Jim Meyering  <meyering@redhat.com>
48460
48461         strftime: avoid compilation failure on Solaris 2.6
48462         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48463         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48464         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48465         be available.  Reported by Tom G. Christensen.  Details in
48466         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48467
48468 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48469             Bruno Haible  <bruno@clisp.org>
48470
48471         Speed up gnulib-tool by doing more string processing through shell
48472         built-ins.
48473         * gnulib-tool (fast_func_append): New variable.
48474         (func_remove_prefix, func_remove_suffix): New functions.
48475         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48476         (func_filter_filelist): New function.
48477         (func_get_dependencies): Use func_remove_suffix instead of sed.
48478         (func_get_automake_snippet): Use func_filter_filelist instead of a
48479         subshell and sed invocation.
48480
48481 2009-01-01  Bruno Haible  <bruno@clisp.org>
48482
48483         Fix a security bug.
48484         * gnulib-tool (func_import, import, update): Don't allow the characters
48485         '"', '$', '`', '\' in macro arguments that become part of commands that
48486         are evaluated.
48487
48488 2009-01-01  Bruno Haible  <bruno@clisp.org>
48489
48490         * gnulib-tool (func_reset_sigpipe): Add more comments.
48491
48492 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48493
48494         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48495         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48496         already know the answer.
48497
48498 2009-01-01  Jim Meyering  <meyering@redhat.com>
48499
48500         * lib/version-etc.c (version_etc_va): Update copyright year.
48501
48502 2008-12-30  Bruno Haible  <bruno@clisp.org>
48503
48504         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48505         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48506         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48507
48508 2008-12-29  Eric Blake  <ebb9@byu.net>
48509
48510         multiarch: avoid autoconf AC_REQUIRE bug
48511         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48512         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48513         2.63 and older.
48514         Reported by Bruno Haible, and analyzed in
48515         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48516
48517 2008-12-29  Bruno Haible  <bruno@clisp.org>
48518
48519         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48520         files in subdirectories correctly.
48521         Reported by Ralf Wildenhues.
48522
48523 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48524
48525         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48526         rather than 'join FILE -', for Solaris join.
48527
48528 2008-12-29  Bruno Haible  <bruno@clisp.org>
48529
48530         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48531         quoting.
48532         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48533         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48534         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48535         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48536         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48537         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48538         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48539         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48540         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48541         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48542         * m4/nls.m4 (AM_NLS): Likewise.
48543         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48544         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48545         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48546         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48547         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48548         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48549         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48550         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48551         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48552         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48553         * m4/xsize.m4 (gl_XSIZE): Likewise.
48554         Suggested by Jim Meyering.
48555
48556 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48557
48558         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48559         * lib/parse-duration.c: use a switch instead of cascading if's.
48560
48561 2008-12-29  Eric Blake  <ebb9@byu.net>
48562
48563         wchar.h: supply WEOF on Irix 5.3
48564         * lib/wchar.in.h (wint_t): Also supply WEOF.
48565         * lib/wctype.in.h (wint_t): Likewise.
48566         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48567         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48568         Reported by Tom G. Christensen.
48569
48570 2008-12-26  Bruno Haible  <bruno@clisp.org>
48571
48572         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48573         i486, i586, i686.
48574
48575 2008-12-26  Bruno Haible  <bruno@clisp.org>
48576
48577         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48578
48579 2008-12-26  Bruno Haible  <bruno@clisp.org>
48580
48581         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48582         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48583         not __STDC_CONSTANT_MACROS.
48584         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48585
48586 2008-12-25  Bruno Haible  <bruno@clisp.org>
48587
48588         Add support for universal builds to vasnprintf.
48589         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48590         universal builds, guess no.
48591         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48592         * modules/vasprintf-posix (Depends-on): Likewise.
48593         * modules/fprintf-posix (Depends-on): Likewise.
48594         * modules/vfprintf-posix (Depends-on): Likewise.
48595         * modules/snprintf-posix (Depends-on): Likewise.
48596         * modules/vsnprintf-posix (Depends-on): Likewise.
48597         * modules/sprintf-posix (Depends-on): Likewise.
48598         * modules/vsprintf-posix (Depends-on): Likewise.
48599         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48600         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48601         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48602         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48603         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48604         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48605         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48606
48607         Add support for universal builds to <inttypes.h>.
48608         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48609         _SCNu64_PREFIX): In Apple
48610         universal builds, define directly, using _LP64.
48611         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48612         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48613         * modules/inttypes (Depends-on): Add multiarch.
48614         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48615
48616         Add support for universal builds to <stdint.h>.
48617         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48618         universal builds, define directly, using _LP64.
48619         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48620         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48621         and size_t.
48622         * modules/stdint (Depends-on): Add multiarch.
48623         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48624
48625         New module 'multiarch'.
48626         * modules/multiarch: New file.
48627         * m4/multiarch.m4: New file.
48628
48629 2008-12-25  Bruno Haible  <bruno@clisp.org>
48630
48631         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48632
48633 2008-12-25  Bruno Haible  <bruno@clisp.org>
48634
48635         * modules/btowc (License): Relicense under LGPLv2+.
48636         * modules/mbsinit (License): Likewise.
48637         * modules/mbrtowc (License): Likewise.
48638         * modules/wcrtomb (License): Likewise.
48639         * modules/streq (License): Likewise.
48640         Reported by David Lutterkort <lutter@redhat.com>.
48641
48642 2008-12-23  Bruno Haible  <bruno@clisp.org>
48643
48644         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48645
48646 2008-12-23  Bruno Haible  <bruno@clisp.org>
48647
48648         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48649         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48650         GETADDRINFO_LIB, not in LIBS.
48651         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48652         * modules/canon-host (Link): Likewise.
48653         * NEWS: Mention the change.
48654         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48655         GETADDRINFO_LIB.
48656
48657 2008-12-22  Bruno Haible  <bruno@clisp.org>
48658
48659         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48660         * doc/posix-functions/iswalpha_l.texi: Likewise.
48661         * doc/posix-functions/iswblank_l.texi: Likewise.
48662         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48663         * doc/posix-functions/iswctype_l.texi: Likewise.
48664         * doc/posix-functions/iswdigit_l.texi: Likewise.
48665         * doc/posix-functions/iswgraph_l.texi: Likewise.
48666         * doc/posix-functions/iswlower_l.texi: Likewise.
48667         * doc/posix-functions/iswprint_l.texi: Likewise.
48668         * doc/posix-functions/iswpunct_l.texi: Likewise.
48669         * doc/posix-functions/iswspace_l.texi: Likewise.
48670         * doc/posix-functions/iswupper_l.texi: Likewise.
48671         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48672         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48673         * doc/posix-functions/open_wmemstream.texi: Likewise.
48674         * doc/posix-functions/swscanf.texi: Likewise.
48675         * doc/posix-functions/towctrans_l.texi: Likewise.
48676         * doc/posix-functions/towlower.texi: Likewise.
48677         * doc/posix-functions/towlower_l.texi: Likewise.
48678         * doc/posix-functions/towupper.texi: Likewise.
48679         * doc/posix-functions/towupper_l.texi: Likewise.
48680         * doc/posix-functions/vfwprintf.texi: Likewise.
48681         * doc/posix-functions/vfwscanf.texi: Likewise.
48682         * doc/posix-functions/vswscanf.texi: Likewise.
48683         * doc/posix-functions/vwprintf.texi: Likewise.
48684         * doc/posix-functions/vwscanf.texi: Likewise.
48685         * doc/posix-functions/wcpcpy.texi: Likewise.
48686         * doc/posix-functions/wcpncpy.texi: Likewise.
48687         * doc/posix-functions/wcscasecmp.texi: Likewise.
48688         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48689         * doc/posix-functions/wcscoll_l.texi: Likewise.
48690         * doc/posix-functions/wcsdup.texi: Likewise.
48691         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48692         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48693         * doc/posix-functions/wcsnlen.texi: Likewise.
48694         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48695         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48696         * doc/posix-functions/wctrans_l.texi: Likewise.
48697         * doc/posix-functions/wctype_l.texi: Likewise.
48698         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48699         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48700         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48701         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48702         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48703         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48704         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48705         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48706         * doc/glibc-functions/wcschrnul.texi: Likewise.
48707         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48708         * doc/glibc-functions/wcstod_l.texi: Likewise.
48709         * doc/glibc-functions/wcstof_l.texi: Likewise.
48710         * doc/glibc-functions/wcstol_l.texi: Likewise.
48711         * doc/glibc-functions/wcstold_l.texi: Likewise.
48712         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48713         * doc/glibc-functions/wcstoq.texi: Likewise.
48714         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48715         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48716         * doc/glibc-functions/wcstouq.texi: Likewise.
48717         * doc/glibc-functions/wmempcpy.texi: Likewise.
48718
48719 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48720             Eric Blake  <ebb9@byu.net>
48721             Paolo Bonzini  <bonzini@gnu.org>
48722             Bruno Haible  <bruno@clisp.org>
48723
48724         Make c-stack work on Haiku.
48725         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48726         (c_stack_action): Use SA_ONSTACK flag.
48727
48728 2008-12-22  Bruno Haible  <bruno@clisp.org>
48729
48730         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48731
48732 2008-12-22  Bruno Haible  <bruno@clisp.org>
48733
48734         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48735         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48736         being overridden.
48737         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48738         New macros.
48739         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48741         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48742         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48743
48744 2008-12-22  Bruno Haible  <bruno@clisp.org>
48745
48746         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48747         from test code.
48748
48749 2008-12-22  Eric Blake  <ebb9@byu.net>
48750
48751         Avoid gcc warnings on cygwin.
48752         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48753         Avoid unused variable.
48754         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48755         Likewise.
48756
48757 2008-12-22  Bruno Haible  <bruno@clisp.org>
48758
48759         Remove HAVE_MBRTOWC conditionals.
48760         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48761         (mbscasecmp): Assume mbrtowc function.
48762         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48763         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48764         * lib/mbschr.c: Include mbuiter.h unconditionally.
48765         (mbschr): Assume mbrtowc function.
48766         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48767         (mbscspn): Assume mbrtowc function.
48768         * lib/mbslen.c: Include mbuiter.h unconditionally.
48769         (mbslen): Assume mbrtowc function.
48770         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48771         (mbsncasecmp): Assume mbrtowc function.
48772         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48773         (mbsnlen): Assume mbrtowc function.
48774         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48775         (mbspbrk): Assume mbrtowc function.
48776         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48777         (mbspcasecmp): Assume mbrtowc function.
48778         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48779         (mbsrchr): Assume mbrtowc function.
48780         * lib/mbssep.c: Include mbuiter.h unconditionally.
48781         (mbssep): Assume mbrtowc function.
48782         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48783         (mbsspn): Assume mbrtowc function.
48784         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48785         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48786         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48787         (mbstok_r): Assume mbrtowc function.
48788         * lib/propername.c: Include mbuiter.h unconditionally.
48789         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48790         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48791         (trim2): Assume mbrtowc function.
48792         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48793         (mbsnwidth): Assume mbrtowc function.
48794         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48795         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48796         fallback definitions.
48797         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48798
48799 2008-12-22  Bruno Haible  <bruno@clisp.org>
48800
48801         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48802
48803 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48804
48805         * modules/regex: Request emulations for the mb*/wc* functions we need.
48806         * m4/regex.m4: Don't look for those functions here.
48807         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48808
48809 2008-12-22  Bruno Haible  <bruno@clisp.org>
48810
48811         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48812
48813 2008-12-21  Bruno Haible  <bruno@clisp.org>
48814
48815         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48816         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48817         (Include): Remove conditionalization.
48818         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48819         (Include): Remove conditionalization.
48820         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48821         (Include): Remove conditionalization.
48822         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48823         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48824         * NEWS: Mention the change.
48825         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48826         via Sergey Poznyakoff <gray@gnu.org.ua>.
48827
48828 2008-12-21  Bruno Haible  <bruno@clisp.org>
48829
48830         * MODULES.html.sh (Extended multibyte and wide character utilities
48831         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48832         wcrtomb, wcsrtombs.
48833         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48834         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48835         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48836         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48837
48838 2008-12-21  Bruno Haible  <bruno@clisp.org>
48839
48840         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48841
48842 2008-12-21  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/wcsnrtombs-tests: New file.
48845         * tests/test-wcsnrtombs1.sh: New file.
48846         * tests/test-wcsnrtombs2.sh: New file.
48847         * tests/test-wcsnrtombs3.sh: New file.
48848         * tests/test-wcsnrtombs4.sh: New file.
48849         * tests/test-wcsnrtombs.c: New file.
48850
48851         New module 'wcsnrtombs'.
48852         * lib/wchar.in.h (wcsnrtombs): New declaration.
48853         * lib/wcsnrtombs.c: New file.
48854         * lib/wcsrtombs-state.c: New file.
48855         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48856         (internal_state): Remove variable.
48857         * m4/wcsnrtombs.m4: New file.
48858         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48859         compilation units.
48860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48861         HAVE_WCSNRTOMBS.
48862         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48863         HAVE_WCSNRTOMBS.
48864         * modules/wcsnrtombs: New file.
48865         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48866         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48867
48868 2008-12-21  Bruno Haible  <bruno@clisp.org>
48869
48870         * modules/wcsrtombs-tests: New file.
48871         * tests/test-wcsrtombs1.sh: New file.
48872         * tests/test-wcsrtombs2.sh: New file.
48873         * tests/test-wcsrtombs3.sh: New file.
48874         * tests/test-wcsrtombs4.sh: New file.
48875         * tests/test-wcsrtombs.c: New file.
48876
48877         New module 'wcsrtombs'.
48878         * lib/wchar.in.h (wcsrtombs): New declaration.
48879         * lib/wcsrtombs.c: New file.
48880         * m4/wcsrtombs.m4: New file.
48881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48882         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48884         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48885         * modules/wcsrtombs: New file.
48886         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48887         bugs.
48888
48889 2008-12-21  Bruno Haible  <bruno@clisp.org>
48890
48891         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48892         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48893         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48894         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48895         if not correct.
48896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48897         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48898         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48899         m4/locale-zh.m4, m4/codeset.m4.
48900         * doc/posix-functions/wcrtomb.texi: Document the bug.
48901
48902 2008-12-21  Bruno Haible  <bruno@clisp.org>
48903
48904         Work around a btowc() bug on IRIX 6.5.
48905         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48906         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48907         REPLACE_WTOBC if not.
48908         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48909         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48910         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48911
48912 2008-12-21  Bruno Haible  <bruno@clisp.org>
48913
48914         * modules/wcrtomb-tests: New file.
48915         * tests/test-wcrtomb.sh: New file.
48916         * tests/test-wcrtomb.c: New file.
48917
48918         New module 'wcrtomb'.
48919         * lib/wchar.in.h (wcrtomb): New declaration.
48920         * lib/wcrtomb.c: New file.
48921         * m4/wcrtomb.m4: New file.
48922         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48923         HAVE_WCRTOMB.
48924         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48925         HAVE_WCRTOMB.
48926         * modules/wcrtomb: New file.
48927         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48928
48929 2008-12-21  Bruno Haible  <bruno@clisp.org>
48930
48931         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48932         * modules/mbsrtowcs (Files): Likewise.
48933         * modules/wctob (Files): Likewise.
48934         * modules/c-strcase-tests (Files): Likewise.
48935         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48936         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48937         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48938         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48939         * modules/vasnprintf-posix-tests (Files): Likewise.
48940
48941 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48942
48943         gitlog-to-changelog: pass all command-line arguments to git-log
48944         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48945         it is sometimes convenient to filter the commits in various ways.
48946         gitlog-to-changelog only allows --since to specify a start date,
48947         but git-log itself supports many other filtering mechanisms.
48948         At the moment, I want to filter by branch name.  Rather than
48949         adding a --branch option to gitlog-to-changelog, it seems more
48950         flexible to simply pass all options directly to git-log and let
48951         git do the work.  Notice that this effectively makes --since a
48952         redundant option for gitlog-to-changelog, but removing it would
48953         require current usage to change since calls would then require
48954         an additional '--'.
48955
48956 2008-12-21  Bruno Haible  <bruno@clisp.org>
48957
48958         * modules/mbsnrtowcs-tests: New file.
48959         * tests/test-mbsnrtowcs1.sh: New file.
48960         * tests/test-mbsnrtowcs2.sh: New file.
48961         * tests/test-mbsnrtowcs3.sh: New file.
48962         * tests/test-mbsnrtowcs4.sh: New file.
48963         * tests/test-mbsnrtowcs.c: New file.
48964
48965         New module 'mbsnrtowcs'.
48966         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48967         * lib/mbsnrtowcs.c: New file.
48968         * lib/mbsrtowcs-state.c: New file.
48969         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48970         (internal_state): Remove variable.
48971         * m4/mbsnrtowcs.m4: New file.
48972         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48973         compilation units.
48974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48975         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48976         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48977         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48978         * modules/mbsnrtowcs: New file.
48979         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48980         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48981         portability problem.
48982
48983 2008-12-21  Bruno Haible  <bruno@clisp.org>
48984
48985         Work around mbsrtowcs bug.
48986         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48987         (gl_FUNC_MBSRTOWCS): Invoke it.
48988         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48989         m4/locale-zh.m4.
48990         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48991
48992 2008-12-21  Bruno Haible  <bruno@clisp.org>
48993
48994         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48995
48996 2008-12-21  Bruno Haible  <bruno@clisp.org>
48997
48998         Update doc for AIX.
48999         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49000         16-bit wchar_t type.
49001         * doc/posix-functions/btowc.texi: Likewise.
49002         * doc/posix-functions/fgetwc.texi: Likewise.
49003         * doc/posix-functions/fgetws.texi: Likewise.
49004         * doc/posix-functions/fputwc.texi: Likewise.
49005         * doc/posix-functions/fputws.texi: Likewise.
49006         * doc/posix-functions/fwide.texi: Likewise.
49007         * doc/posix-functions/fwprintf.texi: Likewise.
49008         * doc/posix-functions/fwscanf.texi: Likewise.
49009         * doc/posix-functions/getwchar.texi: Likewise.
49010         * doc/posix-functions/getwc.texi: Likewise.
49011         * doc/posix-functions/iswalnum.texi: Likewise.
49012         * doc/posix-functions/iswalpha.texi: Likewise.
49013         * doc/posix-functions/iswblank.texi: Likewise.
49014         * doc/posix-functions/iswcntrl.texi: Likewise.
49015         * doc/posix-functions/iswctype.texi: Likewise.
49016         * doc/posix-functions/iswdigit.texi: Likewise.
49017         * doc/posix-functions/iswgraph.texi: Likewise.
49018         * doc/posix-functions/iswlower.texi: Likewise.
49019         * doc/posix-functions/iswprint.texi: Likewise.
49020         * doc/posix-functions/iswpunct.texi: Likewise.
49021         * doc/posix-functions/iswspace.texi: Likewise.
49022         * doc/posix-functions/iswupper.texi: Likewise.
49023         * doc/posix-functions/iswxdigit.texi: Likewise.
49024         * doc/posix-functions/mbrtowc.texi: Likewise.
49025         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49026         * doc/posix-functions/mbstowcs.texi: Likewise.
49027         * doc/posix-functions/mbtowc.texi: Likewise.
49028         * doc/posix-functions/putwchar.texi: Likewise.
49029         * doc/posix-functions/putwc.texi: Likewise.
49030         * doc/posix-functions/swprintf.texi: Likewise.
49031         * doc/posix-functions/tolower.texi: Likewise.
49032         * doc/posix-functions/toupper.texi: Likewise.
49033         * doc/posix-functions/towctrans.texi: Likewise.
49034         * doc/posix-functions/ungetwc.texi: Likewise.
49035         * doc/posix-functions/vswprintf.texi: Likewise.
49036         * doc/posix-functions/wcrtomb.texi: Likewise.
49037         * doc/posix-functions/wcscat.texi: Likewise.
49038         * doc/posix-functions/wcschr.texi: Likewise.
49039         * doc/posix-functions/wcscmp.texi: Likewise.
49040         * doc/posix-functions/wcscoll.texi: Likewise.
49041         * doc/posix-functions/wcscpy.texi: Likewise.
49042         * doc/posix-functions/wcscspn.texi: Likewise.
49043         * doc/posix-functions/wcsftime.texi: Likewise.
49044         * doc/posix-functions/wcslen.texi: Likewise.
49045         * doc/posix-functions/wcsncat.texi: Likewise.
49046         * doc/posix-functions/wcsncmp.texi: Likewise.
49047         * doc/posix-functions/wcsncpy.texi: Likewise.
49048         * doc/posix-functions/wcspbrk.texi: Likewise.
49049         * doc/posix-functions/wcsrchr.texi: Likewise.
49050         * doc/posix-functions/wcsrtombs.texi: Likewise.
49051         * doc/posix-functions/wcsspn.texi: Likewise.
49052         * doc/posix-functions/wcsstr.texi: Likewise.
49053         * doc/posix-functions/wcstod.texi: Likewise.
49054         * doc/posix-functions/wcstof.texi: Likewise.
49055         * doc/posix-functions/wcstoimax.texi: Likewise.
49056         * doc/posix-functions/wcstok.texi: Likewise.
49057         * doc/posix-functions/wcstold.texi: Likewise.
49058         * doc/posix-functions/wcstoll.texi: Likewise.
49059         * doc/posix-functions/wcstol.texi: Likewise.
49060         * doc/posix-functions/wcstombs.texi: Likewise.
49061         * doc/posix-functions/wcstoull.texi: Likewise.
49062         * doc/posix-functions/wcstoul.texi: Likewise.
49063         * doc/posix-functions/wcstoumax.texi: Likewise.
49064         * doc/posix-functions/wcswidth.texi: Likewise.
49065         * doc/posix-functions/wcsxfrm.texi: Likewise.
49066         * doc/posix-functions/wctob.texi: Likewise.
49067         * doc/posix-functions/wctomb.texi: Likewise.
49068         * doc/posix-functions/wctrans.texi: Likewise.
49069         * doc/posix-functions/wctype.texi: Likewise.
49070         * doc/posix-functions/wcwidth.texi: Likewise.
49071         * doc/posix-functions/wmemchr.texi: Likewise.
49072         * doc/posix-functions/wmemcmp.texi: Likewise.
49073         * doc/posix-functions/wmemcpy.texi: Likewise.
49074         * doc/posix-functions/wmemmove.texi: Likewise.
49075         * doc/posix-functions/wmemset.texi: Likewise.
49076         * doc/posix-functions/wprintf.texi: Likewise.
49077         * doc/posix-functions/wscanf.texi: Likewise.
49078
49079 2008-12-21  Bruno Haible  <bruno@clisp.org>
49080
49081         Update doc for HP-UX 11.11.
49082         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49083         in HP-UX version 11.00, not in all versions of HP-UX 11.
49084         * doc/posix-functions/fwide.texi: Likewise.
49085         * doc/posix-functions/fwprintf.texi: Likewise.
49086         * doc/posix-functions/fwscanf.texi: Likewise.
49087         * doc/posix-functions/inet_ntop.texi: Likewise.
49088         * doc/posix-functions/inet_pton.texi: Likewise.
49089         * doc/posix-functions/mbrlen.texi: Likewise.
49090         * doc/posix-functions/mbrtowc.texi: Likewise.
49091         * doc/posix-functions/mbsinit.texi: Likewise.
49092         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49093         * doc/posix-functions/swprintf.texi: Likewise.
49094         * doc/posix-functions/swscanf.texi: Likewise.
49095         * doc/posix-functions/towctrans.texi: Likewise.
49096         * doc/posix-functions/vfwprintf.texi: Likewise.
49097         * doc/posix-functions/vswprintf.texi: Likewise.
49098         * doc/posix-functions/vwprintf.texi: Likewise.
49099         * doc/posix-functions/wcrtomb.texi: Likewise.
49100         * doc/posix-functions/wcsrtombs.texi: Likewise.
49101         * doc/posix-functions/wcsstr.texi: Likewise.
49102         * doc/posix-functions/wctob.texi: Likewise.
49103         * doc/posix-functions/wctrans.texi: Likewise.
49104         * doc/posix-functions/wmemchr.texi: Likewise.
49105         * doc/posix-functions/wmemcmp.texi: Likewise.
49106         * doc/posix-functions/wmemcpy.texi: Likewise.
49107         * doc/posix-functions/wmemmove.texi: Likewise.
49108         * doc/posix-functions/wmemset.texi: Likewise.
49109         * doc/posix-functions/wprintf.texi: Likewise.
49110         * doc/posix-functions/wscanf.texi: Likewise.
49111
49112 2008-12-21  Bruno Haible  <bruno@clisp.org>
49113
49114         Work around a portability problem.
49115         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49116         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49117
49118 2008-12-20  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49121         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49122         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49124         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49125
49126         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49127         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49128         set.
49129         (GNULIB_defined_mbstate_t): New macro.
49130         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49131         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49132         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49133         reuses the system's mbrtowc function but works around the bugs.
49134         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49135         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49136         macros.
49137         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49138         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49139         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49140         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49141         REPLACE_MBSINIT if mbsinit needs to be overridden.
49142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49143         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49144         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49145         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49146         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49147         m4/locale-zh.m4.
49148         (Depends): Add mbsinit.
49149         * modules/mbsinit (Depends): Add mbrtowc.
49150         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49151
49152 2008-12-20  Bruno Haible  <bruno@clisp.org>
49153
49154         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49155         so that there are no conversion errors on AIX.
49156         * tests/test-mbsrtowcs.c (main): LIkewise.
49157
49158 2008-12-20  Bruno Haible  <bruno@clisp.org>
49159
49160         Work around wctob bug on Solaris <= 9.
49161         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49162         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49163         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49164         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49165         * modules/wctob (Files): Add m4/locale-fr.m4.
49166         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49167
49168 2008-12-20  Bruno Haible  <bruno@clisp.org>
49169
49170         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49171         /dev/null.
49172         * tests/test-select-in.sh: Likewise.
49173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49174
49175 2008-12-20  Bruno Haible  <bruno@clisp.org>
49176
49177         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49178         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49179         Cygwin 1.5.x.
49180
49181 2008-12-20  Bruno Haible  <bruno@clisp.org>
49182
49183         Ensure mbstate_t is defined on HP-UX 11.11.
49184         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49185         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49186         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49187         AC_USE_SYSTEM_EXTENSIONS.
49188         * modules/fnmatch (Depends-on): Add extensions.
49189         * modules/mbrlen (Depends-on): Likewise.
49190         * modules/mbrtowc (Depends-on): Likewise.
49191         * modules/mbsinit (Depends-on): Likewise.
49192         * modules/mbsrtowcs (Depends-on): Likewise.
49193         * modules/mbswidth (Depends-on): Likewise.
49194         * modules/quotearg (Depends-on): Likewise.
49195         * modules/strftime (Depends-on): Likewise.
49196
49197 2008-12-20  Bruno Haible  <bruno@clisp.org>
49198
49199         Ensure wctob is declared on IRIX 6.5.
49200         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49201         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49202         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49203         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49204         of HAVE_WCTOB.
49205         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49206         HAVE_WCTOB.
49207         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49208
49209 2008-12-19  Bruno Haible  <bruno@clisp.org>
49210
49211         * modules/mbsrtowcs-tests: New file.
49212         * tests/test-mbsrtowcs1.sh: New file.
49213         * tests/test-mbsrtowcs2.sh: New file.
49214         * tests/test-mbsrtowcs3.sh: New file.
49215         * tests/test-mbsrtowcs4.sh: New file.
49216         * tests/test-mbsrtowcs.c: New file.
49217
49218         New module 'mbsrtowcs'.
49219         * lib/wchar.in.h (mbsrtowcs): New declaration.
49220         * lib/mbsrtowcs.c: New file.
49221         * m4/mbsrtowcs.m4: New file.
49222         * modules/mbsrtowcs: New file.
49223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49224         HAVE_MBSRTOWCS.
49225         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49226         HAVE_MBSRTOWCS.
49227         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49228
49229 2008-12-19  Bruno Haible  <bruno@clisp.org>
49230
49231         New module 'mbrlen'.
49232         * lib/wchar.in.h (mbrlen): New declaration.
49233         * lib/mbrlen.c: New file.
49234         * m4/mbrlen.m4: New file.
49235         * modules/mbrlen: New file.
49236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49237         HAVE_MBRLEN.
49238         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49239         HAVE_MBRLEN.
49240         * doc/posix-functions/mbrlen.texi: Document the new module.
49241
49242 2008-12-19  Bruno Haible  <bruno@clisp.org>
49243
49244         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49245         * modules/mbrtowc (Depends-on): Add verify.
49246         Suggested by Paul Eggert.
49247
49248 2008-12-18  Bruno Haible  <bruno@clisp.org>
49249
49250         * modules/mbsinit-tests: New file.
49251         * tests/test-mbsinit.sh: New file.
49252         * tests/test-mbsinit.c: New file.
49253
49254 2008-12-18  Bruno Haible  <bruno@clisp.org>
49255
49256         * modules/mbrtowc-tests: New file.
49257         * tests/test-mbrtowc1.sh: New file.
49258         * tests/test-mbrtowc2.sh: New file.
49259         * tests/test-mbrtowc3.sh: New file.
49260         * tests/test-mbrtowc4.sh: New file.
49261         * tests/test-mbrtowc.c: New file.
49262
49263         New module 'mbrtowc'.
49264         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49265         mbsinit and mbrtowc.
49266         (mbrtowc): New declaration.
49267         * lib/mbrtowc.c: New file.
49268         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49269         * modules/mbrtowc: New file.
49270         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49271         HAVE_MBRTOWC.
49272         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49273         HAVE_MBRTOWC.
49274         * doc/posix-functions/mbrtowc.texi: Document the new module.
49275
49276 2008-12-18  Bruno Haible  <bruno@clisp.org>
49277
49278         New module 'wctob'.
49279         * lib/wchar.in.h (wctob): New declaration.
49280         * lib/wctob.c: New file.
49281         * m4/wctob.m4: New file.
49282         * modules/wctob: New file.
49283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49284         HAVE_WCTOB.
49285         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49286         * doc/posix-functions/wctob.texi: Document the new module.
49287
49288 2008-12-18  Bruno Haible  <bruno@clisp.org>
49289
49290         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49291         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49292
49293 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49294
49295         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49296         G. Christensen" <tgc@jupiterrise.com>.
49297
49298         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49299         G. Christensen" <tgc@jupiterrise.com>.
49300
49301         * lib/flock.c: Need to include string.h.  Reported by "Tom
49302         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49303         <ebb9@byu.net>.
49304
49305 2008-12-18  Bruno Haible  <bruno@clisp.org>
49306
49307         * m4/locale-ja.m4: New file, from GNU gettext.
49308
49309 2008-12-17  Bruno Haible  <bruno@clisp.org>
49310
49311         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49312         Suggested by Eric Blake.
49313
49314 2008-12-17  Bruno Haible  <bruno@clisp.org>
49315
49316         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49317
49318 2008-12-17  Bruno Haible  <bruno@clisp.org>
49319
49320         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49321         * modules/mbsinit (Depends-on): Add verify.
49322         Suggested by Paul Eggert.
49323
49324 2008-12-17  Bruno Haible  <bruno@clisp.org>
49325
49326         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49327         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49328         gl_FUNC_MBRTOWC.
49329         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49330         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49331         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49332         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49333         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49334         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49335         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49336         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49337         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49338         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49339         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49340         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49341         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49342         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49343         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49344         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49345         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49346         * modules/trim (configure.ac): Likewise.
49347
49348 2008-12-17  Bruno Haible  <bruno@clisp.org>
49349
49350         * modules/btowc-tests: New file.
49351         * tests/test-btowc1.sh: New file.
49352         * tests/test-btowc2.sh: New file.
49353         * tests/test-btowc.c: New file.
49354
49355         New module 'btowc'.
49356         * lib/wchar.in.h (btowc): New declaration.
49357         * lib/btowc.c: New file.
49358         * m4/btowc.m4: New file.
49359         * modules/btowc: New file.
49360         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49361         HAVE_BTOWC.
49362         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49363         * doc/posix-functions/btowc.texi: Document the new module.
49364
49365 2008-12-17  Bruno Haible  <bruno@clisp.org>
49366
49367         New module 'mbsinit'.
49368         * lib/wchar.in.h (mbsinit): New declaration.
49369         * lib/mbsinit.c: New file.
49370         * m4/mbsinit.m4: New file.
49371         * modules/mbsinit: New file.
49372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49373         HAVE_MBSINIT.
49374         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49375         HAVE_MBSINIT.
49376         * doc/posix-functions/mbsinit.texi: Document the new module.
49377
49378 2008-12-16  Bruno Haible  <bruno@clisp.org>
49379
49380         * lib/unistd.in.h: Add comment.
49381         * tests/test-environ.c: Don't include <stdlib.h>.
49382
49383 2008-12-16  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/parse-duration.h (parse_duration): Document return value
49386         convention.
49387         * lib/parse-duration.c: Include specification header first. Add
49388         comments.
49389         (_): Remove macro.
49390         (parse_year_month_day, parse_hour_minute_second): Move side effects
49391         outside of strchr call.
49392         (parse_non_iso8601): Move side effects outside of isspace call.
49393         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49394         call.
49395
49396 2008-12-16  Bruno Haible  <bruno@clisp.org>
49397
49398         * tests/test-parse-duration.sh: Produce no output when the test
49399         succeeds.
49400
49401 2008-12-16  Bruno Haible  <bruno@clisp.org>
49402
49403         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49404         expressions.
49405
49406 2008-12-15  Bruno Haible  <bruno@clisp.org>
49407
49408         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49409         * doc/glibc-functions/flistxattr.texi: Likewise.
49410         * doc/glibc-functions/fopencookie.texi: Likewise.
49411         * doc/glibc-functions/fremovexattr.texi: Likewise.
49412         * doc/glibc-functions/fsetxattr.texi: Likewise.
49413         * doc/glibc-functions/getxattr.texi: Likewise.
49414         * doc/glibc-functions/lgetxattr.texi: Likewise.
49415         * doc/glibc-functions/listxattr.texi: Likewise.
49416         * doc/glibc-functions/llistxattr.texi: Likewise.
49417         * doc/glibc-functions/lremovexattr.texi: Likewise.
49418         * doc/glibc-functions/lsetxattr.texi: Likewise.
49419         * doc/glibc-functions/removexattr.texi: Likewise.
49420         * doc/glibc-functions/setxattr.texi: Likewise.
49421         * doc/posix-functions/open_memstream.texi: Likewise.
49422
49423 2008-12-15  Eric Blake  <ebb9@byu.net>
49424
49425         Update doc for cygwin 1.7.
49426         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49427         functions.
49428         * doc/posix-functions/fchmodat.texi: Likewise.
49429         * doc/posix-functions/fchownat.texi: Likewise.
49430         * doc/posix-functions/fdopendir.texi: Likewise.
49431         * doc/posix-functions/fmemopen.texi: Likewise.
49432         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49433         * doc/posix-functions/fstatat.texi: Likewise.
49434         * doc/posix-functions/futimens.texi: Likewise.
49435         * doc/posix-functions/gai_strerror.texi: Likewise.
49436         * doc/posix-functions/getaddrinfo.texi: Likewise.
49437         * doc/posix-functions/getnameinfo.texi: Likewise.
49438         * doc/posix-functions/if_freenameindex.texi: Likewise.
49439         * doc/posix-functions/if_indextoname.texi: Likewise.
49440         * doc/posix-functions/if_nameindex.texi: Likewise.
49441         * doc/posix-functions/if_nametoindex.texi: Likewise.
49442         * doc/posix-functions/insque.texi: Likewise.
49443         * doc/posix-functions/linkat.texi: Likewise.
49444         * doc/posix-functions/llrint.texi: Likewise.
49445         * doc/posix-functions/llrintf.texi: Likewise.
49446         * doc/posix-functions/llrintl.texi: Likewise.
49447         * doc/posix-functions/lockf.texi: Likewise.
49448         * doc/posix-functions/lrintl.texi: Likewise.
49449         * doc/posix-functions/mkdirat.texi: Likewise.
49450         * doc/posix-functions/mkfifoat.texi: Likewise.
49451         * doc/posix-functions/mknodat.texi: Likewise.
49452         * doc/posix-functions/mq_close.texi: Likewise.
49453         * doc/posix-functions/mq_getattr.texi: Likewise.
49454         * doc/posix-functions/mq_notify.texi: Likewise.
49455         * doc/posix-functions/mq_open.texi: Likewise.
49456         * doc/posix-functions/mq_receive.texi: Likewise.
49457         * doc/posix-functions/mq_send.texi: Likewise.
49458         * doc/posix-functions/mq_setattr.texi: Likewise.
49459         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49460         * doc/posix-functions/mq_timedsend.texi: Likewise.
49461         * doc/posix-functions/mq_unlink.texi: Likewise.
49462         * doc/posix-functions/open_memstream.texi: Likewise.
49463         * doc/posix-functions/openat.texi: Likewise.
49464         * doc/posix-functions/posix_fadvise.texi: Likewise.
49465         * doc/posix-functions/posix_fallocate.texi: Likewise.
49466         * doc/posix-functions/posix_madvise.texi: Likewise.
49467         * doc/posix-functions/posix_memalign.texi: Likewise.
49468         * doc/posix-functions/posix_openpt.texi: Likewise.
49469         * doc/posix-functions/readlinkat.texi: Likewise.
49470         * doc/posix-functions/remque.texi: Likewise.
49471         * doc/posix-functions/renameat.texi: Likewise.
49472         * doc/posix-functions/rintl.texi: Likewise.
49473         * doc/posix-functions/sem_unlink.texi: Likewise.
49474         * doc/posix-functions/shm_open.texi: Likewise.
49475         * doc/posix-functions/shm_unlink.texi: Likewise.
49476         * doc/posix-functions/signgam.texi: Likewise.
49477         * doc/posix-functions/sigset.texi: Likewise.
49478         * doc/posix-functions/stpcpy.texi: Likewise.
49479         * doc/posix-functions/stpncpy.texi: Likewise.
49480         * doc/posix-functions/strerror.texi: Likewise.
49481         * doc/posix-functions/strtod.texi: Likewise.
49482         * doc/posix-functions/symlinkat.texi: Likewise.
49483         * doc/posix-functions/unlinkat.texi: Likewise.
49484         * doc/posix-functions/utimensat.texi: Likewise.
49485         * doc/glibc-functions/bindresvport.texi: Likewise.
49486         * doc/glibc-functions/dn_expand.texi: Likewise.
49487         * doc/glibc-functions/exp10.texi: Likewise.
49488         * doc/glibc-functions/exp10f.texi: Likewise.
49489         * doc/glibc-functions/fgetxattr.texi: Likewise.
49490         * doc/glibc-functions/flistxattr.texi: Likewise.
49491         * doc/glibc-functions/fopencookie.texi: Likewise.
49492         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49493         * doc/glibc-functions/fremovexattr.texi: Likewise.
49494         * doc/glibc-functions/fsetxattr.texi: Likewise.
49495         * doc/glibc-functions/getifaddrs.texi: Likewise.
49496         * doc/glibc-functions/getxattr.texi: Likewise.
49497         * doc/glibc-functions/lgetxattr.texi: Likewise.
49498         * doc/glibc-functions/listxattr.texi: Likewise.
49499         * doc/glibc-functions/llistxattr.texi: Likewise.
49500         * doc/glibc-functions/lremovexattr.texi: Likewise.
49501         * doc/glibc-functions/lsetxattr.texi: Likewise.
49502         * doc/glibc-functions/pow10.texi: Likewise.
49503         * doc/glibc-functions/pow10f.texi: Likewise.
49504         * doc/glibc-functions/rcmd_af.texi: Likewise.
49505         * doc/glibc-functions/removexattr.texi: Likewise.
49506         * doc/glibc-functions/res_init.texi: Likewise.
49507         * doc/glibc-functions/res_mkquery.texi: Likewise.
49508         * doc/glibc-functions/res_query.texi: Likewise.
49509         * doc/glibc-functions/res_querydomain.texi: Likewise.
49510         * doc/glibc-functions/res_send.texi: Likewise.
49511         * doc/glibc-functions/rresvport_af.texi: Likewise.
49512         * doc/glibc-functions/setxattr.texi: Likewise.
49513         * doc/glibc-functions/strcasestr.texi: Likewise.
49514
49515 2008-12-15  Bruno Haible  <bruno@clisp.org>
49516
49517         Fix compilation error on OSF/1 4.0.
49518         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49519         <sys/time.h>, simply delegate to the system header.
49520         Reported by Daniel Richard G. <oss@teragram.com>.
49521
49522 2008-12-15  Bruno Haible  <bruno@clisp.org>
49523
49524         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49525         * doc/posix-functions/fchmodat.texi: Likewise.
49526         * doc/posix-functions/fchownat.texi: Likewise.
49527         * doc/posix-functions/fdopendir.texi: Likewise.
49528         * doc/posix-functions/fstatat.texi: Likewise.
49529         * doc/posix-functions/mkdirat.texi: Likewise.
49530         * doc/posix-functions/unlinkat.texi: Likewise.
49531
49532 2008-12-14  Bruno Haible  <bruno@clisp.org>
49533
49534         Update doc for POSIX:2008.
49535         * doc/posix-functions/faccessat.texi: New file.
49536         * doc/posix-functions/fchmodat.texi: New file.
49537         * doc/posix-functions/fchownat.texi: New file.
49538         * doc/posix-functions/fdopendir.texi: New file.
49539         * doc/posix-functions/fstatat.texi: New file.
49540         * doc/posix-functions/futimens.texi: New file.
49541         * doc/posix-functions/linkat.texi: New file.
49542         * doc/posix-functions/mkdirat.texi: New file.
49543         * doc/posix-functions/mkfifoat.texi: New file.
49544         * doc/posix-functions/mknodat.texi: New file.
49545         * doc/posix-functions/open_wmemstream.texi: New file.
49546         * doc/posix-functions/openat.texi: New file.
49547         * doc/posix-functions/psiginfo.texi: New file.
49548         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49549         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49550         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49551         * doc/posix-functions/readlinkat.texi: New file.
49552         * doc/posix-functions/renameat.texi: New file.
49553         * doc/posix-functions/strerror_l.texi: New file.
49554         * doc/posix-functions/symlinkat.texi: New file.
49555         * doc/posix-functions/unlinkat.texi: New file.
49556         * doc/posix-functions/utimensat.texi: New file.
49557         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49558
49559 2008-12-14  Bruno Haible  <bruno@clisp.org>
49560
49561         Update doc for POSIX:2008.
49562         * doc/posix-functions/alphasort.texi: Renamed from
49563         doc/glibc-functions/alphasort.texi.
49564         * doc/posix-functions/dirfd.texi: Renamed from
49565         doc/glibc-functions/dirfd.texi.
49566         * doc/posix-functions/dprintf.texi: Renamed from
49567         doc/glibc-functions/dprintf.texi.
49568         * doc/posix-functions/duplocale.texi: Renamed from
49569         doc/glibc-functions/duplocale.texi.
49570         * doc/posix-functions/fexecve.texi: Renamed from
49571         doc/glibc-functions/fexecve.texi.
49572         * doc/posix-functions/fmemopen.texi: Renamed from
49573         doc/glibc-functions/fmemopen.texi.
49574         * doc/posix-functions/freelocale.texi: Renamed from
49575         doc/glibc-functions/freelocale.texi.
49576         * doc/posix-functions/getdate_err.texi: Renamed from
49577         doc/glibc-functions/getdate_err.texi.
49578         * doc/posix-functions/isalnum_l.texi: Renamed from
49579         doc/glibc-functions/isalnum_l.texi.
49580         * doc/posix-functions/isalpha_l.texi: Renamed from
49581         doc/glibc-functions/isalpha_l.texi.
49582         * doc/posix-functions/isblank_l.texi: Renamed from
49583         doc/glibc-functions/isblank_l.texi.
49584         * doc/posix-functions/iscntrl_l.texi: Renamed from
49585         doc/glibc-functions/iscntrl_l.texi.
49586         * doc/posix-functions/isdigit_l.texi: Renamed from
49587         doc/glibc-functions/isdigit_l.texi.
49588         * doc/posix-functions/isgraph_l.texi: Renamed from
49589         doc/glibc-functions/isgraph_l.texi.
49590         * doc/posix-functions/islower_l.texi: Renamed from
49591         doc/glibc-functions/islower_l.texi.
49592         * doc/posix-functions/isprint_l.texi: Renamed from
49593         doc/glibc-functions/isprint_l.texi.
49594         * doc/posix-functions/ispunct_l.texi: Renamed from
49595         doc/glibc-functions/ispunct_l.texi.
49596         * doc/posix-functions/isspace_l.texi: Renamed from
49597         doc/glibc-functions/isspace_l.texi.
49598         * doc/posix-functions/isupper_l.texi: Renamed from
49599         doc/glibc-functions/isupper_l.texi.
49600         * doc/posix-functions/iswalnum_l.texi: Renamed from
49601         doc/glibc-functions/iswalnum_l.texi.
49602         * doc/posix-functions/iswalpha_l.texi: Renamed from
49603         doc/glibc-functions/iswalpha_l.texi.
49604         * doc/posix-functions/iswblank_l.texi: Renamed from
49605         doc/glibc-functions/iswblank_l.texi.
49606         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49607         doc/glibc-functions/iswcntrl_l.texi.
49608         * doc/posix-functions/iswctype_l.texi: Renamed from
49609         doc/glibc-functions/iswctype_l.texi.
49610         * doc/posix-functions/iswdigit_l.texi: Renamed from
49611         doc/glibc-functions/iswdigit_l.texi.
49612         * doc/posix-functions/iswgraph_l.texi: Renamed from
49613         doc/glibc-functions/iswgraph_l.texi.
49614         * doc/posix-functions/iswlower_l.texi: Renamed from
49615         doc/glibc-functions/iswlower_l.texi.
49616         * doc/posix-functions/iswprint_l.texi: Renamed from
49617         doc/glibc-functions/iswprint_l.texi.
49618         * doc/posix-functions/iswpunct_l.texi: Renamed from
49619         doc/glibc-functions/iswpunct_l.texi.
49620         * doc/posix-functions/iswspace_l.texi: Renamed from
49621         doc/glibc-functions/iswspace_l.texi.
49622         * doc/posix-functions/iswupper_l.texi: Renamed from
49623         doc/glibc-functions/iswupper_l.texi.
49624         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49625         doc/glibc-functions/iswxdigit_l.texi.
49626         * doc/posix-functions/isxdigit_l.texi: Renamed from
49627         doc/glibc-functions/isxdigit_l.texi.
49628         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49629         doc/glibc-functions/mbsnrtowcs.texi.
49630         * doc/posix-functions/mkdtemp.texi: Renamed from
49631         doc/glibc-functions/mkdtemp.texi.
49632         * doc/posix-functions/newlocale.texi: Renamed from
49633         doc/glibc-functions/newlocale.texi.
49634         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49635         doc/glibc-functions/nl_langinfo_l.texi.
49636         * doc/posix-functions/open_memstream.texi: Renamed from
49637         doc/glibc-functions/open_memstream.texi.
49638         * doc/posix-functions/opterr.texi: Renamed from
49639         doc/glibc-functions/opterr.texi.
49640         * doc/posix-functions/optind.texi: Renamed from
49641         doc/glibc-functions/optind.texi.
49642         * doc/posix-functions/optopt.texi: Renamed from
49643         doc/glibc-functions/optopt.texi.
49644         * doc/posix-functions/psignal.texi: Renamed from
49645         doc/glibc-functions/psignal.texi.
49646         * doc/posix-functions/scandir.texi: Renamed from
49647         doc/glibc-functions/scandir.texi.
49648         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49649         doc/glibc-functions/sched_get_priority_min.texi.
49650         * doc/posix-functions/signgam.texi: Renamed from
49651         doc/glibc-functions/signgam.texi.
49652         * doc/posix-functions/stpcpy.texi: Renamed from
49653         doc/glibc-functions/stpcpy.texi.
49654         * doc/posix-functions/stpncpy.texi: Renamed from
49655         doc/glibc-functions/stpncpy.texi.
49656         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49657         doc/glibc-functions/strcasecmp_l.texi.
49658         * doc/posix-functions/strcoll_l.texi: Renamed from
49659         doc/glibc-functions/strcoll_l.texi.
49660         * doc/posix-functions/strfmon_l.texi: Renamed from
49661         doc/glibc-functions/strfmon_l.texi.
49662         * doc/posix-functions/strftime_l.texi: Renamed from
49663         doc/glibc-functions/strftime_l.texi.
49664         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49665         doc/glibc-functions/strncasecmp_l.texi.
49666         * doc/posix-functions/strndup.texi: Renamed from
49667         doc/glibc-functions/strndup.texi.
49668         * doc/posix-functions/strnlen.texi: Renamed from
49669         doc/glibc-functions/strnlen.texi.
49670         * doc/posix-functions/strsignal.texi: Renamed from
49671         doc/glibc-functions/strsignal.texi.
49672         * doc/posix-functions/strxfrm_l.texi: Renamed from
49673         doc/glibc-functions/strxfrm_l.texi.
49674         * doc/posix-functions/timer_gettime.texi: Renamed from
49675         doc/glibc-functions/timer_gettime.texi.
49676         * doc/posix-functions/tolower_l.texi: Renamed from
49677         doc/glibc-functions/tolower_l.texi.
49678         * doc/posix-functions/toupper_l.texi: Renamed from
49679         doc/glibc-functions/toupper_l.texi.
49680         * doc/posix-functions/towctrans_l.texi: Renamed from
49681         doc/glibc-functions/towctrans_l.texi.
49682         * doc/posix-functions/towlower_l.texi: Renamed from
49683         doc/glibc-functions/towlower_l.texi.
49684         * doc/posix-functions/towupper_l.texi: Renamed from
49685         doc/glibc-functions/towupper_l.texi.
49686         * doc/posix-functions/uselocale.texi: Renamed from
49687         doc/glibc-functions/uselocale.texi.
49688         * doc/posix-functions/vdprintf.texi: Renamed from
49689         doc/glibc-functions/vdprintf.texi.
49690         * doc/posix-functions/wcpcpy.texi:
49691         Renamed from doc/glibc-functions/wcpcpy.texi.
49692         * doc/posix-functions/wcpncpy.texi: Renamed from
49693         doc/glibc-functions/wcpncpy.texi.
49694         * doc/posix-functions/wcscasecmp.texi: Renamed from
49695         doc/glibc-functions/wcscasecmp.texi.
49696         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49697         doc/glibc-functions/wcscasecmp_l.texi.
49698         * doc/posix-functions/wcscoll_l.texi: Renamed from
49699         doc/glibc-functions/wcscoll_l.texi.
49700         * doc/posix-functions/wcsdup.texi: Renamed from
49701         doc/glibc-functions/wcsdup.texi.
49702         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49703         doc/glibc-functions/wcsncasecmp.texi.
49704         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49705         doc/glibc-functions/wcsncasecmp_l.texi.
49706         * doc/posix-functions/wcsnlen.texi: Renamed from
49707         doc/glibc-functions/wcsnlen.texi.
49708         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49709         doc/glibc-functions/wcsnrtombs.texi.
49710         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49711         doc/glibc-functions/wcsxfrm_l.texi.
49712         * doc/posix-functions/wctrans_l.texi: Renamed from
49713         doc/glibc-functions/wctrans_l.texi.
49714         * doc/posix-functions/wctype_l.texi: Renamed from
49715         doc/glibc-functions/wctype_l.texi.
49716         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49717         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49718         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49719         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49720         these subsections.
49721         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49722         Remove sections.
49723
49724 2008-12-14  Bruno Haible  <bruno@clisp.org>
49725
49726         Update doc for POSIX:2008.
49727         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49728
49729 2008-12-14  Bruno Haible  <bruno@clisp.org>
49730
49731         Update doc for POSIX:2008.
49732         * doc/pastposix-functions/bcmp.texi: Renamed from
49733         doc/posix-functions/bcmp.texi.
49734         * doc/pastposix-functions/bcopy.texi: Renamed from
49735         doc/posix-functions/bcopy.texi.
49736         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49737         doc/posix-functions/bsd_signal.texi.
49738         * doc/pastposix-functions/bzero.texi: Renamed from
49739         doc/posix-functions/bzero.texi.
49740         * doc/pastposix-functions/ecvt.texi: Renamed from
49741         doc/posix-functions/ecvt.texi.
49742         * doc/pastposix-functions/fcvt.texi: Renamed from
49743         doc/posix-functions/fcvt.texi.
49744         * doc/pastposix-functions/ftime.texi: Renamed from
49745         doc/posix-functions/ftime.texi.
49746         * doc/pastposix-functions/gcvt.texi: Renamed from
49747         doc/posix-functions/gcvt.texi.
49748         * doc/pastposix-functions/getcontext.texi: Renamed from
49749         doc/posix-functions/getcontext.texi.
49750         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49751         doc/posix-functions/gethostbyaddr.texi.
49752         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49753         doc/posix-functions/gethostbyname.texi.
49754         * doc/pastposix-functions/getwd.texi: Renamed from
49755         doc/posix-functions/getwd.texi.
49756         * doc/pastposix-functions/h_errno.texi: Renamed from
49757         doc/posix-functions/h_errno.texi.
49758         * doc/pastposix-functions/index.texi: Renamed from
49759         doc/posix-functions/index.texi.
49760         * doc/pastposix-functions/makecontext.texi: Renamed from
49761         doc/posix-functions/makecontext.texi.
49762         * doc/pastposix-functions/mktemp.texi: Renamed from
49763         doc/posix-functions/mktemp.texi.
49764         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49765         doc/posix-functions/pthread_attr_getstackaddr.texi.
49766         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49767         doc/posix-functions/pthread_attr_setstackaddr.texi.
49768         * doc/pastposix-functions/rindex.texi: Renamed from
49769         doc/posix-functions/rindex.texi.
49770         * doc/pastposix-functions/scalb.texi: Renamed from
49771         doc/posix-functions/scalb.texi.
49772         * doc/pastposix-functions/setcontext.texi: Renamed from
49773         doc/posix-functions/setcontext.texi.
49774         * doc/pastposix-functions/swapcontext.texi: Renamed from
49775         doc/posix-functions/swapcontext.texi.
49776         * doc/pastposix-functions/ualarm.texi: Renamed from
49777         doc/posix-functions/ualarm.texi.
49778         * doc/pastposix-functions/usleep.texi: Renamed from
49779         doc/posix-functions/usleep.texi.
49780         * doc/pastposix-functions/vfork.texi: Renamed from
49781         doc/posix-functions/vfork.texi.
49782         * doc/pastposix-functions/wcswcs.texi: Renamed from
49783         doc/posix-functions/wcswcs.texi.
49784         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49785         (Function Substitutes): Update.
49786
49787 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49788
49789         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49790         m4/strerror.m4.
49791
49792 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49793             Bruno Haible  <bruno@clisp.org>
49794
49795         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49796
49797 2008-12-13  Bruno Haible  <bruno@clisp.org>
49798
49799         * modules/strtoull (Depends-on): Remove unistd.
49800
49801 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49802
49803         * modules/strtoull (Depends-on): Add stdlib.
49804
49805 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49806
49807         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49808
49809 2008-12-10  Jim Meyering  <meyering@redhat.com>
49810
49811         gl_ASSERT: don't say assertions are disabled when they're not
49812         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49813         "checking whether to enable assertions... no", when they are in
49814         fact enabled.  This is solely a bug in the output of configure.
49815         In spite of saying "no", NDEBUG was not defined in that case.
49816         Also, as noted by Eric Blake, leave assertions enabled upon
49817         --enable-assert=INVALID.
49818
49819 2008-12-10  Bruno Haible  <bruno@clisp.org>
49820
49821         Change MODULES.html to refer to POSIX:2008 where possible.
49822         * MODULES.html.sh (POSIX2008_URL): New variable.
49823         (posix_headers): Remove sys/timeb, ucontext.
49824         (posix2001_headers): New variable.
49825         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49826         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49827         index, makecontext, mktemp, pthread_attr_getstackaddr,
49828         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49829         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49830         (posix2001_functions): New variable.
49831         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49832         otherwise.
49833
49834 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49835
49836         add missing include to parse-duration.c
49837         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49838         * modules/parse-duration (Depends-on): Add xalloc.
49839
49840         fix sed script reading maint.mk
49841         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49842         (syntax-check-rules): Use it.
49843
49844 2008-12-09  Bruno Haible  <bruno@clisp.org>
49845
49846         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49847         MacOS X 10.4/PowerPC.
49848         Reported by Simon Josefsson.
49849
49850 2008-12-08  Jim Meyering  <meyering@redhat.com>
49851
49852         work around mingw's lack of some S_IF definitions
49853         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49854         Reported by Simon Josefsson.
49855
49856 2008-12-08  Bruno Haible  <bruno@clisp.org>
49857
49858         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49859         applied to variables. Needed on MacOS X 10.4/PowerPC.
49860         Reported by Simon Josefsson.
49861
49862 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49863         and Eric Blake  <ebb9@byu.net>
49864
49865         assert: honor --enable-assert
49866         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49867         order to honor --enable-assert, rather than treating it as a
49868         synonym for --disable-assert.
49869
49870 2008-12-08  Jim Meyering  <meyering@redhat.com>
49871
49872         * lib/posixtm.c: Remove now-useless declaration of mktime.
49873
49874         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49875
49876 2008-12-07  Bruno Haible  <bruno@clisp.org>
49877
49878         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49879         test_once): Mark functions as static.
49880         * tests/test-tls.c (test_tls): Likewise.
49881
49882 2008-12-07  Bruno Haible  <bruno@clisp.org>
49883
49884         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49885         iconv_register_autodetect.
49886
49887 2008-12-07  Jim Meyering  <meyering@redhat.com>
49888
49889         posixtm.c: avoid a warning
49890         * lib/posixtm.c (posixtime): Don't initialize tm0.
49891         It's no longer needed to placate gcc4's -Wuninitialized,
49892         and the attempt to placate would elicit a new warning.
49893
49894         unicodeio.c: mark unused parameters
49895         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49896         (fallback_failure_callback): Likewise.
49897
49898 2008-12-07  Bruno Haible  <bruno@clisp.org>
49899
49900         * gnulib-tool (func_create_testdir): When building the tests
49901         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49902         Reported by Simon Josefsson.
49903
49904 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49905
49906         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49907
49908 2008-12-06  Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49911         Suggested by Eric Blake.
49912
49913 2008-12-06  Bruno Haible  <bruno@clisp.org>
49914
49915         Fix a c-stack test failure on MacOS X.
49916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49917         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49918         handler for SIGBUS as well.
49919         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49920         install a signal handler for SIGBUS as well.
49921         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49922
49923 2008-12-06  Bruno Haible  <bruno@clisp.org>
49924
49925         Advocacy documentation.
49926         * doc/gnulib-intro.texi (Benefits): New section.
49927         * doc/gnulib.texi: Update.
49928
49929 2008-12-06  Bruno Haible  <bruno@clisp.org>
49930
49931         Document the 'manywarnings' module.
49932         * doc/manywarnings.texi: New file.
49933         * doc/gnulib.texi: Include it.
49934
49935 2008-12-05  Eric Blake  <ebb9@byu.net>
49936
49937         tests: silence some gcc warnings
49938         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49939         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49940         type mismatches.
49941
49942 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49943             Bruno Haible  <bruno@clisp.org>
49944
49945         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49946
49947 2008-11-29  Jim Meyering  <meyering@redhat.com>
49948
49949         unicodeio.c: mark unused parameters
49950         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49951         (fallback_failure_callback): Likewise.
49952
49953         fts: fix a thinko
49954         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49955         (set_stat_type): Return S_IF*-valued "type" directly.
49956         Prompted by James Youngman's spotting a related bug.
49957         Confirmed by further testing through find.
49958
49959         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49960         * lib/fts.c (D_TYPE): Define.
49961         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49962         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49963         (s_ifmt_shift_bits): New function.
49964         (set_stat_type): New function.
49965         (fts_build): When not calling fts_stat, call set_stat_type
49966         to propagate dirent.d_type info to fts_read caller.
49967         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49968         fts_statp->st_mode type information may be valid.
49969
49970 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49971
49972         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49973         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49974         <sds@gnu.org>.
49975
49976 2008-11-20  Bruno Haible  <bruno@clisp.org>
49977
49978         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49979         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49980         INCLUDE_NEXT.
49981         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49982         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49983         * modules/math (Makefile.am): Substitute
49984         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49985         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49986
49987 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49988             Bruno Haible  <bruno@clisp.org>
49989
49990         * lib/stdint.in.h: Define all type macros so that their expansion is
49991         a single typedef'ed token. Fixes a compilation failure in Boost which
49992         does "using ::int8_t;".
49993
49994 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49995
49996         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49997         gl_MANYWARN_ALL_GCC.
49998         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49999         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50000         * modules/manywarnings: New file.
50001         * MODULES.html.sh: Mention manywarnings module.
50002
50003 2008-11-18  Bruno Haible  <bruno@clisp.org>
50004
50005         * doc/gnulib-tool.texi (Unit tests): New section.
50006
50007 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50008
50009         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50010         paths like 'lib/po/foo.po'.
50011
50012 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50013
50014         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50015         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50016
50017 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50018
50019         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50020         parameter works.
50021
50022 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50023
50024         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50025
50026 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50027
50028         * modules/parse-duration-tests: New file.
50029         * tests/test-parse-duration.sh: New file.
50030         * tests/test-parse-duration.c: New file.
50031
50032         New module 'parse-duration'.
50033         * lib/parse-duration.h: New file.
50034         * lib/parse-duration.c: New file.
50035         * modules/parse-duration: New file.
50036
50037 2008-11-17  Bruno Haible  <bruno@clisp.org>
50038
50039         * tests/test-select-out.sh: Comment out the first pipe test.
50040         Reported by Simon Josefsson.
50041
50042 2008-11-17  Bruno Haible  <bruno@clisp.org>
50043
50044         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50045         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50046         gl_HOSTENT.
50047
50048 2008-11-17  Bruno Haible  <bruno@clisp.org>
50049
50050         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50051         -lnetwork and -lnet. Needed for Haiku and BeOS.
50052
50053 2008-11-16  Bruno Haible  <bruno@clisp.org>
50054
50055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50056
50057 2008-11-16  Bruno Haible  <bruno@clisp.org>
50058
50059         Avoid test failure on Haiku.
50060         * tests/test-fsync.c: Include <errno.h>.
50061         (main): Don't require that fsync (0) fails.
50062
50063 2008-11-15  Bruno Haible  <bruno@clisp.org>
50064
50065         New module 'hostent'.
50066         * modules/hostent: New file.
50067         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50068
50069 2008-11-15  Bruno Haible  <bruno@clisp.org>
50070
50071         New module 'servent'.
50072         * modules/servent: New file.
50073         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50074
50075 2008-11-15  Bruno Haible  <bruno@clisp.org>
50076
50077         Avoid generating same test program with two different rules.
50078         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50079         test-frexp to test-frexp-nolibm.
50080         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50081         test-frexpl to test-frexpl-nolibm.
50082
50083 2008-11-15  Bruno Haible  <bruno@clisp.org>
50084
50085         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50086         $(FREXPL_LIBM).
50087
50088 2008-11-15  Bruno Haible  <bruno@clisp.org>
50089
50090         * lib/netdb.in.h: Activate the definitions also when the system's
50091         <netdb.h> has 'struct addrinfo'.
50092         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50093         EAI_OVERFLOW or AI_NUMERICSERV.
50094         * doc/posix-headers/netdb.texi: Document the problem.
50095
50096 2008-11-15  Bruno Haible  <bruno@clisp.org>
50097
50098         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50099
50100         Make the 'sched' module work on platforms where <sched.h> exists but
50101         is incomplete (such as Haiku).
50102         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50103         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50104         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50105         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50106         HAVE_STRUCT_SCHED_PARAM.
50107         * modules/sched (Depends-on): Add include_next.
50108         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50109         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50110         * doc/posix-headers/sched.texi: Document the issue.
50111
50112 2008-11-13  Jim Meyering  <meyering@redhat.com>
50113
50114         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50115         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50116         test would fail due to the difference in the Report bugs to ...
50117         line.  The expected address is empty, "<>", while the actual
50118         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50119
50120 2008-11-12  Bruno Haible  <bruno@clisp.org>
50121
50122         lstat: don't compile lstat.c on systems lacking lstat
50123         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50124         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50125         Reported by Daniel P. Berrange via Jim Meyering.
50126
50127 2008-11-12  Jim Meyering  <meyering@redhat.com>
50128
50129         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50130
50131 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50132
50133         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50134         instead.
50135
50136 2008-11-12  Bruno Haible  <bruno@clisp.org>
50137
50138         * lib/unicodeio.c: Include unistr.h.
50139         (utf8_wctomb): Remove function.
50140         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50141
50142 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50143
50144         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50145         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50146         <bruno@clisp.org>.
50147         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50148
50149 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50150
50151         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50152         * doc/gnulib.texi: Add section for warnings.
50153
50154 2008-11-11  Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/sockets.h: Add a comment.
50157
50158 2008-11-11  Karl Berry  <karl@gnu.org>
50159
50160         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50161
50162 2008-11-11  Eric Blake  <ebb9@byu.net>
50163
50164         fdl.texi: avoid git symlinks
50165         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50166
50167 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50168
50169         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50170
50171 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50172
50173         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50174         (gl_WARN_ADD): Substitute $2 if literal.
50175
50176 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50177
50178         * m4/warning.m4: Remove.
50179
50180 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50181
50182         * m4/warnings.m4: Almost complete rewrite. :-)
50183
50184 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50185
50186         * modules/warnings: New module.
50187         * m4/warnings.m4: New file.
50188         * MODULES.html.sh: Mention warnings module.
50189         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50190         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50191
50192 2008-11-10  Eric Blake  <ebb9@byu.net>
50193
50194         fdl.texi: make a symlink to the latest version
50195         * doc/standards.texi: Revert today's earlier change.
50196         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50197         * doc/fdl.texi: ...and replace this with a symlink to the newer
50198         fdl-1.3.texi.
50199
50200 2008-11-10  Bruno Haible  <bruno@clisp.org>
50201
50202         * tests/test-select-fd.c (main): Accept the result file name as fourth
50203         argument.
50204         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50205         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50206
50207 2008-11-10  Bruno Haible  <bruno@clisp.org>
50208
50209         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50210         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50211         as autoconf-substituted macros.
50212         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50214         gl_NETDB_H_DEFAULTS. Set these variables.
50215         * modules/netdb (Makefile.am): Substitute these variables.
50216
50217 2008-11-10  Eric Blake  <ebb9@byu.net>
50218
50219         standards.texi: include correct file for FDL 1.3
50220         * doc/standards.texi (GNU Free Documentation License): Change
50221         include file to pull in FDL 1.3, not 1.2.
50222
50223         fdl.texi: revert accidental change to license
50224         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50225
50226 2008-11-10  Bruno Haible  <bruno@clisp.org>
50227
50228         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50229         cross-compiling guesses also when the native compile gives no result.
50230
50231 2008-11-10  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/spawni.c (__spawni): Force variable into the stack.
50234
50235 2008-11-10  Bruno Haible  <bruno@clisp.org>
50236
50237         Add support for Haiku.
50238         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50239         glibc and BeOS, but also on Haiku.
50240         * lib/fpurge.c (fpurge): Likewise.
50241         * lib/freadable.c (freadable): Likewise.
50242         * lib/freadahead.c (freadahead): Likewise.
50243         * lib/freading.c (freading): Likewise.
50244         * lib/freadptr.c (freadptr): Likewise.
50245         * lib/freadseek.c (freadptrinc): Likewise.
50246         * lib/fseeko.c (rpl_fseeko): Likewise.
50247         * lib/fseterr.c (fseterr): Likewise.
50248         * lib/fwritable.c (fwritable): Likewise.
50249         * lib/fwriting.c (fwriting): Likewise.
50250         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50251
50252 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50253
50254         * lib/config.charset: Treat Haiku like BeOS.
50255
50256 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50257
50258         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50259         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50260
50261 2008-11-08  Bruno Haible  <bruno@clisp.org>
50262
50263         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50264         AC_CACHE_CHECK.
50265
50266 2008-11-08  Bruno Haible  <bruno@clisp.org>
50267
50268         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50269
50270 2008-11-08  Bruno Haible  <bruno@clisp.org>
50271
50272         * tests/test-select-fd.c: New file.
50273         * tests/test-select-in.sh: New file.
50274         * tests/test-select-out.sh: New file.
50275         * tests/test-select-stdin.c: New file.
50276         * modules/select-tests (Files): Add the new files.
50277         (Depends-on): Add gettimeofday.
50278         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50279         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50280         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50281
50282 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50283             Bruno Haible  <bruno@clisp.org>
50284
50285         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50286
50287 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50288
50289         * build-aux/pmccabe2html: Added support for C++ source files.
50290
50291 2008-11-05  Ben Pfaff  <blp@gnu.org>
50292
50293         Fix lib/close.c build on Windows.
50294         * modules/close (Files): Add lib/w32sock.h.
50295
50296 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50297
50298         Accept Bison's NEWS format.
50299         * build-aux/announce-gen (print_news_deltas): Tweak
50300         $re_prefix.
50301
50302 2008-11-04  Bruno Haible  <bruno@clisp.org>
50303
50304         * modules/random_r (Maintainer): Add glibc.
50305
50306 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50307
50308         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50309         by karl@freefriends.org (Karl Berry).
50310         * doc/alloca.texi: Likewise.
50311         * doc/c-ctype.texi: Likewise.
50312         * doc/c-strcase.texi: Likewise.
50313         * doc/c-strcaseeq.texi: Likewise.
50314         * doc/c-strcasestr.texi: Likewise.
50315         * doc/c-strstr.texi: Likewise.
50316         * doc/c-strtod.texi: Likewise.
50317         * doc/c-strtold.texi: Likewise.
50318         * doc/ctime.texi: Likewise.
50319         * doc/error.texi: Likewise.
50320         * doc/fdl.texi: Likewise.
50321         * doc/gcd.texi: Likewise.
50322         * doc/getdate.texi: Likewise.
50323         * doc/gnulib-intro.texi: Likewise.
50324         * doc/gnulib-tool.texi: Likewise.
50325         * doc/gnulib.texi: Likewise.
50326         * doc/inet_ntoa.texi: Likewise.
50327         * doc/maintain.texi: Likewise.
50328         * doc/make-stds.texi: Likewise.
50329         * doc/quote.texi: Likewise.
50330         * doc/regexprops-generic.texi: Likewise.
50331         * doc/standards.texi: Likewise.
50332         * doc/verify.texi: Likewise.
50333         * doc/visibility.texi: Likewise.
50334         * doc/gnulib.texi (GNU Free Documentation License): Include
50335         fdl-1.3.texi instead of fdl.texi.
50336
50337 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50338
50339         * doc/fdl-1.3.texi: New file, from
50340         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50341         * modules/fdl-1.3: Add.
50342         * MODULES.html.sh: Add fdl-1.3.
50343
50344 2008-11-03  Bruno Haible  <bruno@clisp.org>
50345
50346         Make determination of absolute name of header file work with AIX xlc.
50347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50348         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50349         preprocessing.
50350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50351         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50352
50353 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50354
50355         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50356         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50357         <ludo@gnu.org>.
50358
50359 2008-11-02  Bruno Haible  <bruno@clisp.org>
50360
50361         Mark 'strpbrk' obsolete.
50362         * modules/strpbrk (Status, Notice): New sections.
50363         * modules/strtok_r (Depends-on): Add strpbrk.
50364
50365 2008-11-02  Bruno Haible  <bruno@clisp.org>
50366
50367         Mark 'strdup' obsolete.
50368         * modules/strdup (Status, Notice): New sections.
50369         * modules/findprog (Depends-on): Add strdup.
50370         * modules/getaddrinfo (Depends-on): Likewise.
50371         * modules/localename (Depends-on): Likewise.
50372         * modules/relocatable-lib (Depends-on): Likewise.
50373         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50374         * modules/relocatable-prog (Depends-on): Likewise.
50375         * modules/trim (Depends-on): Likewise.
50376         * modules/unictype/gen-ctype (Depends-on): Likewise.
50377         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50378
50379 2008-11-02  Bruno Haible  <bruno@clisp.org>
50380
50381         Mark 'strcspn' obsolete.
50382         * modules/strcspn (Status, Notice): New sections.
50383
50384 2008-11-02  Bruno Haible  <bruno@clisp.org>
50385
50386         Mark 'rmdir' obsolete.
50387         * modules/rmdir (Status, Notice): New sections.
50388         * modules/clean-temp (Depends-on): Add rmdir.
50389         * modules/openat (Depends-on): Likewise.
50390
50391 2008-11-02  Bruno Haible  <bruno@clisp.org>
50392
50393         Mark 'raise' obsolete.
50394         * modules/raise (Status, Notice): New sections.
50395         (Include): Specify <signal.h>.
50396         * modules/stdio (Depends-on): Add raise.
50397         * modules/write (Depends-on): Likewise.
50398
50399 2008-11-02  Bruno Haible  <bruno@clisp.org>
50400
50401         Mark 'memset' obsolete.
50402         * modules/memset (Status, Notice): New sections.
50403
50404 2008-11-02  Bruno Haible  <bruno@clisp.org>
50405
50406         Mark 'memmove' obsolete.
50407         * modules/memmove (Status, Notice): New sections.
50408         * modules/argp (Depends-on): Add memmove.
50409         * modules/argz (Depends-on): Likewise.
50410         * modules/canonicalize (Depends-on): Likewise.
50411         * modules/canonicalize-lgpl (Depends-on): Likewise.
50412         * modules/fts (Depends-on): Likewise.
50413         * modules/getcwd (Depends-on): Likewise.
50414         * modules/human (Depends-on): Likewise.
50415         * modules/regex (Depends-on): Likewise.
50416         * modules/striconveh (Depends-on): Likewise.
50417         * modules/trim (Depends-on): Likewise.
50418         * modules/unistr/u8-move (Depends-on): Likewise.
50419         * modules/unistr/u16-move (Depends-on): Likewise.
50420         * modules/unistr/u32-move (Depends-on): Likewise.
50421
50422 2008-11-02  Bruno Haible  <bruno@clisp.org>
50423
50424         Mark 'memcpy' obsolete.
50425         * modules/memcpy (Status, Notice): New sections.
50426
50427 2008-11-02  Bruno Haible  <bruno@clisp.org>
50428
50429         Mark 'memcmp' obsolete.
50430         * modules/memcmp (Status, Notice): New sections.
50431         * modules/argmatch (Depends-on): Add memchr.
50432         * modules/backupfile (Depends-on): Likewise.
50433         * modules/c-strcasestr (Depends-on): Likewise.
50434         * modules/crypto/des (Depends-on): Likewise.
50435         * modules/csharpcomp (Depends-on): Likewise.
50436         * modules/fnmatch (Depends-on): Likewise.
50437         * modules/git-merge-changelog (Depends-on): Likewise.
50438         * modules/isnand (Depends-on): Likewise.
50439         * modules/isnand-nolibm (Depends-on): Likewise.
50440         * modules/isnanf (Depends-on): Likewise.
50441         * modules/isnanf-nolibm (Depends-on): Likewise.
50442         * modules/isnanl (Depends-on): Likewise.
50443         * modules/isnanl-nolibm (Depends-on): Likewise.
50444         * modules/mbchar (Depends-on): Likewise.
50445         * modules/memcoll (Depends-on): Likewise.
50446         * modules/quotearg (Depends-on): Likewise.
50447         * modules/regex (Depends-on): Likewise.
50448         * modules/relocatable-prog (Depends-on): Likewise.
50449         * modules/same (Depends-on): Likewise.
50450         * modules/signbit (Depends-on): Likewise.
50451         * modules/strcasestr-simple (Depends-on): Likewise.
50452         * modules/unictype/gen-ctype (Depends-on): Likewise.
50453         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50454         * modules/uniname/uniname (Depends-on): Likewise.
50455         * modules/unistr/u8-cmp (Depends-on): Likewise.
50456
50457 2008-11-02  Bruno Haible  <bruno@clisp.org>
50458
50459         Mark 'memchr' obsolete.
50460         * modules/memchr (Status, Notice): New sections.
50461         * modules/argp (Depends-on): Add memchr.
50462         * modules/base64 (Depends-on): Likewise.
50463         * modules/c-strcasestr (Depends-on): Likewise.
50464         * modules/chdir-long (Depends-on): Likewise.
50465         * modules/fnmatch (Depends-on): Likewise.
50466         * modules/getsubopt (Depends-on): Likewise.
50467         * modules/git-merge-changelog (Depends-on): Likewise.
50468         * modules/glob (Depends-on): Likewise.
50469         * modules/strcasestr-simple (Depends-on): Likewise.
50470         * modules/strnlen (Depends-on): Likewise.
50471
50472 2008-11-02  Bruno Haible  <bruno@clisp.org>
50473
50474         Mark 'atexit' obsolete.
50475         * modules/atexit (Status, Notice): New sections.
50476         * modules/chdir-long (Depends-on): Add atexit.
50477         * modules/wait-process (Depends-on): Likewise.
50478
50479 2008-11-02  Bruno Haible  <bruno@clisp.org>
50480
50481         * gnulib-tool: New option --with-obsolete.
50482         (func_usage): Document it.
50483         (func_modules_transitive_closure): Drop obsolete dependencies if
50484         incobsolete is not true.
50485         (func_import): Read and save the incobsolete variable to the cache.
50486
50487 2008-11-02  Bruno Haible  <bruno@clisp.org>
50488
50489         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50490         * gnulib-tool: New option --extract-status.
50491         (func_usage): Document it.
50492         (sed_extract_prog): Recognize it.
50493         (func_get_status): New function.
50494
50495 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50496
50497         * modules/sockets (License): Change from LGPL to LGPLv2+.
50498
50499 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50500
50501         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50502
50503 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50504
50505         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50506         Mention times and sys_times.
50507         * modules/sys_times, modules/sys_times-tests: New modules.
50508         * modules/times, modules/times-tests: Likewise
50509         * m4/sys_times_h.m4: New file.
50510         * lib/sys_times.in.h: Likewise
50511         * lib/times.c: Likewise.
50512         * tests/test-sys_times.c: Likewise.
50513         * tests/test-times.c: Likewise.
50514         * doc/posix-headers/sys_times.texi: Update.
50515         * doc/posix-functions/times.texi: Update.
50516
50517 2008-10-28  Jim Meyering  <meyering@redhat.com>
50518
50519         * modules/tempname (Depends-on): Add lstat.
50520
50521         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50522
50523 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50524
50525         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50526         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50527         using idiom used elsewhere in gnulib.
50528
50529 2008-10-27  Jim Meyering  <meyering@redhat.com>
50530
50531         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50532
50533 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50534
50535         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50536         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50537         programs.
50538         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50539
50540 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50541
50542         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50543
50544 2008-10-27  Bruno Haible  <bruno@clisp.org>
50545
50546         * tests/test-lstat.c: Include <stdio.h>.
50547
50548 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50549
50550         * modules/lstat-tests: New module.
50551         * tests/test-lstat.c: New file.
50552
50553 2008-10-26  Jim Meyering  <meyering@redhat.com>
50554
50555         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50556
50557 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50558             Bruno Haible  <bruno@clisp.org>
50559
50560         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50561         * modules/configmake (Include): Add a note that the include must come
50562         after all system headers.
50563         * lib/javaversion.c: Include configmake.h after all other includes.
50564
50565 2008-10-26  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50568         HAVE_STRUCT_RANDOM_DATA to 1.
50569         (gl_STDLIB_H): Simplify.
50570
50571 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50572
50573         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50574         substitute HAVE_STRUCT_RANDOM_DATA.
50575         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50576         random_data.
50577         * modules/stdlib (Makefile.am): Substitute
50578         HAVE_STRUCT_RANDOM_DATA.
50579
50580 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50581
50582         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50583         * doc/gnulib-intro.texi (Copyright): Likewise.
50584
50585 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50586
50587         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50588         findings.
50589
50590 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50591             Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/unistd.in.h: Include <winsock2.h>.
50594         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50595         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50596         Provide dummy declarations.
50597         (gethostname): Override.
50598         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50599         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50600         gl_PREREQ_SYS_H_WINSOCK2.
50601         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50602         * doc/posix-functions/gethostname.texi: More details.
50603
50604 2008-10-25  Bruno Haible  <bruno@clisp.org>
50605
50606         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50607         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50608         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50609
50610         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50611         here ...
50612         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50613         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50614         gl_UNISTD_H_DEFAULTS.
50615
50616 2008-10-25  Eric Blake  <ebb9@byu.net>
50617
50618         signbit: avoid spurious compiler failure
50619         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50620         declarations inside function.
50621
50622 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50623             Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50626         * modules/random_r (Depends-on): Add stdint.
50627
50628 2008-10-24  Bruno Haible  <bruno@clisp.org>
50629
50630         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50631         Eggert.
50632         * modules/strerror (License): Likewise.
50633
50634 2008-10-24  Jim Meyering  <meyering@redhat.com>
50635
50636         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50637         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50638
50639 2008-10-24  Eric Blake  <ebb9@byu.net>
50640
50641         getgroups: fix compilation when getgroups is available
50642         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50643         but with <config.h> override of getgroups disabled.
50644
50645 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50646
50647         * doc/gnulib.texi (Header files): Add note about C++ problems.
50648         Explained by Bruno Haible <bruno@clisp.org>.
50649
50650 2008-10-23  Bruno Haible  <bruno@clisp.org>
50651
50652         Define a dummy SA_NODEFER macro on Interix.
50653         * lib/signal.in.h (SA_NODEFER): Define fallback.
50654         Reported by Aleksey Cheusov <cheusov@tut.by> via
50655         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50656
50657 2008-10-23  Bruno Haible  <bruno@clisp.org>
50658
50659         * modules/freadahead (License): Change to LGPLv2+.
50660         Suggested by Simon Josefsson.
50661
50662 2008-10-23  Jim Meyering  <meyering@redhat.com>
50663
50664         random_r: new module
50665         * modules/random_r: New file.
50666         * m4/random_r.m4: New file.
50667         * lib/random_r.c: New file, from glibc.
50668         * modules/random_r-tests: New file.
50669         * tests/test-random_r.c: New file.
50670         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50671          Declare.
50672         (RAND_MAX): Define.
50673         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50674         * modules/stdlib: Substitute them, too.
50675         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50676         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50677         * doc/glibc-functions/random_r.texi: Likewise.
50678         * doc/glibc-functions/setstate_r.texi: Likewise.
50679         * doc/glibc-functions/srandom_r.texi: Likewise.
50680         * config/srclist.txt: Mention it.
50681
50682 2008-10-23  David Lutterkort  <lutter@redhat.com>
50683
50684         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50685         link requirement
50686
50687 2008-10-23  Jim Meyering  <meyering@redhat.com>
50688
50689         selinux-h: mark parameters of stub functions as intentionally unused
50690         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50691         * lib/se-context.in.h: Likewise.
50692
50693 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50694
50695         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50696
50697 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50698
50699         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50700
50701 2008-10-22  Eric Blake  <ebb9@byu.net>
50702
50703         glthread/thread: avoid compiler warning
50704         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50705         Add unreachable abort to silence compiler.
50706
50707 2008-10-22  Eric Blake  <ebb9@byu.net>
50708
50709         netdb: also supply struct addrinfo for cygwin 1.5.x
50710         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50711         older cygwin.
50712         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50713         cygwin.
50714         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50715
50716 2008-10-22  Bruno Haible  <bruno@clisp.org>
50717
50718         * users.txt: Update entry about pspp.
50719
50720 2008-10-21  Bruno Haible  <bruno@clisp.org>
50721
50722         Simplification.
50723         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50724         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50725
50726         Simplification.
50727         * lib/ioctl.c (ioctl): Don't undefine.
50728         * lib/socket.c (socket): Don't undefine.
50729
50730         Remove unused module indicator macros.
50731         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50732         GNULIB_$1 as a C macro.
50733
50734         * doc/posix-functions/close.texi: Undo last change.
50735         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50736         Windows platforms.
50737
50738 2008-10-21  Bruno Haible  <bruno@clisp.org>
50739
50740         Add gethostname() declaration to <unistd.h>.
50741         * lib/unistd.in.h (gethostname): New declaration.
50742         * lib/gethostname.c: Include <unistd.h>.
50743         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50744         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50746         and HAVE_GETHOSTNAME.
50747         * modules/gethostname (Depends-on): Add unistd.
50748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50749         (Include): Specify <unistd.h>.
50750         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50751         HAVE_GETHOSTNAME.
50752         * tests/test-gethostname.c: Include <unistd.h> first.
50753
50754 2008-10-21  Bruno Haible  <bruno@clisp.org>
50755
50756         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50757         * modules/select-tests (Depends-on): Likewise.
50758         Reported by Simon Josefsson.
50759
50760 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50761
50762         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50763         * lib/accept.c: New file, based on winsock.c.
50764         * lib/bind.c: New file, based on winsock.c.
50765         * lib/connect.c: New file, based on winsock.c.
50766         * lib/getpeername.c: New file, based on winsock.c.
50767         * lib/getsockname.c: New file, based on winsock.c.
50768         * lib/getsockopt.c: New file, based on winsock.c.
50769         * lib/ioctl.c: New file, based on winsock.c.
50770         * lib/listen.c: New file, based on winsock.c.
50771         * lib/recv.c: New file, based on winsock.c.
50772         * lib/recvfrom.c: New file, based on winsock.c.
50773         * lib/send.c: New file, based on winsock.c.
50774         * lib/sendto.c: New file, based on winsock.c.
50775         * lib/setsockopt.c: New file, based on winsock.c.
50776         * lib/shutdown.c: New file, based on winsock.c.
50777         * lib/socket.c: New file, based on winsock.c.
50778         * lib/w32sock.h: New file, based on winsock.c.
50779         * lib/winsock.c: Remove file.
50780         * modules/accept: Likewise.
50781         * modules/bind: Likewise.
50782         * modules/connect: Likewise.
50783         * modules/getpeername: Likewise.
50784         * modules/getsockname: Likewise.
50785         * modules/getsockopt: Likewise.
50786         * modules/ioctl: Likewise.
50787         * modules/listen: Likewise.
50788         * modules/recv: Likewise.
50789         * modules/recvfrom: Likewise.
50790         * modules/send: Likewise.
50791         * modules/sendto: Likewise.
50792         * modules/setsockopt: Likewise.
50793         * modules/shutdown: Likewise.
50794         * modules/socket: Use socket.c instead of winsock.c.
50795         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50796         * doc/posix-functions/accept.texi: Doc fix.
50797         * doc/posix-functions/bind.texi: Doc fix.
50798         * doc/posix-functions/close.texi: Doc fix.
50799         * doc/posix-functions/connect.texi: Doc fix.
50800         * doc/posix-functions/getpeername.texi: Doc fix.
50801         * doc/posix-functions/getsockname.texi: Doc fix.
50802         * doc/posix-functions/getsockopt.texi: Doc fix.
50803         * doc/posix-functions/ioctl.texi: Doc fix.
50804         * doc/posix-functions/listen.texi: Doc fix.
50805         * doc/posix-functions/recv.texi: Doc fix.
50806         * doc/posix-functions/recvfrom.texi: Doc fix.
50807         * doc/posix-functions/send.texi: Doc fix.
50808         * doc/posix-functions/sendto.texi: Doc fix.
50809         * doc/posix-functions/setsockopt.texi: Doc fix.
50810         * doc/posix-functions/shutdown.texi: Doc fix.
50811         * doc/posix-functions/socket.texi: Doc fix.
50812
50813 2008-10-20  Bruno Haible  <bruno@clisp.org>
50814
50815         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50816         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50817         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50818         as an alias for SIGABRT.
50819         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50820         (sigaction): Map it to SIGABRT.
50821         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50822
50823 2008-10-20  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/fts.c: Don't include lstat.h.
50826         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50827
50828         Move the lstat() declaration to <sys/stat.h>.
50829         * lib/lstat.h: Remove file.
50830         * lib/sys_stat.in.h: Add special invocation convention.
50831         (lstat): New declaration.
50832         * lib/lstat.c (orig_lstat): New function.
50833         (rpl_lstat): Use orig_lstat instead of lstat.
50834         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50835         AC_C_INLINE. Set REPLACE_LSTAT.
50836         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50837         and REPLACE_LSTAT.
50838         * modules/lstat (Files): Remove lib/lstat.h.
50839         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50840         (Include): Specify <sys/stat.h> instead of lstat.h.
50841         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50842         REPLACE_LSTAT.
50843         * NEWS: Mention the change.
50844
50845 2008-10-20  Bruno Haible  <bruno@clisp.org>
50846
50847         * modules/posix_spawn-tests: New file.
50848         * tests/test-posix_spawn3.c: New file.
50849
50850 2008-10-20  Bruno Haible  <bruno@clisp.org>
50851
50852         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50853         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50854         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50855         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50856         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50857
50858 2008-10-20  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50861         of posix_spawn on AIX 5.3.
50862
50863 2008-10-20  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50866
50867 2008-10-20  Bruno Haible  <bruno@clisp.org>
50868
50869         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50870         of AC_LANG_PROGRAM.
50871
50872 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50873
50874         * lib/netdb.in.h: Don't define GNU specific constants until they
50875         are supported or needed.  Reported by Bruno Haible
50876         <bruno@clisp.org>.
50877
50878 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50879
50880         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50881
50882 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50883
50884         * lib/getaddrinfo.h: Remove file.
50885         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50886         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50887         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50888         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50889         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50890         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50891         * tests/test-getaddrinfo.c: Likewise.
50892         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50893         * NEWS: Mention change.
50894
50895 2008-10-19  Bruno Haible  <bruno@clisp.org>
50896
50897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50898
50899 2008-10-19  Bruno Haible  <bruno@clisp.org>
50900
50901         * lib/wait-process.c: Include simply <sys/wait.h>.
50902         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50903         WIFSTOPPED): Remove fallback definitions.
50904         * modules/wait-process (Depends-on): Add sys_wait.
50905
50906         New module 'sys_wait'.
50907         * modules/sys_wait: New file.
50908         * lib/sys_wait.in.h: New file, partially copied from
50909         lib/wait-process.c.
50910         * m4/sys_wait_h.m4: New file.
50911         * doc/posix-headers/sys_wait.texi: Mention the new module.
50912
50913 2008-10-19  Bruno Haible  <bruno@clisp.org>
50914
50915         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50916
50917 2008-10-19  Bruno Haible  <bruno@clisp.org>
50918
50919         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50920         * lib/wait-process.c (WAIT_T): Remove type.
50921         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50922         (wait_subprocess): Update.
50923
50924 2008-10-19  Bruno Haible  <bruno@clisp.org>
50925
50926         New module 'atoll'.
50927         * modules/atoll: New file.
50928         * lib/stdlib.in.h (atoll): New declaration.
50929         * lib/atoll.c: New file, from glibc with modifications.
50930         * m4/atoll.m4: New file.
50931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50932         HAVE_ATOLL.
50933         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50934         * doc/posix-functions/atoll.texi: Mention the new module.
50935
50936 2008-10-19  Bruno Haible  <bruno@clisp.org>
50937
50938         Add strtoull() declaration to <stdlib.h>.
50939         * lib/stdlib.in.h (strtoull): New declaration.
50940         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50941         Set HAVE_STRTOULL.
50942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50943         HAVE_STRTOULL.
50944         * modules/strtoull (Depends-on): Add stdlib.
50945         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50946         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50947         HAVE_STRTOULL.
50948
50949 2008-10-19  Bruno Haible  <bruno@clisp.org>
50950
50951         Add strtoll() declaration to <stdlib.h>.
50952         * lib/stdlib.in.h (strtoll): New declaration.
50953         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50954         Set HAVE_STRTOLL.
50955         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50956         HAVE_STRTOLL.
50957         * modules/strtoll (Depends-on): Add stdlib.
50958         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50959         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50960
50961 2008-10-19  Bruno Haible  <bruno@clisp.org>
50962
50963         * modules/bcopy (Depends-on): Add strings.
50964         (Include): Specify <strings.h>.
50965
50966 2008-10-19  Bruno Haible  <bruno@clisp.org>
50967
50968         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50969
50970 2008-10-19  Bruno Haible  <bruno@clisp.org>
50971
50972         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50973         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50974         mingw.
50975
50976 2008-10-19  Bruno Haible  <bruno@clisp.org>
50977
50978         * lib/atanl.c: Don't include isnanl.h.
50979         * lib/cosl.c: Likewise.
50980         * lib/ldexpl.c: Likewise.
50981         * lib/logl.c: Likewise.
50982         * lib/sinl.c: Likewise.
50983         * lib/sqrtl.c: Likewise.
50984         * lib/tanl.c: Likewise.
50985
50986         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50987         * lib/isnanf.h: Remove file.
50988         * lib/isnand.h: Remove file.
50989         * lib/isnanl.h: Remove file.
50990         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50991         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50992         macros.
50993         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50994         HAVE_ISNANF, don't define it as a C macro.
50995         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50996         HAVE_ISNAND, don't define it as a C macro.
50997         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50998         HAVE_ISNANL, don't define it as a C macro.
50999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51000         HAVE_ISNAN[FDL].
51001         * modules/isnanf (Files): Remove lib/isnanf.h.
51002         (Depends-on): Add math.
51003         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51004         (Include): Specify <math.h> instead of isnanf.h.
51005         * modules/isnand (Files): Remove lib/isnand.h.
51006         (Depends-on): Add math.
51007         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51008         (Include): Specify <math.h> instead of isnand.h.
51009         * modules/isnanl (Files): Remove lib/isnanl.h.
51010         (Depends-on): Add math.
51011         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51012         (Include): Specify <math.h> instead of isnanl.h.
51013         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51014         HAVE_ISNAN[FDL].
51015         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51016         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51017         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51018         * NEWS: Mention the change.
51019
51020 2008-10-18  Bruno Haible  <bruno@clisp.org>
51021
51022         Add getusershell(), setusershell(), endusershell() declarations to
51023         <unistd.h>.
51024         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51025         declarations.
51026         * lib/getusershell.c: Include unistd.h.
51027         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51028         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51029         HAVE_GETUSERSHELL.
51030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51031         and HAVE_GETUSERSHELL.
51032         * modules/getusershell (Depends-on): Add unistd, extensions.
51033         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51034         (Include): Specify <unistd.h>.
51035         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51036         HAVE_GETUSERSHELL.
51037
51038 2008-10-18  Bruno Haible  <bruno@clisp.org>
51039
51040         Add a getloadavg() declaration to <stdlib.h>.
51041         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51042         getloadavg declaration.
51043         (getloadavg): New declaration.
51044         * lib/getloadavg.c: Include <stdlib.h> first.
51045         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51046         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51047         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51048         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51049         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51050         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51051         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51052         (Include): Specify <stdlib.h>.
51053         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51054         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51055
51056 2008-10-18  Bruno Haible  <bruno@clisp.org>
51057
51058         * lib/dirchownmod.c: Don't include lchmod.h.
51059
51060         Move the lchmod() declaration to <sys/stat.h>.
51061         * lib/lchmod.h: Remove file.
51062         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51063         (lchmod): New declaration, moved here from lib/lchown.h.
51064         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51065         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51066         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51067         and HAVE_LCHMOD.
51068         * modules/lchmod (Files): Remove lib/lchmod.h.
51069         (Depends-on): Add sys_stat, extensions.
51070         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51071         (Include): Specify <sys/stat.h> instead of lchmod.h.
51072         * modules/sys_stat (Depends-on): Add link-warning.
51073         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51074         definition of GL_LINK_WARNING.
51075         * NEWS: Mention the change.
51076
51077 2008-10-18  Bruno Haible  <bruno@clisp.org>
51078
51079         * lib/fchdir.c: Don't include dirfd.h.
51080         * lib/fts.c: Likewise.
51081         * lib/getcwd.c: Likewise.
51082         * lib/glob.c: Likewise.
51083
51084         Move the dirfd() declaration to <dirent.h>.
51085         * lib/dirfd.h: Remove file.
51086         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51087         (dirfd): New declaration.
51088         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51089         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51090         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51091         HAVE_DECL_DIRFD.
51092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51093         HAVE_DECL_DIRFD.
51094         * modules/dirfd (Files): Remove lib/dirfd.h.
51095         (Depends-on): Add dirent, extensions.
51096         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51097         (Include): Specify <dirent.h> instead of dirfd.h.
51098         * modules/dirent (Depends-on): Add link-warning.
51099         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51100         definition of GL_LINK_WARNING.
51101         * NEWS: Mention the change.
51102
51103 2008-10-18  Bruno Haible  <bruno@clisp.org>
51104
51105         Move the euidaccess() declaration to <unistd.h>.
51106         * lib/euidaccess.h: Remove file.
51107         * lib/unistd.in.h (euidaccess): New declaration.
51108         * lib/euidaccess.c: Don't include euidaccess.h.
51109         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51110         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51112         and HAVE_EUIDACCESS.
51113         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51114         (Depends-on): Add unistd.
51115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51116         (Include): Specify <unistd.h> instead of euidaccess.h.
51117         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51118         HAVE_EUIDACCESS.
51119         * NEWS: Mention the change.
51120
51121 2008-10-18  Bruno Haible  <bruno@clisp.org>
51122
51123         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51124
51125         Move the getdomainname() declaration to <unistd.h>.
51126         * lib/getdomainname.h: Remove file.
51127         * lib/unistd.in.h (getdomainname): New declaration.
51128         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51129         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51130         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51131         HAVE_GETDOMAINNAME.
51132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51133         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51134         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51135         (Depends-on): Add unistd, extensions.
51136         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51137         (Includes): Specify <unistd.h> instead of getdomainname.h.
51138         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51139         HAVE_GETDOMAINNAME.
51140         * NEWS: Mention the change.
51141
51142 2008-10-18  Bruno Haible  <bruno@clisp.org>
51143
51144         * modules/dirent: New file.
51145         * m4/dirent_h.m4: New file.
51146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51147         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51148         * modules/fchdir (Files): Remove lib/dirent.in.h.
51149         (Depends-on): Add dirent.
51150         (Makefile.am): Move rules to modules/dirent.
51151         * doc/posix-headers/dirent.texi: Mention the new module.
51152
51153 2008-10-18  Bruno Haible  <bruno@clisp.org>
51154
51155         Avoid -Wunused-parameter warnings in public gnulib header files.
51156         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51157         macro.
51158         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51159
51160 2008-10-18  Bruno Haible  <bruno@clisp.org>
51161
51162         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51163         * doc/glibc-functions/error.texi: Mention the module 'error'.
51164         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51165         * doc/glibc-functions/getdomainname.texi: Mention the module
51166         'getdomainname'.
51167         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51168         * doc/glibc-functions/getpagesize.texi: Mention the module
51169         'getpagesize'.
51170         * doc/glibc-functions/getusershell.texi: Mention the module
51171         'getusershell'.
51172         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51173         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51174         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51175         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51176         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51177         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51178         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51179         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51180         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51181         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51182         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51183         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51184         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51185         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51186
51187 2008-10-17  Bruno Haible  <bruno@clisp.org>
51188
51189         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51190         HP-UX and IRIX, use -0.0L.
51191         * tests/test-ceill.c (minus_zero): Likewise.
51192         * tests/test-floorl.c (minus_zero): Likewise.
51193         * tests/test-frexpl.c (minus_zero): Likewise.
51194         * tests/test-isnan.c (minus_zerol): Likewise.
51195         * tests/test-isnanl.h (minus_zero): Likewise.
51196         * tests/test-ldexpl.c (minus_zero): Likewise.
51197         * tests/test-roundl.c (minus_zero): Likewise.
51198         * tests/test-signbit.c (minus_zerol): Likewise.
51199         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51200         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51201         * tests/test-truncl.c (minus_zero): Likewise.
51202         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51203         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51204         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51205         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51206
51207 2008-10-17  Bruno Haible  <bruno@clisp.org>
51208
51209         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51210         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51211         that it gets activated only for gcc >= 3.0.
51212         * lib/dirent.in.h: Likewise.
51213         * lib/errno.in.h: Likewise.
51214         * lib/fcntl.in.h: Likewise.
51215         * lib/float.in.h: Likewise.
51216         * lib/iconv.in.h: Likewise.
51217         * lib/inttypes.in.h: Likewise.
51218         * lib/locale.in.h: Likewise.
51219         * lib/math.in.h: Likewise.
51220         * lib/netdb.in.h: Likewise.
51221         * lib/netinet_in.in.h: Likewise.
51222         * lib/search.in.h: Likewise.
51223         * lib/signal.in.h: Likewise.
51224         * lib/spawn.in.h: Likewise.
51225         * lib/stdarg.in.h: Likewise.
51226         * lib/stdint.in.h: Likewise.
51227         * lib/stdio.in.h: Likewise.
51228         * lib/stdlib.in.h: Likewise.
51229         * lib/string.in.h: Likewise.
51230         * lib/strings.in.h: Likewise.
51231         * lib/sys_file.in.h: Likewise.
51232         * lib/sys_ioctl.in.h: Likewise.
51233         * lib/sys_select.in.h: Likewise.
51234         * lib/sys_socket.in.h: Likewise.
51235         * lib/sys_stat.in.h: Likewise.
51236         * lib/sys_time.in.h: Likewise.
51237         * lib/sysexits.in.h: Likewise.
51238         * lib/time.in.h: Likewise.
51239         * lib/unistd.in.h: Likewise.
51240         * lib/wchar.in.h: Likewise.
51241         * lib/wctype.in.h: Likewise.
51242         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51243
51244 2008-10-17  Jim Meyering  <meyering@redhat.com>
51245
51246         ignore-value: don't depend on inline module
51247         * modules/ignore-value (Depends-on): Remove 'inline'.
51248         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51249         Suggestion from Bruno Haible.
51250
51251 2008-10-17  Bruno Haible  <bruno@clisp.org>
51252
51253         New implementation of condition variables for Win32.
51254         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51255         (gl_linked_waitqueue_t): New type.
51256         (gl_cond_t): Use it.
51257         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51258         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51259         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51260         (glthread_cond_init_func, glthread_cond_wait_func,
51261         glthread_cond_timedwait_func, glthread_cond_signal_func,
51262         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51263         Reimplemented on the basis of gl_linked_waitqueue_t.
51264         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51265         gl_waitqueue_t.
51266         (gl_rwlock_t): Update.
51267         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51268
51269 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51270
51271         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51272         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51273
51274 2008-10-17  Jim Meyering  <meyering@redhat.com>
51275
51276         ignore-value: new module
51277         * modules/ignore-value: New file.
51278         * lib/ignore-value.h: New file.
51279         * MODULES.html.sh (Compiler warning management): New section,
51280         just for this module.  More to come.
51281
51282 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51283
51284         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51285         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51286         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51287
51288 2008-10-16  Jim Meyering  <meyering@redhat.com>
51289
51290         openat-die.c: avoid 'no previous prototype' warning
51291         * lib/openat-die.c: Include "openat.h".
51292         Reported by Reuben Thomas <rrt@sc3d.org>.
51293
51294 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51295
51296         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51297         * lib/netdb.in.h: Fix typo.
51298         Reported by Bruno Haible  <bruno@clisp.org>
51299
51300         * lib/netdb.in.h: Include sys/socket.h for platforms without
51301         netdb.h, to get structures like hostent on MinGW.
51302         * modules/netdb (Depends-on): Add sys_socket.
51303
51304 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51305
51306         * modules/netdb, modules/netdb-tests: New file.
51307         * m4/netdb_h.m4: New file.
51308         * lib/netdb.in.h: Add, currently just an empty file pending
51309         definitions.
51310         * tests/test-netdb.c: New file.
51311         * doc/posix-headers/netdb.texi: Mention that we replace it if
51312         needed.
51313         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51314         netdb.
51315
51316 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51317
51318         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51319         with code.
51320
51321 2008-10-13  Bruno Haible  <bruno@clisp.org>
51322
51323         * lib/glthread/cond.c (glthread_cond_wait_func,
51324         glthread_cond_timedwait_func): Add a comment.
51325
51326 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51327
51328         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51329         * tests/test-select.c: Likewise,
51330
51331 2008-10-13  Bruno Haible  <bruno@clisp.org>
51332
51333         * lib/glthread/cond.c (glthread_cond_wait_func,
51334         glthread_cond_timedwait_func): Fix variable name.
51335         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51336
51337 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51338
51339         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51340         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51341         struct sockaddr.sa_len.
51342         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51343
51344 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51345
51346         * build-aux/pmccabe2html: Add css and css_url parameters.
51347
51348 2008-10-12  Bruno Haible  <bruno@clisp.org>
51349
51350         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51351         calling aclx_get.
51352         Reported by Rainer Tammer <tammer@tammer.net>.
51353
51354 2008-10-12  Bruno Haible  <bruno@clisp.org>
51355
51356         Use msvcrt aware primitives for creation/termination of Win32 threads.
51357         * lib/glthread/thread.c: Include <process.h>.
51358         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51359         (wrapper_func): Update signature.
51360         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51361
51362 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51363             Bruno Haible  <bruno@clisp.org>
51364
51365         Provide a Win32 implementation of the 'cond' module.
51366         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51367         * lib/glthread/cond.c (glthread_cond_init_func,
51368         glthread_cond_wait_func, glthread_cond_timedwait_func,
51369         glthread_cond_signal_func, glthread_cond_broadcast_func,
51370         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51371         * modules/cond (Dependencies): Add gettimeofday.
51372
51373 2008-10-11  Bruno Haible  <bruno@clisp.org>
51374
51375         Make sleep work on older versions of mingw.
51376         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51377         only whether it exists.
51378         * doc/posix-functions/sleep.texi: Mention the problem with older
51379         versions of mingw.
51380
51381 2008-10-11  Bruno Haible  <bruno@clisp.org>
51382
51383         New module 'shutdown'.
51384         * modules/shutdown: New file.
51385         * lib/sys_socket.in.h (shutdown): New declaration.
51386         * lib/winsock.c (shutdown): New function.
51387         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51388         GNULIB_SHUTDOWN.
51389         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51390         * doc/posix-functions/shutdown.texi: Document the new module.
51391
51392 2008-10-11  Jim Meyering  <meyering@redhat.com>
51393
51394         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51395
51396 2008-10-11  Bruno Haible  <bruno@clisp.org>
51397
51398         New module 'fclose'.
51399         * modules/fclose: New file.
51400         * lib/stdio.in.h (fclose): New declaration.
51401         * lib/fclose.c: New file.
51402         * m4/fclose.m4: New file.
51403         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51404         REPLACE_FCLOSE.
51405         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51406         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51407         REPLACE_FCLOSE.
51408         * modules/close (Depends-on): fclose.
51409         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51410
51411 2008-10-11  Bruno Haible  <bruno@clisp.org>
51412
51413         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51414         set errno and don't call _close.
51415
51416 2008-10-10  Bruno Haible  <bruno@clisp.org>
51417
51418         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51419         ACL, not afterwards. Fixes test failure on Cygwin.
51420
51421 2008-10-09  Ben Pfaff  <blp@gnu.org>
51422
51423         * build-aux/announce-gen: Fix gnulib version related part of usage
51424         message.  Die with a useful error message if no tarballs are
51425         found.
51426
51427 2008-10-10  Jim Meyering  <meyering@redhat.com>
51428
51429         bootstrap: use git's --depth=N option only if it's supported
51430         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51431         recognize the --depth option.  Reported by Pádraig Brady.
51432
51433 2008-10-09  Bruno Haible  <bruno@clisp.org>
51434
51435         New module 'ioctl'.
51436         * modules/ioctl: New file.
51437         * lib/sys_socket.in.h (ioctl): Remove declaration.
51438         * lib/winsock.c: Include <sys/ioctl.h>.
51439         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51440         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51441         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51442         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51443         * doc/posix-functions/ioctl.texi: Mention the new module.
51444
51445 2008-10-09  Bruno Haible  <bruno@clisp.org>
51446
51447         New module 'sys_ioctl'.
51448         * lib/sys_ioctl.in.h: New file.
51449         * m4/sys_ioctl_h.m4: New file.
51450         * modules/sys_ioctl: New file.
51451         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51452
51453 2008-10-09  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51456         * lib/winsock.c: Include <stdarg.h>.
51457         (rpl_ioctl): Change to second argument 'int' and then varargs.
51458
51459 2008-10-09  Bruno Haible  <bruno@clisp.org>
51460
51461         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51462         when the sys_socket module is present and the system has <winsock2.h>.
51463
51464 2008-10-09  Bruno Haible  <bruno@clisp.org>
51465
51466         * doc/posix-functions/close.texi: Mention module 'close' instead of
51467         module 'sys_socket'.
51468
51469 2008-10-09  Bruno Haible  <bruno@clisp.org>
51470
51471         * doc/glibc-headers/sys_ioctl.texi: New file.
51472         * doc/gnulib.texi: Include it.
51473
51474 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51475             Bruno Haible  <bruno@clisp.org>
51476
51477         Combine the two replacements of 'close'.
51478         * lib/sys_socket.in.h (close): Define to a reminder to include
51479         <unistd.h>.
51480         (_gl_close_fd_maybe_socket): New declaration.
51481         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51482         * lib/winsock.c (close): Remove undefinition.
51483         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51484         needed for the gnulib module 'close'.
51485         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51486         define to an error symbol or to a warning, if suitable.
51487         * lib/close.c: Include <sys/socket.h>.
51488         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51489         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51490         UNISTD_H_HAVE_WINSOCK2_H.
51491         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51493         UNISTD_H_HAVE_WINSOCK2_H.
51494         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51495         (configure.ac): Set a module indicator.
51496         (Makefile.am): Substitute GNULIB_CLOSE.
51497         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51498         * modules/poll-tests (Depends-on): Add close.
51499         * modules/select-tests (Depends-on): Likewise.
51500
51501 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51502             Bruno Haible  <bruno@clisp.org>
51503
51504         New module 'close'.
51505         * modules/close: New file.
51506         * lib/unistd.in.h (close): Move declaration out of the
51507         FCHDIR_REPLACEMENT scope.
51508         (_gl_unregister_fd): New declaration.
51509         * lib/close.c: New file.
51510         * lib/fchdir.c (rpl_close): Remove function.
51511         * m4/close.m4: New file.
51512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51513         close.
51514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51515         REPLACE_CLOSE.
51516         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51517         REPLACE_CLOSE.
51518         * modules/fchdir (Depends-on): Add close.
51519
51520 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51521             Bruno Haible  <bruno@clisp.org>
51522
51523         * lib/fcntl.in.h (open): Simplify conditionals.
51524         (_gl_register_fd): New declaration.
51525         * lib/fchdir.c (rpl_open): Remove function.
51526         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51527         also.
51528         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51529         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51530         open.
51531
51532 2008-10-09  Jim Meyering  <meyering@redhat.com>
51533
51534         GNUmakefile: use the more name-space-friendly "_version"
51535         * top/GNUmakefile (_dummy): Update.
51536         (_version): Rename from "version".
51537
51538 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51539             Bruno Haible  <bruno@clisp.org>
51540
51541         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51542         rpl_close.
51543         (_gl_register_fd): New function, extracted from rpl_open.
51544         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51545         (rpl_open, rpl_opendir): Use _gl_register_fd.
51546
51547 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51548
51549         Fix organization of 'open' replacement.
51550         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51551         (gl_FUNC_OPEN): Use it.
51552         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51553
51554 2008-10-08  Bruno Haible  <bruno@clisp.org>
51555
51556         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51557
51558 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51559
51560         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51561         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51562         listen).
51563
51564 2008-10-08  Eric Blake  <ebb9@byu.net>
51565
51566         GNUmakefile: add 'make version' target
51567         * top/GNUmakefile (_curr-ver): Split version update rules...
51568         (version): ...into a target.
51569
51570 2008-10-07  Bruno Haible  <bruno@clisp.org>
51571
51572         Use a more portable replacement expression for -0.0L.
51573         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51574         instead of -0.0L. Fix m4 quotation.
51575
51576         * tests/test-signbit.c: Include <float.h>.
51577         (minus_zero): New variable.
51578         (test_signbitl): Use minus_zero instead of -zero.
51579         * modules/signbit-tests (Depends-on): Add float.
51580
51581         * tests/test-ceill.c: Include <float.h>.
51582         (zero): Remove variable.
51583         (minus_zero): New variable.
51584         (main): Use minus_zero instead of -zero.
51585         * modules/ceill-tests (Depends-on): Add float.
51586
51587         * tests/test-floorl.c: Include <float.h>.
51588         (zero): Remove variable.
51589         (minus_zero): New variable.
51590         (main): Use minus_zero instead of -zero.
51591         * modules/floorl-tests (Depends-on): Add float.
51592
51593         * tests/test-roundl.c: Include <float.h>.
51594         (zero): Remove variable.
51595         (minus_zero): New variable.
51596         (main): Use minus_zero instead of -zero.
51597         * modules/roundl-tests (Depends-on): Add float.
51598
51599         * tests/test-truncl.c: Include <float.h>.
51600         (zero): Remove variable.
51601         (minus_zero): New variable.
51602         (main): Use minus_zero instead of -zero.
51603         * modules/truncl-tests (Depends-on): Add float.
51604
51605         * tests/test-frexpl.c (zero): Remove variable.
51606         (minus_zero): New variable.
51607         (main): Use minus_zero instead of -zero.
51608         * modules/frexpl-tests (Depends-on): Add float.
51609
51610         * tests/test-isnan.c (zerol): Remove variable.
51611         (minus_zerol): New variable.
51612         (test_long_double): Use minus_zerol instead of -zerol.
51613         * modules/isnan-tests (Depends-on): Add float.
51614
51615         * tests/test-isnanl.h (zero): Remove variable.
51616         (minus_zero): New variable.
51617         (main): Use minus_zero instead of -zero.
51618         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51619         * modules/isnanl-tests (Depends-on): Add float.
51620
51621         * tests/test-ldexpl.c (zero): Remove variable.
51622         (minus_zero): New variable.
51623         (main): Use minus_zero instead of -zero.
51624         * modules/ldexpl-tests (Depends-on): Add float.
51625
51626         * tests/test-snprintf-posix.h (zerol): Remove variable.
51627         (minus_zerol): New variable.
51628         (test_function): Use minus_zerol instead of -zerol.
51629         * modules/snprintf-posix-tests (Depends-on): Add float.
51630         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51631
51632         * tests/test-sprintf-posix.h (zerol): Remove variable.
51633         (minus_zerol): New variable.
51634         (test_function): Use minus_zerol instead of -zerol.
51635         * modules/sprintf-posix-tests (Depends-on): Add float.
51636         * modules/vsprintf-posix-tests (Depends-on): Add float.
51637
51638         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51639         (minus_zerol): New variable.
51640         (test_function): Use minus_zerol instead of -zerol.
51641         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51642
51643         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51644         (minus_zerol): New variable.
51645         (test_function): Use minus_zerol instead of -zerol.
51646         * modules/vasprintf-posix-tests (Depends-on): Add float.
51647
51648 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51649
51650         * MODULES.html.sh (Support for building documentation): Mention
51651         pmccabe2html.  Sort entries.
51652
51653         Add pmccabe2html module, from gnupdf.
51654         * build-aux/pmccabe.css: New file.
51655         * build-aux/pmccabe2html: New file.
51656         * m4/pmccabe2html.m4: New file.
51657         * modules/pmccabe2html: New file.
51658
51659 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51660
51661         flock: new module
51662         * MODULES.html.sh: Add to list of modules.
51663         * lib/flock.c: flock implementation for Windows and Unix systems
51664         which have fcntl.
51665         * doc/glibc-functions/flock.texi: Update documentation.
51666         * lib/sys_file.in.h: <sys/file.h> header file.
51667         * m4/flock.m4: M4 macros.
51668         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51669         * modules/flock: flock module.
51670         * modules/flock-tests: flock tests module.
51671         * modules/sys_file: sys/file.h module.
51672         * tests/test-flock.c: test suite for flock.
51673
51674 2008-10-06  Jim Meyering  <meyering@redhat.com>
51675
51676         bootstrap: check for LT_INIT more portably still ;-)
51677         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51678         Spotted by Bruno Haible.
51679
51680 2008-10-06  Eric Blake  <ebb9@byu.net>
51681
51682         test-signbit: avoid tripping Irix cc bug on -0.0L
51683         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51684         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51685         entire testsuite consistent and avoids an Irix 6.2 bug.
51686
51687 2008-10-05  Bruno Haible  <bruno@clisp.org>
51688             Jim Meyering  <jim@meyering.net>
51689
51690         Add an option for ignoring EPIPE during close_stdout.
51691         * lib/closeout.h: Include <stdbool.h>.
51692         (close_stdout_set_ignore_EPIPE): New declaration.
51693         * lib/closeout.c: Include <stdbool.h>.
51694         (ignore_EPIPE): New variable.
51695         (close_stdout_set_ignore_EPIPE): New function.
51696         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51697         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51698         failure.
51699         * modules/closeout (Depends-on): Add stdbool.
51700
51701 2008-10-05  Bruno Haible  <bruno@clisp.org>
51702
51703         * modules/accept: New file.
51704         * modules/bind: New file.
51705         * modules/connect: New file.
51706         * modules/getpeername: New file.
51707         * modules/getsockname: New file.
51708         * modules/getsockopt: New file.
51709         * modules/listen: New file.
51710         * modules/recv: New file.
51711         * modules/recvfrom: New file.
51712         * modules/send: New file.
51713         * modules/sendto: New file.
51714         * modules/setsockopt: New file.
51715         * modules/socket: New file.
51716         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51717         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51718         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51719         the particular module is requested. Add a link warning when the
51720         particular module is not requested.
51721         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51722         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51723         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51724         the particular module is requested.
51725         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51726         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51727         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51728         * modules/sys_socket (Depends-on): Add link-warning.
51729         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51730         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51731         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51732         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51733         GL_LINK_WARNING.
51734         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51735         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51736         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51737         * doc/posix-functions/getpeername.texi: Mention the new module
51738         'getpeername'.
51739         * doc/posix-functions/getsockname.texi: Mention the new module
51740         'getsockname'.
51741         * doc/posix-functions/getsockopt.texi: Mention the new module
51742         'getsockopt'.
51743         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51744         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51745         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51746         * doc/posix-functions/send.texi: Mention the new module 'send'.
51747         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51748         * doc/posix-functions/setsockopt.texi: Mention the new module
51749         'setsockopt'.
51750         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51751         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51752         listen, connect, accept.
51753         * modules/select-tests (Depends-on): Likewise.
51754
51755 2008-10-05  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/winsock.c (strerror): Remove unused #undef.
51758         (rpl_close): Remove unused local variable.
51759
51760         * modules/sys_socket (Depends-on); Add errno.
51761
51762 2008-10-05  Bruno Haible  <bruno@clisp.org>
51763
51764         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51765         (select): Add a link warning when the 'select' module is not used.
51766         * modules/sys_select (Depends-on): Add link-warning.
51767         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51768         Suggested by Paolo Bonzini.
51769
51770 2008-10-05  Jim Meyering  <meyering@redhat.com>
51771
51772         bootstrap: check for LT_INIT more portably
51773         * build-aux/bootstrap: Avoid using grep -E, since it's not
51774         portable enough.  Suggestion from Bruno Haible.
51775
51776 2008-10-05  Bruno Haible  <bruno@clisp.org>
51777
51778         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51779         as being fixed by gnulib.
51780
51781 2008-10-05  Bruno Haible  <bruno@clisp.org>
51782
51783         * modules/select-tests: New file, mostly copied from
51784         modules/sys_select-tests.
51785         * tests/test-select.c: New file, mostly copied from
51786         tests/test-sys_select.c.
51787         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51788         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51789         (Makefile.am): Remove test_sys_select_LDADD.
51790
51791         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51792         to an undefined symbol, for an error message.
51793         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51794         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51795         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51796         winsock-select.c here.
51797         * modules/sys_select (Files): Remove lib/winsock-select.c.
51798         (Depends-on): Remove alloca.
51799         (Makefile.am): Substitute GNULIB_SELECT.
51800         * modules/select: New file.
51801         * doc/posix-functions/select.texi: Update.
51802
51803 2008-10-05  Bruno Haible  <bruno@clisp.org>
51804
51805         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51806         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51807         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51808         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51809         getdtablesize.
51810         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51811         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51812
51813 2008-10-05  Bruno Haible  <bruno@clisp.org>
51814
51815         * modules/getdtablesize-tests: New file.
51816         * tests/test-getdtablesize.c: New file.
51817
51818         New module 'getdtablesize'.
51819         * lib/unistd.in.h (getdtablesize): New declaration.
51820         * lib/getdtablesize.c: New file.
51821         * m4/getdtablesize.m4: New file.
51822         * modules/getdtablesize: New file.
51823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51824         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51825         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51826         HAVE_GETDTABLESIZE.
51827         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51828
51829 2008-10-05  Bruno Haible  <bruno@clisp.org>
51830
51831         * modules/sched (Makefile.am): Fix typo.
51832         Reported by Simon Josefsson.
51833
51834 2008-10-05  Jim Meyering  <meyering@redhat.com>
51835
51836         bootstrap: check for LT_INIT, too
51837         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51838         are deprecated.  Suggestion from Ralf Wildenhues.
51839
51840 2008-10-05  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51843         overriding them by ours.
51844         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51845
51846 2008-10-05  Jim Meyering  <meyering@redhat.com>
51847
51848         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51849         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51850         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51851
51852 2008-10-04  Bruno Haible  <bruno@clisp.org>
51853
51854         * modules/dup2 (License): Change to LGPLv2+.
51855         * modules/sleep (License): Likewise.
51856         * modules/perror (License): Likewise.
51857         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51858         Blake.
51859         * modules/signal (License): Likewise.
51860         * modules/sigprocmask (License): Likewise.
51861         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51862         Meyering.
51863
51864 2008-10-04  Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51867         Reported by Rainer Tammer <tammer@tammer.net>.
51868
51869 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51870             Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51873         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51874         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51875
51876 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51877
51878         filevercmp: new module
51879         * lib/filevercmp.h: New function filevercmp comparing version strings.
51880         * lib/filevercmp.c: Implementation of filevercmp function.
51881         * modules/filevercmp: Module metadata.
51882         * tests/test-filevercmp.c: Unit test for new module.
51883         * modules/filevercmp-tests: Unit test metadata.
51884         * MODULES.html.sh: Add filevercmp module.
51885
51886 2008-10-03  Bruno Haible  <bruno@clisp.org>
51887
51888         * lib/c-ctype.h: Add comment.
51889         Reported by Jim Meyering.
51890
51891 2008-10-02  Bruno Haible  <bruno@clisp.org>
51892
51893         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51894
51895 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51896
51897         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51898         name of bootstrap.conf accordingly.
51899
51900 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51901
51902         * build-aux/bootstrap: Install git-merge-changelog configuration
51903         items into .gitconfig if needed.
51904
51905 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51906
51907         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51908         git repository, and initialize/update it accordingly.
51909
51910 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51911
51912         * modules/fsync-tests: New file.
51913         * tests/test-fsync.c: New file.
51914
51915         New module 'fsync'.
51916         * lib/fsync.c: New file.
51917         * m4/fsync.m4: New file.
51918         * modules/fsync: New file.
51919         * lib/unistd.in.h (fsync): New declaration.
51920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51921         GNULIB_FSYNC and HAVE_FSYNC.
51922         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51923         * MODULES.html.sh (posix_functions): Add fsync.
51924         * doc/posix-functions/fsync.texi: Mention the new module.
51925
51926 2008-10-02  Jim Meyering  <meyering@redhat.com>
51927
51928         fts.c: sync with similar code from coreutils' remove.c
51929         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51930         Guard also with "#if defined __linux__", since for now at least,
51931         this code is Linux-kernel-specific.
51932
51933 2008-10-02  Jim Meyering  <meyering@redhat.com>
51934
51935         fts: bug fixes
51936         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51937         Include <sys/vfs.h>, not <sys/statfs.h>.
51938
51939         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51940         Include <sys/vfs.h>, not <sys/statfs.h>.
51941
51942 2008-10-01  Bruno Haible  <bruno@clisp.org>
51943
51944         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51945         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51946         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51947         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51948         * doc/posix-functions/posix_spawnp.texi: Likewise.
51949         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51950         whether posix_spawn actually works.
51951         * m4/pipe.m4 (gl_PIPE): Likewise.
51952         * modules/execute (Files): Add m4/posix_spawn.m4.
51953         * modules/pipe (Files): Add m4/posix_spawn.m4.
51954         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51955
51956 2008-10-01  Jim Meyering  <meyering@redhat.com>
51957
51958         remove trailing spaces
51959         * NEWS: Likewise.
51960         * lib/poll.c (poll): Likewise.
51961         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51962         * lib/winsock.c (rpl_close): Likewise.
51963         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51964         * modules/yield: Likewise.
51965         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51966         * tests/test-sys_select.c (connect_to_socket): Likewise.
51967
51968         fts.c: adjust a new interface to be more generally useful
51969         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51970         (fts_build): Adjust caller.
51971
51972 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51973
51974         * modules/cond-tests: New file.
51975         * tests/test-cond.c: New file.
51976
51977 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51978             Bruno Haible  <bruno@clisp.org>
51979
51980         * modules/cond (Dependencies): Add errno, time.
51981         * lib/glthread/cond.h: Include <time.h>.
51982         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51983         across platforms.
51984
51985 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51986             Bruno Haible  <bruno@clisp.org>
51987
51988         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51989
51990 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51991             Bruno Haible  <bruno@clisp.org>
51992
51993         * modules/tls-tests (Depends-on): Add thread, yield.
51994         (configure.ac): Remove all checks.
51995         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51996         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51997         gl_thread_self): Remove definitions. Include glthread/thread.h and
51998         glthread/yield.h instead.
51999         (test_tls): Pass an additional NULL argument to gl_thread_join.
52000
52001 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52002             Bruno Haible  <bruno@clisp.org>
52003
52004         * modules/lock-tests (Depends-on): Add thread, yield.
52005         (configure.ac): Remove all checks.
52006         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52007         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52008         gl_thread_self): Remove definitions. Include glthread/thread.h and
52009         glthread/yield.h instead.
52010         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52011         additional NULL argument to gl_thread_join.
52012
52013 2008-09-30  Bruno Haible  <bruno@clisp.org>
52014
52015         Fix the Win32 implementation of the 'thread' module.
52016         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52017         pointer type.
52018         (gl_thread_self): Invoke gl_thread_self_func.
52019         (gl_thread_self_func): New declaration.
52020         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52021         (do_init_self_key, init_self_key): New functions.
52022         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52023         Remove some fields.
52024         (running_threads, running_lock): Remove variables.
52025         (get_current_thread_handle): New function.
52026         (gl_thread_self_func, wrapper_func, glthread_create_func,
52027         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52028         simplified.
52029
52030 2008-09-30  Bruno Haible  <bruno@clisp.org>
52031
52032         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52033         files.
52034
52035 2008-09-30  Jim Meyering  <meyering@redhat.com>
52036
52037         fts.m4: correct the test for statfs.f_type
52038         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52039         when checking for statfs.f_type.
52040
52041 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52042
52043         tests: avoid some compiler warnings
52044         * tests/test-memchr.c (main): Pass NULL indirectly.
52045         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52046
52047 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52048
52049         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52050         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52051         exactly specified dayshifts.
52052         (dayshift): New rule.
52053         (rel): Add dayshift.
52054         (relative_time_table) [tomorrow, yesterday, today, now]:
52055         Use tDAY_SHIFT in place of tDAY_UNIT.
52056         * tests/test-getdate.c: Add tests for now-disallowed countable
52057         dayshifts, e.g., "4 yesterday ago".
52058
52059 2008-09-29  Bruno Haible  <bruno@clisp.org>
52060
52061         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52062         * tests/test-posix_spawn1.in.sh: Renamed from
52063         tests/test-posix_spawn.in.sh.
52064         * tests/test-posix_spawn2.c: New file.
52065         * tests/test-posix_spawn2.in.sh: New file.
52066         * modules/posix_spawnp-tests (Files): Update.
52067         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52068
52069 2008-09-29  Bruno Haible  <bruno@clisp.org>
52070
52071         Propagate effects of putenv/setenv/unsetenv to child processes.
52072         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52073         * lib/pipe.c (create_pipe): Likewise.
52074
52075 2008-09-29  Bruno Haible  <bruno@clisp.org>
52076
52077         Enable use of shell scripts as executables in mingw.
52078         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52079         run the program as a shell script.
52080         * lib/pipe.c (create_pipe): Likewise.
52081         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52082         resulting array.
52083
52084 2008-09-29  Eric Blake  <ebb9@byu.net>
52085
52086         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52087
52088 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52089
52090         * doc/posix-functions/accept.texi: Update mingw problems.
52091         * doc/posix-functions/bind.texi: Update mingw problems.
52092         * doc/posix-functions/close.texi: Update mingw problems.
52093         * doc/posix-functions/connect.texi: Update mingw problems.
52094         * doc/posix-functions/getpeername.texi: Update mingw problems.
52095         * doc/posix-functions/getsockname.texi: Update mingw problems.
52096         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52097         * doc/posix-functions/ioctl.texi: Update mingw problems.
52098         * doc/posix-functions/listen.texi: Update mingw problems.
52099         * doc/posix-functions/recv.texi: Update mingw problems.
52100         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52101         * doc/posix-functions/select.texi: Update mingw problems.
52102         * doc/posix-functions/send.texi: Update mingw problems.
52103         * doc/posix-functions/sendto.texi: Update mingw problems.
52104         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52105         * doc/posix-functions/socket.texi: Update mingw problems.
52106
52107 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52108             Bruno Haible  <bruno@clisp.org>
52109
52110         * lib/sys_select.in.h: Include sys/time.h.
52111         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52112         * modules/sys_select: Depend on sys_time.
52113         * tests/test-sys_select.c: Test that sys/select.h defines struct
52114         timeval fully.
52115
52116 2008-09-29  Bruno Haible  <bruno@clisp.org>
52117
52118         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52119         * lib/sys_select.in.h: Likewise.
52120
52121 2008-09-29  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52124
52125 2008-09-29  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52128         Set LIBSOCKET instead of augmenting LIBS.
52129         * modules/sockets (Link): New section.
52130         * modules/sockets-tests (test_sockets_LDADD): New variable.
52131         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52132         * modules/poll-tests (test_poll_LDADD): New variable.
52133         * NEWS: Document the change.
52134
52135 2008-09-29  Bruno Haible  <bruno@clisp.org>
52136
52137         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52138         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52139         ARPA_INET_H directly.
52140         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52141
52142 2008-09-28  Bruno Haible  <bruno@clisp.org>
52143
52144         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52145         from gl_HEADER_SYS_SOCKET.
52146         (gl_HEADER_SYS_SOCKET): Invoke it.
52147         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52148
52149 2008-09-28  Bruno Haible  <bruno@clisp.org>
52150
52151         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52152         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52153         Needed on OSF/1 4.0.
52154
52155 2008-09-28  Bruno Haible  <bruno@clisp.org>
52156
52157         Override open more carefully.
52158         * lib/open.c (orig_open): New function.
52159         (rpl_open): Use orig_open instead of open.
52160         * lib/fcntl.in.h: Add special invocation convention.
52161         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52162         (gl_FUNC_OPEN): Invoke it.
52163
52164         Override freopen more carefully.
52165         * lib/freopen.c (orig_freopen): New function.
52166         (rpl_freopen): Use orig_freopen instead of freopen.
52167         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52168         (gl_FUNC_FREOPEN): Invoke it.
52169
52170         Override fopen more carefully.
52171         * lib/fopen.c (orig_fopen): New function.
52172         (rpl_fopen): Use orig_fopen instead of fopen.
52173         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52174         (gl_FUNC_FOPEN): Invoke it.
52175         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52176
52177 2008-09-28  Bruno Haible  <bruno@clisp.org>
52178
52179         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52180         SIGPIPE.
52181
52182 2008-09-28  Bruno Haible  <bruno@clisp.org>
52183
52184         * tests/test-sigaction.c (handler, main): Disable the check whether
52185         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52186         glibc systems with LinuxThreads.
52187
52188 2008-09-28  Bruno Haible  <bruno@clisp.org>
52189
52190         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52191
52192         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52193         with AIX xlc.
52194         * lib/fcntl.in.h (open): Likewise.
52195         Reported by Rainer Tammer <tammer@tammer.net>.
52196
52197 2008-09-28  Bruno Haible  <bruno@clisp.org>
52198
52199         * modules/posix_spawnp-tests: New file.
52200         * tests/test-posix_spawn.c: New file.
52201         * tests/test-posix_spawn.in.sh: New file.
52202
52203         New module 'posix_spawnp'.
52204         * modules/posix_spawnp: New file.
52205         * lib/spawnp.c: New file, from GNU libc with modifications.
52206         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52207
52208         New module 'posix_spawn'.
52209         * modules/posix_spawn: New file.
52210         * lib/spawn.c: New file, from GNU libc with modifications.
52211         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52212
52213         New module 'posix_spawnattr_destroy'.
52214         * modules/posix_spawnattr_destroy: New file.
52215         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52216         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52217         module.
52218
52219         New module 'posix_spawnattr_setsigmask'.
52220         * modules/posix_spawnattr_setsigmask: New file.
52221         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52222         modifications.
52223         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52224         new module.
52225
52226         New module 'posix_spawnattr_getsigmask'.
52227         * modules/posix_spawnattr_getsigmask: New file.
52228         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52229         modifications.
52230         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52231         new module.
52232
52233         New module 'posix_spawnattr_setsigdefault'.
52234         * modules/posix_spawnattr_setsigdefault: New file.
52235         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52236         modifications.
52237         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52238         new module.
52239
52240         New module 'posix_spawnattr_getsigdefault'.
52241         * modules/posix_spawnattr_getsigdefault: New file.
52242         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52243         modifications.
52244         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52245         new module.
52246
52247         New module 'posix_spawnattr_setschedpolicy'.
52248         * modules/posix_spawnattr_setschedpolicy: New file.
52249         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52250         modifications.
52251         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52252         new module.
52253
52254         New module 'posix_spawnattr_getschedpolicy'.
52255         * modules/posix_spawnattr_getschedpolicy: New file.
52256         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52257         modifications.
52258         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52259         new module.
52260
52261         New module 'posix_spawnattr_setschedparam'.
52262         * modules/posix_spawnattr_setschedparam: New file.
52263         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52264         modifications.
52265         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52266         new module.
52267
52268         New module 'posix_spawnattr_getschedparam'.
52269         * modules/posix_spawnattr_getschedparam: New file.
52270         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52271         modifications.
52272         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52273         new module.
52274
52275         New module 'posix_spawnattr_setpgroup'.
52276         * modules/posix_spawnattr_setpgroup: New file.
52277         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52278         modifications.
52279         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52280         module.
52281
52282         New module 'posix_spawnattr_getpgroup'.
52283         * modules/posix_spawnattr_getpgroup: New file.
52284         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52285         modifications.
52286         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52287         module.
52288
52289         New module 'posix_spawnattr_setflags'.
52290         * modules/posix_spawnattr_setflags: New file.
52291         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52292         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52293         module.
52294
52295         New module 'posix_spawnattr_getflags'.
52296         * modules/posix_spawnattr_getflags: New file.
52297         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52298         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52299         module.
52300
52301         New module 'posix_spawnattr_init'.
52302         * modules/posix_spawnattr_init: New file.
52303         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52304         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52305         module.
52306
52307         New module 'posix_spawn_file_actions_destroy'.
52308         * modules/posix_spawn_file_actions_destroy: New file.
52309         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52310         modifications.
52311         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52312         the new module.
52313
52314         New module 'posix_spawn_file_actions_addopen'.
52315         * modules/posix_spawn_file_actions_addopen: New file.
52316         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52317         modifications.
52318         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52319         the new module.
52320
52321         New module 'posix_spawn_file_actions_adddup2'.
52322         * modules/posix_spawn_file_actions_adddup2: New file.
52323         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52324         modifications.
52325         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52326         the new module.
52327
52328         New module 'posix_spawn_file_actions_addclose'.
52329         * modules/posix_spawn_file_actions_addclose: New file.
52330         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52331         modifications.
52332         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52333         the new module.
52334
52335         New module 'posix_spawn_file_actions_init'.
52336         * modules/posix_spawn_file_actions_init: New file.
52337         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52338         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52339         new module.
52340
52341         New module 'posix_spawn-internal'.
52342         * modules/posix_spawn-internal: New file.
52343         * lib/spawn_int.h: New file, from GNU libc with modifications.
52344         * lib/spawni.c: New file, from GNU libc with modifications.
52345         * m4/posix_spawn.m4: New file.
52346
52347         New module 'spawn'.
52348         * modules/spawn: New file.
52349         * lib/spawn.in.h: New file, from GNU libc with modifications.
52350         * m4/spawn_h.m4: New file.
52351         * doc/posix-headers/spawn.texi: Mention the new module.
52352
52353 2008-09-28  Bruno Haible  <bruno@clisp.org>
52354
52355         * modules/sched-tests: New file.
52356         * tests/test-sched.c: New file.
52357
52358         New module 'sched'.
52359         * modules/sched: New file.
52360         * lib/sched.in.h: New file.
52361         * m4/sched_h.m4: New file.
52362         * doc/posix-headers/sched.texi: Mention the new module.
52363
52364 2008-09-27  Eric Blake  <ebb9@byu.net>
52365
52366         Fix previous patch, and tweak references to $0.
52367         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52368         (func_version, func_gnulib_dir): Don't call this program
52369         gnulib-tool.
52370         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52371         with using $0 in function.
52372         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52373         (func_fatal_error): Reuse the name the user invoked us with.
52374
52375 2008-09-27  Bruno Haible  <bruno@clisp.org>
52376
52377         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52378         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52379         (gl_ICONV_H): Not here.
52380         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52381         instead of assigning ICONV_H directly.
52382
52383         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52385         WCHAR_H directly.
52386
52387 2008-09-27  Bruno Haible  <bruno@clisp.org>
52388
52389         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52390         * modules/arpa_inet (Depends-on): Add link-warning.
52391         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52392         * modules/unistd (Makefile.am): Likewise.
52393
52394 2008-09-26  Bruno Haible  <bruno@clisp.org>
52395
52396         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52397         variables.
52398         (func_version): Essentially copied from gnulib-tool.
52399         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52400         func_readlink): Copied from gnulib-tool.
52401
52402 2008-09-26  Bruno Haible  <bruno@clisp.org>
52403
52404         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52405         invoking git-version-gen.
52406
52407 2008-09-26  Bruno Haible  <bruno@clisp.org>
52408
52409         * posix-modules: Update to directory names changed on 2008-01-19.
52410         Remove commas in output before splitting into words. No more need to
52411         avoid 'ftruncate' since 2007-02-19.
52412
52413 2008-09-26  Bruno Haible  <bruno@clisp.org>
52414
52415         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52416
52417 2008-09-26  Bruno Haible  <bruno@clisp.org>
52418
52419         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52420         * modules/fwriteerror (Depends-on): Add errno.
52421
52422 2008-09-26  Bruno Haible  <bruno@clisp.org>
52423
52424         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52425         * tests/test-vc-list-files-cvs.sh: Likewise.
52426
52427 2008-09-26  Bruno Haible  <bruno@clisp.org>
52428
52429         * doc/posix-headers/sys_resource.texi: Reorder items.
52430
52431 2008-09-26  Jim Meyering  <meyering@redhat.com>
52432
52433         fts: tweak inode comparison function
52434         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52435         inode numbers, as documented.
52436
52437         fts: sort dirent entries on inode number before traversing
52438         This avoids a quadratic, seek-related performance penalty when
52439         operating on a directory containing many entries (measurable at 10k;
52440         3.5 hours at 2 million entries with a cold cache) on certain types
52441         of file systems, including ext3 and ext4, but not tmpfs.
52442         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52443         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52444         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52445         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52446         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52447         (fts_build): Set the stat.st_ino member from D_INO.
52448         If it is likely to be useful, sort dirent entries on inode number.
52449
52450         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52451         and the struct statfs.f_type member.
52452         * modules/fts (Depends-on): Add d-ino.
52453
52454 2008-09-26  Bruno Haible  <bruno@clisp.org>
52455
52456         * modules/sigpipe-die (Depends-on): Add sigpipe.
52457
52458         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52459         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52460         and GNULIB_STDIO_H_SIGPIPE are set.
52461         * lib/stdio-write.c: New file.
52462         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52463         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52464         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52465         REPLACE_STDIO_WRITE_FUNCS.
52466         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52467         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52468         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52469         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52470         * modules/stdio (Files): Add lib/stdio-write.c.
52471         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52472         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52473         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52474         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52475         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52476         REPLACE_FPRINTF_POSIX.
52477         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52478         REPLACE_PRINTF_POSIX.
52479         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52480         REPLACE_VFPRINTF_POSIX.
52481         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52482         REPLACE_VPRINTF_POSIX.
52483         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52484         SIGPIPE issue.
52485         * doc/posix-functions/fputc.texi: Likewise.
52486         * doc/posix-functions/fputs.texi: Likewise.
52487         * doc/posix-functions/fwrite.texi: Likewise.
52488         * doc/posix-functions/printf.texi: Likewise.
52489         * doc/posix-functions/putc.texi: Likewise.
52490         * doc/posix-functions/putchar.texi: Likewise.
52491         * doc/posix-functions/puts.texi: Likewise.
52492         * doc/posix-functions/vfprintf.texi: Likewise.
52493         * doc/posix-functions/vprintf.texi: Likewise.
52494
52495         * modules/safe-write (Depends-on): Add write.
52496
52497         * modules/sigpipe-tests: New file.
52498         * tests/test-sigpipe.c: New file.
52499         * tests/test-sigpipe.sh: New file.
52500
52501         * modules/write: New file.
52502         * lib/unistd.in.h: Include <sys/types.h>.
52503         (write): New declaration.
52504         * lib/write.c: New file.
52505         * m4/write.m4: New file.
52506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52507         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52508         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52509         GNULIB_WRITE, REPLACE_WRITE.
52510         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52511         and the SIGPIPE issue.
52512
52513         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52514         (raise): New declaration.
52515         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52516         (ext_signal): New function.
52517         (rpl_raise): New function.
52518         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52519         GNULIB_SIGNAL_H_SIGPIPE.
52520         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52521         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52522
52523         * modules/sigpipe: New file.
52524         * m4/sigpipe.m4: New file.
52525
52526 2008-09-25  Derek Price  <derek@ximbiot.com>
52527             Bruno Haible  <bruno@clisp.org>
52528
52529         * gnulib-tool (func_import): Report all license incompatibilities, not
52530         just the first one.
52531
52532 2008-09-25  Bruno Haible  <bruno@clisp.org>
52533
52534         * gnulib-tool (func_import): When computing the edits, consider not
52535         only the Makefile.ams that exist but also those that will be generated.
52536
52537 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52538
52539         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52540         fixes gnulib-tool --test warning about duplicate dependency.
52541
52542 2008-09-25  Bruno Haible  <bruno@clisp.org>
52543
52544         * gnulib-tool: Don't ask the user to perform edits in the generated
52545         Makefile.ams.
52546         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52547         apply to the Makefile.am being generated.
52548         (func_emit_tests_Makefile_am): Execute edits that apply to the
52549         Makefile.am being generated.
52550         (func_import): Setup list of Makefile.am edits before emitting the
52551         Makefile.ams, not at the end.
52552         (func_create_testdir): Update.
52553         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52554
52555 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52556
52557         * gnulib-tool (func_import): Store the --tests-base option in the
52558         comment in gnulib-cache.m4.
52559
52560 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52561
52562         * NEWS: Document increased portability that sys_select now provides.
52563
52564         * lib/sys_select.in.h: Install select wrapper.
52565         * lib/sys_socket.in.h: Use more descriptive name when there is no
52566         select wrapper.
52567         * lib/winsock-select.c: New.
52568         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52569         Require gl_HEADER_SYS_SOCKET.
52570         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52571         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52572         * tests/test-sys_select.c: Add functional tests.
52573
52574 2008-09-24  Eric Blake  <ebb9@byu.net>
52575
52576         open, fopen: close fd leak in last patch
52577         * lib/open.c (rpl_open): Close fd before returning error.
52578         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52579         * doc/posix-functions/open.texi (open): Document that Irix also
52580         has the bug.
52581         * doc/posix-functions/fopen.texi (fopen): Likewise.
52582         Reported by Paolo Bonzini.
52583
52584 2008-09-24  Bruno Haible  <bruno@clisp.org>
52585
52586         Ensure that a filename ending in a slash cannot be used to access a
52587         non-directory.
52588         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52589         to check whether it's really a directory.
52590         * lib/fopen.c: Include fcntl.h, unistd.h.
52591         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52592         and fdopen().
52593         * modules/fopen (Depends-on): Add unistd.
52594         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52595         * tests/test-fopen.c (main): Likewise.
52596         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52597         * doc/posix-functions/fopen.texi: Likewise.
52598         Reported by Eric Blake.
52599
52600 2008-09-23  Eric Blake  <ebb9@byu.net>
52601
52602         c-stack: avoid compiler optimizations when provoking overflow
52603         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52604         recursion harder to optimize, to ensure a stack overflow occurs.
52605         * tests/test-c-stack.c (recurse): Likewise.
52606         Borrowed from libsigsegv.
52607
52608         c-stack: work around Irix sigaltstack bug
52609         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52610         whether sigaltstack uses wrong end of stack_t (copied in part from
52611         libsigsegv).
52612         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52613         Irix bug, without requiring an over-allocation.
52614         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52615         bug.
52616
52617         fopen: document mingw bug on directories
52618         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52619         not allowing a stream visiting a directory, even though reading
52620         from such a stream is not portable.
52621
52622 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52623
52624         * lib/poll.c: Rewrite.
52625         * modules/poll: Depend on alloca.
52626
52627 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52628
52629         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52630         instead define prototypes for a full set of wrappers.  Ensure
52631         that Cygwin does not use the compatibility code, which is only
52632         for MinGW.
52633         * lib/winsock.c: New.
52634         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52635         * modules/sys_socket: Add lib/winsock.c.
52636
52637         * modules/poll-tests: Add errno and perror.
52638         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52639
52640 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52641
52642         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52643
52644 2008-09-23  Bruno Haible  <bruno@clisp.org>
52645
52646         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52647         * doc/glibc-functions/*: Likewise.
52648
52649 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52650
52651         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52652         success.
52653
52654 2008-09-22  Eric Blake  <ebb9@byu.net>
52655             Bruno Haible  <bruno@clisp.org>
52656
52657         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52658         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52659         supply %A but mishandle pseudo-NaN.
52660         Reported by Simon Josefsson.
52661
52662 2008-09-21  Bruno Haible  <bruno@clisp.org>
52663
52664         * tests/test-lock.c (main): Tweak skip message.
52665         * tests/test-tls.c (main): Likewise.
52666
52667 2008-09-21  Bruno Haible  <bruno@clisp.org>
52668
52669         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52670         whether 'struct sigaction' has sa_sigaction here...
52671         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52672         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52673
52674 2008-09-21  Bruno Haible  <bruno@clisp.org>
52675
52676         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52677         section.
52678         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52679         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52680         the new section.
52681         (Support for obsolete systems lacking POSIX:2001): New section.
52682         (String handling <string.h>): Move strdup to the new section.
52683         Suggested by Simon Josefsson and Paolo Bonzini.
52684
52685 2008-09-21  Bruno Haible  <bruno@clisp.org>
52686
52687         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52688         exponents in %e and %g results on 'long double'. Needed for mingw's
52689         improved *printf functions.
52690         * tests/test-vasprintf-posix.c (test_function): Likewise.
52691         * tests/test-snprintf-posix.h (test_function): Likewise.
52692         * tests/test-sprintf-posix.h (test_function): Likewise.
52693         Reported by Eric Blake.
52694
52695 2008-09-21  Bruno Haible  <bruno@clisp.org>
52696
52697         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52698         * tests/test-sprintf-posix.h (test_function): Likewise.
52699
52700 2008-09-21  Bruno Haible  <bruno@clisp.org>
52701
52702         * modules/getpass (Depends-on): Add strdup-posix.
52703
52704         New module 'strdup-posix'.
52705         * modules/strdup-posix: New file.
52706         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52707         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52709         REPLACE_STRDUP.
52710         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52711         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52712         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52713         strdup-posix.
52714
52715         * modules/strdup (Depends-on): Remove malloc-posix.
52716
52717 2008-09-20  Bruno Haible  <bruno@clisp.org>
52718
52719         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52720         Wildenhues.
52721
52722 2008-09-20  Bruno Haible  <bruno@clisp.org>
52723
52724         Ensure that wint_t gets defined on IRIX 5.3.
52725         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52726         * lib/wctype.in.h (wint_t): Likewise.
52727         (__wctype_wint_t): Remove type.
52728         (isw*): Use wint_t instead of __wctype_wint_t.
52729         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52730         * modules/wchar (Files): Add m4/wint_t.m4.
52731         (Makefile.am): Substitute HAVE_WINT_T.
52732         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52733         * tests/test-wctype.c: Check that wint_t is defined.
52734         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52735         * doc/posix-headers/wctype.texi: Likewise.
52736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52737
52738 2008-09-18  Bruno Haible  <bruno@clisp.org>
52739
52740         * gnulib-tool (func_exit): Update comment.
52741
52742 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52743
52744         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52745         assumes strdup exists and does not depend on strdup to return
52746         ENOMEM on out of memory conditions.
52747
52748 2008-09-18  Bruno Haible  <bruno@clisp.org>
52749
52750         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52751         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52752         digits for the exponent.
52753
52754 2008-09-18  Jim Meyering  <meyering@redhat.com>
52755             Bruno Haible  <bruno@clisp.org>
52756
52757         * lib/vasnprintf.c (decimal_point_char): Define also if
52758         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52759
52760 2008-09-16  Bruno Haible  <bruno@clisp.org>
52761         and Eric Blake  <ebb9@byu.net>
52762
52763         vasnprintf: support Irix 5.3
52764         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52765         that mishandle long double infinity.
52766         Reported by Tom G. Christensen.
52767
52768 2008-09-16  Bruno Haible  <bruno@clisp.org>
52769
52770         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52771         Solaris 9.
52772         * doc/glibc-functions/alphasort.texi: Likewise.
52773         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52774
52775 2008-09-16  Jim Meyering  <meyering@redhat.com>
52776
52777         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52778         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52779         a umask modification leak out of a subshell.  Otherwise, the
52780         opensolaris /bin/sh would be accepted and thus cause unwarranted
52781         failures in the coreutils test suite.
52782
52783 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52784
52785         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52786         to succeed.
52787
52788 2008-09-16  Jim Meyering  <meyering@redhat.com>
52789
52790         avoid spurious test failure when library is built without ACL support
52791         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52792         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52793         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52794         * tests/test-copy-acl.sh: Likewise.
52795
52796 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52797
52798         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52799         based on character occurrence counts.
52800
52801 2008-09-15  Eric Blake  <ebb9@byu.net>
52802
52803         tests: avoid some compiler warnings
52804         * tests/test-memchr.c (main): Pass NULL indirectly.
52805         * tests/test-closein.c (main): Avoid unused variable.
52806
52807 2008-09-15  Bruno Haible  <bruno@clisp.org>
52808
52809         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52810         are missing on OpenBSD 4.0 individually.
52811         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52812
52813 2008-09-15  Bruno Haible  <bruno@clisp.org>
52814
52815         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52816         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52817         * doc/posix-functions/perror.texi: Likewise.
52818         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52819         is missing.
52820         Reported by Eric Blake.
52821
52822         * lib/errno.in.h: Use replacement values >= 2000.
52823         Reported by Eric Blake.
52824
52825 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52826
52827         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52828         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52829         limit.
52830         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52831         compareseq was aborted.
52832
52833 2008-09-14  Bruno Haible  <bruno@clisp.org>
52834
52835         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52836         yvec_edit_count.
52837         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52838         (fstrcmp_bounded): Simplify result computation accordingly.
52839
52840 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52841
52842         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52843         (fstrcmp): Define in terms of fstrcmp_bounded.
52844         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52845         lower_bound argument.
52846         Return quickly if the result is certainly < lower_bound.
52847         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52848
52849 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52850
52851         * lib/diffseq.h (EARLY_ABORT): New macro.
52852         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52853         evaluates to true.
52854
52855 2008-09-14  Bruno Haible  <bruno@clisp.org>
52856
52857         * modules/perror-tests: New file.
52858         * tests/test-perror.sh: New file.
52859         * tests/test-perror.c: New file.
52860
52861         New module 'perror'.
52862         * lib/stdio.in.h (perror): New declaration.
52863         * lib/perror.c: New file.
52864         * m4/perror.m4: New file.
52865         * modules/perror: New file.
52866         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52867         * doc/posix-functions/perror.texi: Mention the perror module.
52868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52869         REPLACE_PERROR.
52870         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52871         REPLACE_PERROR.
52872
52873 2008-09-14  Bruno Haible  <bruno@clisp.org>
52874
52875         * modules/stdio (Makefile.am): Reorder to match the order in
52876         lib/stdio.in.h.
52877         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52878
52879 2008-09-13  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52882
52883 2008-09-13  Bruno Haible  <bruno@clisp.org>
52884
52885         Extend strerror to cover the added errno values.
52886         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52887         (rpl_strerror): Provide error messages for the added errno values and
52888         for the WSA* values.
52889         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52890         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52891         strerror.
52892         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52893         * modules/strerror (Depends-on): Add errno.
52894         * doc/posix-functions/strerror.texi: Document the change.
52895         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52896         and EOVERFLOW.
52897
52898 2008-09-13  Bruno Haible  <bruno@clisp.org>
52899
52900         * modules/EOVERFLOW: Remove file.
52901         * m4/eoverflow.m4: Remove file.
52902         * modules/EOVERFLOW-tests: Remove file.
52903         * tests/test-EOVERFLOW.c: Remove file.
52904         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52905         * modules/ftell (Depends-on): Likewise.
52906         * modules/getdelim (Depends-on): Likewise.
52907         * modules/getugroups (Depends-on): Likewise.
52908         * modules/poll (Depends-on): Likewise.
52909         * modules/snprintf (Depends-on): Likewise.
52910         * modules/sprintf-posix (Depends-on): Likewise.
52911         * modules/vasnprintf (Depends-on): Likewise.
52912         * modules/vasprintf (Depends-on): Likewise.
52913         * modules/vfprintf-posix (Depends-on): Likewise.
52914         * modules/vsnprintf (Depends-on): Likewise.
52915         * modules/vsprintf-posix (Depends-on): Likewise.
52916         * modules/xvasprintf (Depends-on): Likewise.
52917         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52918         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52919         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52920         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52921         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52922         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52923         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52924         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52925         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52926         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52927         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52928         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52929         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52930         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52931         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52932         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52933         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52934         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52935         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52936         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52937         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52938         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52939         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52940         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52941         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52942         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52943         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52944         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52945         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52946         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52947         * MODULES.html.sh: Remove EOVERFLOW.
52948         * NEWS: Mention the change.
52949
52950 2008-09-13  Bruno Haible  <bruno@clisp.org>
52951
52952         * modules/errno-tests: New file.
52953         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52954
52955         * lib/errno.in.h: New file.
52956         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52957         * modules/errno: New file.
52958         * doc/posix-headers/errno.texi: Update documentation.
52959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52960
52961 2008-09-13  Bruno Haible  <bruno@clisp.org>
52962
52963         * tests/test-poll.c: Use #if for native Windows, rather than testing
52964         __MSVCRT__.
52965
52966 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52967             Bruno Haible  <bruno@clisp.org>
52968
52969         * lib/glob.c: Don't include <pwd.h> on native Windows.
52970         (WINDOWS32): New macro.
52971         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52972
52973 2008-09-13  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52976         (ETIMEDOUT): Remove macro.
52977         (glthread_cond_timedwait_multithreaded): New declaration.
52978         (glthread_cond_timedwait): Use it.
52979         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52980         (glthread_cond_timedwait_multithreaded): New function.
52981
52982 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52983
52984         * modules/poll-tests: Do not check for io.h.
52985         * tests/test-poll.c: Check for __MSVCRT__ instead.
52986
52987 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52988
52989         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52990         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52991         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52992
52993 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52994
52995         * modules/poll-tests: New.
52996         * tests/test-poll.c: New.
52997
52998 2008-09-12  Eric Blake  <ebb9@byu.net>
52999
53000         frexp: test for NetBSD failure on -0.0
53001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53002         not all, bugs from NetBSD 3.0 have been fixed.
53003         * doc/posix-functions/frexp.texi (frexp): Document bug.
53004         Reported by Thomas Klausner.
53005
53006         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53007         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53008         literal -0.0.
53009         Reported by Jonathan C. Patschke <jp@centtech.com>.
53010
53011 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53012
53013         * lib/glthread/cond.h: Use dummy implementation also if
53014         USE_WIN32_THREADS.
53015
53016 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53017
53018         * modules/fnmatch-posix (License): Change to LGPLv2+.
53019         * modules/fnmatch-gnu (License): Likewise.
53020
53021 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53022
53023         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53024
53025 2008-09-11  Jim Meyering  <meyering@redhat.com>
53026
53027         * users.txt: Add gtk-vnc.
53028
53029 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53030
53031         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53032         rotate amounts.
53033
53034         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53035         required for 16-bit and 8-bit rotates.
53036         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53037         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53038         UINT8_MAX instead of hard-coded constants.
53039         Suggested by Paul Eggert.
53040
53041 2008-09-07  Bruno Haible  <bruno@clisp.org>
53042
53043         * tests/test-striconveh.c (main): Check behaviour when converting from
53044         UTF-7.
53045
53046         Make striconveh work better with stateful encodings.
53047         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53048         that iconv does not increment the inptr when returning -1/EINVAL.
53049
53050 2008-09-07  Bruno Haible  <bruno@clisp.org>
53051
53052         * build-aux/config.rpath: Update according to libtool-2.2.6.
53053         * build-aux/config.libpath: Likewise.
53054
53055 2008-09-06  Bruno Haible  <bruno@clisp.org>
53056
53057         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53058         * lib/freadptr.c (freadptr): Likewise.
53059         * lib/freadseek.c (freadptrinc): Likewise.
53060         Reported by Simon Josefsson.
53061
53062 2008-09-06  Bruno Haible  <bruno@clisp.org>
53063
53064         * modules/freadptr (License): Change to LGPLv2+.
53065         * modules/freadseek (License): Likewise.
53066         Suggested by Eric Blake.
53067
53068         * modules/memchr2 (License): Change to LGPLv2+.
53069         Approved by Eric Blake.
53070
53071 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53072             Bruno Haible  <bruno@clisp.org>
53073
53074         Make gnulib-tool work with native 'sed' on AIX.
53075         * gnulib-tool (sed_noop): New variable.
53076         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53077         func_add_or_update, func_create_testdir): Use it to initialize sed
53078         script variables.
53079         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53080
53081 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53082             Bruno Haible  <bruno@clisp.org>
53083
53084         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53085         also works after #include directives.
53086
53087 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53088
53089         getdate.y: reject an out-of-range timezone value
53090         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53091         the range [-24...+24].  When specified with only one or two digits,
53092         * tests/test-getdate.c: Tests for the fix.
53093         * doc/getdate.texi: Document this change.
53094
53095 2008-09-03  Bruno Haible  <bruno@clisp.org>
53096
53097         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53098
53099 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53100
53101         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53102         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53103         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53104         Blake <ebb9@byu.net>.
53105
53106         * tests/test-bitrotate.c: Add more test vectors.
53107
53108 2008-09-02  Eric Blake  <ebb9@byu.net>
53109
53110         vasnprintf-posix: handle large precision via %.*d
53111         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53112         when handling it ourselves.
53113         * tests/test-vasnprintf-posix.c (test_function): Add test.
53114         * tests/test-snprintf-posix.h (test_function): Likewise.
53115         * tests/test-sprintf-posix.h (test_function): Likewise.
53116         * tests/test-vasprintf-posix.c (test_function): Likewise.
53117         Reported by Alain Guibert.
53118
53119 2008-09-01  Eric Blake  <ebb9@byu.net>
53120
53121         c-stack: make configure-time check more robust
53122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53123         successful sigaction call.
53124         Reported by Tom G. Christensen.
53125
53126 2008-09-01  Bruno Haible  <bruno@clisp.org>
53127
53128         New module 'findprog-lgpl'.
53129         * modules/findprog-lgpl: New file.
53130         * lib/findprog-lgpl.c: New file.
53131         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53132         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53133         to decide whether to use strdup or xstrdup, concatenated_filename or
53134         xconcatenated_filename.
53135
53136 2008-09-01  Bruno Haible  <bruno@clisp.org>
53137
53138         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53139         'xconcat-filename' (GPL).
53140         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53141         (License): Change to LGPLv2+.
53142         * modules/xconcat-filename: New file.
53143         * lib/concat-filename.h (concatenated_filename): Change specification.
53144         (xconcatenated_filename): New declaration.
53145         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53146         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53147         memory situations.
53148         * lib/xconcat-filename.c: New file.
53149         * NEWS: Mention the change.
53150         * lib/findprog.c: Include concat-filename.h, not filename.h.
53151         (find_in_path): Use xconcatenated_filename instead of
53152         concatenated_filename.
53153         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53154         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53155         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53156         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53157         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53158         instead of concatenated_filename.
53159         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53160         (execute_java_class): Use xconcatenated_filename instead of
53161         concatenated_filename.
53162         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53163         * modules/javacomp (Depends-on): Likewise.
53164         * modules/javaexec (Depends-on): Likewise.
53165
53166 2008-09-01  Bruno Haible  <bruno@clisp.org>
53167
53168         Split module 'filename' into 'filename' and 'concat-filename'.
53169         * modules/filename: Keep only lib/filename.h.
53170         (License): Change to LGPLv2+.
53171         * modules/concat-filename: New file, extracted from modules/filename.
53172         * lib/filename.h (concatenated_filename): Remove declaration.
53173         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53174         * lib/concat-filename.c: Include concat-filename.h.
53175         * NEWS: Mention the change.
53176
53177 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53178
53179         * lib/bitrotate.h (rotl8, rotr8): Add.
53180
53181         * modules/bitrotate (configure.ac): Need
53182         AC_REQUIRE([AC_C_INLINE]).
53183         (Description): Mention stdint.h.  Reported by Bruno Haible
53184         <bruno@clisp.org>.
53185
53186         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53187         Paolo Bonzini <bonzini@gnu.org>.
53188
53189 2008-08-31  Bruno Haible  <bruno@clisp.org>
53190
53191         Assume Solaris specific bi-arch conventions on Solaris systems.
53192         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53193         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53194         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53195         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53196         like acl_libdirstem.
53197         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53198         acl_libdirstem.
53199         * NEWS: Mention the change.
53200         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53201
53202 2008-08-31  Jim Meyering  <meyering@redhat.com>
53203
53204         * lib/strftime.h: Add comments describing the two added arguments.
53205
53206         remove duplicate #include directives
53207         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53208         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53209
53210 2008-08-31  Bruno Haible  <bruno@clisp.org>
53211
53212         New module 'sigpipe-die'.
53213         * modules/sigpipe-die: New file.
53214         * lib/sigpipe-die.h: New file.
53215         * lib/sigpipe-die.c: New file.
53216         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53217
53218 2008-08-31  Bruno Haible  <bruno@clisp.org>
53219
53220         Don't override previously installed signal handlers.
53221         * lib/fatal-signal.c (saved_sigactions): New variable.
53222         (uninstall_handlers): Reset the signal to the saved handler, not
53223         to SIG_DFL (except when ignored).
53224         (install_handlers): Save the previous handlers.
53225
53226 2008-08-30  Bruno Haible  <bruno@clisp.org>
53227
53228         * gnulib-tool (func_reset_sigpipe): New function.
53229         (func_get_automake_snippet, func_modules_transitive_closure,
53230         func_import): Invoke it before a join command that reads from stdin,
53231         to avoid "echo: write error: Broken pipe" error messages on stderr.
53232         Reported by Sam Steingold <sds@gnu.org>.
53233
53234 2008-08-30  Bruno Haible  <bruno@clisp.org>
53235
53236         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53237         Code copied from m4/open.m4.
53238         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53239         access and the filename ends in a slash. Code copied from lib/open.c.
53240         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53241         * tests/test-fopen.c (main): Check against bug with trailing slash.
53242
53243 2008-08-29  Bruno Haible  <bruno@clisp.org>
53244
53245         Avoid some "gcc -pedantic" warnings.
53246         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53247         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53248         * lib/dirent.in.h: Likewise.
53249         * lib/fcntl.in.h: Likewise.
53250         * lib/float.in.h: Likewise.
53251         * lib/iconv.in.h: Likewise.
53252         * lib/inttypes.in.h: Likewise.
53253         * lib/locale.in.h: Likewise.
53254         * lib/math.in.h: Likewise.
53255         * lib/netinet_in.in.h: Likewise.
53256         * lib/search.in.h: Likewise.
53257         * lib/signal.in.h: Likewise.
53258         * lib/stdarg.in.h: Likewise.
53259         * lib/stdint.in.h: Likewise.
53260         * lib/stdio.in.h: Likewise.
53261         * lib/stdlib.in.h: Likewise.
53262         * lib/string.in.h: Likewise.
53263         * lib/strings.in.h: Likewise.
53264         * lib/sys_select.in.h: Likewise.
53265         * lib/sys_socket.in.h: Likewise.
53266         * lib/sys_stat.in.h: Likewise.
53267         * lib/sys_time.in.h: Likewise.
53268         * lib/sysexits.in.h: Likewise.
53269         * lib/time.in.h: Likewise.
53270         * lib/unistd.in.h: Likewise.
53271         * lib/wchar.in.h: Likewise.
53272         * lib/wctype.in.h: Likewise.
53273         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53274         * modules/fchdir (Makefile.am): Likewise.
53275         * modules/fcntl (Makefile.am): Likewise.
53276         * modules/float (Makefile.am): Likewise.
53277         * modules/iconv_open (Makefile.am): Likewise.
53278         * modules/inttypes (Makefile.am): Likewise.
53279         * modules/locale (Makefile.am): Likewise.
53280         * modules/math (Makefile.am): Likewise.
53281         * modules/netinet_in (Makefile.am): Likewise.
53282         * modules/search (Makefile.am): Likewise.
53283         * modules/signal (Makefile.am): Likewise.
53284         * modules/stdarg (Makefile.am): Likewise.
53285         * modules/stdint (Makefile.am): Likewise.
53286         * modules/stdio (Makefile.am): Likewise.
53287         * modules/stdlib (Makefile.am): Likewise.
53288         * modules/string (Makefile.am): Likewise.
53289         * modules/strings (Makefile.am): Likewise.
53290         * modules/sys_select (Makefile.am): Likewise.
53291         * modules/sys_socket (Makefile.am): Likewise.
53292         * modules/sys_stat (Makefile.am): Likewise.
53293         * modules/sys_time (Makefile.am): Likewise.
53294         * modules/sysexits (Makefile.am): Likewise.
53295         * modules/time (Makefile.am): Likewise.
53296         * modules/unistd (Makefile.am): Likewise.
53297         * modules/wchar (Makefile.am): Likewise.
53298         * modules/wctype (Makefile.am): Likewise.
53299         Reported by Reuben Thomas <rrt@sc3d.org>.
53300
53301 2008-08-29  Bruno Haible  <bruno@clisp.org>
53302
53303         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53304         any more.
53305
53306 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53307
53308         * MODULES.html.sh (Misc): Add bitrotate.
53309
53310         * modules/bitrotate: New file.
53311
53312         * lib/bitrotate.h: New file.
53313
53314         * modules/bitrotate-tests: New file.
53315
53316         * tests/test-bitrotate.c: New file.
53317
53318         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53319         on the bitrotate module.
53320
53321         * lib/arctwo.c: Use new bitrotate module.
53322
53323 2008-08-29  Jim Meyering  <meyering@redhat.com>
53324
53325         bootstrap: merge changes from coreutils
53326         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53327         of copied files.  Remove a kludge, now that this is fixed.
53328         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53329         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53330         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53331
53332 2008-08-29  Bruno Haible  <bruno@clisp.org>
53333
53334         * MODULES.html.sh: Remove --cvs-urls option.
53335
53336 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53337
53338         maint.mk: adjust to file name change
53339         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53340
53341 2008-08-28  Jim Meyering  <meyering@redhat.com>
53342
53343         * modules/getndelim2 (License): Relicense to LGPLv2+.
53344         Approved by Richard Stallman for the version of 1995, and by
53345         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53346
53347 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53348
53349         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53350         dummy if one is not available.  Do not touch them if
53351         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53352         (getc_maybe_unlocked): New.
53353         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53354
53355 2008-08-26  Eric Blake  <ebb9@byu.net>
53356
53357         doc/INSTALL: resync from autoconf
53358         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53359         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53360         moving...
53361         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53362         * INSTALL: Regenerate.
53363         * INSTALL.ISO: New file.
53364         * INSTALL.UTF-8: Likewise.
53365
53366 2008-08-26  Jim Meyering  <meyering@redhat.com>
53367
53368         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53369         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53370         these definitions conditional, so that they may be overridden, too.
53371
53372 2008-08-26  Bruno Haible  <bruno@clisp.org>
53373
53374         Generate INSTALL file variants with prettier quotes.
53375         * doc/Makefile (INSTALL_PRELUDE): New macro.
53376         (INSTALL): Use it.
53377         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53378
53379 2008-08-26  Bruno Haible  <bruno@clisp.org>
53380
53381         Run makeinfo in an English locale.
53382         * doc/Makefile (MAKEINFO): New variable.
53383
53384 2008-08-26  Bruno Haible  <bruno@clisp.org>
53385
53386         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53387         Suggested by Eric Blake.
53388
53389 2008-08-25  Bruno Haible  <bruno@clisp.org>
53390
53391         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53392
53393 2008-08-25  Eric Blake  <ebb9@byu.net>
53394
53395         c-stack: test that stack overflow can be caught
53396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53397         that platform allows handling stack overflow; at least OS/2 EMX
53398         has sigaltstack, but crashes before transferring control to
53399         handler on stack overflow.
53400         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53401         check for HAVE_STACK_OVERFLOW_HANDLING.
53402         Reported by Elbert Pol.
53403
53404 2008-08-25  Bruno Haible  <bruno@clisp.org>
53405
53406         * doc/posix-functions/strftime.texi: Fix description of strftime
53407         module.
53408
53409 2008-08-24  Bruno Haible  <bruno@clisp.org>
53410
53411         * tests/uniwidth/test-uc_width2.c: New file.
53412         * tests/uniwidth/test-uc_width2.sh: New file.
53413         * modules/uniwidth/width-tests (Files): Add the new files.
53414         (TESTS): Add uniwidth/test-uc_width2.sh.
53415         (TESTS_ENVIRONMENT): New variable.
53416         (check_PROGRAMS): Add test-uc_width2.
53417         (test_uc_width2_SOURCES): New variable.
53418
53419         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53420         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53421         not 0x00AB.
53422         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53423
53424 2008-08-22  Eric Blake  <ebb9@byu.net>
53425
53426         test-lock, test-tls: mention why a test is skipped
53427         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53428         skipped.
53429         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53430
53431         count-one-bits: relax license
53432         * modules/count-one-bits (License): Relicense to LGPLv2+.
53433         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53434
53435 2008-08-22  Andreas Schwab  <schwab@suse.de>
53436
53437         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53438         Remove spurious space in assignment.
53439
53440 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53441
53442         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53443         Paul Eggert <eggert@CS.UCLA.EDU>.
53444
53445 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53446
53447         * modules/gettext: Add m4/threadlib.m4.
53448
53449 2008-08-19  Eric Blake  <ebb9@byu.net>
53450
53451         test-c-stack: fix compilation failure on FreeBSD 5.0
53452         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53453         headers before <sys/resource.h>.
53454         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53455         the bug.
53456         Reported by Nelson H. F. Beebe.
53457
53458         strverscmp: migrate from "strverscmp.h" to <string.h>
53459         * modules/string (Makefile.am): Add new hooks.
53460         * modules/strverscmp (Files): Remove strverscmp.h.
53461         (Depends-on): Add string.
53462         (configure.ac): Add indicator.
53463         (Include): Mention new header.
53464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53465         defaults.
53466         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53467         results.
53468         * lib/strverscmp.h: Delete.
53469         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53470         * tests/test-strverscmp.c (includes): Adjust client.
53471         * lib/check-version.c (includes): Likewise.
53472         * NEWS: Document the change.
53473
53474         strverscmp: add unit test
53475         * modules/strverscmp-tests: New file.
53476         * tests/test-strverscmp.c: Likewise.
53477
53478 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53479
53480         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53481         regarding Windows crypto stuff, from Mono.
53482
53483 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53484
53485         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53486         if present, for intel RND.  Return error on failures.
53487
53488 2008-08-18  Ben Pfaff  <blp@gnu.org>
53489
53490         gitlog-to-changelog: give better diagnostic for failed pipe-open
53491         * build-aux/gitlog-to-changelog: Improve error message: suggest
53492         that the version of Git may be too old.
53493
53494 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53495
53496         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53497         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53498
53499 2008-08-18  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53502         pthread_in_use().
53503
53504 2008-08-18  Bruno Haible  <bruno@clisp.org>
53505
53506         * lib/glthread/threadlib.c: Include <pthread.h>.
53507
53508 2008-08-18  Bruno Haible  <bruno@clisp.org>
53509
53510         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53511         glthread_recursive_lock_* macros.
53512         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53513         Fix syntax error.
53514
53515 2008-08-18  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/glthread/thread.c: Avoid forcing a context switch right after
53518         thread creation.
53519
53520 2008-08-17  Bruno Haible  <bruno@clisp.org>
53521
53522         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53523         * lib/glthread/thread.h: Provide Win32 specific implementation.
53524         * modules/thread (Files): Add lib/glthread/thread.c.
53525         (Depends-on): Add lock.
53526         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53527
53528 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53529
53530         New module 'yield'.
53531         * modules/yield: New file.
53532         * lib/glthread/yield.h: New file.
53533         * m4/yield.m4: New file.
53534         * MODULES.html.sh (Multithreading): Add yield.
53535
53536 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53537
53538         New module 'thread'.
53539         * modules/thread: New file.
53540         * lib/glthread/thread.h: New file.
53541         * m4/thread.m4: New file.
53542         * MODULES.html.sh (Multithreading): Add thread.
53543
53544 2008-08-17  Bruno Haible  <bruno@clisp.org>
53545
53546         * lib/glthread/lock.h: Include <stdlib.h> always.
53547         * lib/glthread/tls.h: Likewise.
53548         * lib/glthread/cond.h: Likewise.
53549
53550 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53551
53552         New module 'cond'.
53553         * modules/cond: New file.
53554         * lib/glthread/cond.h: New file.
53555         * lib/glthread/cond.c: New file.
53556         * m4/cond.m4: New file.
53557         * MODULES.html.sh (Multithreading): Add cond.
53558
53559 2008-08-16  Eric Blake  <ebb9@byu.net>
53560
53561         c-stack: fix regression on Irix 5.3 from 2008-06-21
53562         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53563         sa_sigaction...
53564         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53565         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53566         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53567         * modules/signal (Makefile.am): Use the value.
53568         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53569         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53570         * doc/posix-headers/signal.texi (signal.h): Document this
53571         portability issue.
53572         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53573         Reported by Tom G. Christensen.
53574
53575 2008-08-17  Bruno Haible  <bruno@clisp.org>
53576
53577         New module 'threadlib'.
53578         * modules/threadlib: New file.
53579         * lib/glthread/threadlib.c: New file, extracted from
53580         lib/glthread/lock.c.
53581         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53582         functions.
53583         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53584         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53585         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53586         macros.
53587         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53588         (gl_DISABLE_THREADS): Remove macro.
53589         * modules/lock (Files): Remove build-aux/config.rpath.
53590         (Depends-on): Remove havelib. Add threadlib.
53591         (configure.ac-early): Remove section.
53592         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53593         * modules/tls (Depends-on): Remove lock. Add threadlib.
53594         (Link): New section, copied from threadlib.
53595         * MODULES.html.sh (Multithreading): Add threadlib.
53596
53597 2008-08-14  Bruno Haible  <bruno@clisp.org>
53598
53599         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53600         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53601         glthread_rwlock_unlock, glthread_rwlock_destroy,
53602         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53603         glthread_recursive_lock_destroy): Define as macros always.
53604         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53605         glthread_lock_lock.
53606         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53607         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53608         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53609         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53610         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53611         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53612         (glthread_recursive_lock_lock_func): Renamed from
53613         glthread_recursive_lock_lock.
53614         (glthread_recursive_lock_unlock_func): Renamed from
53615         glthread_recursive_lock_unlock.
53616         (glthread_recursive_lock_destroy_func): Renamed from
53617         glthread_recursive_lock_destroy.
53618
53619 2008-08-14  Bruno Haible  <bruno@clisp.org>
53620
53621         * lib/glthread/lock.h: Renamed from lib/lock.h.
53622         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53623         * lib/glthread/tls.h: Renamed from lib/tls.h.
53624         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53625         * lib/fstrcmp.c: Update includes.
53626         * lib/strsignal.c: Update includes.
53627         * modules/lock (Files, Makefile.am): Update.
53628         (Include): Change to "glthread/lock.h".
53629         * modules/tls (Files, Makefile.am): Update.
53630         (Include): Change to "glthread/tls.h".
53631         * tests/test-lock.c: Update includes.
53632         * tests/test-tls.c: Update includes.
53633         * NEWS: Mention the renamed header files.
53634
53635 2008-08-11  Jim Meyering  <meyering@redhat.com>
53636
53637         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53638
53639 2008-08-11  Eric Blake  <ebb9@byu.net>
53640
53641         test-c-stack: avoid C99-ism
53642         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53643         before statement.
53644         Reported by Alain Guibert.
53645
53646 2008-08-10  Jim Meyering  <meyering@redhat.com>
53647
53648         ensure that return value of uinttostr et al are not ignored
53649         * lib/inttostr.h (__GNUC_PREREQ): Define.
53650         (__attribute_warn_unused_result__): Define.
53651         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53652
53653 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53654
53655         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53656         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53657
53658 2008-08-07  Jim Meyering  <meyering@redhat.com>
53659
53660         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53661
53662         * modules/mkstemp (License): Relicense under LGPLv2+.
53663         * modules/tempname (License): Likewise.
53664
53665 2008-08-06  Bruno Haible  <bruno@clisp.org>
53666
53667         * lib/poll.c (poll): Further micro-optimization.
53668
53669 2008-08-06  Jim Meyering  <meyering@redhat.com>
53670
53671         inet_pton.c: use locale-independent tolower
53672         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53673         (inet_pton6): Use c_tolower rather than tolower.
53674         * modules/inet_pton (Depends-on): Add c-ctype.
53675
53676 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53677
53678         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53679         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53680
53681 2008-08-06  Jim Meyering  <meyering@redhat.com>
53682
53683         * modules/inet_pton (License): Relicense under LGPLv2+.
53684
53685 2008-08-03  Bruno Haible  <bruno@clisp.org>
53686
53687         Additional non-aborting API for lock and tls.
53688         * lib/lock.h: Include <errno.h>.
53689         (glthread_lock_init): New macro/function.
53690         (gl_lock_init): Define as wrapper around glthread_lock_init.
53691         (glthread_lock_lock): New macro/function.
53692         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53693         (glthread_lock_unlock): New macro/function.
53694         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53695         (glthread_lock_destroy): New macro/function.
53696         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53697         (glthread_rwlock_init): New macro/function.
53698         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53699         (glthread_rwlock_rdlock): New macro/function.
53700         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53701         (glthread_rwlock_wrlock): New macro/function.
53702         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53703         (glthread_rwlock_unlock): New macro/function.
53704         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53705         (glthread_rwlock_destroy): New macro/function.
53706         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53707         (glthread_recursive_lock_init): New macro/function.
53708         (gl_recursive_lock_init): Define as wrapper around
53709         glthread_recursive_lock_init.
53710         (glthread_recursive_lock_lock): New macro/function.
53711         (gl_recursive_lock_lock): Define as wrapper around
53712         glthread_recursive_lock_lock.
53713         (glthread_recursive_lock_unlock): New macro/function.
53714         (gl_recursive_lock_unlock): Define as wrapper around
53715         glthread_recursive_lock_unlock.
53716         (glthread_recursive_lock_destroy): New macro/function.
53717         (gl_recursive_lock_destroy): Define as wrapper around
53718         glthread_recursive_lock_destroy.
53719         (glthread_once): New macro/function.
53720         (gl_once): Define as wrapper around glthread_once.
53721         Update function declarations.
53722         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53723         glthread_rwlock_init. Return error code.
53724         (glthread_rwlock_rdlock_multithreaded): Renamed from
53725         glthread_rwlock_rdlock. Return error code.
53726         (glthread_rwlock_wrlock_multithreaded): Renamed from
53727         glthread_rwlock_wrlock. Return error code.
53728         (glthread_rwlock_unlock_multithreaded): Renamed from
53729         glthread_rwlock_unlock. Return error code.
53730         (glthread_rwlock_destroy_multithreaded): Renamed from
53731         glthread_rwlock_destroy. Return error code.
53732         (glthread_recursive_lock_init_multithreaded): Renamed from
53733         glthread_recursive_lock_init. Return error code.
53734         (glthread_recursive_lock_lock_multithreaded): Renamed from
53735         glthread_recursive_lock_lock. Return error code.
53736         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53737         glthread_recursive_lock_unlock. Return error code.
53738         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53739         glthread_recursive_lock_destroy. Return error code.
53740         (glthread_once_call): Make static.
53741         (glthread_once_multithreaded): Renamed from glthread_once.
53742         * lib/tls.h: Include <errno.h>.
53743         (glthread_tls_key_init): New macro/function.
53744         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53745         (glthread_tls_set): New macro/function.
53746         (gl_tls_set): Define as wrapper around glthread_tls_set.
53747         (glthread_tls_key_destroy): New macro/function.
53748         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53749         Update function declarations.
53750         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53751         glthread_tls_get.
53752         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53753
53754 2008-08-04  Eric Blake  <ebb9@byu.net>
53755
53756         gnumakefile: use space, not TAB, outside of targets
53757         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53758
53759 2008-08-02  Jim Meyering  <meyering@redhat.com>
53760
53761         getdate.y: avoid locale-dependent date parsing failure
53762         In Turkish locales, getdate would fail to recognize keywords
53763         containing a lowercase "i".  The solution is not to rely on
53764         locale-sensitive case-conversion.
53765         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53766         (lookup_word): Use c_toupper in place of toupper.
53767         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53768         Reported by Vefa Bicakci <bicave@superonline.com> in
53769         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53770         * modules/getdate (Depends-on): Add c-ctype.
53771
53772 2008-08-02  Bruno Haible  <bruno@clisp.org>
53773
53774         * gnulib-tool (func_import): When updating or creating a .gitignore
53775         file, prepend each added line with a slash, and ignore leading slashes
53776         from the existing lines.
53777         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53778
53779 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53780
53781         Portability fix for GNU make 3.79.1.
53782         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53783         versions do not understand.
53784
53785 2008-08-01  Bruno Haible  <bruno@clisp.org>
53786
53787         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53788         * tests/test-isnanf.h (zero): New variable.
53789         (main): Avoid literal -0.0f.
53790         * tests/test-isnand.h (zero): New variable.
53791         (main): Avoid literal -0.0.
53792         * tests/test-isnanl.h (zero): New variable.
53793         (main): Avoid literal -0.0L.
53794         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53795         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53796         -0.0, -0.0L.
53797         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53798         (test_signbitd): Avoid literal -0.0.
53799         (test_signbitl): Avoid literal -0.0L.
53800         * tests/test-ceilf1.c (zero): New variable.
53801         (main): Avoid literal -0.0f.
53802         * tests/test-ceill.c (zero): New variable.
53803         (main): Avoid literal -0.0L.
53804         * tests/test-floorf1.c (zero): New variable.
53805         (main): Avoid literal -0.0f.
53806         * tests/test-floorl.c (zero): New variable.
53807         (main): Avoid literal -0.0L.
53808         * tests/test-roundf1.c (zero): New variable.
53809         (main): Avoid literal -0.0f.
53810         * tests/test-round1.c (zero): New variable.
53811         (main): Avoid literal -0.0.
53812         * tests/test-roundl.c (zero): New variable.
53813         (main): Avoid literal -0.0L.
53814         * tests/test-truncf1.c (zero): New variable.
53815         (main): Avoid literal -0.0f.
53816         * tests/test-trunc1.c (zero): New variable.
53817         (main): Avoid literal -0.0.
53818         * tests/test-truncl.c (zero): New variable.
53819         (main): Avoid literal -0.0L.
53820         * tests/test-frexp.c (zero): New variable.
53821         (main): Avoid literal -0.0.
53822         * tests/test-frexpl.c (zero): New variable.
53823         (main): Avoid literal -0.0L.
53824         * tests/test-ldexpl.c (zero): New variable.
53825         (main): Avoid literal -0.0L.
53826         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53827         (zerod, zerol): New variables.
53828         (test_function): Avoid literals -0.0, -0.0L.
53829         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53830         (zerod, zerol): New variables.
53831         (test_function): Avoid literals -0.0, -0.0L.
53832         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53833         (zerod, zerol): New variables.
53834         (test_function): Avoid literals -0.0, -0.0L.
53835         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53836         (zerod, zerol): New variables.
53837         (test_function): Avoid literals -0.0, -0.0L.
53838         * tests/test-strtod.c (zero): New variable.
53839         (main): Avoid literal -0.0.
53840         Reported by Jonathan C. Patschke <jp@centtech.com>.
53841
53842 2008-07-31  Jim Meyering  <meyering@redhat.com>
53843
53844         sha256.h: correct definition of SHA224_DIGEST_SIZE
53845         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53846         Reported by Paulie Pena IV <paulie4@gmail.com>.
53847         Define as 224 / 8, rather than as a literal.
53848         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53849         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53850         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53851
53852 2008-07-31  Bruno Haible  <bruno@clisp.org>
53853
53854         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53855         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53856         Reported by Jonathan Patschke <jp@centtech.com>.
53857
53858 2008-07-31  Bruno Haible  <bruno@clisp.org>
53859
53860         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53861         Reported by Paolo Bonzini <bonzini@gnu.org>.
53862
53863 2008-07-30  Eric Blake  <ebb9@byu.net>
53864
53865         test-strtod: allow compilation without -lm
53866         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53867         Reported by Dennis Clarke <blastwave@gmail.com>.
53868
53869 2008-07-28  Jim Meyering  <meyering@redhat.com>
53870
53871         bootstrap: work also when there are no .po files in po/
53872         * build-aux/bootstrap (update_po_files): Complete the change
53873         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53874
53875 2008-07-27  Jim Meyering  <meyering@redhat.com>
53876
53877         * users.txt: Add zile.
53878
53879 2008-07-26  Ben Pfaff  <blp@gnu.org>
53880
53881         Add missing dependencies on new m4/exponent[fdl].m4 files.
53882         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53883         * modules/isnand-nolibm: Add m4/exponentd.m4.
53884         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53885         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53886         m4/isnan[fdl].m4, because the macros actually used moved.
53887         Reported by Jim Meyering.
53888
53889 2008-07-14  Ben Pfaff  <blp@gnu.org>
53890
53891         Add isinf module.
53892         * lib/isinf.c: New file.
53893         * lib/math.in.h: Define isinf macro if we have decided to replace
53894         it.
53895         * m4/isinf.m4: New file.
53896         * m4/math_h.m4: Initialize and substitute variables for isinf
53897         module.
53898         * modules/isinf: New file.
53899         * modules/isinf-tests: New file.
53900         * modules/math: Add substitutions for new module.
53901         * tests/test-isinf.c: New file.
53902         * doc/posix-functions/isinf.texi: Mention new module.
53903         * MODULES.html.sh: Mention new module.
53904
53905 2008-07-14  Ben Pfaff  <blp@gnu.org>
53906
53907         Factor out some macros for use by additional modules.
53908         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53909         exponentf.m4.
53910         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53911         exponentd.m4.
53912         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53913         file exponentl.m4.
53914         * m4/exponentf.m4: New file.
53915         * m4/exponentd.m4: New file.
53916         * m4/exponentl.m4: New file.
53917         * modules/isnanf: Use new file m4/exponentf.m4.
53918         * modules/isnand: Use new file m4/exponentd.m4.
53919         * modules/isnanl: Use new file m4/exponentl.m4.
53920
53921 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53922
53923         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53924         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53925         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53926         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53927
53928         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53929         readlink on platforms without PATH_MAX.
53930
53931 2008-07-21  Eric Blake  <ebb9@byu.net>
53932
53933         Warn, not fail, on stale version.
53934         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53935
53936         Don't allow installation with stale devel version number.
53937         * top/GNUmakefile (_is-install-target): New macro.
53938         (_curr-ver): Forbid installation with stale version number.
53939
53940 2008-07-20  Bruno Haible  <bruno@clisp.org>
53941
53942         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53943         TESTS_ENVIRONMENT.
53944         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53945
53946 2008-07-20  Bruno Haible  <bruno@clisp.org>
53947
53948         * lib/c-stack.h (c_stack_action): Add documentation.
53949         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53950
53951 2008-07-20  Bruno Haible  <bruno@clisp.org>
53952
53953         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53954         * modules/readlink (License): Likewise.
53955
53956 2008-07-17  Eric Blake  <ebb9@byu.net>
53957
53958         * modules/c-stack (Link): Fix typo.
53959
53960         Make c-stack use libsigsegv, when available.
53961         * modules/c-stack (Depends-on): Add libsigsegv.
53962         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53963         needed.
53964         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53965         (segv_handler, overflow_handler, c_stack_action)
53966         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53967         implementation when libsigsegv is available, but only when using
53968         the library is necessary.
53969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53970         comment, explaining why XSI check fails on Linux.
53971         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53972         * tests/test-c-stack2.sh: Tweak skip message.
53973         * NEWS: Document new link-time requirements.
53974
53975 2008-07-16  Eric Blake  <ebb9@byu.net>
53976
53977         c-stack: Expose false positives when not using libsigsegv.
53978         * modules/c-stack-tests (Files): Expand test.
53979         * tests/test-c-stack.c (main): Add means to conditionally trigger
53980         non-overflow SIGSEGV.
53981         * tests/test-c-stack2.sh: New file.
53982
53983 2008-07-14  Bruno Haible  <bruno@clisp.org>
53984
53985         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53986         Reported by Eric Blake.
53987
53988 2008-07-14  Sam Steingold  <sds@gnu.org>
53989             Bruno Haible  <bruno@clisp.org>
53990
53991         New module libsigsegv.
53992         * modules/libsigsegv: New file.
53993         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53994         modifications.
53995         * MODULES.html.sh (Signal handling): New section.
53996
53997 2008-07-14  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/unictype/ctype-* (Description): Add the word "function".
54000         Improves the resulting doc in MODULES.html.
54001
54002 2008-07-12  Ben Pfaff  <blp@gnu.org>
54003
54004         Add longlong module.
54005         * modules/longlong: New file.
54006
54007 2008-07-12  Bruno Haible  <bruno@clisp.org>
54008
54009         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54010         to empty.
54011
54012 2008-07-10  Ben Pfaff  <blp@gnu.org>
54013
54014         Add isnan module.
54015         * doc/posix-functions/isnan.texi: Mention new module.
54016         * lib/math.in.h: Define isnan macro if we have decided to replace
54017         it.
54018         * m4/isnan.m4: New file.
54019         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54020         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54021         also.
54022         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54023         redundancy.
54024         * m4/math_h.m4: Initialize and substitute variables for isnan
54025         module.
54026         * modules/isnan: New file.
54027         * modules/isnan-tests: New file.
54028         * modules/math: Add substitutions for new module.
54029         * tests/test-isnan.c: New file.
54030         * MODULES.html.sh: Mention new module.
54031
54032 2008-07-10  Ben Pfaff  <blp@gnu.org>
54033
54034         Add isnanf module.
54035         * lib/isnanf.m4: New file.
54036         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54037         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54038         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54039         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54040         * modules/isnanf: New file.
54041         * modules/isnanf-tests: New file.
54042         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54043         files.
54044         * tests/test-isnanf-nolibm.c: factored most of its contents into
54045         new file tests/test-isnanf.h.
54046         * tests/test-isnanf.h: New file.
54047         * tests/test-isnanf.c: New file.
54048         * MODULES.html.sh: Mention new module.
54049         * doc/glibc-functions/isnanf.texi: Mention new module.
54050
54051 2008-07-10  Ben Pfaff  <blp@gnu.org>
54052
54053         Add isnand module.
54054         * lib/isnand.h: New file.
54055         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54056         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54057         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54058         functionality also.
54059         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54060         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54061         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54062         * modules/isnand: New file.
54063         * modules/isnand-tests: New file.
54064         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54065         files.
54066         * tests/test-isnand-nolibm.c: factored most of its contents into
54067         new file tests/test-isnand.h.
54068         * tests/test-isnand.h: New file.
54069         * tests/test-isnand.c: New file.
54070         * MODULES.html.sh: Mention new module.
54071
54072 2008-07-10  Ben Pfaff  <blp@gnu.org>
54073
54074         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54075         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54076         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54077         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54078         * modules/isnanf-nolibm: Update references to renamed files.
54079         * modules/isnand-nolibm: Likewise.
54080         * modules/isnanf-nolibm-tests: Likewise.
54081         * modules/isnand-nolibm-tests: Likewise.
54082         * lib/frexp.c: Likewise.
54083         * lib/isfinite.c: Likewise.
54084         * lib/signbitd.c: Likewise.
54085         * lib/signbitf.c: Likewise.
54086         * lib/vasnprintf.c: Likewise.
54087         * tests/test-ceilf1.c: Likewise.
54088         * tests/test-ceilf2.c: Likewise.
54089         * tests/test-floorf1.c: Likewise.
54090         * tests/test-floorf2.c: Likewise.
54091         * tests/test-frexp.c: Likewise.
54092         * tests/test-round1.c: Likewise.
54093         * tests/test-round2.c: Likewise.
54094         * tests/test-roundf1.c: Likewise.
54095         * tests/test-strtod.c: Likewise.
54096         * tests/test-trunc1.c: Likewise.
54097         * tests/test-trunc2.c: Likewise.
54098         * tests/test-truncf1.c: Likewise.
54099         * tests/test-truncf2.c: Likewise.
54100         * NEWS: Mention the renamed header files.
54101
54102 2008-07-11  Jim Meyering  <meyering@redhat.com>
54103
54104         vc-list-files: make the last-resort awk code more portable
54105         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54106         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54107         does not support it.
54108
54109 2008-07-10  Eric Blake  <ebb9@byu.net>
54110
54111         Work with tar's bootstrap.
54112         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54113         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54114         an m4 comment.
54115
54116 2008-07-09  Jim Meyering  <meyering@redhat.com>
54117
54118         posix-shell.m4: fix typo that made this test malfunction
54119         * m4/posix-shell.m4: Remove capitalization in variable name.
54120
54121 2008-07-08  Bruno Haible  <bruno@clisp.org>
54122
54123         * m4/onceonly.m4: Update comments.
54124         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54125
54126 2008-07-04  Jim Meyering  <meyering@redhat.com>
54127
54128         * users.txt: Add vc-dwim.
54129         (bison, coreutils): Use the gitweb URL.
54130
54131 2008-07-03  Jim Meyering  <meyering@redhat.com>
54132
54133         * users.txt: Add libffcall.  From Sam Steingold.
54134
54135 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54136
54137         getdate.y: do not ignore TZ with relative day, month or year offset
54138         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54139         relative-date-handling, since otherwise, the latter would clobber the
54140         sole output (an updated Start value) of the tz-handling block.
54141         * tests/test-getdate.c: Tests for the fix
54142
54143 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54144
54145         Recognize 'foo_LIBRARIES += libgnu.a'.
54146         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54147         makefile snippet has already specified an installation location,
54148         also using '+='.
54149
54150 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54151
54152         getdate.y: factor out common actions
54153         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54154         Use them in place of open-coded actions.
54155
54156 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54157
54158         Add self-test for getdate module.
54159         * modules/getdate-tests: New file.
54160         * tests/test-getdate.c: New file.
54161
54162 2008-06-29  Bruno Haible  <bruno@clisp.org>
54163
54164         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54165         .gitignore.
54166         Reported by Sylvain Beucler <beuc@beuc.net>.
54167
54168 2008-06-29  Bruno Haible  <bruno@clisp.org>
54169
54170         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54171         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54172
54173 2008-06-29  Bruno Haible  <bruno@clisp.org>
54174
54175         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54176         EXTRA_DIST.
54177         Reported by Sylvain Beucler <beuc@beuc.net>.
54178
54179 2008-06-26  Jim Meyering  <meyering@redhat.com>
54180
54181         make several modules depend on the "open" module
54182         This provides slightly increased consistency when opening-for-write
54183         the name of a non-directory spelled with a trailing slash.
54184         * modules/chdir-safer: Likewise.
54185         * modules/chown: Likewise.
54186         * modules/clean-temp: Likewise.
54187         * modules/copy-file: Likewise.
54188         * modules/fchdir: Likewise.
54189         * modules/fcntl-safer: Likewise.
54190         * modules/pipe: Likewise.
54191         * modules/utime: Likewise.
54192         Prompted by Eric Blake and Bruno Haible.
54193
54194 2008-06-24  Andreas Schwab  <schwab@suse.de>
54195
54196         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54197         literals can be used as initializers for global variables.
54198
54199 2008-06-23  Eric Blake  <ebb9@byu.net>
54200
54201         Make gnulib-cache.m4 easier to diff.
54202         * gnulib-tool (func_import): Allow newlines when reading cached
54203         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54204
54205 2008-06-23  Bruno Haible  <bruno@clisp.org>
54206
54207         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54208         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54209         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54210         m4/signalblocking.m4.
54211         (gl_PREREQ_SIGACTION): Don't invoke it.
54212         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54213         gl_PREREQ_SIG_HANDLER_H.
54214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54215         Don't check for sigaction here.
54216
54217 2008-06-23  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54220         (install_handlers): Don't set the SA_RESETHAND flag.
54221
54222 2008-06-23  Bruno Haible  <bruno@clisp.org>
54223
54224         * m4/sigaction.m4: Comment fixes.
54225         * lib/signal.in.h: Likewise.
54226
54227 2008-06-23  Eric Blake  <ebb9@byu.net>
54228
54229         Fix typo.
54230         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54231
54232         Avoid SA_ namespace.
54233         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54234         Reported by Ralf Wildenhues.
54235
54236         Avoid test failure due to SA_RESTORER.
54237         * tests/test-sigaction.c (SA_MASK): New macro.
54238         (main): Avoid failing due to extension flags being set.
54239         Reported by Jim Meyering.
54240
54241         Revert use of sig-handler.h in sigprocmask.c.
54242         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54243         it requires the existence of struct sigaction.
54244         * lib/sigprocmask.c (handler_t): Restore typedef.
54245         (rpl_signal, old_handlers): Use local type.
54246
54247 2008-06-22  Bruno Haible  <bruno@clisp.org>
54248
54249         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54250         conditionally.
54251         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54252
54253 2008-06-22  Bruno Haible  <bruno@clisp.org>
54254
54255         * doc/posix-functions/siginterrupt.texi: Move note.
54256
54257         * lib/signal.in.h (SA_RESTART): New macro.
54258         * lib/sigaction.c: Update comment.
54259
54260         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54261
54262         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54263         (gl_PREREQ_SIGPROCMASK): Invoke it.
54264         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54265
54266         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54267
54268         * lib/sigprocmask.c: Update a comment.
54269
54270 2008-06-21  Eric Blake  <ebb9@byu.net>
54271
54272         Use sigaction module rather than signal().
54273         * modules/c-stack (Depends-on): Add sigaction.
54274         * modules/fatal-signal (Depends-on): Likewise.
54275         * modules/nanosleep (Depends-on): Likewise.
54276         * modules/sigprocmask (Files): Add sig-handler.h.
54277         * modules/sigaction (Files): Likewise.
54278         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54279         Eggert.
54280         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54281         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54282         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54283         (init_fatal_signals): Likewise.
54284         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54285         (siginterrupt): Delete fallback.
54286         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54287         instead.
54288         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54289         siginterrupt.
54290
54291         New module sigaction, for mingw.
54292         * modules/sigaction: New module...
54293         * modules/sigaction-tests: ...and its test.
54294         * m4/sigaction.m4: New file.
54295         * lib/sigaction.c: Likewise.
54296         * tests/test-sigaction.c: Likewise.
54297         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54298         * modules/signal (Makefile.am): Likewise.
54299         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54300         needed.
54301         * doc/posix-headers/signal.texi (signal.h): Mention provided
54302         types.
54303         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54304         that sigaction is preferable.
54305         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54306         module.
54307         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54308         sigaction.
54309
54310         Improve robustness of sigprocmask by overriding signal.
54311         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54312         is in use.
54313         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54314         (SIGKILL, SIGSTOP): Provide fallbacks.
54315         (rpl_signal): Implement.
54316         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54317         signal can be called inside handlers.
54318
54319         Fix nanosleep module on mingw.
54320         * modules/nanosleep (Depends-on): Add sys_select.
54321         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54322
54323         Fix licensing of sigprocmask.
54324         * modules/raise (License): Relicense as LGPL.
54325
54326 2008-06-21  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54329         result if it contains question marks.
54330         Reported by Michael Geng <linux@michaelgeng.de>.
54331
54332 2008-06-19  Bruno Haible  <bruno@clisp.org>
54333
54334         Fix CVS-ism.
54335         * doc/gnulib.texi: Include updated-stamp.texi.
54336         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54337         (updated-stamp.texi): New rule.
54338         (gnulib.info): Depend on it.
54339         * doc/.gitignore: Add updated-stamp.texi.
54340         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54341
54342 2008-06-19  Bruno Haible  <bruno@clisp.org>
54343
54344         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54345         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54346
54347 2008-06-19  Eric Blake  <ebb9@byu.net>
54348
54349         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54350         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54351         Reported by Stepan Kasal.
54352
54353 2008-06-18  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54356         Reported by Eric Blake.
54357
54358 2008-06-18  Eric Blake  <ebb9@byu.net>
54359
54360         Work around cygwin 1.5.25 strsignal bug.
54361         * tests/test-strsignal.c: Allow for const char *.
54362         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54363
54364 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54365
54366         * users.txt: Update URL to article and add author/date
54367         information.
54368
54369 2008-06-17  Bruno Haible  <bruno@clisp.org>
54370
54371         New macro gl_DISABLE_THREADS.
54372         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54373         if the user did not pass --enable-threads or --disable-threads option.
54374         (gl_DISABLE_THREADS): New macro.
54375         Reported by Eric Blake <ebb9@byu.net>.
54376
54377 2008-06-17  Bruno Haible  <bruno@clisp.org>
54378
54379         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54380         when the macro ignores it.
54381         Based on a patch by Eric Blake <ebb9@byu.net>.
54382
54383 2008-06-17  Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/tls (License): Change to LGPLv2+.
54386         Reported by Eric Blake.
54387
54388 2008-06-17  Eric Blake  <ebb9@byu.net>
54389
54390         Simplify c-stack prerequisites.
54391         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54392         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54393         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54394         check.
54395         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54396         <sys/resource.h>.
54397
54398         Move c-stack test into testsuite.
54399         * modules/c-stack-tests: New file.
54400         * lib/c-stack.c [DEBUG]: Move test program...
54401         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54402         fail test if sigaltstack is lacking.
54403         * tests/test-c-stack.sh: New driver file.
54404
54405 2008-06-16  Eric Blake  <ebb9@byu.net>
54406
54407         Use raise module consistently.
54408         * modules/fatal-signal (Depends-on): Add raise.
54409         * modules/sigprocmask (Depends-on): Likewise.
54410         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54411         * lib/sigprocmask.c (sigprocmask): Likewise.
54412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54413         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54414
54415         Fix compliance bug in sigpending.
54416         * lib/sigprocmask.c (sigpending): Return pending array via
54417         parameter, not return value.
54418
54419 2008-06-14  Eric Blake  <ebb9@byu.net>
54420
54421         Improve obstack-printf test code.
54422         * tests/test-obstack-printf.c (test_function): Fix comment, and
54423         simplify usage of obstack_* in macros.  Add a test for coverage.
54424         Reported by Bruno Haible.
54425
54426 2008-06-14  Bruno Haible  <bruno@clisp.org>
54427
54428         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54429         array size as a constant, not as a const variable.
54430         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54431         AC_USE_SYSTEM_EXTENSIONS.
54432         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54433         Test whether the obstack_printf function actually exists.
54434         * modules/obstack-printf (Depends-on): Add extensions.
54435         (Include): Remove obstack.h.
54436         * modules/obstack-printf-posix (Depends-on): Add extensions.
54437         (Include): Remove obstack.h.
54438
54439 2008-06-13  Eric Blake  <ebb9@byu.net>
54440
54441         Add obstack-printf and obstack-printf-posix modules.
54442         * modules/obstack-printf: New file.
54443         * modules/obstack-printf-posix: Likewise.
54444         * MODULES.html.sh (Misc): Mention them.
54445         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54446         Likewise.
54447         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54448         Likewise.
54449         * modules/stdio (Makefile.am): Accomodate new modules.
54450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54451         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54452         Declare.
54453         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54454         functions.
54455         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54456         (gl_REPLACE_OBSTACK_PRINTF): New macros
54457         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54458         * tests/test-obstack-printf.c: New file.
54459         * modules/obstack-printf-tests: Likewise.
54460         * modules/obstack-printf-posix-tests: Likewise.
54461
54462 2008-06-11  Bruno Haible  <bruno@clisp.org>
54463
54464         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54465         * lib/open.c: Include errno.h.
54466         (open): Fail when attempting to write to a file that has a trailing
54467         slash.
54468         * tests/test-open.c (main): Test against trailing slash bug.
54469         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54470
54471 2008-06-10  Bruno Haible  <bruno@clisp.org>
54472
54473         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54474         for $? to work inside the trap command, with various /bin/sh-s.
54475         * tests/test-vc-list-files-cvs.sh: Likewise.
54476
54477 2008-06-10  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/acl-internal.h: Don't include gettext.h here.
54480         * lib/set-mode-acl.c: Include gettext.h here.
54481         * lib/copy-acl.c: Likewise.
54482
54483 2008-06-10  Bruno Haible  <bruno@clisp.org>
54484
54485         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54486         * lib/wait-process.c (wait_subprocess): Likewise.
54487         * lib/execute.h (execute): Add termsigp argument.
54488         * lib/execute.c (execute): Likewise.
54489         * lib/csharpcomp.c (compile_csharp_using_pnet,
54490         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54491         * lib/csharpexec.c (execute_csharp_using_pnet,
54492         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54493         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54494         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54495         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54496         is_jikes_present): Update.
54497         * lib/javaexec.c (execute_java_class): Update.
54498         * lib/javaversion.c (execute_and_read_line): Update.
54499         * NEWS: Document the changes.
54500         Reported by Eric Blake.
54501
54502 2008-06-10  Eric Blake  <ebb9@byu.net>
54503
54504         Add missing include.
54505         * tests/test-strstr.c (includes): Add <signal.h>.
54506         * tests/test-strcasestr.c (includes): Likewise.
54507         * tests/test-memmem.c (includes): Likewise.
54508
54509 2008-06-10  Bruno Haible  <bruno@clisp.org>
54510
54511         * lib/wait-process.c (wait_subprocess): Add an assertion.
54512
54513 2008-06-10  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54516
54517 2008-06-10  Bruno Haible  <bruno@clisp.org>
54518
54519         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54520         using alarm().
54521         * tests/test-strcasestr.c (main): Likewise.
54522         * tests/test-strstr.c (main): Likewise.
54523
54524 2008-06-09  Bruno Haible  <bruno@clisp.org>
54525
54526         Work around the Solaris 10 ACE ACLs ABI change.
54527         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54528         declare if ACL_NO_TRIVIAL is present.
54529         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54530         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54531         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54532         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54533         define if ACL_NO_TRIVIAL is present.
54534         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54535         and use the current ABI.
54536         (file_has_acl): Use same #if condition as elsewhere.
54537         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54538         in use, and use the current ABI.
54539         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54540         Reported by Jim Meyering.
54541
54542 2008-06-09  Eric Blake  <ebb9@byu.net>
54543
54544         Work around environments that (stupidly) ignore SIGALRM.
54545         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54546         before using alarm().
54547         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54548         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54549         Reported by Ian Beckwith <ianb@erislabs.net>.
54550
54551         Produce autobuild blurb earlier in log.
54552         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54553
54554 2008-06-09  Jim Meyering  <meyering@redhat.com>
54555         and OndÅ™ej Vašík  <ovasik@redhat.com>
54556
54557         utimens.c: correct kernel bug work-around
54558         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54559         failure, not success, and the kernel bug we're trying to work
54560         around affects not just the utimensat call, but also the fallback
54561         futimens call.
54562         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54563         not success.
54564         [HAVE_FUTIMENS]: Use the same work-around, here.
54565
54566 2008-06-09  Jim Meyering  <meyering@redhat.com>
54567
54568         add more guards around definition of ACE_-related code
54569         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54570         ALLOW and ACE_OWNER are also defined.
54571
54572 2008-06-08  Bruno Haible  <bruno@clisp.org>
54573
54574         * lib/acl-internal.h: Add me as co-author.
54575         * lib/file-has-acl.c: Likewise.
54576         * lib/set-mode-acl.c: Likewise.
54577         * lib/copy-acl.c: Likewise.
54578
54579 2008-06-08  Bruno Haible  <bruno@clisp.org>
54580
54581         Add support for AIX ACLs.
54582         * lib/acl-internal.h (acl_nontrivial): New declaration.
54583         * lib/file-has-acl.c (acl_nontrivial): New function.
54584         (file_has_acl): Add implementation using AIX 4 ACL API.
54585         * lib/set-mode-acl.c (qset_acl): Likewise.
54586         * lib/copy-acl.c (qcopy_acl): Likewise.
54587
54588 2008-06-08  Bruno Haible  <bruno@clisp.org>
54589
54590         Add support for HP-UX ACLs.
54591         * lib/acl-internal.h (acl_nontrivial): New declaration.
54592         * lib/file-has-acl.c (acl_nontrivial): New function.
54593         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54594         * lib/set-mode-acl.c (qset_acl): Likewise.
54595         * lib/copy-acl.c (qcopy_acl): Likewise.
54596
54597 2008-06-08  Bruno Haible  <bruno@clisp.org>
54598
54599         Add support for Cygwin ACLs.
54600         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54601         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54602         the chmod_or_fchmod call.
54603         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54604
54605 2008-06-08  Bruno Haible  <bruno@clisp.org>
54606
54607         Fix bug with setuid modes in Solaris 10+ code.
54608         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54609         succeeded, when the mode contains some special bits.
54610
54611 2008-06-08  Bruno Haible  <bruno@clisp.org>
54612
54613         Add support for Solaris 7..10 ACLs.
54614         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54615         declarations.
54616         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54617         functions.
54618         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54619         * lib/set-mode-acl.c (qset_acl): Likewise.
54620         * lib/copy-acl.c (qcopy_acl): Likewise.
54621
54622 2008-06-08  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54625         declaration.
54626         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54627         (acl_access_nontrivial): Remove MacOS X case.
54628         (file_has_acl): Use acl_extended_nontrivial.
54629         * lib/copy-acl.c (qcopy_acl): Likewise.
54630
54631 2008-06-08  Bruno Haible  <bruno@clisp.org>
54632
54633         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54634
54635 2008-06-08  Jim Meyering  <meyering@redhat.com>
54636
54637         * modules/acl (Maintainer): Add Bruno Haible.
54638
54639 2008-06-07  Bruno Haible  <bruno@clisp.org>
54640
54641         Improve support for Tru64 ACLs.
54642         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54643         ACL on OSF/1.
54644
54645 2008-06-07  Bruno Haible  <bruno@clisp.org>
54646
54647         Add support for MacOS X ACLs.
54648         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54649         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54650         * lib/set-mode-acl.c (qset_acl): Likewise.
54651         * lib/copy-acl.c (qcopy_acl): Likewise.
54652
54653 2008-06-07  Bruno Haible  <bruno@clisp.org>
54654
54655         Fix memory leak introduced on 2008-05-22.
54656         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54657         use.
54658
54659 2008-06-07  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54662         to construct an empty ACL.
54663
54664 2008-06-07  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54667         precisely.
54668         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54669
54670 2008-06-07  Bruno Haible  <bruno@clisp.org>
54671
54672         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54673         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54674
54675 2008-06-07  Bruno Haible  <bruno@clisp.org>
54676
54677         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54678         regardless of POSIX.
54679         * doc/posix-functions/_longjmp.texi: Likewise.
54680         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54681         SystemV platform in this case.
54682
54683 2008-06-06  Eric Blake  <ebb9@byu.net>
54684
54685         Document abort() bugs.
54686         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54687
54688         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54689         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54690         sigsetjmp.
54691         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54692         siglongjmp, but only as a macro.
54693         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54694         is obsolete.
54695         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54696
54697         Tweak documentation to cover cygwin argz bugs.
54698         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54699         argz bug fix; no code change needed since no cygwin releases
54700         occurred between the last fix and the bug being tested.
54701         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54702         module and recently fixed cygwin bugs.
54703         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54704         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54705         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54706         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54707         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54708         Likewise.
54709         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54710         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54711         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54712         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54713         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54714         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54715         Likewise.
54716
54717         Avoid gcc warning on cygwin.
54718         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54719         !ACL_NO_TRIVIAL]: Avoid unused variable.
54720
54721 2008-06-05  Eric Blake  <ebb9@byu.net>
54722
54723         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54724         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54725         git-version-gen fails to come up with a version.
54726         Reported by Simon Josefsson.
54727
54728 2008-06-05  Jim Meyering  <meyering@redhat.com>
54729             Paul Eggert  <eggert@cs.ucla.edu>
54730
54731         utimens.c: work around a probable Linux kernel bug
54732         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54733         appears to be a kernel bug that causes utimensat to return 280
54734         instead of 0, indicating success.
54735
54736 2008-06-04  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54739         2008-06-01 commit.
54740
54741 2008-06-04  Bruno Haible  <bruno@clisp.org>
54742
54743         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54744         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54745         (file_has_acl): Use it. Save errno afterwards.
54746         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54747
54748 2008-06-03  Bruno Haible  <bruno@clisp.org>
54749
54750         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54751         draft code. Simplify #ifs.
54752         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54753         Put Solaris code after POSIX-draft code. Fix comments regarding
54754         Solaris 10, HP-UX. Mention Cygwin.
54755         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54756
54757 2008-06-03  Eric Blake  <ebb9@byu.net>
54758
54759         Provide fallback for older kernels.
54760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54761         Provide runtime fallback if kernel lacks support.
54762         Reported by Mike Frysinger.
54763
54764 2008-06-02  Bruno Haible  <bruno@clisp.org>
54765
54766         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54767         it exists.
54768
54769 2008-06-02  Bruno Haible  <bruno@clisp.org>
54770
54771         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54772         * lib/copy-acl.c (qcopy_acl): Update comment.
54773
54774 2008-06-02  Bruno Haible  <bruno@clisp.org>
54775
54776         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54777         like ACL APIs.
54778
54779 2008-06-02  Bruno Haible  <bruno@clisp.org>
54780
54781         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54782         * tests/test-set-mode-acl.sh: Likewise.
54783         * tests/test-copy-acl.sh: Likewise.
54784         * tests/test-copy-file.sh: Likewise.
54785
54786 2008-06-02  Bruno Haible  <bruno@clisp.org>
54787
54788         * tests/test-file-has-acl.sh: Remove unused code.
54789
54790 2008-06-01  Bruno Haible  <bruno@clisp.org>
54791
54792         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54793         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54794         messages.
54795         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54796
54797 2008-06-01  Bruno Haible  <bruno@clisp.org>
54798
54799         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54800         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54801         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54802         APIs.
54803         * modules/acl-tests (configure.ac): Remove tests now contained in
54804         m4/acl.m4.
54805
54806 2008-06-02  Jim Meyering  <meyering@redhat.com>
54807
54808         announce-gen: use a better key-server host name
54809         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54810         it may be more consistently reliable.  Suggested by Werner Koch
54811         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54812
54813 2008-06-01  Bruno Haible  <bruno@clisp.org>
54814
54815         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54816         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54817
54818 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54819
54820         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54821
54822 2008-06-01  Bruno Haible  <bruno@clisp.org>
54823
54824         New ACL tests.
54825         * tests/test-file-has-acl.sh: New file.
54826         * tests/test-file-has-acl.c: New file.
54827         * tests/test-set-mode-acl.sh: New file.
54828         * tests/test-set-mode-acl.c: New file.
54829         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54830         * tests/test-copy-acl.c: New file.
54831         * modules/acl-tests: New file, based on modules/copy-file-tests.
54832         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54833         (Depends-on): Add acl-tests.
54834         (configure.ac): Remove checks.
54835         (Makefile.am): Don't create test-sameacls program here any more.
54836
54837 2008-06-01  Bruno Haible  <bruno@clisp.org>
54838
54839         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54840         * tests/test-sameacls.c: Include progname.h.
54841         (main): Invoke set_program_name. Portability fixes for MacOS X,
54842         Solaris, HP-UX.
54843
54844 2008-06-01  Bruno Haible  <bruno@clisp.org>
54845
54846         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54847         function.
54848         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54849
54850 2008-06-01  Bruno Haible  <bruno@clisp.org>
54851
54852         * modules/rpmatch (Depends-on): Add strdup.
54853
54854 2008-06-01  Bruno Haible  <bruno@clisp.org>
54855
54856         * lib/pipe.c: Include unistd-safer.h.
54857         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54858         * modules/pipe (Depends-on): Add unistd-safer.
54859
54860 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54861
54862         * modules/autobuild (configure.ac): Call AB_INIT.
54863
54864 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54865
54866         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54867         Suggested by Bruno Haible <bruno@clisp.org>.
54868
54869 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54870
54871         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54872         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54873         <bruno@clisp.org>.
54874
54875 2008-05-29  Eric Blake  <ebb9@byu.net>
54876
54877         Prefer new POSIX 200x interfaces over futimesat.
54878         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54879         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54880         when available.
54881         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54882
54883 2008-05-28  Bruno Haible  <bruno@clisp.org>
54884
54885         * modules/stpcpy (License): Change to LGPLv2+.
54886         Requested by David Lutterkort <dlutter@redhat.com>.
54887
54888 2008-05-27  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54891         current mingw.
54892         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54893
54894 2008-05-27  Bruno Haible  <bruno@clisp.org>
54895
54896         * modules/iconv_open (Link): New section, from module 'iconv'.
54897         * modules/striconv (Link): Likewise.
54898         * modules/striconveh (Link): Likewise.
54899         * modules/xstriconv (Link): Likewise.
54900         * modules/unicodeio (Link): Likewise.
54901         * modules/propername (Link): Likewise.
54902         Reported by Jim Meyering.
54903
54904 2008-05-26  Jim Meyering  <meyering@redhat.com>
54905
54906         sha256: do not artificially restrict buffer length to be < 2^32
54907         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54908         uint32_t to size_t.
54909         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54910         to match.
54911
54912         avoid unaligned access errors, e.g., on sparc
54913         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54914         direct access through a possibly-unaligned uint64* pointer.
54915         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54916         direct access through a possibly-unaligned uint32* pointer.
54917         Prompted by this patch from Tom "spot" Callaway:
54918         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54919
54920         sha512.c: fix typo in comment
54921         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54922
54923 2008-05-25  Bruno Haible  <bruno@clisp.org>
54924
54925         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54926         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54927         (Makefile.am): Update lib_SOURCES.
54928
54929 2008-05-25  Bruno Haible  <bruno@clisp.org>
54930
54931         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54932
54933 2008-05-25  Jim Meyering  <meyering@redhat.com>
54934
54935         useless-if-before-free: freed expr may have white-space differences
54936         * build-aux/useless-if-before-free: Recognize cases in which the
54937         freed expression differs from the tested one in embedded white
54938         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54939         $1 was used, so we can't make any regexp shy.  Improved tests now
54940         detect this.
54941
54942         useless-if-before-free: accept white space in the expression.
54943         * build-aux/useless-if-before-free: For now, any white space
54944         in the expression must be identical in the free argument.
54945
54946         useless-if-before-free: efficiency tweak
54947         * build-aux/useless-if-before-free: Make the expression-matching
54948         regexp "shy".
54949         Make the *outer* regexp shy, not the expr-matching one.
54950
54951         update code-in-comment to accept cast of free arg
54952         * build-aux/useless-if-before-free: Update regexp.
54953
54954 2008-05-25  Bruno Haible  <bruno@clisp.org>
54955
54956         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54957         * modules/copy-file-tests (Files, Makefile.am): Update.
54958         * tests/test-copy-file.c (func_test_copy): Update.
54959
54960 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54961
54962         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54963
54964 2008-05-23  Bruno Haible  <bruno@clisp.org>
54965
54966         Improve support for ACLs on OSF/1.
54967         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54968         Remove fallback for unknown flavors of ACLs.
54969
54970 2008-05-22  Bruno Haible  <bruno@clisp.org>
54971
54972         Add support for ACLs on OSF/1.
54973         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54974         replacements.
54975         (acl_free_text): New macro fallback.
54976         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54977         acl_free.
54978         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54979         acl_free_text function. Require AC_C_INLINE.
54980
54981 2008-05-22  Bruno Haible  <bruno@clisp.org>
54982
54983         Make copy_acl work on MacOS X 10.5.
54984         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54985         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54986         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54987         If MODE_INSIDE_ACL, don't assume that every system has the same text
54988         representation for ACLs as FreeBSD.
54989         * lib/copy-acl.c (copy_acl): Add support for platforms with
54990         !MODE_INSIDE_ACL.
54991         * lib/file-has-acl.c (file_has_acl): Likewise.
54992         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54993         FreeBSD, MacOS X, or IRIX, respectively.
54994
54995 2008-05-22  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/acl.h: Don't include <sys/acl.h>.
54998         (GETACLCNT): Move fallback to lib/acl-internal.h.
54999         * lib/acl-internal.h: Include <sys/acl.h> here.
55000         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55001
55002 2008-05-22  Bruno Haible  <bruno@clisp.org>
55003
55004         Split off copy_acl function to separate file.
55005         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55006         * lib/acl.c (copy_acl): Moved function to separate file.
55007         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55008         * modules/acl (Files): Add lib/copy-acl.c.
55009         (Makefiles.am): Augment lib_SOURCES.
55010
55011 2008-05-22  Bruno Haible  <bruno@clisp.org>
55012
55013         * modules/copy-file-tests: New file.
55014         * tests/test-copy-file.sh: New file.
55015         * tests/test-copy-file.c: New file.
55016         * tests/test-copy-file-sameacls.c: New file.
55017
55018 2008-05-22  Eric Blake  <ebb9@byu.net>
55019
55020         Avoid gcc warning.
55021         * tests/test-memcmp.c (main): Pass NULL indirectly.
55022
55023 2008-05-21  Bruno Haible  <bruno@clisp.org>
55024
55025         Add reference doc about ACLs.
55026         * doc/acl-resources.txt: New file.
55027         * doc/acl-cygwin.txt: New file.
55028
55029 2008-05-21  Bruno Haible  <bruno@clisp.org>
55030
55031         Avoid one more warning from gcc.
55032         * lib/vasnprintf.c (IF_LINT): Update comments.
55033         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55034
55035 2008-05-21  Jim Meyering  <meyering@redhat.com>
55036
55037         avoid a warning from gcc
55038         * lib/vasnprintf.c (IF_LINT): Define.
55039         (scale10_round_decimal_long_double):
55040         Use it to avoid a "may be used uninitialized" warning.
55041         (scale10_round_decimal_double): Likewise.
55042
55043 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55044
55045         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55046         declared.
55047
55048 2008-05-20  Bruno Haible  <bruno@clisp.org>
55049
55050         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55051         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55052
55053 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55054
55055         * modules/memcmp-tests: New file.
55056         * tests/test-memcmp.c: New file.
55057
55058 2008-05-19  Bruno Haible  <bruno@clisp.org>
55059
55060         * modules/propername (Notice, configure.ac): Put quoted "..." into
55061         --keyword option.
55062         * lib/propername.h: Update comments accordingly.
55063         Reported by Eric Blake.
55064
55065 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55066
55067         * modules/getpass-gnu (Depends-on): Add fseeko.
55068
55069 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55070
55071         * modules/base64-tests: New file.
55072
55073 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55074
55075         * lib/base64.c (base64_decode_ctx): If a decode context structure
55076         was passed in use it to ignore newlines.  If a context structure
55077         was _not_ passed in, continue to treat newlines as garbage (this
55078         is the historical behavior).  Formerly base64_decode.
55079         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55080         takes a decode context structure.
55081         * lib/base64.h (base64_decode): Macro for four-argument calls.
55082         (base64_decode_alloc): Likewise.
55083         * lib/base64.c (base64_decode_ctx): If a decode context structure
55084         was passed in use it to ignore newlines.  If a context structure
55085         was _not_ passed in, continue to treat newlines as garbage (this
55086         is the historical behavior).  Formerly base64_decode.
55087         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55088         takes a decode context structure.
55089         * lib/base64.h (base64_decode): Macro for four-argument calls.
55090         (base64_decode_alloc): Likewise.
55091
55092 2008-05-19  Jim Meyering  <meyering@redhat.com>
55093
55094         avoid a warning from gcc
55095         * lib/trim.c (IF_LINT): Define.
55096         (trim2): Use it to avoid a "may be used uninitialized" warning.
55097
55098         Fix doc typo.
55099         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55100
55101 2008-05-19  Bruno Haible  <bruno@clisp.org>
55102
55103         * doc/glibc-functions/getpass.texi: Document limits of other
55104         implementations.
55105
55106 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55107             Bruno Haible <bruno@clisp.org>
55108
55109         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55110
55111 2008-05-18  Bruno Haible  <bruno@clisp.org>
55112
55113         * modules/propername: New file, from GNU gettext.
55114         * lib/propername.h: New file, from GNU gettext.
55115         * lib/propername.c: New file, from GNU gettext.
55116         * MODULES.html.sh (Internationalization functions): Add propername.
55117
55118 2008-05-16  Jim Meyering  <meyering@redhat.com>
55119             Bruno Haible  <bruno@clisp.org>
55120
55121         Avoid some warnings from "gcc -Wshadow".
55122         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55123
55124 2008-05-15  Eric Blake  <ebb9@byu.net>
55125
55126         Extend previous patch to cygwin 1.7.0.
55127         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55128         fast implementation in cygwin >= 1.7.0.
55129         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55131
55132 2008-05-15  Bruno Haible  <bruno@clisp.org>
55133
55134         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55135         implementation in glibc >= 2.9.
55136         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55138
55139 2008-05-15  Bruno Haible  <bruno@clisp.org>
55140
55141         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55142         (Unicode string functions): Add unilbrk/*.
55143         Reported by Karl Berry.
55144
55145 2008-05-15  Eric Blake  <ebb9@byu.net>
55146
55147         Fix violation of <stdbool.h> replacement in regex.
55148         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55149         * lib/regexec.c (re_search_internal): Likewise.
55150         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55151
55152 2008-05-15  Jim Meyering  <meyering@redhat.com>
55153
55154         avoid distracting test output when git or cvs is not found
55155         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55156         * tests/test-vc-list-files-git.sh: Likewise.
55157
55158 2008-05-15  Eric Blake  <ebb9@byu.net>
55159
55160         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55161         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55162         glibc version.
55163         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55164         * doc/posix-functions/strstr.texi (strstr): Likewise.
55165         * lib/str-two-way.h (MAX): Sychronize with glibc.
55166
55167 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55168
55169         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55170         opr.ctx_type.
55171         (calc_first): Initialize constraint field.
55172         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55173         Fix grammar.
55174         (duplicate_node): Merge constraint field for all node types.
55175         (calc_eclosure_iter): Look at constraint field for all node types.
55176         * lib/regex_internal.c (create_cd_newstate): Don't look at
55177         opr.ctx_type.
55178
55179 2008-05-14  Bruno Haible  <bruno@clisp.org>
55180
55181         Help GCC to do better code generation.
55182         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55183         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55184         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55185         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55186         Declare with attribute 'malloc' if supported.
55187
55188 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55189
55190         use "echo STR|wc -c" rather than unportable "expr length STR"
55191         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55192         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55193
55194 2008-05-14  Jim Meyering  <meyering@redhat.com>
55195
55196         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55197         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55198         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55199         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55200         via Collin Lasse.
55201
55202 2008-05-14  Eric Blake  <ebb9@byu.net>
55203
55204         Avoid quadratic growth in gl_LIBSOURCES.
55205         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55206         Suggested by Bruno Haible.
55207
55208         Test xmemdup0.
55209         * modules/xmemdup0-tests: New file.
55210         * tests/test-xmemdup0.c: Likewise.
55211
55212 2008-05-13  Eric Blake  <ebb9@byu.net>
55213
55214         Split xmemdup0 into its own module.
55215         * modules/xmemdup0: New file.
55216         * lib/xmemdup0.h: Likewise.
55217         * lib/xmemdup0.c: Likewise.
55218         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55219         * lib/xalloc.h (xmemdup0): Remove.
55220         * lib/xmalloc.c (xmemdup0): Likewise.
55221
55222 2008-05-13  Eric Blake  <ebb9@byu.net>
55223             Bruno Haible  <bruno@clisp.org>
55224
55225         Reduce number of forks required during autoconf.
55226         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55227         and gl_LIBSOURCES_DIR.
55228         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55229         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55230         m4_syscmd per file.
55231         <m4_foreach_w>: Move...
55232         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55233
55234 2008-05-13  Eric Blake  <ebb9@byu.net>
55235
55236         * gnulib-tool: Fix various comment typos.
55237
55238 2008-05-12  Bruno Haible  <bruno@clisp.org>
55239
55240         Tailor the linebreaking algorithm.
55241         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55242
55243 2008-05-12  Bruno Haible  <bruno@clisp.org>
55244
55245         Update to Unicode 5.0.0.
55246         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55247         LBP_JV, LBP_JT. Redistribute values.
55248         (unilbrk_table): Change size.
55249         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55250         Unicode TR#14 rev. 22.
55251         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55252         LBP_JV, LBP_JT. Redistribute values.
55253         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55254         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55255         Update.
55256         * lib/unilbrk/lbrkprop1.h: Regenerated.
55257         * lib/unilbrk/lbrkprop2.h: Regenerated.
55258         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55259         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55260         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55261         Likewise.
55262         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55263         Likewise.
55264         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55265         result.
55266         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55267         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55268         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55269         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55270         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55271         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55272
55273 2008-05-11  Bruno Haible  <bruno@clisp.org>
55274
55275         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55276
55277 2008-05-11  Bruno Haible  <bruno@clisp.org>
55278
55279         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55280         * modules/unilbrk/gen-lbrk: New file.
55281
55282 2008-05-11  Bruno Haible  <bruno@clisp.org>
55283
55284         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55285         * m4/sha512.m4 (gl_SHA512): Likewise.
55286
55287 2008-05-11  Jim Meyering  <meyering@redhat.com>
55288
55289         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55290         * modules/crypto/sha256: New file.
55291         * modules/crypto/sha512: Likewise.
55292         * lib/sha256.c: Likewise.
55293         * lib/sha256.h: Likewise.
55294         * lib/sha512.c: Likewise.
55295         * lib/sha512.h: Likewise.
55296         * lib/u64.h: Likewise.
55297         * m4/sha256.m4: Likewise.
55298         * m4/sha512.m4: Likewise.
55299         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55300
55301 2008-05-10  Bruno Haible  <bruno@clisp.org>
55302
55303         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55304         (Input/Output <stdio.h>): Add xprintf.
55305         (Signal handling <signal.h>): Add strsignal.
55306         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55307         (Core language properties): Add func.
55308         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55309         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55310         strings.
55311         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55312         (Input/output): New section.
55313         (File system functions): Add openat-die, stat-macros.
55314         (Networking functions): Add sockets.
55315         (Unicode string functions): Add unictype/*.
55316         (Support for building libraries and executables): Add gperf.
55317         (Support for building documentation): Add agpl-3.0.
55318         (Misc): Add nocrash.
55319
55320 2008-05-10  Bruno Haible  <bruno@clisp.org>
55321
55322         * modules/unictype/gen-ctype: New file.
55323
55324 2008-05-10  Jim Meyering  <meyering@redhat.com>
55325
55326         Make chdir-safer.c more efficient on a system with no symlinks.
55327         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55328         also if ELOOP is zero.  Suggested by Bruno Haible.
55329
55330         Make chdir-safer.c slightly safer.
55331         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55332         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55333
55334         Avoid compile failure on systems without ELOOP (like mingw).
55335         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55336         Reported by Bruno Haible.
55337
55338 2008-05-10  Bruno Haible  <bruno@clisp.org>
55339
55340         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55341         (is_utf8_encoding): Use a case-insensitive comparison.
55342         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55343         streq.
55344
55345 2008-05-10  Bruno Haible  <bruno@clisp.org>
55346
55347         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55348         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55349         * lib/unilbrk/ulc-common.h (iconv_string_length,
55350         iconv_string_keeping_offsets): Remove declarations.
55351         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55352         Don't include <iconv.h>, streq.h, xsize.h.
55353         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55354         conversion.
55355         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55356         <iconv.h>, streq.h, xsize.h.
55357         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55358         conversion.
55359         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55360         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55361         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55362         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55363
55364 2008-05-10  Bruno Haible  <bruno@clisp.org>
55365
55366         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55367         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55368
55369         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55370         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55371
55372         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55373         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55374
55375         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55376         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55377
55378         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55379         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55380
55381         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55382         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55383
55384         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55385         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55386
55387         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55388         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55389
55390 2008-05-10  Bruno Haible  <bruno@clisp.org>
55391
55392         Split up 'linebreak' module.
55393         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55394         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55395         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55396         modifications.
55397         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55398         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55399         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55400         lib/linebreak.c.
55401         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55402         lib/linebreak.c.
55403         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55404         lib/linebreak.c.
55405         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55406         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55407         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55408         lib/linebreak.c.
55409         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55410         lib/linebreak.c.
55411         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55412         lib/linebreak.c.
55413         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55414         lib/linebreak.c.
55415         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55416         lib/linebreak.c.
55417         * modules/unilbrk/base: New file.
55418         * modules/unilbrk/tables: New file.
55419         * modules/unilbrk/u8-possible-linebreaks: New file.
55420         * modules/unilbrk/u16-possible-linebreaks: New file.
55421         * modules/unilbrk/u32-possible-linebreaks: New file.
55422         * modules/unilbrk/ulc-common: New file.
55423         * modules/unilbrk/ulc-possible-linebreaks: New file.
55424         * modules/unilbrk/u8-width-linebreaks: New file.
55425         * modules/unilbrk/u16-width-linebreaks: New file.
55426         * modules/unilbrk/u32-width-linebreaks: New file.
55427         * modules/unilbrk/ulc-width-linebreaks: New file.
55428         * lib/linebreak.h: Remove file.
55429         * lib/linebreak.c: Remove file.
55430         * m4/linebreak.m4: Remove file.
55431         * modules/linebreak: Remove file.
55432         * NEWS: Mention the changes.
55433
55434 2008-05-09  Eric Blake  <ebb9@byu.net>
55435
55436         Add xmemdup0.
55437         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55438         implementation.
55439         * lib/xmalloc.c (xmemdup0): New C implementation.
55440
55441 2008-05-08  Bruno Haible  <bruno@clisp.org>
55442
55443         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55444
55445 2008-05-07  Eric Blake  <ebb9@byu.net>
55446
55447         Support cross-compilation of <wctype.h>.
55448         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55449         AC_CACHE_CHECK.
55450
55451 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55452
55453         * build-aux/vc-list-files: Add support for bzr.
55454
55455 2008-05-03  Jim Meyering  <meyering@redhat.com>
55456
55457         avoid failed assertion with tight malloc
55458         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55459
55460 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55461
55462         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55463         are needed from arpa/inet.h.
55464         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55465         Reported by Bruno Haible.
55466
55467 2008-05-02  Jim Meyering  <meyering@redhat.com>
55468
55469         avoid compilation error on FreeBSD 6
55470         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55471
55472 2008-05-01  Jim Meyering  <meyering@redhat.com>
55473
55474         useless-if-before-free: correct --help's exit status description
55475         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55476         for one or more matches, etc.  Reported by Bruno Haible.
55477
55478         vc-list-files: make the stand-alone gnulib test work
55479         * modules/vc-list-files-tests (configure.ac):
55480         Define and AC_SUBST abs_aux_dir.
55481         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55482         $(abs_top_srcdir) to each script and having each of them
55483         duplicate the work of setting PATH, set PATH here, using
55484         the new variable, abs_aux_dir instead.
55485         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55486         * tests/test-vc-list-files-git.sh: Likewise.
55487         Reported by Bruno Haible.
55488
55489 2008-05-01  Bruno Haible  <bruno@clisp.org>
55490
55491         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55492         reallocation. Rename 'done' to 'found_delimiter'.
55493
55494 2008-05-01  Jim Meyering  <meyering@redhat.com>
55495
55496         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55497         * build-aux/vc-list-files: Use `...`, not $(...).
55498
55499 2008-04-30  Jim Meyering  <meyering@redhat.com>
55500
55501         add tests for vc-list-files
55502         * modules/vc-list-files-tests: New module.
55503         * tests/test-vc-list-files-cvs.sh: New file.
55504         * tests/test-vc-list-files-git.sh: New file.
55505
55506         avoid a warning from gcc
55507         * lib/getndelim2.c (IF_LINT): Define.
55508         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55509
55510         vc-list-files: work properly with build-aux/cvsu, too
55511         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55512         to all cvs-based clauses.
55513
55514         vc-list-files: work properly in the CVS+awk case, too
55515         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55516
55517         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55518         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55519         take more than one file argument, so .  Add quotes, just in case $dir
55520         ever contains a shell meta-character.  Prompted by Soren Hansen in
55521         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55522
55523 2008-04-29  Eric Blake  <ebb9@byu.net>
55524
55525         Optimize getndelim2 to use block operations when possible.
55526         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55527         freadseek, and memchr2.
55528         * lib/getndelim2.c (getndelim2): Use them for block reads.
55529
55530 2008-04-29  Bruno Haible  <bruno@clisp.org>
55531
55532         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55533         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55534         * modules/inet_ntop (Depends-on): Add extensions.
55535         * modules/inet_pton (Depends-on): Likewise.
55536         Reported by Simon Josefsson.
55537
55538 2008-04-29  Jim Meyering  <meyering@redhat.com>
55539
55540         When the is more than one match in a block, match all of them.
55541         * build-aux/useless-if-before-free: Iterate through each block
55542         until there are no more matches.
55543
55544         Fix broken useless-if-before-free script.
55545         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55546         the expression to match cast of argument to free-like function.
55547
55548 2008-04-29  Eric Blake  <ebb9@byu.net>
55549
55550         Use new header.
55551         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55552
55553 2008-04-29  Jim Meyering  <meyering@redhat.com>
55554
55555         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55556         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55557         by gnulib to exist and to declare e.g., inet_ntop.
55558         Don't include "inet_ntop.h", now removed.
55559
55560         * m4/arpa_inet_h.m4: Remove trailing blanks.
55561
55562 2008-04-29  Eric Blake  <ebb9@byu.net>
55563
55564         Silence valgrind on safe reads beyond potential array bounds.
55565         * lib/rawmemchr.valgrind: New file.
55566         * lib/strchrnul.valgrind: Likewise.
55567         * modules/rawmemchr (Files): Distribute new file.
55568         * modules/strchrnul (Files): Likewise.
55569         Suggested by Bruno Haible.
55570
55571 2008-04-29  Bruno Haible  <bruno@clisp.org>
55572
55573         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55574         (inet_ntop, inet_pton): Change portability warning's wording.
55575         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55576         Invoke gl_CHECK_NEXT_HEADERS.
55577         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55578         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55579         set ARPA_INET_H.
55580         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55581         * modules/arpa_inet (Description): No longer only for systems that
55582         lack it.
55583         (Depends-on): Add include_next.
55584         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55585         HAVE_ARPA_INET_H.
55586
55587 2008-04-29  Jim Meyering  <meyering@redhat.com>
55588
55589         * modules/mkdir (License): Re-license as LGPLv2+.
55590
55591 2008-04-29  Bruno Haible  <bruno@clisp.org>
55592
55593         * modules/rawmemchr (Maintainer): Set to Eric.
55594         * modules/strchrnul (Maintainer): Likewise.
55595
55596 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55597
55598         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55599         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55600
55601         * modules/arpa_inet (arpa/inet.h): Use them.
55602
55603 2008-04-28  Eric Blake  <ebb9@byu.net>
55604
55605         Test getndelim2.
55606         * modules/getndelim2-tests: New file.
55607         * tests/test-getndelim2.c: Likewise.
55608         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55609         stream.
55610         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55611
55612         * MODULES.html.sh: Document new module.
55613
55614 2008-04-20  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/c-stack.c (die): Use raise.
55617         * modules/c-stack (Depends-on): Add raise.
55618
55619 2008-04-28  Bruno Haible  <bruno@clisp.org>
55620
55621         Expect rpmatch to be declared.
55622         * lib/yesno.c (rpmatch): Remove declaration.
55623
55624         Declare rpmatch.
55625         * lib/stdlib.in.h (rpmatch): New declaration.
55626         * lib/rpmatch.c: Include <stdlib.h> first.
55627         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55628         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55630         HAVE_RPMATCH.
55631         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55632         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55633         (Include): Set to <stdlib.h>.
55634         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55635         HAVE_RPMATCH.
55636         * NEWS: Document the change.
55637
55638 2008-04-28  Bruno Haible  <bruno@clisp.org>
55639
55640         Change rpmatch to use nl_langinfo when appropriate.
55641         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55642         (N_): New macro.
55643         (localized_pattern): New function/macro.
55644         (try): Remove match, nomatch arguments. Copy the pattern into safe
55645         memory before caching it.
55646         (rpmatch): Use localized_pattern. Add translator comments.
55647         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55648         Suggested by Eric Blake.
55649         * modules/rpmatch (Depends-on): Add stdbool.
55650
55651 2008-04-28  Eric Blake  <ebb9@byu.net>
55652
55653         Add rawmemchr module, matching glibc.
55654         * modules/string (Makefile.am): New indicator.
55655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55656         * lib/string.in.h (rawmemchr): Declare when appropriate.
55657         * modules/rawmemchr: New file.
55658         * m4/rawmemchr.m4: Likewise.
55659         * lib/rawmemchr.c: Likewise.
55660         * modules/rawmemchr-tests: Likewise.
55661         * tests/test-rawmemchr.c: Likewise.
55662         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55663         module.
55664         * modules/strchrnul (Depends-on): Add rawmemchr.
55665         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55666
55667         Whitespace cleanup.
55668         * tests/test-strchrnul.c: Reindent.
55669         * lib/strchrnul.c: Likewise.
55670
55671         Optimize and test strchrnul.
55672         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55673         * modules/strchrnul-tests: New file.
55674         * tests/test-strchrnul.c: Likewise.
55675
55676         Remove intprops dependency.
55677         * modules/memchr (Depends-on): Remove intprops.
55678         * modules/memrchr (Depends-on): Likewise.
55679         * modules/memchr2 (Depends-on): Likewise.
55680         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55681         * lib/memrchr.c (__memrchr): Likewise.
55682         * lib/memrchr2.c (memchr2): Likewise.
55683         Reported by Simon Josefsson.
55684
55685 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55686
55687         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55688         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55689
55690 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55691
55692         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55693
55694         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55695
55696         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55697
55698         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55699         declarations.
55700         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55701
55702         * m4/inet_pton.m4: Don't check for header files.
55703
55704         * m4/inet_ntop.m4: Don't check for header files.
55705
55706 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55707
55708         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55709         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55710         trigger for cygwin).
55711         Reported by Bruno Haible  <bruno@clisp.org>.
55712
55713 2008-04-28  Bruno Haible  <bruno@clisp.org>
55714
55715         * doc/posix-functions/strdup.texi: Mention mingw problem.
55716
55717 2008-04-27  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/stat-time-tests (Depends-on): Add sleep.
55720         * tests/test-stat-time.c (force_unlink): New function.
55721         (cleanup): Use it.
55722         (test_mtime): Remove the ctime related tests.
55723         (test_ctime): New function, containing the ctime related tests.
55724         (main): Call test_ctime, except on native Windows platforms.
55725
55726 2008-04-27  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/rpmatch.c (rpmatch): Add some comments.
55729         Reported by James Youngman <jay@gnu.org>.
55730
55731 2008-04-27  Bruno Haible  <bruno@clisp.org>
55732
55733         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55734         quiet NaNs.
55735
55736 2008-04-27  Bruno Haible  <bruno@clisp.org>
55737
55738         Make test-yesno.sh work on mingw.
55739         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55740         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55741         (main): Set stdin to binary mode.
55742         * modules/yesno-tests (Depends-on): Add binary-io.
55743
55744 2008-04-27  Bruno Haible  <bruno@clisp.org>
55745
55746         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55747         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55748         argument that lie outside the IEEE 854 domain.
55749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55750         (gl_ISFINITE): Use it.
55751         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55752
55753 2008-04-27  Bruno Haible  <bruno@clisp.org>
55754
55755         Allow local renaming in config.h.
55756         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55757
55758 2008-04-27  Bruno Haible  <bruno@clisp.org>
55759
55760         * lib/memchr.c (__memchr): Change type of 'i'.
55761         * lib/memchr2.c (memchr2): Likewise.
55762
55763 2008-04-26  Eric Blake  <ebb9@byu.net>
55764         and Bruno Haible  <bruno@clisp.org>
55765
55766         Optimize and test memrchr.
55767         * modules/memrchr (Depends-on): Add intprops.
55768         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55769         * modules/memrchr-tests: New file.
55770         * tests/test-memrchr.c: New file.
55771
55772 2008-04-26  Bruno Haible  <bruno@clisp.org>
55773
55774         Add tentative support for DragonFly BSD.
55775         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55776         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55777         fp.
55778         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55779         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55780         * lib/fpurge.c (fpurge): Likewise.
55781         * lib/freadable.c (freaadable): Likewise.
55782         * lib/freadahead.c (freadahead): Likewise.
55783         * lib/freading.c (freading): Likewise.
55784         * lib/freadptr.c (freadptr): Likewise.
55785         * lib/freadseek.c (freadptrinc): Likewise.
55786         * lib/fseeko.c (fseeko): Likewise.
55787         * lib/fseterr.c (fseterr): Likewise.
55788         * lib/fwritable.c (fwritable): Likewise.
55789         * lib/fwriting.c (fwriting): Likewise.
55790
55791 2008-04-26  Bruno Haible  <bruno@clisp.org>
55792
55793         * lib/stdio-impl.h: New file.
55794         * lib/fbufmode.c: Include stdio-impl.h.
55795         (fbufmode): Use fp_, remove redundant #defines.
55796         * lib/fflush.c: Include stdio-impl.h.
55797         (clear_ungetc_buffer): Remove redundant #defines.
55798         * lib/fpurge.c: Include stdio-impl.h.
55799         (fpurge): Remove redundant #defines.
55800         * lib/freadable.c: Include stdio-impl.h.
55801         (freadable): Remove redundant #defines.
55802         * lib/freadahead.c: Include stdio-impl.h.
55803         (freadahead): Remove redundant #defines.
55804         * lib/freading.c: Include stdio-impl.h.
55805         (freading): Remove redundant #defines.
55806         * lib/freadptr.c: Include stdio-impl.h.
55807         (freadptr): Remove redundant #defines.
55808         * lib/freadseek.c: Include stdio-impl.h.
55809         (freadptrinc): Remove redundant #defines.
55810         * lib/fseeko.c: Include stdio-impl.h.
55811         (rpl_fseeko): Remove redundant #defines.
55812         * lib/fseterr.c: Include stdio-impl.h.
55813         (fseterr): Remove redundant #defines.
55814         * lib/fwritable.c: Include stdio-impl.h.
55815         (fwritable: Remove redundant #defines.
55816         * lib/fwriting.c: Include stdio-impl.h.
55817         (fwriting): Remove redundant #defines.
55818         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55819         * modules/fflush (Files): Likewise.
55820         * modules/fpurge (Files): Likewise.
55821         * modules/freadable (Files): Likewise.
55822         * modules/freadahead (Files): Likewise.
55823         * modules/freading (Files): Likewise.
55824         * modules/freadptr (Files): Likewise.
55825         * modules/freadseek (Files): Likewise.
55826         * modules/fseeko (Files): Likewise.
55827         * modules/fseterr (Files): Likewise.
55828         * modules/fwritable (Files): Likewise.
55829         * modules/fwriting (Files): Likewise.
55830
55831 2008-04-26  Bruno Haible  <bruno@clisp.org>
55832
55833         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55834         restore_seek_optimization, update_fpos_cache): New functions, extracted
55835         from rpl_fflush.
55836         (rpl_fflush): Use them.
55837         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55838         (gl_REPLACE_FFLUSH): Use it.
55839
55840 2008-04-26  Bruno Haible  <bruno@clisp.org>
55841
55842         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55843         on Solaris.
55844         * tests/test-xstrtoimax.sh: Likewise.
55845         * tests/test-xstrtoumax.sh: Likewise.
55846         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55847
55848 2008-04-26  Bruno Haible  <bruno@clisp.org>
55849
55850         * modules/memchr-tests: New file.
55851         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55852
55853 2008-04-26  Eric Blake  <ebb9@byu.net>
55854             Bruno Haible  <bruno@clisp.org>
55855
55856         * lib/memchr.c: Include intprops.h.
55857         (__memchr): Optimize parallel detection of matching bytes. Rename local
55858         variables. Add explanatory comments.
55859
55860 2008-04-26  Bruno Haible  <bruno@clisp.org>
55861
55862         Fix module 'memchr', broken since 2000-10-28.
55863         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55864
55865 2008-04-26  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55868         comments.
55869
55870 2008-04-25  Eric Blake  <ebb9@byu.net>
55871
55872         Use native fstatat on cygwin 1.7.0.
55873         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55874         first.
55875
55876 2008-04-23  Eric Blake  <ebb9@byu.net>
55877
55878         Improve memchr2 performance.
55879         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55880         NUL bytes.
55881         * modules/memchr2 (Depends-on): Use intprops.h.
55882
55883 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55884
55885         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55886         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55887         <blp@cs.stanford.edu>.
55888
55889 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55890
55891         * lib/arpa_inet.in.h: New file.
55892
55893         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55894         (Makefile.am): Sed in substitute header file.
55895
55896         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55897         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55898
55899         * modules/inet_ntop (configure.ac): Use
55900         gl_ARPA_INET_MODULE_INDICATOR.
55901
55902         * modules/inet_pton (configure.ac): Use
55903         gl_ARPA_INET_MODULE_INDICATOR.
55904
55905 2008-04-22  Jim Meyering  <meyering@redhat.com>
55906
55907         * modules/verify (License): Re-license as LGPLv2+.
55908
55909 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55910
55911         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55912         parameter to void* as per POSIX standard (MinGW uses char*).
55913
55914 2008-04-21  Bruno Haible  <bruno@clisp.org>
55915
55916         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55917         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55918         Define to replacements if REPLACE_ISWCNTRL is 1.
55919         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55920         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55921         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55922         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55923         what it fixes.
55924         * doc/posix-functions/iswalpha.texi: Likewise.
55925         * doc/posix-functions/iswblank.texi: Likewise.
55926         * doc/posix-functions/iswcntrl.texi: Likewise.
55927         * doc/posix-functions/iswdigit.texi: Likewise.
55928         * doc/posix-functions/iswgraph.texi: Likewise.
55929         * doc/posix-functions/iswlower.texi: Likewise.
55930         * doc/posix-functions/iswprint.texi: Likewise.
55931         * doc/posix-functions/iswpunct.texi: Likewise.
55932         * doc/posix-functions/iswspace.texi: Likewise.
55933         * doc/posix-functions/iswupper.texi: Likewise.
55934         * doc/posix-functions/iswxdigit.texi: Likewise.
55935         Reported by Alain Guibert.
55936
55937 2008-04-21  Bruno Haible  <bruno@clisp.org>
55938
55939         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55940         Patch by Alain Guibert.
55941
55942 2008-04-21  Bruno Haible  <bruno@clisp.org>
55943
55944         Fix test failures on mingw.
55945         * tests/test-xstrtol.c (print_no_progname): New function.
55946         (main): Install it in error_print_progname hook.
55947         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55948         * tests/test-xstrtoimax.sh: Likewise.
55949         * tests/test-xstrtoumax.sh: Likewise.
55950
55951 2008-04-21  Bruno Haible  <bruno@clisp.org>
55952
55953         Fix test failure on mingw.
55954         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55955
55956 2008-04-21  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55959         Actually assign a value.
55960
55961 2008-04-20  Bruno Haible  <bruno@clisp.org>
55962
55963         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55964         take 2.
55965         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55966         'canonicalize-lgpl' module is also used.
55967         * lib/canonicalize-lgpl.c: Undo last change.
55968         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55969
55970 2008-04-20  Bruno Haible  <bruno@clisp.org>
55971
55972         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55973         config.h. Provide _mkdir based fallback for mingw.
55974         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55975         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55976         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55977         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55978         rather than defining mkdir in config.h.
55979         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55980         (gl_SYS_STAT_H_DEFAULTS): New macro.
55981         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55982         HAVE_IO_H any more.
55983         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55984         HAVE_DECL_MKDIR and HAVE_IO_H.
55985
55986 2008-04-20  Bruno Haible  <bruno@clisp.org>
55987
55988         * lib/isapipe.c: Port to native Windows platforms.
55989
55990 2008-04-20  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55993
55994 2008-04-21  Eric Blake  <ebb9@byu.net>
55995
55996         Work around preprocessors that don't handle UINTMAX_MAX.
55997         * lib/memchr2.c (memchr2): Avoid embedded #if.
55998         Reported by Alain Guibert, fix suggested by Bruno Haible.
55999
56000 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56001
56002         * doc/posix-functions/strftime.texi (strftime): Explain better
56003         Windows incompatibility.  Suggested by Micah Cowan
56004         <micah@cowan.name>.
56005
56006 2008-04-20  Bruno Haible  <bruno@clisp.org>
56007
56008         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56009         unistr/u8-mblen.
56010
56011 2008-04-20  Bruno Haible  <bruno@clisp.org>
56012
56013         Fix test failure on platforms with non-GNU iconv.
56014         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56015         (U_TO_U8): Use it, rather than u16_to_u8.
56016         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56017         units at the end of the input string.
56018         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56019
56020 2008-04-20  Bruno Haible  <bruno@clisp.org>
56021
56022         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56023         when the resulting length is 0.
56024         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56025
56026 2008-04-20  Bruno Haible  <bruno@clisp.org>
56027
56028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56029         works.
56030         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56031
56032 2008-04-20  Bruno Haible  <bruno@clisp.org>
56033
56034         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56035         * modules/tsearch-tests (configure.ac): Test for initstate function.
56036
56037 2008-04-20  Bruno Haible  <bruno@clisp.org>
56038
56039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56040         for nlink_t if missing.
56041         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56042
56043 2008-04-19  Bruno Haible  <bruno@clisp.org>
56044
56045         Work around snprintf bug on Linux libc5.
56046         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56047         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56048         gl_SNPRINTF_SIZE1.
56049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56050         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56051         that test failed.
56052         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56053         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56054         * modules/snprintf (Files): Add m4/printf.m4.
56055         * modules/vsnprintf (Files): Likewise.
56056         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56057         * doc/posix-functions/vsnprintf.texi: Likewise.
56058
56059 2008-04-19  Bruno Haible  <bruno@clisp.org>
56060
56061         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56062         from 0.0058 to less than 10^-7.
56063
56064 2008-04-19  Bruno Haible  <bruno@clisp.org>
56065
56066         Fix rounding when a precision is given.
56067         * lib/vasnprintf.c (is_borderline): New function.
56068         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56069         9...9x.
56070         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56071         %e, %g.
56072         * tests/test-vasprintf-posix.c (test_function): Likewise.
56073         * tests/test-snprintf-posix.h (test_function): Likewise.
56074         * tests/test-sprintf-posix.h (test_function): Likewise.
56075         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56076         * tests/test-printf-posix.h (test_function): Likewise.
56077         * tests/test-printf-posix.output: Update.
56078         Reported by John Darrington <john@darrington.wattle.id.au> via
56079         Ben Pfaff <blp@cs.stanford.edu>.
56080
56081 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56082
56083         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56084         Suggested by Bruno Haible <bruno@clisp.org>.
56085
56086 2008-04-17  Bruno Haible  <bruno@clisp.org>
56087
56088         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56089         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56090         implementation.
56091         Patch by Bruce Merry <bmerry@gmail.com>.
56092
56093 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56094
56095         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56096         doesn't work under Windows.
56097
56098 2008-04-16  Bruno Haible  <bruno@clisp.org>
56099
56100         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56101         New macros.
56102         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56103         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56104         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56105         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56106         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56107         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56108         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56109         macros.
56110         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56111         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56112         Northern Sotho, Uighur.
56113
56114 2008-04-16  Bruno Haible  <bruno@clisp.org>
56115
56116         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56117         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56118         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56119         Reported by Daniel Bergström <daniel@octocode.com>.
56120
56121 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56122             Bruno Haible  <bruno@clisp.org>
56123
56124         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56125         function.
56126         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56127         New functions, mostly extracted from gl_locale_name_default.
56128         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56129
56130 2008-04-16  Eric Blake  <ebb9@byu.net>
56131
56132         Adjust strtod detection to catch glibc 2.7 bug.
56133         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56134         Reported by John Gatewood Ham.
56135
56136 2008-04-16  Bruno Haible  <bruno@clisp.org>
56137
56138         Add tentative support for Linux libc5.
56139         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56140         * lib/fpurge.c (fpurge): Likewise.
56141         * lib/freadable.c (freadable): Likewise.
56142         * lib/freadahead.c (freadahead): Likewise.
56143         * lib/freading.c (freading): Likewise.
56144         * lib/freadptr.c (freadptr): Likewise.
56145         * lib/freadseek.c (freadptrinc): Likewise.
56146         * lib/fseeko.c (rpl_fseeko): Likewise.
56147         * lib/fseterr.c (fseterr): Likewise.
56148         * lib/fwritable.c (fwritable): Likewise.
56149         * lib/fwriting.c (fwriting): Likewise.
56150         Reported by Alain Guibert <alguibert+bts@free.fr>.
56151
56152 2008-04-15  Bruno Haible  <bruno@clisp.org>
56153
56154         * modules/mathl (configure.ac): Define module indicator.
56155
56156 2008-04-15  Bruno Haible  <bruno@clisp.org>
56157
56158         * lib/logl.c (logl): Remove unused variables.
56159
56160 2008-04-15  Bruno Haible  <bruno@clisp.org>
56161
56162         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56163         fails.
56164
56165 2008-04-15  Bruno Haible  <bruno@clisp.org>
56166
56167         * lib/trim.c (trim2): Fix argument of isspace() macro.
56168
56169 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56170
56171         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56172         to 0.
56173         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56174
56175 2008-04-14  Bruno Haible  <bruno@clisp.org>
56176
56177         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56178         AC_LANG_PROGRAM argument.
56179         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56180         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56182         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56183         * m4/math_h.m4 (gl_MATH_H): Likewise.
56184         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56185         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56186         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56187         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56188         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56189         * m4/regex.m4 (gl_REGEX): Likewise.
56190         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56191         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56192         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56193         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56194         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56195         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56196         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56197         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56198
56199 2008-04-14  Jim Meyering  <meyering@redhat.com>
56200
56201         test-strtod: fix typos: s/abs/fabs/
56202         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56203
56204 2008-04-13  Bruno Haible  <bruno@clisp.org>
56205
56206         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56207         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56208         module is also used and while not building the reloc-wrapper.
56209
56210 2008-04-13  Bruno Haible  <bruno@clisp.org>
56211
56212         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56213
56214 2008-04-13  Bruno Haible  <bruno@clisp.org>
56215
56216         Fix AIX compilation failure introduced on 2008-04-02.
56217         * tests/test-frexp.c (exp): Undefine before redefining.
56218         * tests/test-frexpl.c (exp): Likewise.
56219
56220 2008-04-13  Bruno Haible  <bruno@clisp.org>
56221
56222         Work around a HP-UX stdio bug.
56223         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56224         * tests/test-ftello.c (main): Likewise.
56225         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56226         * doc/posix-functions/ftello.texi: Likewise.
56227
56228 2008-04-13  Bruno Haible  <bruno@clisp.org>
56229
56230         Make test-signbit pass on HP-UX/hppa.
56231         * tests/test-signbit.c (minus_zerol): New variable.
56232         (test_signbitl): Use it.
56233
56234 2008-04-13  Bruno Haible  <bruno@clisp.org>
56235
56236         Make truncl work on OSF/1 4.0.
56237         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56238         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56239         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56241         HAVE_DECL_TRUNCL.
56242         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56243         HAVE_DECL_TRUNCL.
56244         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56245
56246 2008-04-13  Bruno Haible  <bruno@clisp.org>
56247
56248         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56249
56250 2008-04-13  Bruno Haible  <bruno@clisp.org>
56251
56252         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56253         expression, so as to avoid HP-UX 11 cc compiler bug.
56254
56255 2008-04-13  Bruno Haible  <bruno@clisp.org>
56256
56257         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56258
56259 2008-04-13  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/git-merge-changelog.c: Remove empty declaration outside of
56262         functions.
56263
56264 2008-04-13  Bruno Haible  <bruno@clisp.org>
56265
56266         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56267
56268 2008-04-13  Bruno Haible  <bruno@clisp.org>
56269
56270         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56271         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56273         also if it exists but lacks definitions of the SHUT_* macros.
56274         * modules/sys_socket (Description): Update.
56275         Reported by Elbert Pol <e.pol@chello.nl>.
56276
56277 2008-04-13  Bruno Haible  <bruno@clisp.org>
56278
56279         * lib/localcharset.c (OS2): Don't redefine if already defined.
56280         Reported by Elbert Pol <e.pol@chello.nl>.
56281
56282 2008-04-13  Bruno Haible  <bruno@clisp.org>
56283
56284         * lib/binary-io.h [__EMX__]: Include <io.h>.
56285         Reported by Elbert Pol <e.pol@chello.nl>.
56286
56287 2008-04-12  Bruno Haible  <bruno@clisp.org>
56288
56289         * lib/fpucw.h: Enable the definitions also for x86_64.
56290         Needed for NetBSD/x86_64.
56291         Reported by Thomas Klausner <tk@giga.or.at>.
56292
56293 2008-04-12  Bruno Haible  <bruno@clisp.org>
56294
56295         * tests/test-strtod.c: Include isnand.h.
56296         (main): Use isnand instead of isnan.
56297         Reported by Jim Meyering.
56298
56299 2008-04-12  Bruno Haible  <bruno@clisp.org>
56300
56301         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56302         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56303
56304 2008-04-12  Jim Meyering  <meyering@redhat.com>
56305
56306         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56307
56308 2008-04-12  Bruno Haible  <bruno@clisp.org>
56309
56310         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56311         Reported by Elbert Pol <e.pol@chello.nl>.
56312
56313 2008-04-12  Eric Blake  <ebb9@byu.net>
56314
56315         Work around Solaris 10 math.h bug.
56316         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56317         (gl_MATH_H_DEFAULTS): Set up default.
56318         * modules/math (Makefile.am): Replace new indicators.
56319         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56320         * tests/test-math.c (main): Test this.
56321         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56322         * doc/posix-headers/math.texi (math.h): Mention bug.
56323         Reported by Nelson H. F. Beebe and Jim Meyering.
56324
56325 2008-04-11  Bruno Haible  <bruno@clisp.org>
56326
56327         Adapt to future versions of Apple GCC.
56328         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56329         Reported by Peter O'Gorman <peter@pogma.com>.
56330
56331 2008-04-11  Bruno Haible  <bruno@clisp.org>
56332
56333         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56334
56335 2008-04-11  Bruno Haible  <bruno@clisp.org>
56336
56337         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56338
56339         * modules/getaddrinfo-tests (Makefile.am): Define
56340         test_getaddrinfo_LDADD.
56341
56342 2008-04-11  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56345         (init): Fix syntax error.
56346         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56347         is declared.
56348
56349 2008-04-11  Bruno Haible  <bruno@clisp.org>
56350
56351         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56352         * modules/glob (Depends-on): Add stdbool.
56353
56354 2008-04-11  Bruno Haible  <bruno@clisp.org>
56355
56356         * lib/trim.c: Include <string.h>.
56357
56358 2008-04-11  Eric Blake  <ebb9@byu.net>
56359
56360         Avoid compile failure on OS/2.
56361         * lib/regex_internal.h (internal_function): Disable optimization
56362         on OS/2 (__EMX__), where it caused compiler error.
56363         Reported by Elbert Pol.
56364
56365 2008-04-11  Bruno Haible  <bruno@clisp.org>
56366
56367         Flush the standard error stream before aborting. Needed on mingw.
56368         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56369         * tests/test-array_list.c (ASSERT): Likewise.
56370         * tests/test-array_oset.c (ASSERT): Likewise.
56371         * tests/test-avltree_list.c (ASSERT): Likewise.
56372         * tests/test-avltree_oset.c (ASSERT): Likewise.
56373         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56374         * tests/test-binary-io.c (ASSERT): Likewise.
56375         * tests/test-byteswap.c (ASSERT): Likewise.
56376         * tests/test-c-ctype.c (ASSERT): Likewise.
56377         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56378         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56379         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56380         * tests/test-c-strstr.c (ASSERT): Likewise.
56381         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56382         * tests/test-canonicalize.c (ASSERT): Likewise.
56383         * tests/test-carray_list.c (ASSERT): Likewise.
56384         * tests/test-ceilf1.c (ASSERT): Likewise.
56385         * tests/test-ceilf2.c (ASSERT): Likewise.
56386         * tests/test-ceill.c (ASSERT): Likewise.
56387         * tests/test-count-one-bits.c (ASSERT): Likewise.
56388         * tests/test-fbufmode.c (ASSERT): Likewise.
56389         * tests/test-fflush2.c (ASSERT): Likewise.
56390         * tests/test-floorf1.c (ASSERT): Likewise.
56391         * tests/test-floorf2.c (ASSERT): Likewise.
56392         * tests/test-floorl.c (ASSERT): Likewise.
56393         * tests/test-fopen.c (ASSERT): Likewise.
56394         * tests/test-fpending.c (ASSERT): Likewise.
56395         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56396         * tests/test-fpurge.c (ASSERT): Likewise.
56397         * tests/test-freadable.c (ASSERT): Likewise.
56398         * tests/test-freadahead.c (ASSERT): Likewise.
56399         * tests/test-freading.c (ASSERT): Likewise.
56400         * tests/test-freadptr.c (ASSERT): Likewise.
56401         * tests/test-freadptr2.c (ASSERT): Likewise.
56402         * tests/test-freadseek.c (ASSERT): Likewise.
56403         * tests/test-freopen.c (ASSERT): Likewise.
56404         * tests/test-frexp.c (ASSERT): Likewise.
56405         * tests/test-frexpl.c (ASSERT): Likewise.
56406         * tests/test-fseek.c (ASSERT): Likewise.
56407         * tests/test-fseeko.c (ASSERT): Likewise.
56408         * tests/test-fstrcmp.c (ASSERT): Likewise.
56409         * tests/test-ftell.c (ASSERT): Likewise.
56410         * tests/test-ftello.c (ASSERT): Likewise.
56411         * tests/test-func.c (ASSERT): Likewise.
56412         * tests/test-fwritable.c (ASSERT): Likewise.
56413         * tests/test-fwriting.c (ASSERT): Likewise.
56414         * tests/test-getdelim.c (ASSERT): Likewise.
56415         * tests/test-getline.c (ASSERT): Likewise.
56416         * tests/test-i-ring.c (ASSERT): Likewise.
56417         * tests/test-iconv-utf.c (ASSERT): Likewise.
56418         * tests/test-iconv.c (ASSERT): Likewise.
56419         * tests/test-isfinite.c (ASSERT): Likewise.
56420         * tests/test-isnand.c (ASSERT): Likewise.
56421         * tests/test-isnanf.c (ASSERT): Likewise.
56422         * tests/test-isnanl.h (ASSERT): Likewise.
56423         * tests/test-ldexpl.c (ASSERT): Likewise.
56424         * tests/test-linked_list.c (ASSERT): Likewise.
56425         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56426         * tests/test-localename.c (ASSERT): Likewise.
56427         * tests/test-lseek.c (ASSERT): Likewise.
56428         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56429         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56430         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56431         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56432         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56433         * tests/test-mbschr.c (ASSERT): Likewise.
56434         * tests/test-mbscspn.c (ASSERT): Likewise.
56435         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56436         * tests/test-mbspbrk.c (ASSERT): Likewise.
56437         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56438         * tests/test-mbsrchr.c (ASSERT): Likewise.
56439         * tests/test-mbsspn.c (ASSERT): Likewise.
56440         * tests/test-mbsstr1.c (ASSERT): Likewise.
56441         * tests/test-mbsstr2.c (ASSERT): Likewise.
56442         * tests/test-mbsstr3.c (ASSERT): Likewise.
56443         * tests/test-memchr2.c (ASSERT): Likewise.
56444         * tests/test-memmem.c (ASSERT): Likewise.
56445         * tests/test-open.c (ASSERT): Likewise.
56446         * tests/test-printf-frexp.c (ASSERT): Likewise.
56447         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56448         * tests/test-printf-posix.c (ASSERT): Likewise.
56449         * tests/test-quotearg.c (ASSERT): Likewise.
56450         * tests/test-rbtree_list.c (ASSERT): Likewise.
56451         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56452         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56453         * tests/test-round1.c (ASSERT): Likewise.
56454         * tests/test-roundf1.c (ASSERT): Likewise.
56455         * tests/test-roundl.c (ASSERT): Likewise.
56456         * tests/test-signbit.c (ASSERT): Likewise.
56457         * tests/test-sleep.c (ASSERT): Likewise.
56458         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56459         * tests/test-snprintf.c (ASSERT): Likewise.
56460         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56461         * tests/test-stat-time.c (ASSERT): Likewise.
56462         * tests/test-strcasestr.c (ASSERT): Likewise.
56463         * tests/test-strerror.c (ASSERT): Likewise.
56464         * tests/test-striconv.c (ASSERT): Likewise.
56465         * tests/test-striconveh.c (ASSERT): Likewise.
56466         * tests/test-striconveha.c (ASSERT): Likewise.
56467         * tests/test-strsignal.c (ASSERT): Likewise.
56468         * tests/test-strstr.c (ASSERT): Likewise.
56469         * tests/test-strtod.c (ASSERT): Likewise.
56470         * tests/test-trunc1.c (ASSERT): Likewise.
56471         * tests/test-trunc2.c (ASSERT): Likewise.
56472         * tests/test-truncf1.c (ASSERT): Likewise.
56473         * tests/test-truncf2.c (ASSERT): Likewise.
56474         * tests/test-truncl.c (ASSERT): Likewise.
56475         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56476         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56477         * tests/test-vasnprintf.c (ASSERT): Likewise.
56478         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56479         * tests/test-vasprintf.c (ASSERT): Likewise.
56480         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56481         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56482         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56483         * tests/test-vsnprintf.c (ASSERT): Likewise.
56484         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56485         * tests/test-wcwidth.c (ASSERT): Likewise.
56486         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56487         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56488         * tests/test-xvasprintf.c (ASSERT): Likewise.
56489         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56490         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56491         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56492         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56493         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56494         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56495         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56496         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56497         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56498         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56499         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56500         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56501         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56502         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56503         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56504         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56505         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56506         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56507         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56508         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56509         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56510         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56511         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56512         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56513         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56514         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56515         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56516         * tests/unictype/test-combining.c (ASSERT): Likewise.
56517         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56518         * tests/unictype/test-digit.c (ASSERT): Likewise.
56519         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56520         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56521         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56522         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56523         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56524         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56525         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56526         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56527         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56528         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56529         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56530         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56531         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56532         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56533         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56534         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56535         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56536         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56537         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56538         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56539         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56540         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56541         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56542         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56543         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56544         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56545         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56546         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56547         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56548         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56549         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56550         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56551         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56552         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56553         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56554         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56555         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56556         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56557         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56558         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56559         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56560         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56561         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56562         Reported by Eric Blake.
56563
56564 2008-04-11  Bruno Haible  <bruno@clisp.org>
56565
56566         * lib/wchar.in.h: Tweak comment.
56567
56568 2008-04-11  Bruno Haible  <bruno@clisp.org>
56569
56570         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56571         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56572         gl_COMMON.
56573         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56574
56575 2008-04-11  Bruno Haible  <bruno@clisp.org>
56576
56577         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56578
56579 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56580
56581         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56582         of attempting to use non-existing /dev/*random.  Based on patch
56583         from Adam Strzelecki <ono@java.pl> in
56584         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56585
56586 2008-04-08  Bruno Haible  <bruno@clisp.org>
56587
56588         Add tentative support for emx+gcc.
56589         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
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         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56601
56602 2008-04-09  Eric Blake  <ebb9@byu.net>
56603
56604         Avoid some autoconf warnings.
56605         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56606         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56607         * m4/afs.m4 (gl_AFS): Likewise.
56608         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56609         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56610         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56611         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56612         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56613         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56614         (AC_CHECK_DECLS_ONCE): Likewise.
56615         Rename file...
56616         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56617         gnulib-tool requires autoconf 2.59 or better.
56618         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56619
56620 2008-04-08  Eric Blake  <ebb9@byu.net>
56621
56622         Use 'git describe --match' if present (added in git 1.5.5).
56623         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56624         if possible.
56625
56626 2008-04-08  Bruno Haible  <bruno@clisp.org>
56627
56628         Add tentative support for OpenServer.
56629         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56630         _ptr, _cnt.
56631         * lib/fpurge.c (fpurge): Likewise.
56632         * lib/freadable.c (freadable): Likewise.
56633         * lib/freadahead.c (freadahead): Likewise.
56634         * lib/freading.c (freading): Likewise.
56635         * lib/freadptr.c (freadptr): Likewise.
56636         * lib/freadseek.c (freadptrinc): Likewise.
56637         * lib/fseeko.c (rpl_fseeko): Likewise.
56638         * lib/fseterr.c (fseterr): Likewise.
56639         * lib/fwritable.c (fwritable): Likewise.
56640         * lib/fwriting.c (fwriting): Likewise.
56641         Reported by Roger Cornelius <rac@tenzing.org> and
56642         Brian K. White <brian@aljex.com>.
56643
56644 2008-04-06  Jim Meyering  <meyering@redhat.com>
56645
56646         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56647
56648 2008-04-06  Bruno Haible  <bruno@clisp.org>
56649
56650         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56651         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56652         * tests/test-printf-posix.sh: Likewise.
56653         * tests/test-vfprintf-posix.sh: Likewise.
56654         * tests/test-vprintf-posix.sh: Likewise.
56655         * tests/test-xprintf-posix.sh: Likewise.
56656
56657 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56658
56659         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56660         hide error from 'ls', needed on OS/2.
56661         Report by Elbert Pol <elbert.pol@gmail.com>.
56662
56663 2008-04-04  Eric Blake  <ebb9@byu.net>
56664
56665         Make test-fseeko.c failures meaningful.
56666         * tests/test-fseeko.c: Print line number on failure.
56667         * tests/test-fseek.c: Likewise.
56668         Reported by Nelson H. F. Beebe.
56669
56670         Improve strtod bug detection check.
56671         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56672         required for Solaris 10.
56673         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56674
56675 2008-04-04  Bruno Haible  <bruno@clisp.org>
56676
56677         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56678         by m4/setenv.m4.
56679
56680 2008-04-03  Eric Blake  <ebb9@byu.net>
56681
56682         Ensure sane .version contents.
56683         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56684         version string.
56685         * build-aux/git-version-gen: Improve documentation.
56686
56687         Make GNU make output nicer.
56688         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56689         MAKECMDGOALS to enforce message for all command line targets.  Set
56690         srcdir for use in maint.mk.
56691
56692         Another maintainer tweak.
56693         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56694         a target that regenerates version.
56695
56696 2008-04-03  Jim Meyering  <meyering@redhat.com>
56697
56698         vc-list-files: don't cause coreutils "make po-check" failure
56699         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56700
56701 2008-04-03  Eric Blake  <ebb9@byu.net>
56702
56703         Allow VPATH usage of vc-list-files.
56704         * build-aux/vc-list-files (scriptversion): Add timestamp.
56705         (options): Add --help, --version, -C.
56706         (CVS): Support installed cvsu.
56707
56708 2008-04-02  Bruno Haible  <bruno@clisp.org>
56709
56710         Avoid some "statement with no effect" warnings from gcc.
56711         * tests/test-wctype.c (main): Explicitly ignore unused values.
56712         Reported by Jim Meyering.
56713
56714 2008-04-02  Jim Meyering  <meyering@redhat.com>
56715
56716         Avoid some warnings from "gcc -Wshadow".
56717         * tests/test-frexp.c (exp): Define to a different identifier.
56718         * tests/test-frexpl.c (exp): Likewise.
56719
56720 2008-04-03  Jim Meyering  <meyering@redhat.com>
56721
56722         bootstrap: remove dangling *.[ch] symlinks from lib
56723         * build-aux/bootstrap [dangling symlink removal]: Move find's
56724         -depth option to precede all others, to avoid a warning.
56725         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56726
56727 2008-04-02  Bruno Haible  <bruno@clisp.org>
56728
56729         Avoid some warnings from "gcc -Wshadow".
56730         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56731         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56732         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56733         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56734         Reported by Jim Meyering.
56735
56736 2008-04-01  Bruno Haible  <bruno@clisp.org>
56737
56738         Fix test to work on IRIX 6.5 with cc.
56739         * tests/test-math.c (numeric_equal): New function.
56740         (main): Use it.
56741
56742 2008-04-01  Bruno Haible  <bruno@clisp.org>
56743
56744         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56745
56746 2008-04-01  Bruno Haible  <bruno@clisp.org>
56747
56748         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56749         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56750         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56751         (Depends-on): Remove math.
56752
56753         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56754         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56755         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56756         (Depends-on): Remove math.
56757
56758         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56759         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56760         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56761         (Depends-on): Remove math.
56762         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56763         (Depends-on): Remove math.
56764
56765         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56766         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56767         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56768         (Depends-on): Remove math.
56769         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56770         (Depends-on): Remove math.
56771
56772         * tests/test-round1.c: Include nan.h.
56773         (main): Use NaNd instead of NAN.
56774         * modules/round-tests (Files): Add tests/nan.h.
56775
56776         * tests/test-trunc1.c: Include nan.h.
56777         (main): Use NaNd instead of NAN.
56778         * modules/trunc-tests (Files): Add tests/nan.h.
56779
56780         * tests/test-roundf1.c: Include nan.h.
56781         (main): Use NaNf instead of NAN.
56782         * modules/roundf-tests (Files): Add tests/nan.h.
56783
56784         * tests/test-truncf1.c: Include nan.h.
56785         (main): Use NaNf instead of NAN.
56786         * modules/truncf-tests (Files): Add tests/nan.h.
56787
56788         * tests/test-ceilf1.c: Include nan.h.
56789         (main): Use NaNf instead of NAN.
56790         * modules/ceilf-tests (Files): Add tests/nan.h.
56791
56792         * tests/test-floorf1.c: Include nan.h.
56793         (main): Use NaNf instead of NAN.
56794         * modules/floorf-tests (Files): Add tests/nan.h.
56795
56796         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56797         (main): Use NaNf instead of NAN.
56798         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56799
56800         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56801         (main): Use NaNd instead of NAN.
56802         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56803
56804         * tests/test-frexp.c: Include nan.h.
56805         (main): Use NaNd instead of NAN.
56806         * modules/frexp-tests (Files): Add tests/nan.h.
56807
56808         * lib/isnan.c: Don't include <math.h>.
56809         (FUNC): Don't use NAN macro.
56810         * modules/isnand-nolibm (Depends-on): Remove math.
56811         * modules/isnanf-nolibm (Depends-on): Remove math.
56812         * modules/isnanl (Depends-on): Remove math.
56813         * modules/isnanl-nolibm (Depends-on): Remove math.
56814
56815         * tests/nan.h: New file.
56816
56817 2008-04-01  Eric Blake  <ebb9@byu.net>
56818
56819         Fix typos.
56820         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56821         values to be the right type.
56822
56823         For now, cater to gnulib strtod inaccuracies.
56824         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56825         fractional results.  While not as nice from a QoI perspective, it
56826         is a quicker patch than correctly implementing decimal to binary
56827         rounding.
56828
56829 2008-03-31  Eric Blake  <ebb9@byu.net>
56830
56831         Guarantee a definition of NAN.
56832         * lib/math.in.h (NAN): Define if missing.
56833         * tests/test-math.c (main): Test it.
56834         * doc/posix-headers/math.texi (math.h): Document this.
56835         * lib/isnan.c (rpl_isnand): Use it.
56836         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56837         * tests/test-floorf1.c (NaN): Likewise.
56838         * tests/test-frexp.c (NaN): Likewise.
56839         * tests/test-isnand.c (NaN): Likewise.
56840         * tests/test-isnanf.c (NaN): Likewise.
56841         * tests/test-round1.c (NaN): Likewise.
56842         * tests/test-roundf1.c (NaN): Likewise.
56843         * tests/test-snprintf-posix.h (NaN): Likewise.
56844         * tests/test-sprintf-posix.h (NaN): Likewise.
56845         * tests/test-trunc1.c (NaN): Likewise.
56846         * tests/test-truncf1.c (NaN): Likewise.
56847         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56848         * tests/test-vasprintf-posix.c (NaN): Likewise.
56849         * modules/isnand-nolibm (Depends-on): Add math.
56850         * modules/isnanf-nolibm (Depends-on): Likewise.
56851         * modules/isnanl (Depends-on): Likewise.
56852         * modules/isnanl-nolibm (Depends-on): Likewise.
56853         * modules/snprintf-posix-tests (Depends-on): Likewise.
56854         * modules/sprintf-posix-tests (Depends-on): Likewise.
56855         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56856         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56857         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56858         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56859
56860 2008-03-31  Bruno Haible  <bruno@clisp.org>
56861
56862         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56863         * doc/posix-functions/strtod.texi: Likewise.
56864
56865 2008-03-31  Bruno Haible  <bruno@clisp.org>
56866
56867         * tests/test-strtod.c (main): Don't use C99 syntax.
56868
56869 2008-03-31  Bruno Haible  <bruno@clisp.org>
56870
56871         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56872         Reported by Eric Blake.
56873
56874 2008-03-31  Jim Meyering  <meyering@redhat.com>
56875
56876         Don't compare actual signbit return values.
56877         * tests/test-strtod.c (main): Rather, compare only their
56878         zero/non-zero nature.
56879
56880 2008-03-31  Eric Blake  <ebb9@byu.net>
56881
56882         More strtod documentation.
56883         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56884         failures as distinct bugs.
56885
56886 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56887
56888         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56889         Problem reported by Erik Benada in
56890         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56891
56892 2008-03-30  Bruno Haible  <bruno@clisp.org>
56893
56894         * tests/test-strtod.c: Add comments about which assertion fails on which
56895         platform.
56896         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56897
56898 2008-03-30  Eric Blake  <ebb9@byu.net>
56899
56900         Test signbit behavior on zeros.
56901         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56902         (test_signbitd, test_signbitl): Likewise.
56903
56904         More strtod touchups.
56905         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56906         sign of negative underflow, for now.  Use .5, not .1.
56907         * doc/posix-functions/strtod.texi (strtod): Mention these
56908         limitations.
56909         Reported by Jim Meyering.
56910
56911 2008-03-30  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56914         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56915
56916 2008-03-30  Bruno Haible  <bruno@clisp.org>
56917
56918         Avoid failure when attempting to return empty iconv results on some
56919         platforms.
56920         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56921         allocation, don't report ENOMEM when the resulting string is empty.
56922
56923 2008-03-30  Bruno Haible  <bruno@clisp.org>
56924
56925         Fix buffer overrun.
56926         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56927         Don't consider the width for tmp_length. Check count against tmp_length
56928         before doing the padding. Ensure enough allocation during padding.
56929
56930 2008-03-30  Eric Blake  <ebb9@byu.net>
56931
56932         strtod touchups.
56933         * lib/strtod.c (strtod): Avoid compiler warnings.
56934         Reported by Jim Meyering.
56935
56936 2008-03-30  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56939         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56940         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56941         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56942         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56943         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56944         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56945         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56946
56947         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56948         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56949         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56950         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56951         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56952         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56953         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56954         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56955
56956         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56957         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56958         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56959         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56960         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56961         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56962         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56963         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56964
56965         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56966         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56967
56968         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56969         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56970
56971         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56972         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56973
56974         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56975         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56976         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56977
56978         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56980         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56981
56982         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56983         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56984         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56985
56986         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56987         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56988         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56989
56990         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56991         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56992         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56993         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56994         (Depends-on): Add EOVERFLOW.
56995         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56996         (Depends-on): Add EOVERFLOW.
56997         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56998         (Depends-on): Add EOVERFLOW.
56999         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57000         (Depends-on): Add EOVERFLOW.
57001         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57002         (Depends-on): Add EOVERFLOW.
57003         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57004         (Depends-on): Add EOVERFLOW.
57005         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57006         (Depends-on): Add EOVERFLOW.
57007         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57008         (Depends-on): Add EOVERFLOW.
57009
57010         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57012         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57013
57014         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57016         * modules/snprintf (Depends-on): Add EOVERFLOW.
57017
57018         * lib/poll.c (EOVERFLOW): Remove fallback.
57019         * modules/poll (Depends-on): Add EOVERFLOW.
57020
57021         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57022         * modules/getugroups (Depends-on): Add EOVERFLOW.
57023
57024         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57025         * modules/getdelim (Depends-on): Add EOVERFLOW.
57026
57027         * lib/ftell.c (EOVERFLOW): Remove fallback.
57028         * modules/ftell (Depends-on): Add EOVERFLOW.
57029
57030         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57032         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57033
57034         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57035
57036         * modules/EOVERFLOW-tests: New file.
57037         * tests/test-EOVERFLOW.c: New file.
57038
57039         * modules/EOVERFLOW: New file.
57040         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57041
57042 2008-03-30  Bruno Haible  <bruno@clisp.org>
57043
57044         Fix bug introduced on 2007-06-10.
57045         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57046         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57047
57048 2008-03-30  Bruno Haible  <bruno@clisp.org>
57049
57050         Improve freadseek's efficiency after ungetc.
57051         * lib/freadseek.c: Include freadahead.h.
57052         (freadptrinc): New function, extracted from freadseek.
57053         (freadseek): Use it in a loop. Use freadahead to determine the number
57054         of loop iterations.
57055         * modules/freadseek (Depends-on): Add freadahead.
57056         (configure.ac): Require AC_C_INLINE.
57057
57058 2008-03-30  Bruno Haible  <bruno@clisp.org>
57059
57060         * lib/freadseek.c (freadseek): Don't ignore the return value of
57061         freadptr.
57062
57063 2008-03-29  Eric Blake  <ebb9@byu.net>
57064
57065         Add hex float support.
57066         * modules/strtod (Depends-on): Add c-ctype.
57067         (Link): Mention POW_LIB.
57068         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57069         whitespace between 'e' and exponent.
57070         * tests/test-strtod.c (main): Enable hex float tests.
57071         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57072         now provides.
57073
57074         Document various strtod bugs, with some fixes.
57075         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57076         "-0x", "inf", "nan", and hex constants.
57077         * doc/posix-functions/atof.texi (atof): Likewise.
57078         * modules/stdlib (Makefile.am): Support strtod.
57079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57080         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57081         detect additional strtod bugs.
57082         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57083         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57084         bool where appropriate.  Parse 'inf' and 'nan'.
57085         * tests/test-strtod.c: New file.
57086         * modules/strtod (Depends-on): Add stdbool, stdlib.
57087         (configure.ac): Turn on module indicator.
57088         * modules/strtod-tests: New module.
57089
57090 2008-03-29  Eric Blake  <ebb9@byu.net>
57091
57092         Fix ftell on mingw.
57093         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57094         * modules/ftell-tests (Depends-on): Add binary-io.
57095         * modules/ftello-tests (Depends-on): Likewise.
57096         * tests/test-ftell.c (main): Enhance test to cover behavior after
57097         ungetc.  Enforce binary mode.
57098         * tests/test-ftello.c (main): Likewise.
57099
57100         Pass test-freadseek on cygwin.
57101         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57102         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57103         ungetc buffer.
57104
57105         * tests/test-fflush2.c (main): Fix typo.
57106
57107 2008-03-29  Bruno Haible  <bruno@clisp.org>
57108
57109         * tests/test-fflush2.c (main): Temporarily disable the contents of
57110         this test.
57111         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57112         Reported by Eric Blake.
57113
57114 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57115
57116         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57117         (GC_SHA224_DIGEST_SIZE): Add.
57118
57119         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57120         (gc_hash_digest_length): Likewise.
57121         (gc_hash_buffer): Likewise.
57122
57123 2008-03-25  Bruno Haible  <bruno@clisp.org>
57124
57125         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57126         detail which gettext release to use.
57127         Reported by Simon Josefsson.
57128
57129 2008-03-26  Jim Meyering  <meyering@redhat.com>
57130
57131         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57132         * modules/gnumakefile (clean-GNUmakefile): Also, use
57133         test ... && ... || : syntax rather than if-then ... fi.
57134
57135         gnumakefile: Don't double-quote-expand $(VPATH) value.
57136         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57137
57138 2008-03-24  Eric Blake  <ebb9@byu.net>
57139
57140         Alter GNUmakefile to install into top directory.
57141         * modules/maintainer-makefile: Split, and add dependency...
57142         * modules/gnumakefile: to this new module.
57143         * build-aux/GNUmakefile: Move...
57144         * top/GNUmakefile: ...here.
57145         * build-aux/maint.mk: Move...
57146         * top/maint.mk: ...here.
57147         * MODULES.html.sh (Support for maintaining...): Document new
57148         module.
57149
57150 2008-03-23  Bruno Haible  <bruno@clisp.org>
57151
57152         * gnulib-tool: New options --vc-files, --no-vc-files.
57153         (func_usage): Document them.
57154         (vc_files): New variable.
57155         (func_import): Consider vc_files.
57156         (func_create_testdir): Set vc_files to empty.
57157         Suggested by Jim Meyering and Karl Berry.
57158
57159 2008-03-23  Bruno Haible  <bruno@clisp.org>
57160
57161         Fix regex compilation error on HP-UX 11.
57162         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57163         * modules/regex (Files): Add m4/mbstate_t.m4.
57164         Reported by Ton Voon <ton.voon@altinity.com>.
57165
57166 2008-03-23  Bruno Haible  <bruno@clisp.org>
57167
57168         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57169
57170 2008-03-23  Eric Blake  <ebb9@byu.net>
57171             Bruno Haible  <bruno@clisp.org>
57172
57173         Install files from top/ in the destination directory.
57174         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57175         augmentation also for the files from top/.
57176         (func_import, func_create_testdir): Rewrite file names:
57177         top/filename -> filename.
57178
57179 2008-03-23  Bruno Haible  <bruno@clisp.org>
57180
57181         Tweak "gnulib --version" output.
57182         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57183
57184 2008-03-23  Bruno Haible  <bruno@clisp.org>
57185
57186         Tweak "gnulib --version" output.
57187         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57188         rather than contents of ChangeLog, when possible.
57189
57190 2008-03-21  Eric Blake  <ebb9@byu.net>
57191
57192         More --version tweaks.
57193         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57194         date of last ChangeLog entry.
57195
57196 2008-03-21  Jim Meyering  <meyering@redhat.com>
57197
57198         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57199
57200 2008-03-20  Eric Blake  <ebb9@byu.net>
57201
57202         VPATH fix.
57203         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57204
57205 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57206
57207         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57208         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57209
57210 2008-03-20  Eric Blake  <ebb9@byu.net>
57211
57212         Sync GNUmakefile with coreutils.
57213         * build-aux/GNUmakefile (have-Makefile): Rename...
57214         (_have-Makefile): ...to this, for namespace consideration.
57215         (GNUmakefile.cfg): Include, if present.
57216         (_autoreconf): Define a default.
57217         (_is-dist-target): New rule for rebuilds to pick up intra-release
57218         version.
57219         (maint-cfg.mk): Rename...
57220         (cfg.mk): ...to this.
57221
57222 2008-03-18  Jim Meyering  <meyering@redhat.com>
57223
57224         New script and module: mktempd
57225         * MODULES.html.sh (maint+release support): Add mktempd.
57226         * build-aux/mktempd: New file.
57227         * modules/mktempd: New file.
57228
57229 2008-03-15  Jim Meyering  <meyering@redhat.com>
57230
57231         Undo last change.
57232         * lib/sha1.c, lib/md5.c: 63 != ~63.
57233         Reported by Andreas Schwab.
57234
57235         sha1.c, md5.c: Hoist a redundant expression.
57236         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57237         "ctx->buflen" only once, before calling *_process_block.
57238         * lib/md5.c (md5_process_bytes): Likewise.
57239
57240 2008-03-14  Eric Blake  <ebb9@byu.net>
57241
57242         Bump copyright year in files generated by gnulib-tool.
57243         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57244         gnulib-tool, rather than hard-coding it.
57245
57246         Fix 'gnulib-tool --version' output to work with git.
57247         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57248         (startup): ...here.
57249         (func_version): Use it to invoke git-version-gen, rather than
57250         relying on CVS keyword expansion.  Modernize wording.
57251         (cvsdatestamp, last_checkin_date, version): Kill unused
57252         variables.
57253
57254 2008-03-12  Jim Meyering  <meyering@redhat.com>
57255
57256         Recognize optional cast of the argument to free.
57257         * build-aux/useless-if-before-free: Update regexps.
57258
57259         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57260
57261 2008-03-11  Bruno Haible  <bruno@clisp.org>
57262
57263         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57264         by a single package.
57265         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57266         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57267         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57268         Reported by Sam Steingold <sds@gnu.org>.
57269
57270 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57271
57272         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57273         repositories.
57274
57275 2008-03-11  Bruno Haible  <bruno@clisp.org>
57276
57277         Avoid conflicts between local macro definitions.
57278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57279         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57280
57281 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57282             Bruno Haible  <bruno@clisp.org>
57283
57284         Make va_copy work with some version of xlc on AIX 5.1.
57285         * lib/stdarg.in.h: New file.
57286         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57287         On AIX, use a <stdarg.h> file substitute.
57288         * modules/stdarg (Files): Add lib/stdarg.in.h.
57289         (Depends-on): Add include_next.
57290         (Makefile.am): Build a stdarg.h substitute if requested.
57291         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57292
57293 2008-03-10  Bruno Haible  <bruno@clisp.org>
57294
57295         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57296         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57297         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57298
57299 2008-03-10  Bruno Haible  <bruno@clisp.org>
57300
57301         * modules/stdlib (Depends-on): Add include_next, remove
57302         absolute-header.
57303
57304 2008-03-09  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/freadahead.h (freadahead): Document more precisely.
57307         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57308         the sum of both buffer sizes.
57309         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57310         * NEWS: Document the change.
57311
57312 2008-03-09  Bruno Haible  <bruno@clisp.org>
57313
57314         Extend freadptr to return also the buffer size.
57315         * lib/freadptr.h (freadptr): Add sizep argument.
57316         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57317         (freadptr): Add sizep argument. Determine buffer size like freadahead
57318         does.
57319         * tests/test-freadptr.c: Don't include freadahead.h.
57320         (main): Adapt for new calling convention of freadptr.
57321         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57322         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57323         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57324         tests/test-freadptr2.sh.
57325         (Depends): Remove freadahead.
57326         (TESTS): Add test-freadptr2.sh.
57327         (check_PROGRAMS): Add test-freadptr2.
57328
57329 2008-03-09  Bruno Haible  <bruno@clisp.org>
57330
57331         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57332         Report and solution by Simon Josefsson.
57333
57334 2008-03-06  Bruno Haible  <bruno@clisp.org>
57335
57336         Make fflush after ungetc work on BSD platforms.
57337         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57338         * tests/test-fflush2.c: New file.
57339         * tests/test-fflush2.sh: New file.
57340         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57341         tests/test-fflush2.c.
57342         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57343         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57344
57345 2008-03-06  Eric Blake  <ebb9@byu.net>
57346
57347         Likewise for ftello.
57348         * modules/ftello (Dependencies): Add extensions.
57349         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57350
57351 2008-03-06  Bruno Haible  <bruno@clisp.org>
57352
57353         * modules/fseeko (Dependencies): Add extensions.
57354         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57355         Needed on glibc systems.
57356
57357 2008-03-06  Bruno Haible  <bruno@clisp.org>
57358
57359         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57360         email address.
57361         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57362
57363 2008-03-06  Bruno Haible  <bruno@clisp.org>
57364
57365         * users.txt: Add libgnupdf.
57366
57367 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57368
57369         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57370         (Header File Substitutes, Function Substitutes,
57371         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57372         (Build robot for gnulib): Fix typo.
57373
57374 2008-03-06  Bruno Haible  <bruno@clisp.org>
57375
57376         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57377         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57378
57379 2008-03-06  Bruno Haible  <bruno@clisp.org>
57380
57381         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57382         * doc/gnulib.texi: Include it.
57383
57384 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57385
57386         * modules/func (License): Change license to unlimited; there was
57387         no LGPL parts in the module anyway.
57388
57389 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57390
57391         * modules/__func__: Renamed to modules/func.
57392         * modules/__func__-tests: Renamed to modules/func-tests.
57393         * tests/test-__func__.c: Renamed to tests/test-func.c.
57394         * m4/__func__.m4: Renamed to m4/func.m4.
57395         * doc/gnulib.texi (__func__): Section renamed to func.
57396         Suggested by Eric Blake <ebb9@byu.net>.
57397
57398 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57399
57400         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57401         about __func__.  Make example self-contained.  Suggested by Eric
57402         Blake <ebb9@byu.net>.
57403
57404         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57405         Suggested by Eric Blake <ebb9@byu.net>.
57406
57407 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57408
57409         * modules/__func__: New file.
57410         * modules/__func__-tests: New file.
57411         * tests/test-__func__.c: New file.
57412         * m4/__func__.m4: New file.
57413         * doc/gnulib.texi (__func__): Document __func__ module.
57414
57415 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57416
57417         * modules/byteswap (License): Re-license as LGPLv2+.
57418
57419 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57420
57421         * doc/Makefile: Add pdf target.
57422
57423 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57424
57425         * modules/inline (License): Use 'unlimited', since there are only
57426         *.m4 files in this module.
57427
57428 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57429             Bruno Haible  <bruno@clisp.org>
57430
57431         Add support for HP C 7.1 on OpenVMS 8.3.
57432         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57433
57434 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57435
57436         Update VMS specifics.
57437         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57438
57439 2008-03-02  Jim Meyering  <meyering@redhat.com>
57440
57441         Remove the last dependency on the "free" module.
57442         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57443         Reported by Bob Proulx.
57444
57445         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57446
57447         Remove useless "if" tests before free.  Deprecate "free" module.
57448         * doc/posix-functions/free.texi: Mention that this
57449         module is no longer useful.
57450         * modules/free (Notice): Say this module is obsolete.
57451         * modules/readutmp (Depends-on): Remove free.
57452         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57453         * lib/putenv.c (putenv): Likewise.
57454         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57455         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57456         * tests/test-c-strcasestr.c (main): Likewise.
57457         * tests/test-c-strstr.c (main): Likewise.
57458         * tests/test-mbscasestr1.c (main): Likewise.
57459         * tests/test-mbscasestr2.c (main): Likewise.
57460         * tests/test-mbsstr1.c (main): Likewise.
57461         * tests/test-mbsstr2.c (main): Likewise.
57462         * tests/test-memmem.c (main): Likewise.
57463         * tests/test-strcasestr.c (main): Likewise.
57464         * tests/test-striconv.c (main): Likewise.
57465         * tests/test-striconveh.c (main): Likewise.
57466         * tests/test-striconveha.c (main): Likewise.
57467         * tests/test-strstr.c (main): Likewise.
57468
57469         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57470
57471         bootstrap: sync from coreutils again
57472         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57473
57474 2008-03-01  Jim Meyering  <meyering@redhat.com>
57475
57476         bootstrap: sync from coreutils
57477         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57478         also when the target doesn't exist.
57479
57480 2008-03-01  Eric Blake  <ebb9@byu.net>
57481
57482         Fix bugs in last patch.
57483         * lib/memchr2.c (memchr2): Fix typo.
57484         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57485         extension.
57486         Reported by Bruce Korb.
57487
57488         New module 'memchr2'.
57489         * modules/memchr2: New file.
57490         * modules/memchr2-tests: Likewise.
57491         * lib/memchr2.h: Likewise.
57492         * lib/memchr2.c: Likewise, based on memchr.c.
57493         * tests/test-memchr2.c: New test.
57494         * MODULES.html.sh (String handling): Add memchr2.
57495
57496 2008-02-29  Bruno Haible  <bruno@clisp.org>
57497
57498         * modules/freadseek-tests: New file.
57499         * tests/test-freadseek.sh: New file.
57500         * tests/test-freadseek.c: New file.
57501
57502         New module 'freadseek'.
57503         * modules/freadseek: New file.
57504         * lib/freadseek.h: New file.
57505         * lib/freadseek.c: New file.
57506         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57507
57508 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57509
57510         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57511         wydawca.
57512
57513         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57514         program_invocation_name and program_invocation_short_name are
57515         present.
57516
57517 2008-02-28  Bruno Haible  <bruno@clisp.org>
57518
57519         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57520         * tests/test-freadptr.sh: Also test non-seekable stdin.
57521
57522 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57523
57524         * build-aux/bootstrap (source_base, m4_base)
57525         (doc_base, tests_base): New variables.
57526         (gnulib_tool_options): Do not hardcode base directories, use
57527         the above variables instead.
57528
57529 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57530
57531         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57532
57533 2008-02-28  Bruno Haible  <bruno@clisp.org>
57534
57535         * modules/freadptr-tests: New file.
57536         * tests/test-freadptr.sh: New file.
57537         * tests/test-freadptr.c: New file.
57538
57539         New module 'freadptr'.
57540         * modules/freadptr: New file.
57541         * lib/freadptr.h: New file.
57542         * lib/freadptr.c: New file.
57543         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57544
57545 2008-02-26  Karl Berry  <karl@freefriends.org>
57546
57547         Sync from Libtool:
57548         * libltdl/argz.c (argz_add, argz_count): New functions.
57549         * libltdl/argz.in.h: Declare them.
57550         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57551
57552 2008-02-22  Bruno Haible  <bruno@clisp.org>
57553
57554         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57555         is a pointer type.  Needed for HP-UX 10.
57556         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57557         * doc/posix-functions/gmtime_r.texi: Likewise.
57558         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57559
57560 2008-02-24  Bruno Haible  <bruno@clisp.org>
57561
57562         * modules/environ-tests: New file.
57563         * tests/test-environ.c: New file.
57564
57565         New module 'environ'.
57566         * modules/environ: New file.
57567         * lib/unistd.in.h (environ): New declaration.
57568         * m4/environ.m4: New file.
57569         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57570         after use.
57571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57572         HAVE_DECL_ENVIRON.
57573         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57574         HAVE_DECL_ENVIRON.
57575         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57576         wrong claim that 'environ' is missing on some systems.
57577         * modules/execute (Depends-on): Add environ.
57578         * lib/execute.c (environ): Remove fallback declaration.
57579         * modules/pipe (Depends-on): Add environ.
57580         * lib/pipe.c (environ): Remove fallback declaration.
57581         * modules/setenv (Depends-on): Add environ.
57582         * lib/setenv.c (environ): Remove fallback declaration.
57583         * modules/unsetenv (Depends-on): Add environ.
57584         * lib/unsetenv.c (environ): Remove fallback declaration.
57585         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57586         m4/environ.m4.
57587         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57588         (gl_PREREQ_UNSETENV): Likewise.
57589
57590 2008-02-24  Bruno Haible  <bruno@clisp.org>
57591
57592         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57593
57594 2008-02-20  Bob Proulx  <bob@proulx.com>
57595
57596         Enable use of older two part flavor 'git describe'.
57597         * build-aux/git-version-gen: If using the older two part flavor of
57598         git version then recreate the third part now present in the
57599         newer three part flavor of git describe.
57600
57601 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57602
57603         * lib/fts.c (fts_build): Typo correction to comment.
57604
57605 2008-02-17  Bruno Haible  <bruno@clisp.org>
57606
57607         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57608         generating no-op conflicts.
57609
57610 2008-02-17  Bruno Haible  <bruno@clisp.org>
57611
57612         Speed up by 10%.
57613         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57614         result_entries, rather than an index-based loop.
57615
57616 2008-02-17  Bruno Haible  <bruno@clisp.org>
57617
57618         Speed up by 25%.
57619         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57620         'hashcode_cached'.
57621         (entry_create): New function.
57622         (entry_hashcode): Use the cached hashcode if possible.
57623         (read_changelog_file, try_split_merged_entry): Use entry_create.
57624
57625 2008-02-17  Bruno Haible  <bruno@clisp.org>
57626
57627         Speed up from O(n^2) to O(n) for long ChangeLog files.
57628         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57629         (read_changelog_file): Change implementation of entries_reversed list
57630         to rbtreehash.
57631         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57632
57633 2008-02-17  Bruno Haible  <bruno@clisp.org>
57634
57635         New option --split-merged-entry.
57636         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57637         (find_paragraph_end, try_split_merged_entry): New functions.
57638         (long_options): Add option --split-merged-entry.
57639         (usage): Document option --split-merged-entry.
57640         (main): Implement option --split-merged-entry.
57641         Reported by Eric Blake.
57642
57643 2008-02-17  Bruno Haible  <bruno@clisp.org>
57644
57645         * lib/git-merge-changelog.c: Include c-strstr.h.
57646         (main): Support the "git pull --rebase" situation.
57647         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57648         Reported by Eric Blake.
57649
57650 2008-02-16  Eric Blake  <ebb9@byu.net>
57651
57652         Avoid doubling \ in common case of "c-maybe" quoting style.
57653         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57654         eliding outer quotes.
57655         * lib/quotearg.h: Document this.
57656         * tests/test-quotearg.c (result_strings, inputs, results_g)
57657         (flag_results, locale_results): Test it by adding a new string to
57658         each test group.
57659         (compare_strings): Test new string.
57660
57661 2008-02-13  Eric Blake  <ebb9@byu.net>
57662
57663         Avoid trigraph quoting in default output.
57664         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57665         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57666         unless explicitly requested.
57667         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57668
57669 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57670
57671         Don't rely on signed integer overflowing to negative value.
57672         * lib/getugroups.c (getugroups): Include <limits.h>.
57673         Instead, compare against INT_MAX, and increment only if the test passes.
57674
57675 2008-02-13  Jim Meyering  <meyering@redhat.com>
57676         and Eric Blake  <ebb9@byu.net>
57677
57678         Avoid shadowing warning and compile errors on Linux.
57679         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57680         forwarding macros on Linux.
57681         (dcgettext): Define a stub, for Linux.
57682         (results_g, main): Avoid warnings.
57683
57684 2008-02-12  Eric Blake  <ebb9@byu.net>
57685
57686         Silence warning in last patch.
57687         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57688
57689         Quotearg part 4: add tests, fix c-maybe colon quoting.
57690         * lib/quotearg.h: Improve documentation.
57691         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57692         escapes when adding outer quotes.  When quoting trigraphs, use
57693         valid C notation.  When quoting NUL, omit extra characters if next
57694         character is not digit.  Alter prototype.
57695         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57696         callers.
57697         * modules/quotearg-tests: New module.
57698         * tests/test-quotearg.c: New test.
57699
57700 2008-02-07  Eric Blake  <ebb9@byu.net>
57701
57702         Quotearg part 3: add flag to control outer quote elision.
57703         * lib/quotearg.h (c_maybe_quoting_style): New style.
57704         (enum quoting_flags): Better documentation of flags.
57705         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57706         c-maybe style.
57707         (quotearg_buffer_restyled): Handle new flag to elide outer
57708         quotes.
57709
57710         Quotearg part 2: add flag that can control NUL elision.
57711         * lib/quotearg.h (set_quoting_flags): New prototype.
57712         * lib/quotearg.c (struct quoting_options): Add flag field.
57713         (set_quoting_flags): New function.
57714         (quotearg_buffer_restyled): Add flags parameter.
57715         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57716         (quotearg_n_options): Set the flag, since length cannot be
57717         returned.
57718         (quoting_options_from_style): Default flags correctly.
57719
57720         Quotearg part 1: more wrappers, restore quotearg_char state.
57721         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57722         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57723         (quotearg_colon_mem): New wrappers.
57724         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57725         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57726         functions.
57727         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57728         (quotearg_colon_mem): New functions.
57729
57730 2008-02-11  Bruno Haible  <bruno@clisp.org>
57731
57732         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57733         library in the current directory: it does not work with parallel make.
57734         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57735
57736 2008-02-11  Bruno Haible  <bruno@clisp.org>
57737
57738         * .gitattributes: New file.
57739
57740 2008-02-11  Jim Meyering  <meyering@redhat.com>
57741
57742         useless-if-before-free: Fix reversed exit values.
57743         * build-aux/useless-if-before-free: Use correct values
57744         for EXIT_MATCH and EXIT_NO_MATCH.
57745
57746         * build-aux/useless-if-before-free: Close stdout carefully.
57747
57748 2008-02-10  Bruno Haible  <bruno@clisp.org>
57749
57750         New module 'git-merge-changelog'.
57751         * modules/git-merge-changelog: New file.
57752         * lib/git-merge-changelog.c: New file.
57753
57754 2008-02-10  Jim Meyering  <meyering@redhat.com>
57755
57756         useless-if-before-free: New option: --list (-l).
57757
57758         useless-if-before-free: Don't exit immediately upon open failure.
57759         * build-aux/useless-if-before-free: Exit 2 for errors.
57760         Upon failure to open a file, don't exit immediately.
57761         Rather, just warn and continue with any remaining files.
57762
57763 2008-02-10  Bruno Haible  <bruno@clisp.org>
57764
57765         New abstract list operation 'node_set_value'.
57766         * lib/gl_list.h (gl_list_node_set_value): New function.
57767         (struct gl_list_implementation): New field node_set_value.
57768         * lib/gl_list.c (gl_list_node_set_value): New function.
57769         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57770         (gl_array_list_implementation): Update.
57771         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57772         (gl_carray_list_implementation): Update.
57773         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57774         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57775         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57776         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57777         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57778         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57779         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57780         Update.
57781         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57782         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57783         (gl_sublist_list_implementation): Update.
57784
57785 2008-02-10  Bruno Haible  <bruno@clisp.org>
57786
57787         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57788         Needed when ELEMENT is #defined to 'some_type *'.
57789
57790 2008-02-10  Jim Meyering  <meyering@redhat.com>
57791
57792         New script and module: useless-if-before-free
57793         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57794         * build-aux/useless-if-before-free: New file.
57795         * modules/useless-if-before-free: New file.
57796
57797         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57798
57799         xstrtol_error: Fix typo.
57800         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57801         s/exit_failure/exit_status/.
57802
57803 2008-02-09  Jim Meyering  <meyering@redhat.com>
57804
57805         New script and module: gitlog-to-changelog
57806         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57807         * modules/gitlog-to-changelog: New file.
57808         * build-aux/gitlog-to-changelog: New file.
57809
57810 2008-02-08  Jim Meyering  <meyering@redhat.com>
57811
57812         Avoid two "parameter unused" warnings.
57813         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57814         Mark "st" as used.
57815
57816         Use "git COMMAND", not "git-COMMAND".
57817         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57818         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57819         * build-aux/git-version-gen: Use "git status", not "git-status".
57820
57821 2008-02-07  Bruno Haible  <bruno@clisp.org>
57822
57823         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57824         Avoids a crash on Windows Vista.
57825         Reported by Adam Strzelecki <ono@java.pl> via
57826         Simon Josefsson <simon@josefsson.org>.
57827
57828 2008-02-06  Bruno Haible  <bruno@clisp.org>
57829
57830         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57831         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57832         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57834         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57835         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57836         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57837         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57838         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57839         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57840         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57841         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57842         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57843         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57844         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57845         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57846         left-adjust flag.
57847         * tests/test-snprintf-posix.h (test_function): Likewise.
57848         * tests/test-sprintf-posix.h (test_function): Likewise.
57849         * tests/test-vasprintf-posix.c (test_function): Likewise.
57850         * doc/posix-functions/fprintf.texi: Update.
57851         * doc/posix-functions/printf.texi: Update.
57852         * doc/posix-functions/snprintf.texi: Update.
57853         * doc/posix-functions/sprintf.texi: Update.
57854         * doc/posix-functions/vfprintf.texi: Update.
57855         * doc/posix-functions/vprintf.texi: Update.
57856         * doc/posix-functions/vsnprintf.texi: Update.
57857         * doc/posix-functions/vsprintf.texi: Update.
57858         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57859
57860 2008-02-06  Bruno Haible  <bruno@clisp.org>
57861
57862         Fix bug introduced on 2008-01-26.
57863         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57864
57865 2008-02-06  Bruno Haible  <bruno@clisp.org>
57866
57867         Fix bug introduced on 2007-06-10.
57868         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57869         !NEED_PRINTF_FLAG_ZERO.
57870
57871 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57872
57873         getloadavg: use libperfstat on AIX5
57874         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57875
57876 2008-02-03  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/diffseq.h: Add comments about required #includes.
57879         Reported by Michael Biggs <gnulib@doubleplum.net>.
57880
57881 2008-02-01  Bruno Haible  <bruno@clisp.org>
57882
57883         * users.txt: Add gnuit.
57884
57885 2008-01-31  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/md4.c (set_uint32): Mark as inline.
57888         * lib/md5.c (set_uint32): Likewise.
57889         * lib/sha1.c (set_uint32): Likewise.
57890         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57891         * m4/md5.m4 (gl_MD5): Likewise.
57892         * m4/sha1.m4 (gl_SHA1): Likewise.
57893
57894 2008-01-31  Jim Meyering  <meyering@redhat.com>
57895
57896         Use "sizeof VAR", rather than a literal "4".
57897         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57898         * lib/md4.c (md4_read_ctx): Likewise.
57899         * lib/sha1.c (sha1_read_ctx): Likewise.
57900
57901 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57902
57903         * tests/test-sha1.c: New file, based on test-md5.c.
57904
57905         * modules/crypto/sha1-tests: New file.
57906
57907 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57908
57909         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57910
57911 2008-01-31  Jim Meyering  <meyering@redhat.com>
57912
57913         Prefer "sizeof v" over the equivalent "4".
57914         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57915         * lib/md5.c (set_uint32): Likewise.
57916         * lib/sha1.c (set_uint32): Likewise.
57917
57918 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57919
57920         * lib/sha1.c (set_uint32): Mark function as static.
57921
57922 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57923
57924         md2: clarify comments to say that alignment is not required.
57925         * lib/md2.h: Remove warning about alignment in comment.
57926         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57927         never been required.
57928
57929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57930
57931         md4: adapt alignment constraint fix from sha1.
57932         * lib/md4.c (set_uint32): New function, from sha1.c
57933         (md4_read_ctx): Use it.
57934         (md4_finish_ctx): Doc fix.
57935         * lib/md4.h: Doc fix.
57936
57937 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57938
57939         md5: adapt alignment constraint fix from sha1.
57940         * lib/md5.c (set_uint32): New function, from sha1.c
57941         (md5_read_ctx): Use it.
57942         (md5_finish_ctx): Doc fix.
57943         * lib/md5.h: Doc fix.
57944
57945 2008-01-30  Peter Palfrader  <weasel@debian.org>
57946
57947         sha1: remove the result buffer alignment constraint
57948         * lib/sha1.c (set_uint32): New function.
57949         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57950         constraint.
57951         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57952         * lib/sha1.h: Likewise.
57953
57954 2008-01-30  Andreas Schwab  <schwab@suse.de>
57955             Bruno Haible  <bruno@clisp.org>
57956
57957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57958         correct definition of LDBL_MIN_EXP.
57959
57960 2008-01-30  Karl Berry  <karl@gnu.org>
57961
57962         * config/srclist-update: try to preserve x bit on updates.
57963         * config/srclistvars.sh: update for karl.
57964
57965 2008-01-29  Jim Meyering  <meyering@redhat.com>
57966
57967         vasnprintf.c: Avoid warning about unused label
57968         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57969         "overflow" label definition and associated code with the
57970         same cpp condition that guards the sole use of that label.
57971
57972 2008-01-26  Bruno Haible  <bruno@clisp.org>
57973
57974         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57975         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57976         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57977         * lib/isnanl-nolibm.h (isnanl): Likewise.
57978         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57979
57980 2008-01-26  Bruno Haible  <bruno@clisp.org>
57981
57982         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57983         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57984
57985 2008-01-26  Bruno Haible  <bruno@clisp.org>
57986
57987         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57988         GCC >= 4.0 built-in.
57989         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57990
57991 2008-01-26  Bruno Haible  <bruno@clisp.org>
57992
57993         Rename isnan, applicable to 'double' only, to isnand.
57994         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57995         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57996         (configure.ac): Update.
57997         (Include): Replace "isnan.h" with "isnand.h".
57998         * m4/isnand.m4: Renamed from m4/isnan.m4.
57999         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58000         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58001         instead of isnan.c.
58002         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58003         instead of HAVE_ISNAN_IN_LIBC.
58004         (isnand): Renamed from isnan.
58005         * lib/isnand.c: New file.
58006         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58007         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58008         (Makefile.am): Update.
58009         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58010         Include isnand.h instead of isnan.h.
58011         (main): Test isnand instead of isnan.
58012         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58013         isnan-nolibm.
58014         * modules/frexp (Depends-on): Likewise.
58015         * modules/frexp-tests (Depends-on): Likewise.
58016         * modules/frexp-nolibm (Depends-on): Likewise.
58017         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58018         * modules/isfinite (Depends-on): Likewise.
58019         * modules/round-tests (Depends-on): Likewise.
58020         * modules/signbit (Depends-on): Likewise.
58021         * modules/signbit-tests (Depends-on): Likewise.
58022         * modules/snprintf-posix (Depends-on): Likewise.
58023         * modules/sprintf-posix (Depends-on): Likewise.
58024         * modules/trunc-tests (Depends-on): Likewise.
58025         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58026         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58027         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58028         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58029         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58030         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58031         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58032         * modules/vasnprintf-posix (Depends-on): Likewise.
58033         * modules/vasprintf-posix (Depends-on): Likewise.
58034         * modules/vfprintf-posix (Depends-on): Likewise.
58035         * modules/vsnprintf-posix (Depends-on): Likewise.
58036         * modules/vsprintf-posix (Depends-on): Likewise.
58037         * lib/frexp.c: Include isnand.h instead of isnan.h.
58038         (ISNAN): Set to isnand instead of isnan.
58039         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58040         (gl_isfinited): Use isnand instead of isnan.
58041         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58042         (gl_signbitd): Use isnand instead of isnan.
58043         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58044         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58045         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58046         (main): Use isnand instead of isnan.
58047         * tests/test-round1.c: Include isnand.h.
58048         (main): Use isnand instead of isnan.
58049         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58050         (ISNAN): Set to isnand instead of isnan.
58051         * tests/test-trunc1.c: Include isnand.h.
58052         (main): Use isnand instead of isnan.
58053         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58054         (equal): Use isnand instead of isnan.
58055         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58056         isnand-nolibm.
58057         * NEWS: Mention the change.
58058
58059 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58060             Bruno Haible  <bruno@clisp.org>
58061
58062         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58063         the GCC builtins for signbits are present and set
58064         REPLACE_SIGNBIT_USING_GCC if so.
58065         * lib/math.in.h (signbit): Define using GCC builtins if
58066         REPLACE_SIGNBIT_USING_GCC is set.
58067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58068         REPLACE_SIGNBIT_USING_GCC.
58069         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58070
58071 2008-01-25  Jim Meyering  <meyering@redhat.com>
58072
58073         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58074         * lib/poll.c: Include <config.h>, not "config.h".
58075         * tests/test-getaddrinfo.c: Likewise.
58076
58077 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58078
58079         * modules/sockets-tests: New file.
58080
58081 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58082
58083         * modules/sockets: New module, can be used to call WSA_Startup and
58084         WSA_Cleanup when needed.
58085
58086         * lib/sockets.h, lib/sockets.c: New files.
58087
58088         * m4/sockets.m4: New file.
58089
58090         * tests/test-sockets.c: New file.
58091
58092 2008-01-19  Bruno Haible  <bruno@clisp.org>
58093
58094         * doc/posix-headers: Renamed from doc/headers.
58095         * doc/posix-functions: Renamed from doc/functions.
58096         * doc/gnulib.texi: Update.
58097
58098 2008-01-19  Bruno Haible  <bruno@clisp.org>
58099
58100         * doc/glibc-functions/strcasestr.texi: Include contents of
58101         doc/functions/strcasestr.texi, fixing the list of platforms.
58102         * doc/functions/strcasestr.texi: Remove file.
58103
58104 2008-01-19  Bruno Haible  <bruno@clisp.org>
58105
58106         * doc/glibc-functions/memmem.texi: Include contents of
58107         doc/functions/memmem.texi.
58108         * doc/functions/memmem.texi: Remove file.
58109
58110 2008-01-18  Bruno Haible  <bruno@clisp.org>
58111
58112         * doc/glibc-functions/*.texi: New files.
58113         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58114         to use the new files.
58115
58116 2008-01-17  Bruno Haible  <bruno@clisp.org>
58117
58118         * tests/test-gethostname.c (main): Fix printf statement.
58119
58120 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58121
58122         * modules/gethostname-tests: New file.
58123
58124         * tests/test-gethostname.c: New file.
58125
58126 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58127
58128         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58129         used by the UNAME case.  Reported by Bruno Haible
58130         <bruno@clisp.org>.
58131
58132 2008-01-17  Eric Blake  <ebb9@byu.net>
58133
58134         Convert c-strcasestr to be more efficient.
58135         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58136         (Depends-on): Add c-strcase, remove malloca, strnlen.
58137         * tests/test-c-strcasestr.c (main): Enhance test.
58138         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58139
58140 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58141
58142         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58143         Use it in creating po/Makevars.
58144
58145 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58146
58147         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58148         Applications that requires it should initialize libgcrypt
58149         manually.
58150
58151 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58152
58153         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58154
58155 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58156
58157         Fix problem with getdate on mingw32 reported by Simon Josefsson
58158         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58159         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58160         tzname", when deciding whether to declare tzname.
58161         * lib/strftime.c (tzname): Likewise.
58162
58163 2008-01-15  Bruno Haible  <bruno@clisp.org>
58164
58165         Work around a MacOS X 10.5 bug in frexpl().
58166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58167         * doc/functions/frexpl.texi: Document the bug.
58168         Reported by Elias Pipping <pipping@gentoo.org>.
58169
58170 2008-01-14  Eric Blake  <ebb9@byu.net>
58171
58172         Touch up previous patch.
58173         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58174         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58175
58176         Convert strcasestr module to use Two-Way algorithm.
58177         * modules/strcasestr-simple: New module, based on the old
58178         strcasestr, but with Two-Way rather than KMP.
58179         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58180         * lib/string.in.h (rpl_strcasestr): Declare.
58181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58182         performance.
58183         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58184         * modules/string (Makefile.am): Support strcasestr.
58185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58186         * modules/strcasestr-tests (Depends-on): Check for alarm.
58187         * tests/test-strcasestr.c: Augment test.
58188         * lib/str-two-way.h: Clean up stray macro.
58189         * NEWS: Document new module.
58190         * MODULES.html.sh (string handling): Likewise.
58191         * doc/functions/strcasestr.texi: New file.
58192         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58193         here, since it is not a POSIX function.
58194
58195 2008-01-14  Colin Watson  <cjwatson@debian.org>
58196             Bruno Haible  <bruno@clisp.org>
58197
58198         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58199         works fine; if not, set REPLACE_STRSIGNAL.
58200         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58201         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58202         REPLACE_STRSIGNAL.
58203         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58204         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58205         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58206
58207 2008-01-14  Bruno Haible  <bruno@clisp.org>
58208
58209         * modules/strsignal (Include): Change to <string.h>.
58210
58211 2008-01-14  Colin Watson  <cjwatson@debian.org>
58212
58213         * modules/argp (Notice): Add a notice recommending to change
58214         XGETTEXT_OPTIONS.
58215         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58216
58217 2008-01-13  Colin Watson  <cjwatson@debian.org>
58218
58219         * modules/strsignal-tests: New file.
58220         * tests/test-strsignal.c: New file.
58221
58222         * lib/strsignal.c: New file, from glibc with modifications.
58223         * lib/siglist.h: New file, from glibc with modifications.
58224         * lib/string.in.h (strsignal): New declaration.
58225         * m4/strsignal.m4: New file.
58226         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58227         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58228         * modules/strsignal: New file.
58229         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58230         HAVE_DECL_STRSIGNAL.
58231
58232 2008-01-13  Bruno Haible  <bruno@clisp.org>
58233
58234         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58235         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58236         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58237         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58238
58239 2008-01-13  Bruno Haible  <bruno@clisp.org>
58240
58241         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58242         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58243         * lib/argp.h (__attribute__): Likewise.
58244         * lib/c-stack.c (__attribute__): Likewise.
58245         * lib/error.h (__attribute__): Likewise.
58246         * lib/fts.c (__attribute__): Likewise.
58247         * lib/openat.h (__attribute__): Likewise.
58248         * lib/stdio.in.h (__attribute__): Likewise.
58249         * lib/string.in.h (__attribute__): Likewise.
58250         * lib/utimens.c (__attribute__): Likewise.
58251         * lib/vasnprintf.h (__attribute__): Likewise.
58252         * lib/xalloc.h (__attribute__): Likewise.
58253         * lib/xprintf.h (__attribute__): Likewise.
58254         * lib/xstrtol.h (__attribute__): Likewise.
58255         * lib/xvasprintf.h (__attribute__): Likewise.
58256
58257 2008-01-12  Bruno Haible  <bruno@clisp.org>
58258
58259         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58260         * doc/glibc-headers/a.out.texi: New file.
58261         * doc/glibc-headers/aliases.texi: New file.
58262         * doc/glibc-headers/alloca.texi: New file.
58263         * doc/glibc-headers/ar.texi: New file.
58264         * doc/glibc-headers/argp.texi: New file.
58265         * doc/glibc-headers/argz.texi: New file.
58266         * doc/glibc-headers/byteswap.texi: New file.
58267         * doc/glibc-headers/crypt.texi: New file.
58268         * doc/glibc-headers/endian.texi: New file.
58269         * doc/glibc-headers/envz.texi: New file.
58270         * doc/glibc-headers/err.texi: New file.
58271         * doc/glibc-headers/error.texi: New file.
58272         * doc/glibc-headers/execinfo.texi: New file.
58273         * doc/glibc-headers/fpu_control.texi: New file.
58274         * doc/glibc-headers/fstab.texi: New file.
58275         * doc/glibc-headers/fts.texi: New file.
58276         * doc/glibc-headers/getopt.texi: New file.
58277         * doc/glibc-headers/ieee754.texi: New file.
58278         * doc/glibc-headers/ifaddrs.texi: New file.
58279         * doc/glibc-headers/libintl.texi: New file.
58280         * doc/glibc-headers/mcheck.texi: New file.
58281         * doc/glibc-headers/mntent.texi: New file.
58282         * doc/glibc-headers/obstack.texi: New file.
58283         * doc/glibc-headers/paths.texi: New file.
58284         * doc/glibc-headers/printf.texi: New file.
58285         * doc/glibc-headers/pty.texi: New file.
58286         * doc/glibc-headers/resolv.texi: New file.
58287         * doc/glibc-headers/shadow.texi: New file.
58288         * doc/glibc-headers/sysexits.texi: New file.
58289         * doc/glibc-headers/ttyent.texi: New file.
58290
58291 2008-01-12  Jim Meyering  <meyering@redhat.com>
58292
58293         announce-gen: emit Gnulib's git-based version string.
58294         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58295         New option --gnulib-version=V, where V is expected to be
58296         the output of running git describe in the gnulib directory.
58297         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58298         not useful, and plan to stop publishing an xdelta file with each
58299         coreutils release.
58300
58301         * build-aux/announce-gen: Also check for lzma-compressed files.
58302
58303 2008-01-11  Bruno Haible  <bruno@clisp.org>
58304
58305         * tests/test-memmem.c (main): Increase maximum allowed time.
58306         * tests/test-strstr.c (main): Likewise.
58307
58308 2008-01-11  Bruno Haible  <bruno@clisp.org>
58309
58310         * doc/functions/memmem.texi: Add more precisions about platforms.
58311         * doc/functions/strstr.texi: Likewise.
58312
58313 2008-01-10  Eric Blake  <ebb9@byu.net>
58314
58315         * m4/strstr.m4: Delete cruft from copy-n-paste.
58316         Reported by Bruno Haible.
58317
58318 2008-01-10  Bruno Haible  <bruno@clisp.org>
58319
58320         Make c-strstr rely on strstr.
58321         * lib/c-strstr.c: Don't include str-kmp.h.
58322         (c_strstr): Define in terms of strstr.
58323         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58324         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58325
58326 2008-01-10  Bruno Haible  <bruno@clisp.org>
58327
58328         * doc/gnulib.texi (String Functions in C Locale): New section.
58329         * doc/c-ctype.texi: New file.
58330         * doc/c-strcase.texi: New file.
58331         * doc/c-strcaseeq.texi: New file.
58332         * doc/c-strcasestr.texi: New file.
58333         * doc/c-strstr.texi: New file.
58334         * doc/c-strtod.texi: New file.
58335         * doc/c-strtold.texi: New file.
58336
58337 2008-01-10  Eric Blake  <ebb9@byu.net>
58338
58339         * lib/relocatable.h: Fix a comment.
58340
58341 2008-01-10  Eric Blake  <ebb9@byu.net>
58342
58343         Share two-way algorithm.
58344         * lib/str-two-way.h: New file, merged from...
58345         * lib/memmem.c: ...here...
58346         * lib/strstr.c: ...and here.
58347         * modules/memmem (Files): Use it.
58348         * modules/strstr (Files): Likewise.
58349
58350         Avoid quadratic strstr implementations.
58351         * lib/strstr.c: New file.
58352         * m4/strstr.m4: Likewise.
58353         * modules/strstr: Likewise.
58354         * modules/strstr-tests: Likewise.
58355         * tests/test-strstr.c: Likewise.
58356         * lib/string.in.h (rpl_strstr): Declare.
58357         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58359         * modules/string (Makefile.am): Likewise.
58360         * MODULES.html.sh (string handling): Mention new module.
58361         * doc/functions/strstr.texi (strstr): Document the bug.
58362
58363 2008-01-10  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/relocatable.h (relocate): State whether result is freshly
58366         allocated or not.
58367         * lib/relocatable.c (relocate): Return a freshly allocated string
58368         instead of a pointer to a privately held string.
58369         Reported by Sylvain Beucler <beuc@gnu.org>.
58370
58371 2008-01-10  Colin Watson  <cjwatson@debian.org>
58372
58373         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58374         s/S_ISNLK/S_ISLNK/.
58375
58376 2008-01-09  Bruno Haible  <bruno@clisp.org>
58377
58378         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58379         and other files.
58380         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58381         if it's only a guess.
58382         * modules/memmem: Simplify by depending on memmem-simple.
58383
58384 2008-01-09  Bruno Haible  <bruno@clisp.org>
58385
58386         Work around OpenBSD 4.0 tdelete() bug.
58387         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58388         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58389         macros and don't redefine the enum values.
58390         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58391         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58392         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58393
58394 2008-01-09  Bruno Haible  <bruno@clisp.org>
58395
58396         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58397         (main): Don't perform the tests if setlocale did not install a UTF-8
58398         locale. Needed on OpenBSD 4.0.
58399         * modules/wcwidth-tests (Depends-on): Add localcharset.
58400
58401 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58402
58403         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58404         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58405         * NEWS: announce this.
58406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58407
58408 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58409         and Eric Blake  <ebb9@byu.net>
58410
58411         Add memmem-simple module.
58412         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58413         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58414         * modules/memmem-simple: New file.
58415         * modules/memmem (Description): Tweak.
58416         * MODULES.html.sh (string handling): Mention new module.
58417         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58418         addressed by memmem-simple.
58419         * NEWS: Document the difference.
58420
58421 2008-01-09  Eric Blake  <ebb9@byu.net>
58422
58423         Give gcc some memmem optimization hints.
58424         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58425         (strcasestr): Declare as pure.
58426         * modules/memmem (Maintainer): Claim my implementation.
58427
58428 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58429
58430         Support AIX 6.1 and higher.
58431         * build-aux/config.libpath: Likewise.
58432         * build-aux/config.rpath: Likewise.
58433
58434 2008-01-08  Jim Meyering  <meyering@redhat.com>
58435             Bruno Haible  <bruno@clisp.org>
58436
58437         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58438         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58439         Reported by Peter Fales in
58440         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58441
58442 2008-01-08  Bruno Haible  <bruno@clisp.org>
58443
58444         * modules/unictype/category-of (Depends-on): Add
58445         unictype/category-none.
58446         * modules/unictype/category-and-tests (Depends-on): Add
58447         unictype/category-{L,N,Lu,Nd}.
58448         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58449         * modules/unictype/category-or-tests (Depends-on): Add
58450         unictype/category-{L,N}.
58451         * modules/unictype/category-name-tests (Depends-on): Add
58452         unictype/category-{Z,Nl}.
58453         Reported by Simon Josefsson.
58454
58455 2008-01-08  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58458         convention better.
58459         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58460         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58461         Reported by Peter Miller <millerp@canb.auug.org.au>.
58462
58463 2008-01-08  Eric Blake  <ebb9@byu.net>
58464
58465         Rewrite memmem to guarantee linear complexity without malloc.
58466         * lib/memmem.c (memmem): Use Two-Way rather than
58467         Knuth-Morris-Pratt, to allow O(1) space usage.
58468         (critical_factorization, two_way_short_needle)
58469         (two_way_long_needle): New functions.
58470         (knuth_morris_pratt): Delete.
58471         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58472         Add stdint.
58473         * tests/test-memmem.c (main): Add tests for periodic needle and
58474         sublinear performance.
58475         * doc/functions/memmem.texi (memmem): Document other deficiencies
58476         in cygwin and older glibc.
58477
58478 2008-01-08  Bruno Haible  <bruno@clisp.org>
58479
58480         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58481         augmentation.
58482
58483 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58484
58485         Add a configure time option: --disable-acl.
58486         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58487         AC_ARG_ENABLE(acl).
58488
58489 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58490
58491         * tests/test-localename.c: Don't include obsolete "setenv.h".
58492
58493         * modules/localename-tests (Depends-on): Need unsetenv.
58494
58495 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58496
58497         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58498
58499 2008-01-06  Colin Watson  <cjwatson@debian.org>
58500
58501         * users.txt: Add man-db.
58502
58503 2008-01-07  Bruno Haible  <bruno@clisp.org>
58504
58505         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58506         previous section name.
58507
58508 2008-01-07  Bruno Haible  <bruno@clisp.org>
58509
58510         * lib/progname.c (set_program_name): Don't strip off a leading
58511         "lt-" prefix outside a .libs directory.
58512         Suggested by Paul Eggert.
58513
58514 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58515             Bruno Haible  <bruno@clisp.org>
58516
58517         Improve memory cleanup in 'relocatable' module.
58518         * lib/relocatable.h (compute_curr_prefix): Change return type to
58519         'char *'.
58520         * lib/relocatable.c (compute_curr_prefix): Change return type to
58521         'char *'. Free curr_installdir after use.
58522         (relocate): Free curr_prefix_better after use.
58523         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58524
58525 2008-01-01  Bruno Haible  <bruno@clisp.org>
58526
58527         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58528         failure on older glibc systems.
58529         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58530
58531 2008-01-05  Eric Blake  <ebb9@byu.net>
58532
58533         Avoid quadratic system memmem.
58534         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58535         Reported by Ralf Wildenhues.
58536
58537         Fix memmem test for mingw.
58538         * modules/memmem-tests (configure.ac): Check for alarm.
58539         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58540         it.
58541         * doc/functions/memmem.texi: New file.
58542         * doc/gnulib.texi (Function Substitutes): Add memmem.
58543         Reported by Bruno Haible.
58544
58545 2008-01-04  Bruno Haible  <bruno@clisp.org>
58546
58547         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58548         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58549         gl_HEADER_STRING_H_DEFAULTS.
58550
58551 2008-01-04  Eric Blake  <ebb9@byu.net>
58552
58553         Shorten duration of memmem test.
58554         * tests/test-memmem.c (main): Use alarm to declare failure if test
58555         is taking too long.
58556         Reported by Ralf Wildenhues.
58557
58558 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58559
58560         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58561         string, needed by strerror.
58562
58563 2008-01-03  Colin Watson  <cjwatson@debian.org>
58564             Bruno Haible  <bruno@clisp.org>
58565
58566         * doc/gnulib-tool.texi (Localization): New section.
58567
58568 2008-01-02  Bruno Haible  <bruno@clisp.org>
58569
58570         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58571         variables to 'unsigned char *' type.
58572         Reported by Paul Eggert.
58573
58574 2008-01-02  Jim Meyering  <jim@meyering.net>
58575
58576         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58577
58578 2007-12-31  Jim Meyering  <jim@meyering.net>
58579
58580         Avoid use of private FTS type name.
58581         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58582
58583 2007-12-30  Karl Berry  <karl@gnu.org>
58584
58585         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58586         work around defect in Texinfo and/or the standalone Info browser.
58587
58588 2007-12-30  Bruno Haible  <bruno@clisp.org>
58589
58590         Unify 5 copies of the KMP code.
58591         * lib/str-kmp.h: New file.
58592         * lib/c-strcasestr.c: Include str-kmp.h.
58593         (knuth_morris_pratt): Remove function.
58594         (c_strcasestr): Update.
58595         * lib/c-strstr.c: Include str-kmp.h.
58596         (knuth_morris_pratt): Remove function.
58597         (c_strcasestr): Update.
58598         * lib/mbscasestr.c: Include str-kmp.h.
58599         (knuth_morris_pratt_unibyte): Remove function.
58600         * lib/mbsstr.c: Include str-kmp.h.
58601         (knuth_morris_pratt_unibyte): Remove function.
58602         * lib/strcasestr.c: Include str-kmp.h.
58603         (knuth_morris_pratt): Remove function.
58604         (strcasestr): Update.
58605         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58606         * modules/c-strstr (Files): Likewise.
58607         * modules/mbscasestr (Files): Likewise.
58608         * modules/mbsstr (Files): Likewise.
58609         * modules/strcasestr (Files): Likewise.
58610         Suggested by Paul Eggert.
58611
58612 2007-12-30  Bruno Haible  <bruno@clisp.org>
58613
58614         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58615         defined.
58616
58617 2007-12-30  Bruno Haible  <bruno@clisp.org>
58618
58619         * lib/xmalloca.h: Include xalloc.h.
58620         (xnmalloca): New macro.
58621
58622 2007-12-30  Bruno Haible  <bruno@clisp.org>
58623
58624         * lib/malloca.h (nmalloca): New macro.
58625         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58626         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58627         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58628         knuth_morris_pratt_multibyte): Likewise.
58629         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58630         knuth_morris_pratt_multibyte): Likewise.
58631         * lib/memmem.c (knuth_morris_pratt): Likewise.
58632         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58633
58634 2007-12-25  Bruno Haible  <bruno@clisp.org>
58635
58636         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58637         * lib/glob.c: Don't include openat.h.
58638         (link_exists2_p): Add back the code that deals with the
58639         !GLOB_ALTDIRFUNC case.
58640         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58641         let it do the filename concatenation.
58642         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58643         * modules/glob (Depends-on): Remove openat.
58644
58645 2007-12-31  Bruno Haible  <bruno@clisp.org>
58646
58647         * modules/dirfd (License): Change to LGPLv2+.
58648         Approved by Jim Meyering.
58649
58650 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58651
58652         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58653         when multiplying M by sizeof (size_t).
58654
58655 2007-12-10  Martin Lambers  <marlam@marlam.de>
58656
58657         Override getpagesize on mingw.
58658         * lib/getpagesize.c: New file.
58659         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58660         * modules/getpagesize (Files): Add lib/getpagesize.c.
58661         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58663         REPLACE_GETPAGESIZE.
58664         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58665
58666 2007-12-25  Bruno Haible  <bruno@clisp.org>
58667
58668         * modules/localcharset (Notice): New field.
58669         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58670         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58671
58672 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58673             Bruno Haible  <bruno@clisp.org>
58674
58675         Avoid using the syntax symbol() in formatted documentation.
58676         * MODULES.html.sh (func_module): When replacing symbol() with a
58677         hyperlink, remove the parentheses. Show an error if some remain.
58678         Recognize and render the '...' syntax.
58679         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58680         Rework. Add paragraph about GCC's inlining.
58681         * doc/alloca.texi: Likewise.
58682         * doc/error.texi: Remove parentheses from symbol reference.
58683         * doc/gnulib-intro.texi: Likewise.
58684         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58685         * modules/fnmatch (Description): Reword to say "the ... function".
58686         * modules/full-read (Description): Likewise.
58687         * modules/full-write (Description): Likewise.
58688         * modules/safe-read (Description): Likewise.
58689         * modules/safe-write (Description): Likewise.
58690         * modules/strchrnul (Description): Likewise.
58691         * modules/trim (Description): Likewise.
58692         * modules/error (Description): Remove parentheses from symbol
58693         references.
58694         * modules/verror (Description): Likewise.
58695         Reported by Karl Berry.
58696
58697 2007-12-25  Bruno Haible  <bruno@clisp.org>
58698
58699         Fixup after 2007-10-16 commit.
58700         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58701
58702 2007-12-24  Bruno Haible  <bruno@clisp.org>
58703
58704         Make --enable-relocatable work with DESTDIR.
58705         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58706         to compute installdir from destprog.
58707         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58708         also set the RELOC_DESTDIR variable.
58709         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58710
58711 2007-12-24  Bruno Haible  <bruno@clisp.org>
58712
58713         Fix link error due to xalloc_die().
58714         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58715         of xreadlink.
58716         * lib/relocwrapper.c: Update comments.
58717         * build-aux/install-reloc: Remove xreadlink.c from file list.
58718         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58719         xreadlink.c.
58720         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58721
58722 2007-12-24  Bruno Haible  <bruno@clisp.org>
58723
58724         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58725         * lib/setenv.h: Remove file.
58726         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58727         lib/setenv.h.
58728         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58729         (Depends-on): Add stdlib.
58730         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58731         gl_FUNC_UNSETENV.
58732         (Include): Replace setenv.h with <stdlib.h>.
58733         * modules/unsetenv: New file.
58734         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58735         * lib/unsetenv.c: Include <stdlib.h> first.
58736         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58737         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58738         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58739         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58740         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58741         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58743         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58744         * doc/functions/unsetenv.texi: Update.
58745         * modules/xsetenv (Depends-on): Add unsetenv.
58746         * modules/getdate (Depends-on): Likewise.
58747         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58748         * lib/xsetenv.c: Don't include setenv.h.
58749         * lib/getdate.y: Likewise.
58750         * lib/relocwrapper.c: Likewise.
58751         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58752         (Depends-on): Add stdlib.
58753         * NEWS: Mention the changes.
58754         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58755
58756 2007-12-23  Bruno Haible  <bruno@clisp.org>
58757
58758         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58759         indentation.
58760
58761 2007-12-23  Bruno Haible  <bruno@clisp.org>
58762
58763         * lib/c-strcasestr.c: Add more comments.
58764         * lib/c-strstr.c: Likewise.
58765         * lib/mbscasestr.c: Likewise.
58766         * lib/mbsstr.c: Likewise.
58767         * lib/strcasestr.c: Likewise.
58768         * lib/memmem.c: Likewise.
58769
58770 2007-12-23  Bruno Haible  <bruno@clisp.org>
58771
58772         * tests/test-memmem.c: Include <string.h> first.
58773
58774 2007-12-22  Bruno Haible  <bruno@clisp.org>
58775
58776         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58777         the contents of $testsbase.
58778         Reported by Ralf Wildenhues.
58779
58780 2007-12-22  Bruno Haible  <bruno@clisp.org>
58781
58782         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58783         two variables local_ldadd_before, local_ldadd_last.
58784
58785 2007-12-20  Eric Blake  <ebb9@byu.net>
58786
58787         Work around circular library issue when cross-compiling.
58788         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58789         that progname.o does not need to pull in rpl_memcmp.
58790
58791 2007-12-19  Eric Blake  <ebb9@byu.net>
58792
58793         Fix memmem to avoid O(n^2) worst-case complexity.
58794         * lib/memmem.c (knuth_morris_pratt): New function.
58795         (memmem): Use it if first few naive iterations fail.
58796         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58797         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58798         * modules/memchr (License): Likewise.
58799         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58800         malloca.
58801         * tests/test-memmem.c: Rewrite, borrowing ideas from
58802         test-mbsstr1.c; the old version wouldn't even compile!
58803         * modules/memmem-tests: New file.
58804         * lib/string.in.h (rpl_memmem): Add declaration.
58805         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58806         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58807         REPLACE_MEMMEM.
58808
58809 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58812         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58813         before any system include files, and undef after them all.  This
58814         should fix a problem on VMS reported by John E. Malmberg in
58815         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58816
58817 2007-12-17  Eric Blake  <ebb9@byu.net>
58818
58819         Revert addition of verify, for BSD/OS.
58820         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58821         can't handle large files, for the sake of obsolete platforms.
58822         * modules/fseeko (Depends-on): Remove verify.
58823         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58824         * doc/functions/ftello.texi (ftello): Likewise.
58825         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58826         Reported by Larry Jones.
58827
58828 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58829
58830         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58831         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58832
58833 2007-12-17  Jim Meyering  <meyering@redhat.com>
58834
58835         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58836         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58837         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58838         * modules/getcwd (Depends-on): Add openat.
58839         Reported by Petr Salinger.
58840
58841 2007-12-17  Bruno Haible  <bruno@clisp.org>
58842
58843         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58844         avoid a segmentation fault of the configure test on x86_64 systems.
58845
58846 2007-12-15  Jim Meyering  <meyering@redhat.com>
58847
58848         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58849
58850 2007-12-13  Eric Blake  <ebb9@byu.net>
58851
58852         Another fseek test.
58853         * tests/test-fseek.c (main): Also test ungetc handling.
58854         * tests/test-fseeko.c (main): Likewise.
58855         * modules/fseeko (Depends-on): Add verify.
58856         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58857         large.
58858         Reported by Larry Jones.
58859
58860         Fix fseeko on mingw.
58861         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58862         seek.
58863
58864         Beef up fseek tests.
58865         * tests/test-fseek.c (main): Also test eof handling.
58866         * tests/test-fseeko.c (main): Likewise.
58867         Reported by Larry Jones.
58868
58869 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58870
58871         Fix fseeko on BSD-based platforms.
58872         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58873         successful seek.
58874
58875 2007-12-12  Eric Blake  <ebb9@byu.net>
58876
58877         Allow circular dependency of separate libtests.a
58878         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58879         when use_libtests.
58880
58881 2007-12-11  Eric Blake  <ebb9@byu.net>
58882
58883         Fix bug with -0.0L in previous patch.
58884         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58885         * tests/test-isnan.c (main): Also test on zeroes.
58886         * tests/test-isnanf.c (main): Likewise.
58887         * tests/test-isnanl.h (main): Likewise.
58888
58889         Detect pseudo-denormals on x86 even when cross-compiling.
58890         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58891         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58892         invalid bit patterns that happen to satisfy ==.
58893
58894         Avoid link failures with separate libtests.a.
58895         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58896         last, to satisfy circular dependencies.
58897
58898 2007-12-11  Eric Blake  <ebb9@byu.net>
58899         and Bruno Haible  <bruno@clisp.org>
58900
58901         Fix OpenBSD 4.0 <float.h> handling of long double.
58902         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58903         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58904         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58905
58906 2007-12-11  Jim Meyering  <meyering@redhat.com>
58907
58908         * users.txt: Add libvirt.
58909
58910         Support versions of autoconf prior to 2.59c.
58911         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58912         if it is not already defined.
58913
58914 2007-12-09  Bruno Haible  <bruno@clisp.org>
58915
58916         Let 'gnulib-tool --import' collect sources needed for the tests in
58917         tests/ rather than in lib/.
58918         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58919         argument. If true, add rules to generate libtests.a, and put libtests.a
58920         into $(LDADD). Consider source files in subdirectories and set
58921         uses_subdirs.
58922         (func_emit_initmacro_start, func_emit_initmacro_end,
58923         func_emit_initmacro_done): Pass all arguments explicitly.
58924         (func_import): Determine two module lists main_modules,
58925         testsrelated_modules. Determine use_libtests. Determine two variables
58926         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58927         instead of just sed_transform_lib_file. Determine two variables
58928         main_files and testsrelated_files. Compute 'files' as the union of
58929         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58930         func_add_or_update. In the generated gnulib-comp.m4, collect the
58931         object files for tests/ in different variables than those for lib/.
58932         Substitute LIBTESTS_LIBDEPS.
58933         (func_create_testdir): Combine the uses_subdirs results from
58934         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58935
58936 2007-12-09  Bruno Haible  <bruno@clisp.org>
58937
58938         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58939         the build-aux directory.
58940
58941 2007-12-09  Bruno Haible  <bruno@clisp.org>
58942
58943         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58944         introduced on 2006-09-09.
58945
58946 2007-12-07  Jim Meyering  <meyering@redhat.com>
58947
58948         Let these macros work also with autoconf-2.59.
58949         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58950         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58951         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58952
58953 2007-12-06  Jim Meyering  <meyering@redhat.com>
58954
58955         Avoid a configure-time syntax error in gl_FUNC_ACL.
58956         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58957         function in each branch, before testing the cache variable.
58958
58959 2007-12-04  Eric Blake  <ebb9@byu.net>
58960
58961         Make scripts executable.
58962         * build-aux/config.guess: Add execute permissions.
58963         * build-aux/config.sub: Likewise.
58964         * build-aux/gendocs.sh: Likewise.
58965
58966         Fix frexp on mingw.
58967         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58968         cross-compiling.
58969         * doc/functions/frexp.texi (frexp): Document the bug.
58970
58971         Make cygwin fseeko check more reliable.
58972         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58973         version numbers, rather than unrelated feature check.
58974         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58975         * doc/functions/ftello.texi (ftello): Likewise.
58976         Reported by Bruno Haible.
58977
58978         * m4/strerror.m4: Bump version number.
58979
58980 2007-12-03  Bruno Haible  <bruno@clisp.org>
58981
58982         * doc/functions/mprotect.texi: Mention the mingw problem.
58983
58984 2007-12-03  Eric Blake  <ebb9@byu.net>
58985
58986         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58987         REPLACE_STRERROR is initialized before this macro.
58988
58989 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58990
58991         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58992         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58993         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58994         put -lsec in even for programs other than 'ls'.  This fixes a problem
58995         for gettext reported by Bruno Haible in
58996         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58997         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58998         Add support for Solaris 10.  This isn't efficient, but should get the
58999         job done for now.
59000
59001 2007-12-03  James Youngman  <jay@gnu.org>
59002
59003         * doc/regexprops-generic.texi: change "an close-group" to "a
59004         close-group" and "illegal" to "not allowed".
59005
59006 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59007
59008         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59009         pr_byname.h. Needed for the rare case when the maintainer has done
59010         "make maintainer-clean" in the source directory and then attempts a
59011         build outside the source directory.
59012         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59013         scripts_byname.h.
59014
59015 2007-12-02  Martin Lambers <marlam@marlam.de>
59016             Bruno Haible  <bruno@clisp.org>
59017
59018         * lib/getpagesize.h: Remove file.
59019         * lib/unistd.in.h: Include declaration of getpagesize here.
59020         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59021         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59022         HAVE_SYS_PARAM_H.
59023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59024         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59025         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59026         (Depends-on): Add unistd.
59027         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59028         (Include): Use <unistd.h> instead of getpagesize.h.
59029         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59030         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59031         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59032         gl_GETPAGESIZE invocation, already handled by module dependency.
59033         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59034
59035 2007-12-02  Bruno Haible  <bruno@clisp.org>
59036
59037         * modules/strings-tests: New file.
59038         * tests/test-strings.c: New file.
59039
59040         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59041         * lib/strings.in.h: New file.
59042         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59043         * m4/strings_h.m4: New file.
59044         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59045         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59046         * modules/strings: New file.
59047         * modules/string (Makefile.am): Update.
59048         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59049         Reported by Karl Berry.
59050
59051 2007-12-01  Eric Blake  <ebb9@byu.net>
59052
59053         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59054         accomodate fix in cygwin 1.5.25.
59055
59056 2007-12-01  Jim Meyering  <meyering@redhat.com>
59057
59058         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59059         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59060         that would inhibit utf8-optimization of a regexp containing line-
59061         or buffer-anchors, e.g., `^', `$'.
59062
59063 2007-11-30  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59066         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59067         glthread_recursive_lock_init.
59068         * lib/lock.c (glthread_recursive_lock_init)
59069         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59071
59072 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         New function qset_acl, like set_acl but with syscall semantics.
59075         * lib/acl.h (qset_acl): New decl.
59076         * lib/acl.c (qset_acl): New function.
59077         (set_acl): Use new function.  Use more-consistent diagnostics.
59078
59079 2007-11-28  Jim Meyering  <meyering@redhat.com>
59080
59081         * modules/physmem (License): Change from GPL to LGPLv2+.
59082
59083 2007-11-26  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59086         'long double' type has excess precision.
59087         Reported by Jim Meyering in
59088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59089
59090 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59091
59092         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59093         Sync from <http://gnu.org/licenses>.
59094         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59095         with license text from same location.
59096         * doc/maintain.texi, doc/standards.texi:  Sync from
59097         <http://savannah.gnu.org/projects/gnustandards>.
59098
59099 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59100         and Jim Meyering  <meyering@redhat.com>
59101
59102         Adjust getdate' grammar to accept a slightly more regular language.
59103         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59104         Before, the former was rejected.
59105         * lib/getdate.y (digits_to_date_time): New function, factored
59106         out of ...
59107         (number): ...here.  Just call digits_to_date_time.
59108         (hybrid): New non-terminal to handle an <unsigned number,
59109         signed relative offset> sequence consistently.
59110
59111 2007-11-18  Jim Meyering  <meyering@redhat.com>
59112
59113         Pull my changes from coreutils:
59114         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59115         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59116         use of $gnulib_tool_option_extras, so that it's separated from the
59117         preceding argument.
59118
59119         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59120         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59121         parent destination directories before copying a file into place.
59122
59123 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59124
59125         bootstrap: work also with 4-argument variant of AC_INIT
59126         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59127
59128 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59129
59130         Port test-getaddrinfo to Solaris.
59131         Problem reported by Bruno Haible in
59132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59133         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59134         explanation of setting 'hints'.
59135         Don't reject an implementation merely because it returns EAI_SERVICE.
59136         (EAI_SERVICE): Define to 0 if not defined.
59137
59138 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         The license of gnu-make and posix-shell is now "GPLed build tool".
59141         * modules/gnu-make (License): Likewise.
59142         * modules/posix-shell (License): Likewise.
59143
59144         New module posix-shell, for determining a POSIX shell
59145         or perhaps something that is close enough to a POSIX shell.
59146         * m4/posix-shell.m4: New file.
59147         * modules/posix-shell: New file.
59148
59149         * MODULES.html.sh: Mention new module.
59150
59151         New module gnu-make, for determining whether we're using GNU Make.
59152         * m4/gnu-make.m4: New file.
59153         * modules/gnu-make: New file.
59154         * MODULES.html.sh: Mention new module.
59155
59156 2007-11-14  Jim Meyering  <meyering@redhat.com>
59157
59158         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59159         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59160         use this macro to create a function _definition_.
59161         Remove useless "#undef ARGMATCH_DIE".
59162
59163 2007-11-14  Bruno Haible  <bruno@clisp.org>
59164
59165         * lib/config.charset: Update for OpenBSD 4.1.
59166         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59167
59168 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59169
59170         Document 64-bit #if problems in stdint.texi.
59171         * doc/headers/stdint.texi (stdint.h): Mention problems with
59172         64-bit-#if, and how to work around them.
59173
59174         Don't insist on 'long long int' support in the preprocessor.  It
59175         breaks too many things.  For example, PRIdMAX still uses a 'long
59176         long int' format with the latest Sun compiler, even though
59177         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59178         preprocessor problem.  This causes the latest coreutils to dump
59179         core on Solaris 10 sparc with the Sun C compiler.
59180         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59181         the troublesome expressions at configure-time, not at #if-time.
59182         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59183         preprocessor.
59184         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59185         compile-time C checks, done at 'configure'-time.
59186         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59187         * modules/inttypes (Makefile): Substitute the new symbols that
59188         gl_INTTYPES_H now generates.
59189         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59190
59191 2007-11-12  Bruno Haible  <bruno@clisp.org>
59192
59193         Tests for Unicode character classification functions.
59194
59195         * modules/unictype/bidicategory-byname-tests: New file.
59196         * modules/unictype/bidicategory-name-tests: New file.
59197         * modules/unictype/bidicategory-of-tests: New file.
59198         * modules/unictype/bidicategory-test-tests: New file.
59199         * modules/unictype/block-list-tests: New file.
59200         * modules/unictype/block-of-tests: New file.
59201         * modules/unictype/block-test-tests: New file.
59202         * modules/unictype/category-C-tests: New file.
59203         * modules/unictype/category-Cc-tests: New file.
59204         * modules/unictype/category-Cf-tests: New file.
59205         * modules/unictype/category-Cn-tests: New file.
59206         * modules/unictype/category-Co-tests: New file.
59207         * modules/unictype/category-Cs-tests: New file.
59208         * modules/unictype/category-L-tests: New file.
59209         * modules/unictype/category-Ll-tests: New file.
59210         * modules/unictype/category-Lm-tests: New file.
59211         * modules/unictype/category-Lo-tests: New file.
59212         * modules/unictype/category-Lt-tests: New file.
59213         * modules/unictype/category-Lu-tests: New file.
59214         * modules/unictype/category-M-tests: New file.
59215         * modules/unictype/category-Mc-tests: New file.
59216         * modules/unictype/category-Me-tests: New file.
59217         * modules/unictype/category-Mn-tests: New file.
59218         * modules/unictype/category-N-tests: New file.
59219         * modules/unictype/category-Nd-tests: New file.
59220         * modules/unictype/category-Nl-tests: New file.
59221         * modules/unictype/category-No-tests: New file.
59222         * modules/unictype/category-P-tests: New file.
59223         * modules/unictype/category-Pc-tests: New file.
59224         * modules/unictype/category-Pd-tests: New file.
59225         * modules/unictype/category-Pe-tests: New file.
59226         * modules/unictype/category-Pf-tests: New file.
59227         * modules/unictype/category-Pi-tests: New file.
59228         * modules/unictype/category-Po-tests: New file.
59229         * modules/unictype/category-Ps-tests: New file.
59230         * modules/unictype/category-S-tests: New file.
59231         * modules/unictype/category-Sc-tests: New file.
59232         * modules/unictype/category-Sk-tests: New file.
59233         * modules/unictype/category-Sm-tests: New file.
59234         * modules/unictype/category-So-tests: New file.
59235         * modules/unictype/category-Z-tests: New file.
59236         * modules/unictype/category-Zl-tests: New file.
59237         * modules/unictype/category-Zp-tests: New file.
59238         * modules/unictype/category-Zs-tests: New file.
59239         * modules/unictype/category-and-not-tests: New file.
59240         * modules/unictype/category-and-tests: New file.
59241         * modules/unictype/category-byname-tests: New file.
59242         * modules/unictype/category-name-tests: New file.
59243         * modules/unictype/category-none-tests: New file.
59244         * modules/unictype/category-of-tests: New file.
59245         * modules/unictype/category-or-tests: New file.
59246         * modules/unictype/category-test-withtable-tests: New file.
59247         * modules/unictype/combining-class-tests: New file.
59248         * modules/unictype/ctype-alnum-tests: New file.
59249         * modules/unictype/ctype-alpha-tests: New file.
59250         * modules/unictype/ctype-blank-tests: New file.
59251         * modules/unictype/ctype-cntrl-tests: New file.
59252         * modules/unictype/ctype-digit-tests: New file.
59253         * modules/unictype/ctype-graph-tests: New file.
59254         * modules/unictype/ctype-lower-tests: New file.
59255         * modules/unictype/ctype-print-tests: New file.
59256         * modules/unictype/ctype-punct-tests: New file.
59257         * modules/unictype/ctype-space-tests: New file.
59258         * modules/unictype/ctype-upper-tests: New file.
59259         * modules/unictype/ctype-xdigit-tests: New file.
59260         * modules/unictype/decimal-digit-tests: New file.
59261         * modules/unictype/digit-tests: New file.
59262         * modules/unictype/mirror-tests: New file.
59263         * modules/unictype/numeric-tests: New file.
59264         * modules/unictype/property-alphabetic-tests: New file.
59265         * modules/unictype/property-ascii-hex-digit-tests: New file.
59266         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59267         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59268         * modules/unictype/property-bidi-block-separator-tests: New file.
59269         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59270         * modules/unictype/property-bidi-common-separator-tests: New file.
59271         * modules/unictype/property-bidi-control-tests: New file.
59272         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59273         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59274         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59275         * modules/unictype/property-bidi-european-digit-tests: New file.
59276         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59277         * modules/unictype/property-bidi-left-to-right-tests: New file.
59278         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59279         * modules/unictype/property-bidi-other-neutral-tests: New file.
59280         * modules/unictype/property-bidi-pdf-tests: New file.
59281         * modules/unictype/property-bidi-segment-separator-tests: New file.
59282         * modules/unictype/property-bidi-whitespace-tests: New file.
59283         * modules/unictype/property-byname-tests: New file.
59284         * modules/unictype/property-combining-tests: New file.
59285         * modules/unictype/property-composite-tests: New file.
59286         * modules/unictype/property-currency-symbol-tests: New file.
59287         * modules/unictype/property-dash-tests: New file.
59288         * modules/unictype/property-decimal-digit-tests: New file.
59289         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59290         * modules/unictype/property-deprecated-tests: New file.
59291         * modules/unictype/property-diacritic-tests: New file.
59292         * modules/unictype/property-extender-tests: New file.
59293         * modules/unictype/property-format-control-tests: New file.
59294         * modules/unictype/property-grapheme-base-tests: New file.
59295         * modules/unictype/property-grapheme-extend-tests: New file.
59296         * modules/unictype/property-grapheme-link-tests: New file.
59297         * modules/unictype/property-hex-digit-tests: New file.
59298         * modules/unictype/property-hyphen-tests: New file.
59299         * modules/unictype/property-id-continue-tests: New file.
59300         * modules/unictype/property-id-start-tests: New file.
59301         * modules/unictype/property-ideographic-tests: New file.
59302         * modules/unictype/property-ids-binary-operator-tests: New file.
59303         * modules/unictype/property-ids-trinary-operator-tests: New file.
59304         * modules/unictype/property-ignorable-control-tests: New file.
59305         * modules/unictype/property-iso-control-tests: New file.
59306         * modules/unictype/property-join-control-tests: New file.
59307         * modules/unictype/property-left-of-pair-tests: New file.
59308         * modules/unictype/property-line-separator-tests: New file.
59309         * modules/unictype/property-logical-order-exception-tests: New file.
59310         * modules/unictype/property-lowercase-tests: New file.
59311         * modules/unictype/property-math-tests: New file.
59312         * modules/unictype/property-non-break-tests: New file.
59313         * modules/unictype/property-not-a-character-tests: New file.
59314         * modules/unictype/property-numeric-tests: New file.
59315         * modules/unictype/property-other-alphabetic-tests: New file.
59316         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59317         * modules/unictype/property-other-grapheme-extend-tests: New file.
59318         * modules/unictype/property-other-id-continue-tests: New file.
59319         * modules/unictype/property-other-id-start-tests: New file.
59320         * modules/unictype/property-other-lowercase-tests: New file.
59321         * modules/unictype/property-other-math-tests: New file.
59322         * modules/unictype/property-other-uppercase-tests: New file.
59323         * modules/unictype/property-paired-punctuation-tests: New file.
59324         * modules/unictype/property-paragraph-separator-tests: New file.
59325         * modules/unictype/property-pattern-syntax-tests: New file.
59326         * modules/unictype/property-pattern-white-space-tests: New file.
59327         * modules/unictype/property-private-use-tests: New file.
59328         * modules/unictype/property-punctuation-tests: New file.
59329         * modules/unictype/property-quotation-mark-tests: New file.
59330         * modules/unictype/property-radical-tests: New file.
59331         * modules/unictype/property-sentence-terminal-tests: New file.
59332         * modules/unictype/property-soft-dotted-tests: New file.
59333         * modules/unictype/property-space-tests: New file.
59334         * modules/unictype/property-terminal-punctuation-tests: New file.
59335         * modules/unictype/property-test-tests: New file.
59336         * modules/unictype/property-titlecase-tests: New file.
59337         * modules/unictype/property-unassigned-code-value-tests: New file.
59338         * modules/unictype/property-unified-ideograph-tests: New file.
59339         * modules/unictype/property-uppercase-tests: New file.
59340         * modules/unictype/property-variation-selector-tests: New file.
59341         * modules/unictype/property-white-space-tests: New file.
59342         * modules/unictype/property-xid-continue-tests: New file.
59343         * modules/unictype/property-xid-start-tests: New file.
59344         * modules/unictype/property-zero-width-tests: New file.
59345         * modules/unictype/scripts-tests: New file.
59346         * modules/unictype/syntax-c-ident-tests: New file.
59347         * modules/unictype/syntax-c-whitespace-tests: New file.
59348         * modules/unictype/syntax-java-ident-tests: New file.
59349         * modules/unictype/syntax-java-whitespace-tests: New file.
59350         * tests/unictype/test-bidi_byname.c: New file.
59351         * tests/unictype/test-bidi_name.c: New file.
59352         * tests/unictype/test-bidi_of.c: New file.
59353         * tests/unictype/test-bidi_test.c: New file.
59354         * tests/unictype/test-block_list.c: New file.
59355         * tests/unictype/test-block_of.c: New file.
59356         * tests/unictype/test-block_test.c: New file.
59357         * tests/unictype/test-categ_and.c: New file.
59358         * tests/unictype/test-categ_and_not.c: New file.
59359         * tests/unictype/test-categ_byname.c: New file.
59360         * tests/unictype/test-categ_name.c: New file.
59361         * tests/unictype/test-categ_none.c: New file.
59362         * tests/unictype/test-categ_of.c: New file.
59363         * tests/unictype/test-categ_or.c: New file.
59364         * tests/unictype/test-categ_test_withtable.c: New file.
59365         * tests/unictype/test-combining.c: New file.
59366         * tests/unictype/test-decdigit.c: New file.
59367         * tests/unictype/test-digit.c: New file.
59368         * tests/unictype/test-mirror.c: New file.
59369         * tests/unictype/test-numeric.c: New file.
59370         * tests/unictype/test-pr_byname.c: New file.
59371         * tests/unictype/test-pr_test.c: New file.
59372         * tests/unictype/test-predicate-part1.h: New file.
59373         * tests/unictype/test-predicate-part2.h: New file.
59374         * tests/unictype/test-scripts.c: New file.
59375         * tests/unictype/test-sy_c_ident.c: New file.
59376         * tests/unictype/test-sy_java_ident.c: New file.
59377
59378         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59379         for Unicode 5.0.0.
59380         * tests/unictype/test-categ_Cc.c: Likewise.
59381         * tests/unictype/test-categ_Cf.c: Likewise.
59382         * tests/unictype/test-categ_Cn.c: Likewise.
59383         * tests/unictype/test-categ_Co.c: Likewise.
59384         * tests/unictype/test-categ_Cs.c: Likewise.
59385         * tests/unictype/test-categ_L.c: Likewise.
59386         * tests/unictype/test-categ_Ll.c: Likewise.
59387         * tests/unictype/test-categ_Lm.c: Likewise.
59388         * tests/unictype/test-categ_Lo.c: Likewise.
59389         * tests/unictype/test-categ_Lt.c: Likewise.
59390         * tests/unictype/test-categ_Lu.c: Likewise.
59391         * tests/unictype/test-categ_M.c: Likewise.
59392         * tests/unictype/test-categ_Mc.c: Likewise.
59393         * tests/unictype/test-categ_Me.c: Likewise.
59394         * tests/unictype/test-categ_Mn.c: Likewise.
59395         * tests/unictype/test-categ_N.c: Likewise.
59396         * tests/unictype/test-categ_Nd.c: Likewise.
59397         * tests/unictype/test-categ_Nl.c: Likewise.
59398         * tests/unictype/test-categ_No.c: Likewise.
59399         * tests/unictype/test-categ_P.c: Likewise.
59400         * tests/unictype/test-categ_Pc.c: Likewise.
59401         * tests/unictype/test-categ_Pd.c: Likewise.
59402         * tests/unictype/test-categ_Pe.c: Likewise.
59403         * tests/unictype/test-categ_Pf.c: Likewise.
59404         * tests/unictype/test-categ_Pi.c: Likewise.
59405         * tests/unictype/test-categ_Po.c: Likewise.
59406         * tests/unictype/test-categ_Ps.c: Likewise.
59407         * tests/unictype/test-categ_S.c: Likewise.
59408         * tests/unictype/test-categ_Sc.c: Likewise.
59409         * tests/unictype/test-categ_Sk.c: Likewise.
59410         * tests/unictype/test-categ_Sm.c: Likewise.
59411         * tests/unictype/test-categ_So.c: Likewise.
59412         * tests/unictype/test-categ_Z.c: Likewise.
59413         * tests/unictype/test-categ_Zl.c: Likewise.
59414         * tests/unictype/test-categ_Zp.c: Likewise.
59415         * tests/unictype/test-categ_Zs.c: Likewise.
59416         * tests/unictype/test-ctype_alnum.c: Likewise.
59417         * tests/unictype/test-ctype_alpha.c: Likewise.
59418         * tests/unictype/test-ctype_blank.c: Likewise.
59419         * tests/unictype/test-ctype_cntrl.c: Likewise.
59420         * tests/unictype/test-ctype_digit.c: Likewise.
59421         * tests/unictype/test-ctype_graph.c: Likewise.
59422         * tests/unictype/test-ctype_lower.c: Likewise.
59423         * tests/unictype/test-ctype_print.c: Likewise.
59424         * tests/unictype/test-ctype_punct.c: Likewise.
59425         * tests/unictype/test-ctype_space.c: Likewise.
59426         * tests/unictype/test-ctype_upper.c: Likewise.
59427         * tests/unictype/test-ctype_xdigit.c: Likewise.
59428         * tests/unictype/test-decdigit.h: Likewise.
59429         * tests/unictype/test-digit.h: Likewise.
59430         * tests/unictype/test-numeric.h: Likewise.
59431         * tests/unictype/test-pr_alphabetic.c: Likewise.
59432         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59433         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59434         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59435         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59436         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59437         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59438         * tests/unictype/test-pr_bidi_control.c: Likewise.
59439         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59440         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59441         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59442         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59443         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59444         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59445         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59446         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59447         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59448         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59449         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59450         * tests/unictype/test-pr_combining.c: Likewise.
59451         * tests/unictype/test-pr_composite.c: Likewise.
59452         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59453         * tests/unictype/test-pr_dash.c: Likewise.
59454         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59455         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59456         * tests/unictype/test-pr_deprecated.c: Likewise.
59457         * tests/unictype/test-pr_diacritic.c: Likewise.
59458         * tests/unictype/test-pr_extender.c: Likewise.
59459         * tests/unictype/test-pr_format_control.c: Likewise.
59460         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59461         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59462         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59463         * tests/unictype/test-pr_hex_digit.c: Likewise.
59464         * tests/unictype/test-pr_hyphen.c: Likewise.
59465         * tests/unictype/test-pr_id_continue.c: Likewise.
59466         * tests/unictype/test-pr_id_start.c: Likewise.
59467         * tests/unictype/test-pr_ideographic.c: Likewise.
59468         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59469         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59470         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59471         * tests/unictype/test-pr_iso_control.c: Likewise.
59472         * tests/unictype/test-pr_join_control.c: Likewise.
59473         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59474         * tests/unictype/test-pr_line_separator.c: Likewise.
59475         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59476         * tests/unictype/test-pr_lowercase.c: Likewise.
59477         * tests/unictype/test-pr_math.c: Likewise.
59478         * tests/unictype/test-pr_non_break.c: Likewise.
59479         * tests/unictype/test-pr_not_a_character.c: Likewise.
59480         * tests/unictype/test-pr_numeric.c: Likewise.
59481         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59482         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59483         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59484         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59485         * tests/unictype/test-pr_other_id_start.c: Likewise.
59486         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59487         * tests/unictype/test-pr_other_math.c: Likewise.
59488         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59489         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59490         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59491         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59492         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59493         * tests/unictype/test-pr_private_use.c: Likewise.
59494         * tests/unictype/test-pr_punctuation.c: Likewise.
59495         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59496         * tests/unictype/test-pr_radical.c: Likewise.
59497         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59498         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59499         * tests/unictype/test-pr_space.c: Likewise.
59500         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59501         * tests/unictype/test-pr_titlecase.c: Likewise.
59502         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59503         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59504         * tests/unictype/test-pr_uppercase.c: Likewise.
59505         * tests/unictype/test-pr_variation_selector.c: Likewise.
59506         * tests/unictype/test-pr_white_space.c: Likewise.
59507         * tests/unictype/test-pr_xid_continue.c: Likewise.
59508         * tests/unictype/test-pr_xid_start.c: Likewise.
59509         * tests/unictype/test-pr_zero_width.c: Likewise.
59510         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59511         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59512
59513 2007-11-12  Bruno Haible  <bruno@clisp.org>
59514
59515         Unicode character classification functions.
59516         * lib/unictype.h: New file.
59517         * modules/unictype/base: New file.
59518         * modules/unictype/category-L: New file.
59519         * modules/unictype/category-Lu: New file.
59520         * modules/unictype/category-Ll: New file.
59521         * modules/unictype/category-Lt: New file.
59522         * modules/unictype/category-Lm: New file.
59523         * modules/unictype/category-Lo: New file.
59524         * modules/unictype/category-M: New file.
59525         * modules/unictype/category-Mn: New file.
59526         * modules/unictype/category-Mc: New file.
59527         * modules/unictype/category-Me: New file.
59528         * modules/unictype/category-N: New file.
59529         * modules/unictype/category-Nd: New file.
59530         * modules/unictype/category-Nl: New file.
59531         * modules/unictype/category-No: New file.
59532         * modules/unictype/category-P: New file.
59533         * modules/unictype/category-Pc: New file.
59534         * modules/unictype/category-Pd: New file.
59535         * modules/unictype/category-Ps: New file.
59536         * modules/unictype/category-Pe: New file.
59537         * modules/unictype/category-Pi: New file.
59538         * modules/unictype/category-Pf: New file.
59539         * modules/unictype/category-Po: New file.
59540         * modules/unictype/category-S: New file.
59541         * modules/unictype/category-Sm: New file.
59542         * modules/unictype/category-Sc: New file.
59543         * modules/unictype/category-Sk: New file.
59544         * modules/unictype/category-So: New file.
59545         * modules/unictype/category-Z: New file.
59546         * modules/unictype/category-Zs: New file.
59547         * modules/unictype/category-Zl: New file.
59548         * modules/unictype/category-Zp: New file.
59549         * modules/unictype/category-C: New file.
59550         * modules/unictype/category-Cc: New file.
59551         * modules/unictype/category-Cf: New file.
59552         * modules/unictype/category-Cs: New file.
59553         * modules/unictype/category-Co: New file.
59554         * modules/unictype/category-Cn: New file.
59555         * modules/unictype/category-or: New file.
59556         * modules/unictype/category-of: New file.
59557         * modules/unictype/category-test: New file.
59558         * modules/unictype/category-test-withtable: New file.
59559         * modules/unictype/category-byname: New file.
59560         * modules/unictype/category-none: New file.
59561         * modules/unictype/category-and: New file.
59562         * modules/unictype/category-and-not: New file.
59563         * modules/unictype/category-name: New file.
59564         * modules/unictype/combining-class: New file.
59565         * modules/unictype/category-all: New file.
59566         * modules/unictype/bidicategory-all: New file.
59567         * modules/unictype/bidicategory-byname: New file.
59568         * modules/unictype/bidicategory-name: New file.
59569         * modules/unictype/bidicategory-of: New file.
59570         * modules/unictype/bidicategory-test: New file.
59571         * modules/unictype/decimal-digit: New file.
59572         * modules/unictype/digit: New file.
59573         * modules/unictype/numeric: New file.
59574         * modules/unictype/mirror: New file.
59575         * modules/unictype/property-white-space: New file.
59576         * modules/unictype/property-alphabetic: New file.
59577         * modules/unictype/property-other-alphabetic: New file.
59578         * modules/unictype/property-not-a-character: New file.
59579         * modules/unictype/property-default-ignorable-code-point: New file.
59580         * modules/unictype/property-other-default-ignorable-code-point: New
59581         file.
59582         * modules/unictype/property-deprecated: New file.
59583         * modules/unictype/property-logical-order-exception: New file.
59584         * modules/unictype/property-variation-selector: New file.
59585         * modules/unictype/property-private-use: New file.
59586         * modules/unictype/property-unassigned-code-value: New file.
59587         * modules/unictype/property-uppercase: New file.
59588         * modules/unictype/property-other-uppercase: New file.
59589         * modules/unictype/property-lowercase: New file.
59590         * modules/unictype/property-other-lowercase: New file.
59591         * modules/unictype/property-titlecase: New file.
59592         * modules/unictype/property-soft-dotted: New file.
59593         * modules/unictype/property-id-start: New file.
59594         * modules/unictype/property-other-id-start: New file.
59595         * modules/unictype/property-id-continue: New file.
59596         * modules/unictype/property-other-id-continue: New file.
59597         * modules/unictype/property-xid-start: New file.
59598         * modules/unictype/property-xid-continue: New file.
59599         * modules/unictype/property-pattern-white-space: New file.
59600         * modules/unictype/property-pattern-syntax: New file.
59601         * modules/unictype/property-join-control: New file.
59602         * modules/unictype/property-grapheme-base: New file.
59603         * modules/unictype/property-grapheme-extend: New file.
59604         * modules/unictype/property-other-grapheme-extend: New file.
59605         * modules/unictype/property-grapheme-link: New file.
59606         * modules/unictype/property-bidi-control: New file.
59607         * modules/unictype/property-bidi-left-to-right: New file.
59608         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59609         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59610         * modules/unictype/property-bidi-european-digit: New file.
59611         * modules/unictype/property-bidi-eur-num-separator: New file.
59612         * modules/unictype/property-bidi-eur-num-terminator: New file.
59613         * modules/unictype/property-bidi-arabic-digit: New file.
59614         * modules/unictype/property-bidi-common-separator: New file.
59615         * modules/unictype/property-bidi-block-separator: New file.
59616         * modules/unictype/property-bidi-segment-separator: New file.
59617         * modules/unictype/property-bidi-whitespace: New file.
59618         * modules/unictype/property-bidi-non-spacing-mark: New file.
59619         * modules/unictype/property-bidi-boundary-neutral: New file.
59620         * modules/unictype/property-bidi-pdf: New file.
59621         * modules/unictype/property-bidi-embedding-or-override: New file.
59622         * modules/unictype/property-bidi-other-neutral: New file.
59623         * modules/unictype/property-hex-digit: New file.
59624         * modules/unictype/property-ascii-hex-digit: New file.
59625         * modules/unictype/property-ideographic: New file.
59626         * modules/unictype/property-unified-ideograph: New file.
59627         * modules/unictype/property-radical: New file.
59628         * modules/unictype/property-ids-binary-operator: New file.
59629         * modules/unictype/property-ids-trinary-operator: New file.
59630         * modules/unictype/property-zero-width: New file.
59631         * modules/unictype/property-space: New file.
59632         * modules/unictype/property-non-break: New file.
59633         * modules/unictype/property-iso-control: New file.
59634         * modules/unictype/property-format-control: New file.
59635         * modules/unictype/property-dash: New file.
59636         * modules/unictype/property-hyphen: New file.
59637         * modules/unictype/property-punctuation: New file.
59638         * modules/unictype/property-line-separator: New file.
59639         * modules/unictype/property-paragraph-separator: New file.
59640         * modules/unictype/property-quotation-mark: New file.
59641         * modules/unictype/property-sentence-terminal: New file.
59642         * modules/unictype/property-terminal-punctuation: New file.
59643         * modules/unictype/property-currency-symbol: New file.
59644         * modules/unictype/property-math: New file.
59645         * modules/unictype/property-other-math: New file.
59646         * modules/unictype/property-paired-punctuation: New file.
59647         * modules/unictype/property-left-of-pair: New file.
59648         * modules/unictype/property-combining: New file.
59649         * modules/unictype/property-composite: New file.
59650         * modules/unictype/property-decimal-digit: New file.
59651         * modules/unictype/property-numeric: New file.
59652         * modules/unictype/property-diacritic: New file.
59653         * modules/unictype/property-extender: New file.
59654         * modules/unictype/property-ignorable-control: New file.
59655         * modules/unictype/property-test: New file.
59656         * modules/unictype/property-byname: New file.
59657         * modules/unictype/property-all: New file.
59658         * modules/unictype/scripts: New file.
59659         * modules/unictype/scripts-all: New file.
59660         * modules/unictype/block-of: New file.
59661         * modules/unictype/block-test: New file.
59662         * modules/unictype/block-list: New file.
59663         * modules/unictype/block-all: New file.
59664         * modules/unictype/syntax-c-whitespace: New file.
59665         * modules/unictype/syntax-java-whitespace: New file.
59666         * modules/unictype/syntax-c-ident: New file.
59667         * modules/unictype/syntax-java-ident: New file.
59668         * modules/unictype/ctype-alnum: New file.
59669         * modules/unictype/ctype-alpha: New file.
59670         * modules/unictype/ctype-cntrl: New file.
59671         * modules/unictype/ctype-digit: New file.
59672         * modules/unictype/ctype-graph: New file.
59673         * modules/unictype/ctype-lower: New file.
59674         * modules/unictype/ctype-print: New file.
59675         * modules/unictype/ctype-punct: New file.
59676         * modules/unictype/ctype-space: New file.
59677         * modules/unictype/ctype-upper: New file.
59678         * modules/unictype/ctype-xdigit: New file.
59679         * modules/unictype/ctype-blank: New file.
59680         * lib/unictype/bidi_byname.c: New file.
59681         * lib/unictype/bidi_name.c: New file.
59682         * lib/unictype/bidi_of.c: New file.
59683         * lib/unictype/bidi_test.c: New file.
59684         * lib/unictype/bitmap.h: New file.
59685         * lib/unictype/block_test.c: New file.
59686         * lib/unictype/blocks.c: New file.
59687         * lib/unictype/categ_C.c: New file.
59688         * lib/unictype/categ_Cc.c: New file.
59689         * lib/unictype/categ_Cf.c: New file.
59690         * lib/unictype/categ_Cn.c: New file.
59691         * lib/unictype/categ_Co.c: New file.
59692         * lib/unictype/categ_Cs.c: New file.
59693         * lib/unictype/categ_L.c: New file.
59694         * lib/unictype/categ_Ll.c: New file.
59695         * lib/unictype/categ_Lm.c: New file.
59696         * lib/unictype/categ_Lo.c: New file.
59697         * lib/unictype/categ_Lt.c: New file.
59698         * lib/unictype/categ_Lu.c: New file.
59699         * lib/unictype/categ_M.c: New file.
59700         * lib/unictype/categ_Mc.c: New file.
59701         * lib/unictype/categ_Me.c: New file.
59702         * lib/unictype/categ_Mn.c: New file.
59703         * lib/unictype/categ_N.c: New file.
59704         * lib/unictype/categ_Nd.c: New file.
59705         * lib/unictype/categ_Nl.c: New file.
59706         * lib/unictype/categ_No.c: New file.
59707         * lib/unictype/categ_P.c: New file.
59708         * lib/unictype/categ_Pc.c: New file.
59709         * lib/unictype/categ_Pd.c: New file.
59710         * lib/unictype/categ_Pe.c: New file.
59711         * lib/unictype/categ_Pf.c: New file.
59712         * lib/unictype/categ_Pi.c: New file.
59713         * lib/unictype/categ_Po.c: New file.
59714         * lib/unictype/categ_Ps.c: New file.
59715         * lib/unictype/categ_S.c: New file.
59716         * lib/unictype/categ_Sc.c: New file.
59717         * lib/unictype/categ_Sk.c: New file.
59718         * lib/unictype/categ_Sm.c: New file.
59719         * lib/unictype/categ_So.c: New file.
59720         * lib/unictype/categ_Z.c: New file.
59721         * lib/unictype/categ_Zl.c: New file.
59722         * lib/unictype/categ_Zp.c: New file.
59723         * lib/unictype/categ_Zs.c: New file.
59724         * lib/unictype/categ_and.c: New file.
59725         * lib/unictype/categ_and_not.c: New file.
59726         * lib/unictype/categ_byname.c: New file.
59727         * lib/unictype/categ_name.c: New file.
59728         * lib/unictype/categ_none.c: New file.
59729         * lib/unictype/categ_of.c: New file.
59730         * lib/unictype/categ_or.c: New file.
59731         * lib/unictype/categ_test.c: New file.
59732         * lib/unictype/combining.c: New file.
59733         * lib/unictype/ctype_alnum.c: New file.
59734         * lib/unictype/ctype_alpha.c: New file.
59735         * lib/unictype/ctype_blank.c: New file.
59736         * lib/unictype/ctype_cntrl.c: New file.
59737         * lib/unictype/ctype_digit.c: New file.
59738         * lib/unictype/ctype_graph.c: New file.
59739         * lib/unictype/ctype_lower.c: New file.
59740         * lib/unictype/ctype_print.c: New file.
59741         * lib/unictype/ctype_punct.c: New file.
59742         * lib/unictype/ctype_space.c: New file.
59743         * lib/unictype/ctype_upper.c: New file.
59744         * lib/unictype/ctype_xdigit.c: New file.
59745         * lib/unictype/decdigit.c: New file.
59746         * lib/unictype/digit.c: New file.
59747         * lib/unictype/identsyntaxmap.h: New file.
59748         * lib/unictype/mirror.c: New file.
59749         * lib/unictype/numeric.c: New file.
59750         * lib/unictype/pr_alphabetic.c: New file.
59751         * lib/unictype/pr_ascii_hex_digit.c: New file.
59752         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59753         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59754         * lib/unictype/pr_bidi_block_separator.c: New file.
59755         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59756         * lib/unictype/pr_bidi_common_separator.c: New file.
59757         * lib/unictype/pr_bidi_control.c: New file.
59758         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59759         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59760         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59761         * lib/unictype/pr_bidi_european_digit.c: New file.
59762         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59763         * lib/unictype/pr_bidi_left_to_right.c: New file.
59764         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59765         * lib/unictype/pr_bidi_other_neutral.c: New file.
59766         * lib/unictype/pr_bidi_pdf.c: New file.
59767         * lib/unictype/pr_bidi_segment_separator.c: New file.
59768         * lib/unictype/pr_bidi_whitespace.c: New file.
59769         * lib/unictype/pr_byname.c: New file.
59770         * lib/unictype/pr_byname.gperf: New file.
59771         * lib/unictype/pr_combining.c: New file.
59772         * lib/unictype/pr_composite.c: New file.
59773         * lib/unictype/pr_currency_symbol.c: New file.
59774         * lib/unictype/pr_dash.c: New file.
59775         * lib/unictype/pr_decimal_digit.c: New file.
59776         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59777         * lib/unictype/pr_deprecated.c: New file.
59778         * lib/unictype/pr_diacritic.c: New file.
59779         * lib/unictype/pr_extender.c: New file.
59780         * lib/unictype/pr_format_control.c: New file.
59781         * lib/unictype/pr_grapheme_base.c: New file.
59782         * lib/unictype/pr_grapheme_extend.c: New file.
59783         * lib/unictype/pr_grapheme_link.c: New file.
59784         * lib/unictype/pr_hex_digit.c: New file.
59785         * lib/unictype/pr_hyphen.c: New file.
59786         * lib/unictype/pr_id_continue.c: New file.
59787         * lib/unictype/pr_id_start.c: New file.
59788         * lib/unictype/pr_ideographic.c: New file.
59789         * lib/unictype/pr_ids_binary_operator.c: New file.
59790         * lib/unictype/pr_ids_trinary_operator.c: New file.
59791         * lib/unictype/pr_ignorable_control.c: New file.
59792         * lib/unictype/pr_iso_control.c: New file.
59793         * lib/unictype/pr_join_control.c: New file.
59794         * lib/unictype/pr_left_of_pair.c: New file.
59795         * lib/unictype/pr_line_separator.c: New file.
59796         * lib/unictype/pr_logical_order_exception.c: New file.
59797         * lib/unictype/pr_lowercase.c: New file.
59798         * lib/unictype/pr_math.c: New file.
59799         * lib/unictype/pr_non_break.c: New file.
59800         * lib/unictype/pr_not_a_character.c: New file.
59801         * lib/unictype/pr_numeric.c: New file.
59802         * lib/unictype/pr_other_alphabetic.c: New file.
59803         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59804         * lib/unictype/pr_other_grapheme_extend.c: New file.
59805         * lib/unictype/pr_other_id_continue.c: New file.
59806         * lib/unictype/pr_other_id_start.c: New file.
59807         * lib/unictype/pr_other_lowercase.c: New file.
59808         * lib/unictype/pr_other_math.c: New file.
59809         * lib/unictype/pr_other_uppercase.c: New file.
59810         * lib/unictype/pr_paired_punctuation.c: New file.
59811         * lib/unictype/pr_paragraph_separator.c: New file.
59812         * lib/unictype/pr_pattern_syntax.c: New file.
59813         * lib/unictype/pr_pattern_white_space.c: New file.
59814         * lib/unictype/pr_private_use.c: New file.
59815         * lib/unictype/pr_punctuation.c: New file.
59816         * lib/unictype/pr_quotation_mark.c: New file.
59817         * lib/unictype/pr_radical.c: New file.
59818         * lib/unictype/pr_sentence_terminal.c: New file.
59819         * lib/unictype/pr_soft_dotted.c: New file.
59820         * lib/unictype/pr_space.c: New file.
59821         * lib/unictype/pr_terminal_punctuation.c: New file.
59822         * lib/unictype/pr_test.c: New file.
59823         * lib/unictype/pr_titlecase.c: New file.
59824         * lib/unictype/pr_unassigned_code_value.c: New file.
59825         * lib/unictype/pr_unified_ideograph.c: New file.
59826         * lib/unictype/pr_uppercase.c: New file.
59827         * lib/unictype/pr_variation_selector.c: New file.
59828         * lib/unictype/pr_white_space.c: New file.
59829         * lib/unictype/pr_xid_continue.c: New file.
59830         * lib/unictype/pr_xid_start.c: New file.
59831         * lib/unictype/pr_zero_width.c: New file.
59832         * lib/unictype/scripts.c: New file.
59833         * lib/unictype/sy_c_ident.c: New file.
59834         * lib/unictype/sy_c_whitespace.c: New file.
59835         * lib/unictype/sy_java_ident.c: New file.
59836         * lib/unictype/sy_java_whitespace.c: New file.
59837
59838         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59839         Unicode 5.0.0.
59840         * lib/unictype/blocks.h: Likewise.
59841         * lib/unictype/categ_C.h: Likewise.
59842         * lib/unictype/categ_Cc.h: Likewise.
59843         * lib/unictype/categ_Cf.h: Likewise.
59844         * lib/unictype/categ_Cn.h: Likewise.
59845         * lib/unictype/categ_Co.h: Likewise.
59846         * lib/unictype/categ_Cs.h: Likewise.
59847         * lib/unictype/categ_L.h: Likewise.
59848         * lib/unictype/categ_Ll.h: Likewise.
59849         * lib/unictype/categ_Lm.h: Likewise.
59850         * lib/unictype/categ_Lo.h: Likewise.
59851         * lib/unictype/categ_Lt.h: Likewise.
59852         * lib/unictype/categ_Lu.h: Likewise.
59853         * lib/unictype/categ_M.h: Likewise.
59854         * lib/unictype/categ_Mc.h: Likewise.
59855         * lib/unictype/categ_Me.h: Likewise.
59856         * lib/unictype/categ_Mn.h: Likewise.
59857         * lib/unictype/categ_N.h: Likewise.
59858         * lib/unictype/categ_Nd.h: Likewise.
59859         * lib/unictype/categ_Nl.h: Likewise.
59860         * lib/unictype/categ_No.h: Likewise.
59861         * lib/unictype/categ_P.h: Likewise.
59862         * lib/unictype/categ_Pc.h: Likewise.
59863         * lib/unictype/categ_Pd.h: Likewise.
59864         * lib/unictype/categ_Pe.h: Likewise.
59865         * lib/unictype/categ_Pf.h: Likewise.
59866         * lib/unictype/categ_Pi.h: Likewise.
59867         * lib/unictype/categ_Po.h: Likewise.
59868         * lib/unictype/categ_Ps.h: Likewise.
59869         * lib/unictype/categ_S.h: Likewise.
59870         * lib/unictype/categ_Sc.h: Likewise.
59871         * lib/unictype/categ_Sk.h: Likewise.
59872         * lib/unictype/categ_Sm.h: Likewise.
59873         * lib/unictype/categ_So.h: Likewise.
59874         * lib/unictype/categ_Z.h: Likewise.
59875         * lib/unictype/categ_Zl.h: Likewise.
59876         * lib/unictype/categ_Zp.h: Likewise.
59877         * lib/unictype/categ_Zs.h: Likewise.
59878         * lib/unictype/categ_of.h: Likewise.
59879         * lib/unictype/combining.h: Likewise.
59880         * lib/unictype/ctype_alnum.h: Likewise.
59881         * lib/unictype/ctype_alpha.h: Likewise.
59882         * lib/unictype/ctype_blank.h: Likewise.
59883         * lib/unictype/ctype_cntrl.h: Likewise.
59884         * lib/unictype/ctype_digit.h: Likewise.
59885         * lib/unictype/ctype_graph.h: Likewise.
59886         * lib/unictype/ctype_lower.h: Likewise.
59887         * lib/unictype/ctype_print.h: Likewise.
59888         * lib/unictype/ctype_punct.h: Likewise.
59889         * lib/unictype/ctype_space.h: Likewise.
59890         * lib/unictype/ctype_upper.h: Likewise.
59891         * lib/unictype/ctype_xdigit.h: Likewise.
59892         * lib/unictype/decdigit.h: Likewise.
59893         * lib/unictype/digit.h: Likewise.
59894         * lib/unictype/mirror.h: Likewise.
59895         * lib/unictype/numeric.h: Likewise.
59896         * lib/unictype/pr_alphabetic.h: Likewise.
59897         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59898         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59899         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59900         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59901         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59902         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59903         * lib/unictype/pr_bidi_control.h: Likewise.
59904         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59905         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59906         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59907         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59908         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59909         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59910         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59911         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59912         * lib/unictype/pr_bidi_pdf.h: Likewise.
59913         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59914         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59915         * lib/unictype/pr_combining.h: Likewise.
59916         * lib/unictype/pr_composite.h: Likewise.
59917         * lib/unictype/pr_currency_symbol.h: Likewise.
59918         * lib/unictype/pr_dash.h: Likewise.
59919         * lib/unictype/pr_decimal_digit.h: Likewise.
59920         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59921         * lib/unictype/pr_deprecated.h: Likewise.
59922         * lib/unictype/pr_diacritic.h: Likewise.
59923         * lib/unictype/pr_extender.h: Likewise.
59924         * lib/unictype/pr_format_control.h: Likewise.
59925         * lib/unictype/pr_grapheme_base.h: Likewise.
59926         * lib/unictype/pr_grapheme_extend.h: Likewise.
59927         * lib/unictype/pr_grapheme_link.h: Likewise.
59928         * lib/unictype/pr_hex_digit.h: Likewise.
59929         * lib/unictype/pr_hyphen.h: Likewise.
59930         * lib/unictype/pr_id_continue.h: Likewise.
59931         * lib/unictype/pr_id_start.h: Likewise.
59932         * lib/unictype/pr_ideographic.h: Likewise.
59933         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59934         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59935         * lib/unictype/pr_ignorable_control.h: Likewise.
59936         * lib/unictype/pr_iso_control.h: Likewise.
59937         * lib/unictype/pr_join_control.h: Likewise.
59938         * lib/unictype/pr_left_of_pair.h: Likewise.
59939         * lib/unictype/pr_line_separator.h: Likewise.
59940         * lib/unictype/pr_logical_order_exception.h: Likewise.
59941         * lib/unictype/pr_lowercase.h: Likewise.
59942         * lib/unictype/pr_math.h: Likewise.
59943         * lib/unictype/pr_non_break.h: Likewise.
59944         * lib/unictype/pr_not_a_character.h: Likewise.
59945         * lib/unictype/pr_numeric.h: Likewise.
59946         * lib/unictype/pr_other_alphabetic.h: Likewise.
59947         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59948         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59949         * lib/unictype/pr_other_id_continue.h: Likewise.
59950         * lib/unictype/pr_other_id_start.h: Likewise.
59951         * lib/unictype/pr_other_lowercase.h: Likewise.
59952         * lib/unictype/pr_other_math.h: Likewise.
59953         * lib/unictype/pr_other_uppercase.h: Likewise.
59954         * lib/unictype/pr_paired_punctuation.h: Likewise.
59955         * lib/unictype/pr_paragraph_separator.h: Likewise.
59956         * lib/unictype/pr_pattern_syntax.h: Likewise.
59957         * lib/unictype/pr_pattern_white_space.h: Likewise.
59958         * lib/unictype/pr_private_use.h: Likewise.
59959         * lib/unictype/pr_punctuation.h: Likewise.
59960         * lib/unictype/pr_quotation_mark.h: Likewise.
59961         * lib/unictype/pr_radical.h: Likewise.
59962         * lib/unictype/pr_sentence_terminal.h: Likewise.
59963         * lib/unictype/pr_soft_dotted.h: Likewise.
59964         * lib/unictype/pr_space.h: Likewise.
59965         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59966         * lib/unictype/pr_titlecase.h: Likewise.
59967         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59968         * lib/unictype/pr_unified_ideograph.h: Likewise.
59969         * lib/unictype/pr_uppercase.h: Likewise.
59970         * lib/unictype/pr_variation_selector.h: Likewise.
59971         * lib/unictype/pr_white_space.h: Likewise.
59972         * lib/unictype/pr_xid_continue.h: Likewise.
59973         * lib/unictype/pr_xid_start.h: Likewise.
59974         * lib/unictype/pr_zero_width.h: Likewise.
59975         * lib/unictype/scripts.h: Likewise.
59976         * lib/unictype/scripts_byname.gperf: Likewise.
59977         * lib/unictype/sy_c_ident.h: Likewise.
59978         * lib/unictype/sy_c_whitespace.h: Likewise.
59979         * lib/unictype/sy_java_ident.h: Likewise.
59980         * lib/unictype/sy_java_whitespace.h: Likewise.
59981
59982         * lib/unictype/Makefile: New file.
59983         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59984         glibc.
59985         * lib/unictype/3level.h: New file, copied from glibc.
59986         * lib/unictype/3levelbit.h: New file.
59987
59988 2007-11-11  Bruno Haible  <bruno@clisp.org>
59989
59990         * modules/gperf: New file.
59991         * modules/iconv_open (Depends-on): Add it.
59992         (Makefile.am): Remove the GPERF definition.
59993
59994 2007-11-11  Bruno Haible  <bruno@clisp.org>
59995
59996         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59997         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59998
59999 2007-11-11  Bruno Haible  <bruno@clisp.org>
60000
60001         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60002         (usage): Remove function.
60003
60004 2007-11-11  Bruno Haible  <bruno@clisp.org>
60005
60006         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60007         gl_FUNC_CEILF_LIBS.
60008         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60009         gl_FUNC_CEIL_LIBS.
60010         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60011         gl_FUNC_CEILL_LIBS.
60012         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60013         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60014         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60015
60016 2007-11-11  Bruno Haible  <bruno@clisp.org>
60017
60018         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60019         roundf were declared but do not exist on functions.
60020         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60021         roundl were declared but do not exist on functions.
60022         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60023         HAVE_FLOORL_AND_CEILL, respectively.
60024         Needed for Sun C on Solaris 10.
60025
60026 2007-11-11  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60029         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60030         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60031         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60032         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60033         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60034         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60035         HAVE_DECL_ROUNDF.
60036         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60037         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60039         of HAVE_DECL_ROUND*.
60040         * modules/math (Makefile.am): Update.
60041
60042 2007-11-10  Bruno Haible  <bruno@clisp.org>
60043
60044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60045         ptrdiff_t as m4/intl.m4.
60046
60047 2007-11-10  Jim Meyering  <meyering@redhat.com>
60048
60049         Avoid link failure for the argmatch test.
60050         * tests/test-argmatch.c (usage): Define function to avoid a link
60051         failure: argmatch_die requires a usage function.
60052
60053 2007-11-09  Bruno Haible  <bruno@clisp.org>
60054
60055         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60056         * doc/functions/vsnprintf.texi: Likewise.
60057         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60058         with a size argument < 2.
60059
60060 2007-11-09  Bruno Haible  <bruno@clisp.org>
60061
60062         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60063         buffer. Fixes an inefficiency introduced on 2007-11-03.
60064
60065 2007-11-09  Bruno Haible  <bruno@clisp.org>
60066
60067         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60068         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60069
60070 2007-11-08  Jim Meyering  <meyering@redhat.com>
60071
60072         Change cache variable name prefix "jm_" to "gl_" everywhere.
60073         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60074         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60075         * m4/uptime.m4: s/gl_/jm_/
60076
60077 2007-11-07  Bruno Haible  <bruno@clisp.org>
60078
60079         Update to GNU gettext 0.17.
60080         * m4/intl.m4: Update to GNU gettext 0.17.
60081         * m4/po.m4: Likewise.
60082         * modules/gettext (Files): Remove m4/ulonglong.m4.
60083         (configure.ac): Require gettext infrastructure from version 0.17.
60084
60085 2007-11-06  Bruno Haible  <bruno@clisp.org>
60086
60087         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60088         symbolic values are not defined in a public header.
60089         * lib/freadable.c (freadable) [QNX]: Likewise.
60090         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60091         * lib/freading.c (freading) [QNX]: Likewise.
60092         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60093         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60094         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60095         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60096         Reported by Alain Magloire.
60097
60098         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60099
60100 2007-11-05  Bruno Haible  <bruno@clisp.org>
60101
60102         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60103         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60104         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60105         Reported by Eric Blake.
60106
60107 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60108             Bruno Haible  <bruno@clisp.org>
60109
60110         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60111         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60112         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60113         (malloc): Undefine also before including <stdlib.h>.
60114         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60115         Needed on OSF/1 4.0.
60116
60117 2007-11-05  Jim Meyering  <meyering@redhat.com>
60118
60119         git-version-gen: sync from coreutils.
60120         * build-aux/git-version-gen: Add comments.
60121         Change the first '-' to '.' in the snapshot version string,
60122         e.g., 6.9-377-08144 -> 6.9.377-08144
60123         Remove first parameter.
60124         Don't declare a version "-dirty" merely because a time
60125         stamp has changed.
60126
60127 2007-11-04  Bruno Haible  <bruno@clisp.org>
60128
60129         * lib/lock.h: Protect all macro definitions containing an 'if'
60130         statement through a "do { ... } while (0)".
60131         * lib/tls.h: Likewise.
60132
60133 2007-11-04  Bruno Haible  <bruno@clisp.org>
60134
60135         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60136
60137 2007-11-04  Bruno Haible  <bruno@clisp.org>
60138
60139         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60140         * modules/fprintf-posix (Depends-on): Add nocrash.
60141         * modules/snprintf-posix (Depends-on): Likewise.
60142         * modules/sprintf-posix (Depends-on): Likewise.
60143         * modules/vasnprintf-posix (Depends-on): Likewise.
60144         * modules/vasprintf-posix (Depends-on): Likewise.
60145         * modules/vfprintf-posix (Depends-on): Likewise.
60146         * modules/vsnprintf-posix (Depends-on): Likewise.
60147         * modules/vsprintf-posix (Depends-on): Likewise.
60148         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60149         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60150         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60151         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60152         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60153         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60154         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60155
60156 2007-11-04  Bruno Haible  <bruno@clisp.org>
60157
60158         * modules/nocrash: New file.
60159         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60160         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60161
60162 2007-11-04  Bruno Haible  <bruno@clisp.org>
60163
60164         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60165         precision handling.
60166         * tests/test-vasprintf-posix.c (test_function): Likewise.
60167         * tests/test-snprintf-posix.h (test_function): Likewise.
60168         * tests/test-sprintf-posix.h (test_function): Likewise.
60169
60170         Fix *printf behaviour for large precisions on mingw and BeOS.
60171         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60172         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60174         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60175         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60176         gl_PRINTF_PRECISION and test its result. Invoke
60177         gl_PREREQ_VASNPRINTF_PRECISION.
60178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60185         * doc/functions/fprintf.texi: Update.
60186         * doc/functions/printf.texi: Update.
60187         * doc/functions/snprintf.texi: Update.
60188         * doc/functions/sprintf.texi: Update.
60189         * doc/functions/vfprintf.texi: Update.
60190         * doc/functions/vprintf.texi: Update.
60191         * doc/functions/vsnprintf.texi: Update.
60192         * doc/functions/vsprintf.texi: Update.
60193
60194 2007-11-04  Bruno Haible  <bruno@clisp.org>
60195
60196         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60197
60198 2007-11-04  Bruno Haible  <bruno@clisp.org>
60199
60200         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60201         Reported by Sylvain Beucler <beuc@gnu.org>.
60202
60203 2007-11-03  Bruno Haible  <bruno@clisp.org>
60204
60205         * tests/test-fprintf-posix2.sh: New file.
60206         * tests/test-fprintf-posix2.c: New file.
60207         * modules/fprintf-posix-tests (Files): Add them.
60208         (TESTS): Add test-fprintf-posix2.sh.
60209         (configure.ac): Check for getrlimit and setrlimit.
60210         (check_PROGRAMS): Add test-fprintf-posix2.
60211
60212         * tests/test-printf-posix2.sh: New file.
60213         * tests/test-printf-posix2.c: New file.
60214         * modules/printf-posix-tests (Files): Add them.
60215         (TESTS): Add test-printf-posix2.sh.
60216         (configure.ac): Check for getrlimit and setrlimit.
60217         (check_PROGRAMS): Add test-printf-posix2.
60218
60219         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60220         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60221         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60222         (decode_double): New function, copied from decode_long_double.
60223         (scale10_round_decimal_decoded): New function, extracted from
60224         scale10_round_decimal_long_double.
60225         (scale10_round_decimal_long_double): Use it.
60226         (scale10_round_decimal_double): New function.
60227         (floorlog10): New function.
60228         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60229         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60230         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60231         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60232         gl_PRINTF_ENOMEM and test its result. Invoke
60233         gl_PREREQ_VASNPRINTF_ENOMEM.
60234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60241         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60242         * modules/snprintf-posix (Depends-on): Likewise.
60243         * modules/sprintf-posix (Depends-on): Likewise.
60244         * modules/vasnprintf-posix (Depends-on): Likewise.
60245         * modules/vasprintf-posix (Depends-on): Likewise.
60246         * modules/vfprintf-posix (Depends-on): Likewise.
60247         * modules/vsnprintf-posix (Depends-on): Likewise.
60248         * modules/vsprintf-posix (Depends-on): Likewise.
60249         * doc/functions/fprintf.texi: Update.
60250         * doc/functions/printf.texi: Update.
60251         * doc/functions/snprintf.texi: Update.
60252         * doc/functions/sprintf.texi: Update.
60253         * doc/functions/vfprintf.texi: Update.
60254         * doc/functions/vprintf.texi: Update.
60255         * doc/functions/vsnprintf.texi: Update.
60256         * doc/functions/vsprintf.texi: Update.
60257
60258 2007-11-03  Bruno Haible  <bruno@clisp.org>
60259
60260         * modules/frexp-nolibm-tests: New file.
60261
60262         * modules/frexp-nolibm: New file.
60263         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60264
60265 2007-11-03  Bruno Haible  <bruno@clisp.org>
60266
60267         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60268         value is C99 compliant.
60269         Needed for OSF/1 5.1.
60270
60271 2007-11-03  Bruno Haible  <bruno@clisp.org>
60272
60273         Fix out-of-memory handling of vasnprintf.
60274         * lib/printf-parse.c: Include <errno.h>.
60275         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60276         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60277         is already set.
60278
60279 2007-11-02  Eric Blake  <ebb9@byu.net>
60280
60281         Fix tests on cygwin.
60282         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60283
60284 2007-11-01  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60287         warning.
60288         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60289         needed for POSIX compatibility.
60290
60291 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60292
60293         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60294         for compatibility with GNU.
60295
60296 2007-11-01  Bruno Haible  <bruno@clisp.org>
60297
60298         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60299         (putenv): Renamed from rpl_putenv. Change argument type from
60300         'const char *' to 'char *'.
60301         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60302         of defining putenv in config.h, just set REPLACE_PUTENV.
60303         * modules/putenv (Depends-on): Add stdlib.
60304         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60305         (Include): Use <stdlib.h>.
60306         * lib/stdlib.in.h (putenv): New declaration.
60307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60308         REPLACE_PUTENV.
60309         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60310         REPLACE_PUTENV.
60311         Needed for MacOS X 10.5.0.
60312         Reported by Peter O'Gorman <peter@pogma.com>.
60313
60314 2007-11-01  Jim Meyering  <meyering@redhat.com>
60315
60316         Treat an empty date string exactly like "0".
60317         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60318         if the remaining date string (to be parsed) is empty, use "0".
60319         Reported by Mischa Molhoek and discussed in this thread:
60320         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60321
60322 2007-10-31  Bruno Haible  <bruno@clisp.org>
60323
60324         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60325         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60326         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60327         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60328         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60329         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60330
60331 2007-10-31  Bruno Haible  <bruno@clisp.org>
60332
60333         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60334         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60335         (AC_TYPE_LONG_LONG_INT): Use it.
60336         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60337         it as well.
60338         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60339         to m4/longlong.m4.
60340         * modules/stdint (Files): Remove m4/ulonglong.m4.
60341         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60342         m4/ulonglong.m4.
60343         * modules/strtoumax (Files): Likewise.
60344
60345 2007-10-30  Bruno Haible  <bruno@clisp.org>
60346
60347         * modules/xvasprintf-posix: New file.
60348         Suggested by Eric Blake.
60349
60350 2007-10-30  Bruno Haible  <bruno@clisp.org>
60351
60352         * modules/xprintf-posix-tests: New file.
60353         * tests/test-xprintf-posix.sh: New file.
60354         * tests/test-xprintf-posix.c: New file.
60355         * tests/test-xfprintf-posix.c: New file.
60356
60357         * modules/xprintf-posix: New file.
60358
60359 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60360
60361         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60362         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60363         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60364
60365 2007-10-29  Bruno Haible  <bruno@clisp.org>
60366
60367         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60368         contain the special marker '_cv_'.
60369         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60370         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60371         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60372         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60373         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60374         Reported by Ralf Wildenhues.
60375
60376 2007-10-29  Bruno Haible  <bruno@clisp.org>
60377
60378         * gnulib-tool (func_import): When --lgpl is not specified, set
60379         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60380         GPLv3.
60381         Reported by Simon Josefsson.
60382
60383 2007-10-28  Bruno Haible  <bruno@clisp.org>
60384
60385         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60386         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60387         HAVE_DECL_ISFINITE.
60388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60389         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60390         HAVE_DECL_ISFINITE.
60391
60392 2007-10-28  Bruno Haible  <bruno@clisp.org>
60393
60394         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60395         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60396
60397 2007-10-28  Bruno Haible  <bruno@clisp.org>
60398
60399         Fix link errors with Sun C 5.0 on Solaris 10.
60400         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60401         function is declared but not present in the compiler's libm.
60402         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60403         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60404         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60405         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60406         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60407         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60408         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60410         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60411         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60412         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60413         HAVE_DECL_FLOORL.
60414
60415 2007-10-28  Bruno Haible  <bruno@clisp.org>
60416
60417         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60418         gl_FUNC_FLOORL. Cache the result.
60419         (gl_FUNC_FLOORL): Use it.
60420         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60421         gl_FUNC_CEILL. Cache the result.
60422         (gl_FUNC_CEILL): Use it.
60423
60424         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60425         gl_FUNC_FLOOR. Cache the result.
60426         (gl_FUNC_FLOOR): Use it.
60427         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60428         gl_FUNC_CEIL. Cache the result.
60429         (gl_FUNC_CEIL): Use it.
60430
60431         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60432         gl_FUNC_FLOORF. Cache the result.
60433         (gl_FUNC_FLOORF): Use it.
60434         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60435         gl_FUNC_CEILF. Cache the result.
60436         (gl_FUNC_CEILF): Use it.
60437
60438 2007-10-28  Bruno Haible  <bruno@clisp.org>
60439
60440         * gnulib-tool: Allow specifying the LGPL version number through
60441         --lgpl=2 or --lgpl=3.
60442         (func_usage): Document --lgpl with argument.
60443         Handle --lgpl=... arguments.
60444         (func_import): Recognize also gl_LGPL calls with an argument. When
60445         --lgpl=2 is used and the module's license is just LGPL, report an
60446         error. Set sed_transform_lib_file according to the lgpl variable. In
60447         the generated files, use --lgpl or gl_LGPL invocations with argument,
60448         if necessary.
60449         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60450         an LGPv2+ license.
60451         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60452         gl_LGPL macro.
60453
60454 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60455             Bruno Haible  <bruno@clisp.org>
60456
60457         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60458         (u16_uctomb_aux): Likewise.
60459         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60460         !HAVE_INLINE.
60461         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60462
60463 2007-10-28  Bruno Haible  <bruno@clisp.org>
60464
60465         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60466         Invoke AM_GETTEXT_OPTION if it exists.
60467         * modules/vasprintf: Likewise.
60468         * modules/verror: Likewise.
60469         * modules/xprintf: Likewise.
60470         * modules/xvasprintf: Likewise.
60471
60472 2007-10-27  Ben Pfaff  <blp@gnu.org>
60473
60474         * lib/math.in.h: Define isfinite macro and prototypes for
60475         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60476         implementations.
60477         * m4/math_h.m4: New substitutions for isfinite module.
60478         * lib/isfinite.c: New file.
60479         * m4/isfinite.m4: New file.
60480         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60481         * modules/isfinite: New file.
60482         * modules/isfinite-tests: New file.
60483         * tests/tests-isfinite.c: New file.
60484         * doc/functions/isfinite.texi: Mention isfinite module.
60485         * MODULES.html.sh: Mention new module.
60486
60487 2007-10-27  Ben Pfaff  <blp@gnu.org>
60488
60489         Ralf Wildenhues reported that Tru64 4.0D declares the round
60490         functions but does not have definitions.
60491         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60492         cannot be found in any library, set the output variable to
60493         "missing" instead of "".
60494         * m4/round.m4: Also use our substitute if we cannot find round in
60495         any library, even if it is declared.
60496         * m4/roundf.m4: Likewise for roundf.
60497         * m4/roundl.m4: Likewise for roundl.
60498         * lib/math.in.h: Undefine roundf, round, roundl before defining
60499         their replacements, to allow for hypothetical systems where these
60500         may be defined as macros but not available in libraries.
60501
60502 2007-10-27  Bruno Haible  <bruno@clisp.org>
60503
60504         * doc/gnulib.texi: Invoke @firstparagraphindent.
60505         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60506         changes in gnulib.
60507         (Source changes): New section.
60508
60509 2007-10-26  Bruno Haible  <bruno@clisp.org>
60510
60511         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60512         borrowed from autoconf.
60513
60514 2007-10-26  Bruno Haible  <bruno@clisp.org>
60515
60516         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60517         strerror returned the empty string. Needed on HP-UX 11.00.
60518
60519 2007-10-24  Micah Cowan  <micah@cowan.name>
60520
60521         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60522         * build-aux/bootstrap: Remove support for now-unnecessary option,
60523         --cvs-user, and envvars CVS_USER, CVS_RSH.
60524
60525 2007-10-24  Jim Meyering  <meyering@redhat.com>
60526
60527         Avoid diagnostics from sha1sum when there is no cached checksum.
60528         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60529         if the po.s1 file hasn't been created yet.
60530
60531         * build-aux/bootstrap: Sync from coreutils:
60532         2007-10-24  Jim Meyering  <meyering@redhat.com>
60533         Get gnulib from the git repository, not from an obsolete cvs one.
60534         * build-aux/bootstrap: Suggestion from Micah Cowan.
60535         2007-10-04  Jim Meyering  <jim@meyering.net>
60536         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60537         (update_po_files): Work also when there are no .po files in po/.
60538
60539 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * README: Append ".git" to git and cg examples.
60542         Problem reported by Benoit Sigoure.
60543
60544 2007-10-23  Micah Cowan  <micah@cowan.name>
60545
60546         * users.txt: Add wget.
60547
60548 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60549
60550         Fix linking of some unistdio tests on FreeBSD.
60551         * modules/unistdio/u16-vsnprintf-tests
60552         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60553         * modules/unistdio/u16-vsprintf-tests
60554         (test_u16_vsnprintf1_LDADD): Likewise.
60555         * modules/unistdio/u32-vsnprintf-tests
60556         (test_u32_vsnprintf1_LDADD): Likewise.
60557         * modules/unistdio/u32-vsprintf-tests
60558         (test_u32_vsprintf1_LDADD): Likewise.
60559         * modules/unistdio/u8-vsnprintf-tests
60560         (test_u8_vsnprintf1_LDADD): Likewise.
60561         * modules/unistdio/u8-vsprintf-tests
60562         (test_u8_vsprintf1_LDADD): Likewise.
60563         * modules/unistdio/ulc-vsnprintf-tests
60564         (test_ulc_vsnprintf1_LDADD): Likewise.
60565         * modules/unistdio/ulc-vsprintf-tests
60566         (test_ulc_vsprintf1_LDADD): Likewise.
60567
60568         Fix linking of some uniconv tests on FreeBSD.
60569         * modules/uniconv/u16-conv-from-enc-tests
60570         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60571         * modules/uniconv/u16-conv-to-enc-tests
60572         (test_u16_conv_to_enc_LDADD): Likewise.
60573         * modules/uniconv/u16-strconv-from-enc-tests
60574         (test_u16_strconv_from_enc_LDADD): Likewise.
60575         * modules/uniconv/u16-strconv-to-enc-tests
60576         (test_u16_strconv_to_enc_LDADD): Likewise.
60577         * modules/uniconv/u32-conv-from-enc-tests
60578         (test_u32_conv_from_enc_LDADD): Likewise.
60579         * modules/uniconv/u32-conv-to-enc-tests
60580         (test_u32_conv_to_enc_LDADD): Likewise.
60581         * modules/uniconv/u32-strconv-from-enc-tests
60582         (test_u32_strconv_from_enc_LDADD): Likewise.
60583         * modules/uniconv/u32-strconv-to-enc-tests
60584         (test_u32_strconv_to_enc_LDADD): Likewise.
60585         * modules/uniconv/u8-conv-from-enc-tests
60586         (test_u8_conv_from_enc_LDADD): Likewise.
60587         * modules/uniconv/u8-conv-to-enc-tests
60588         (test_u8_conv_to_enc_LDADD): Likewise.
60589         * modules/uniconv/u8-strconv-from-enc-tests
60590         (test_u8_strconv_from_enc_LDADD): Likewise.
60591         * modules/uniconv/u8-strconv-to-enc-tests
60592         (test_u8_strconv_to_enc_LDADD): Likewise.
60593
60594 2007-10-22  Bruno Haible  <bruno@clisp.org>
60595
60596         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60597         size.
60598
60599 2007-10-22  Eric Blake  <ebb9@byu.net>
60600
60601         Tweak x*printf documentation.
60602         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60603         variable name and comments.
60604         Suggested by Bruno Haible.
60605
60606 2007-10-22  Bruno Haible  <bruno@clisp.org>
60607
60608         * lib/acl.c (copy_acl): Fix file name in comment.
60609
60610 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60611
60612         Fix Tru64 problem with stdbool.h.
60613         * lib/stdbool.in.h (false, true):
60614         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60615         Don't declare as an enum in this situation; it runs afoul of Tru64.
60616         Problem reported by Steven M. Schweda in
60617         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60618
60619 2007-10-22  Eric Blake  <ebb9@byu.net>
60620
60621         Also wrap vf?printf.
60622         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60623         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60624         (xvprintf, xvfprintf): New functions.
60625
60626 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60627
60628         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60629         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60630
60631         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60632         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60633
60634 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60635
60636         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60637         by Bruno Haible.
60638
60639 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60640
60641         * lib/getloadavg.c
60642         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60643         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60644
60645         * tests/test-i-ring.c: Work for C89.
60646
60647 2007-10-22  Bruno Haible  <bruno@clisp.org>
60648
60649         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60650         -1u, in preprocessor expression, so that we don't test for the bug
60651         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60653
60654 2007-10-22  Eric Blake  <ebb9@byu.net>
60655
60656         * tests/test-yesno.sh: Silence stderr during test.
60657
60658 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60659
60660         * modules/crypto/gc-camellia: New file.
60661
60662         * m4/gc-camellia.m4: New file.
60663
60664         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60665
60666         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60667
60668 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60669
60670         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60671         --help to stdout.  Reported by sms@antinode.org (Steven
60672         M. Schweda).
60673
60674 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60675
60676         * users.txt: Fix link to libksba.
60677
60678 2007-10-21  Ben Pfaff  <blp@gnu.org>
60679
60680         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60681         round.c roundf implementation that depends on floorf and ceilf to
60682         be tested unconditionally.
60683
60684 2007-10-21  Ben Pfaff  <blp@gnu.org>
60685
60686         * m4/check-libm-func.m4: Removed.
60687         * m4/check-math-lib.m4: New file.
60688         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60689         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60690         definition and lack of AC_LIBOBJ([roundf]).
60691         * m4/roundl.m4: Ditto, and similarly for roundl.
60692         * modules/round: Reference new m4 file.
60693         * modules/roundf: Ditto.
60694         * modules/roundl: Ditto.
60695         * tests/test-round2.c (main): Use ROUND instead of round.
60696         Bug report from Bruno Haible.
60697
60698 2007-10-21  Bruno Haible  <bruno@clisp.org>
60699
60700         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60701         context.
60702
60703 2007-10-21  Bruno Haible  <bruno@clisp.org>
60704
60705         * tests/test-wcwidth.c (main): Allow negative result for some control
60706         characters.
60707
60708         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60709         Needed on OSF/1 5.1.
60710
60711 2007-10-21  Bruno Haible  <bruno@clisp.org>
60712
60713         * tests/test-floorf1.c: Include isnanf.h.
60714         (main): Use isnanf() instead of isnan().
60715         * tests/test-ceilf1.c: Include isnanf.h.
60716         (main): Use isnanf() instead of isnan().
60717         * tests/test-truncf1.c: Include isnanf.h.
60718         (main): Use isnanf() instead of isnan().
60719         * tests/test-roundf1.c: Include isnanf.h.
60720         (main): Use isnanf() instead of isnan().
60721
60722 2007-10-21  Eric Blake  <ebb9@byu.net>
60723
60724         * users.txt: Update URL for m4.
60725
60726 2007-10-21  Bruno Haible  <bruno@clisp.org>
60727
60728         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60729
60730 2007-10-21  Bruno Haible  <bruno@clisp.org>
60731
60732         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60733         Git's management files if the CVS files are not present.
60734
60735 2007-10-20  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60738         gcc-3.4.x.
60739
60740 2007-10-20  Ben Pfaff  <blp@gnu.org>
60741
60742         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60743         implementations.
60744         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60745         * lib/round.c: New file.
60746         * lib/roundf.c: New file.
60747         * lib/roundl.c: New file.
60748         * m4/round.m4: New file.
60749         * m4/roundf.m4: New file.
60750         * m4/roundl.m4: New file.
60751         * m4/check-libm-func-m4: New file.
60752         * modules/math: Replace round, roundf, roundl related @VARS@ in
60753         math.in.h.
60754         * modules/round: New file.
60755         * modules/round-tests: New file.
60756         * modules/roundf: New file.
60757         * modules/roundf-tests: New file.
60758         * modules/roundl: New file.
60759         * modules/roundl-tests: New file.
60760         * tests/test-round1.c: New file.
60761         * tests/test-round2.c: New file.
60762         * tests/test-roundf1.c: New file.
60763         * tests/test-roundf2.c: New file.
60764         * tests/test-roundl.c: New file.
60765         * doc/functions/round.texi: Mention round module.
60766         * doc/functions/roundf.texi: Mention roundf module.
60767         * doc/functions/roundl.texi: Mention roundl module.
60768         * MODULES.html.sh: Mention new modules.
60769         Thanks to Bruno Haible for suggestions.
60770
60771 2007-10-20  Jim Meyering  <meyering@redhat.com>
60772
60773         * lib/xprintf.c: Include <config.h> unconditionally.
60774
60775         Change xprintf's license to GPL.
60776         * modules/xprintf (License): s/LGPL/GPL/, since this module
60777         depends on modules (exit and exitfail) which are GPL.
60778         Suggestion from Bruno Haible.
60779
60780         xprintf fixes.
60781         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60782         Use a clearer diagnostic.
60783         Patch from Bruno Haible.
60784
60785 2007-10-20  Bruno Haible  <bruno@clisp.org>
60786
60787         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60788         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60789         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60790
60791 2007-10-20  Bruno Haible  <bruno@clisp.org>
60792
60793         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60794         precision in the comparison result > x - 1 or similar.
60795         * tests/test-ceilf2.c (correct_result_p): Likewise.
60796         * tests/test-truncf2.c (correct_result_p): Likewise.
60797         * tests/test-trunc2.c (correct_result_p): Likewise.
60798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60799
60800 2007-10-20  Bruno Haible  <bruno@clisp.org>
60801
60802         * modules/ceil: New file.
60803         * m4/ceil.m4: New file.
60804         * doc/functions/ceil.texi: Mention the 'ceil' module.
60805
60806 2007-10-20  Bruno Haible  <bruno@clisp.org>
60807
60808         * modules/floor: New file.
60809         * m4/floor.m4: New file.
60810         * doc/functions/floor.texi: Mention the 'floor' module.
60811
60812 2007-10-20  Bruno Haible  <bruno@clisp.org>
60813
60814         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60815         of %a.
60816         * modules/floorf-tests (Depends-on): Likewise.
60817         * modules/truncf-tests (Depends-on): Likewise.
60818         * modules/trunc-tests (Depends-on): Likewise.
60819         Reported by Ben Pfaff.
60820
60821 2007-10-19  Jim Meyering  <meyering@redhat.com>
60822
60823         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60824         Don't bother testing specific errno values.  Just test ferror.
60825
60826         New module: xprintf
60827         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60828
60829 2007-10-19  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60832         syntax.
60833         * modules/javaexec (Makefile.am): Likewise.
60834         * modules/relocatable-prog (Makefile.am): Likewise.
60835         Suggested by Jim Meyering.
60836
60837 2007-10-18  Bruno Haible  <bruno@clisp.org>
60838
60839         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60840         Reported by Jim Meyering.
60841
60842 2007-10-18  Eric Blake  <ebb9@byu.net>
60843
60844         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60845
60846 2007-10-18  Bruno Haible  <bruno@clisp.org>
60847
60848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60849         the format string into writable memory. Needed in Fortify conditions.
60850
60851 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60852             Bruno Haible  <bruno@clisp.org>
60853
60854         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60855         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60856         * modules/trim (Depends-on): Add mbchar.
60857         (configure.ac): Add gl_FUNC_MBRTOWC.
60858         (Makefile.am): Augment lib_SOURCES.
60859
60860 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60861
60862         Modify glob.c to use fstatat and dirfd, to simplify it.
60863         Suggested by Eric Blake.
60864         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60865         Don't include <stdbool.h>; not used.
60866         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60867         (link_exists_p): Simplify implementation, since we can now assume
60868         dirfd and fstatat.
60869         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60870
60871 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60872
60873         * gnulib-tool (func_get_dependencies): Fix sed script to
60874         match only tests.
60875
60876 2007-10-17  Bruno Haible  <bruno@clisp.org>
60877
60878         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60879         allow locale names without encoding suffix.
60880         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60881         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60882
60883 2007-10-16  Bruno Haible  <bruno@clisp.org>
60884
60885         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60886         * lib/getgroups.c (getgroups): Likewise.
60887         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60888
60889 2007-10-16  Bruno Haible  <bruno@clisp.org>
60890
60891         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60892         * modules/malloc-posix (License): Likewise.
60893         * modules/realloc-posix (License): Likewise.
60894         * modules/calloc-posix (License): Likewise.
60895         * modules/intprops (License): Change from GPL to LGPL, with
60896         Paul Eggert's approval.
60897
60898 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60899
60900         Merge glibc changes into lib/glob.c.
60901
60902         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60903         2007-10-15 04:59:03 UTC.  Here are the changes:
60904
60905         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60906
60907         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60908
60909         * lib/glob.c: Add some branch prediction throughout.
60910
60911         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60912
60913         [BZ #5103]
60914         * lib/glob.c (glob): Recognize patterns starting \/.
60915
60916         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60917
60918         [BZ #3996]
60919         * lib/glob.c (attribute_hidden): Define if not defined.
60920         (glob): Unescape dirname, filename or username when needed and not
60921         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60922         is NULL.  Handle unescaped [ in pattern without closing ].
60923         Don't pass GLOB_CHECK down to recursive glob for directories.
60924         (__glob_pattern_type): New function.
60925         (__glob_pattern_p): Implement using __glob_pattern_type.
60926         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60927         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60928         Remove unreachable code.
60929
60930         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60931
60932         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60933         explain why there are no leaks.
60934
60935         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60936
60937         [BZ #3253]
60938         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60939         time, rather allocate increasingly bigger arrays of pointers, if
60940         possible with alloca, if too large with malloc.
60941
60942 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60943
60944         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60945         Problem reported by H.Merijn Brand in
60946         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60947         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60948         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60949
60950 2007-10-15  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60953         with explicit rpl_ prefix.
60954         * lib/fopen.c (fopen): Likewise.
60955         * lib/freopen.c (freopen): Likewise.
60956         * lib/iconv.c (iconv): Likewise.
60957         * lib/iconv_close.c (iconv_close): Likewise.
60958
60959 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60960
60961         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60962
60963 2007-10-15  Bruno Haible  <bruno@clisp.org>
60964
60965         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60966         <stddef.h> instead of <stdlib.h> since we only need NULL.
60967         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60968
60969 2007-10-15  Bruno Haible  <bruno@clisp.org>
60970
60971         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60972         Replace paragraph talking about LIBOBJS.
60973         Reported by Colin Watson <cjwatson@debian.org>.
60974
60975 2007-10-15  Bruno Haible  <bruno@clisp.org>
60976
60977         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60978         <stdlib.h> before using NULL.
60979
60980 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60981
60982         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60983         Reported by Albert Chin <china@thewrittenword.com>.
60984
60985 2007-10-14  Bruno Haible  <bruno@clisp.org>
60986
60987         * modules/iconv_open-utf-tests: New file.
60988         * tests/test-iconv-utf.c: New file.
60989
60990         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60991         * modules/iconv_open-utf: New file.
60992         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60993         (iconv, iconv_close): New declarations.
60994         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60995         be defined.
60996         (iconv_open): Add special handling of conversion between UTF-8 and
60997         UTF-{16,32}{BE,LE}.
60998         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60999         * lib/iconv_close.c: New file.
61000         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61001         gl_FUNC_ICONV_OPEN.
61002         (gl_FUNC_ICONV_OPEN): Use it.
61003         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61004         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61005         and REPLACE_ICONV_UTF.
61006         * modules/iconv_open (Depends-on): Add c-strcase.
61007         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61008         ICONV_CONST.
61009         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61010
61011 2007-10-13  Albert Chin  <china@thewrittenword.com>
61012             Bruno Haible  <bruno@clisp.org>
61013
61014         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61015         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61016
61017 2007-10-13  Bruno Haible  <bruno@clisp.org>
61018
61019         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61020         defined, use the ISO C99 inline semantics.
61021         * lib/argp.h (ARGP_EI): Likewise.
61022
61023 2007-10-13  Bruno Haible  <bruno@clisp.org>
61024
61025         Handle 'inline' change in gcc 4.3.0.
61026         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61027         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61028         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61029         argp_fmtstream_point): Disable 'extern' declaration if the function
61030         definition is going to be provided inline.
61031         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61032         semantics, not the ISO C99 inline semantics.
61033         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61034         'extern' declaration if the function definition is going to be provided
61035         inline.
61036         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61037         the GNU C inline semantics, not the ISO C99 inline semantics. With
61038         GCC 4.2, avoid a warning.
61039
61040 2007-10-13  Bruno Haible  <bruno@clisp.org>
61041
61042         * lib/freading.h (freading): Enable the use of __freading for
61043         glibc >= 2.7.
61044         * lib/freading.c (freading): Likewise.
61045
61046 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61047
61048         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61049         "warning: C99 inline functions are not supported; using GNU89".
61050
61051 2007-10-12  Bruno Haible  <bruno@clisp.org>
61052
61053         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61054         of 2.
61055         * tests/test-ceilf2.c: New file.
61056         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61057
61058         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61059         * modules/ceilf-tests: Update.
61060
61061 2007-10-12  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61064         of 2.
61065         * tests/test-floorf2.c: New file.
61066         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61067
61068         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61069         * modules/floorf-tests: Update.
61070
61071 2007-10-12  Bruno Haible  <bruno@clisp.org>
61072
61073         * tests/test-trunc2.c: New file.
61074         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61075
61076         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61077         * modules/trunc-tests: Update.
61078
61079 2007-10-12  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61082         of 2.
61083         * tests/test-truncf2.c: New file.
61084         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61085
61086         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61087         * modules/truncf-tests: Update.
61088
61089 2007-10-11  Eric Blake  <ebb9@byu.net>
61090
61091         Don't claim strerror is broken on Interix.
61092         * doc/functions/strerror.texi (strerror): Known broken systems are
61093         now Solaris 8, and not Interix.
61094         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61095         Interix on cross-compile.
61096         Reported by Martin Koeppe in
61097         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61098
61099 2007-10-11  Bruno Haible  <bruno@clisp.org>
61100
61101         * modules/i-ring-tests: New file.
61102         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61103         instead of assert.
61104
61105 2007-10-11  Bruno Haible  <bruno@clisp.org>
61106
61107         * modules/filenamecat-tests: New file.
61108         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61109         * lib/filenamecat.c: Remove test code.
61110
61111 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61112
61113         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61114
61115         * lib/strerror.c: Include <string.h> always, to test interface,
61116         and to remove the need for the dummy.
61117         Include intprops.h to compute width instead of doing it ourselves
61118         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61119         (strerror): Define it to return NULL if there's no system strerror.
61120         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61121         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61122         ancient pre-strerror Unix systems well any more.  Saying "unknown
61123         system error" is enough.
61124         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61125         simpler strerror.c implementation.
61126         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61127         Simplify the tests to reflect the simpler strerror implementation.
61128         * modules/strerror (Depends-on): Add intprops.
61129
61130 2007-10-09  Eric Blake  <ebb9@byu.net>
61131
61132         Silence test-fpending.
61133         * modules/fpending-tests (Files): Add wrapper script.
61134         * tests/test-fpending.sh: New file.
61135
61136 2007-10-09  Bruno Haible  <bruno@clisp.org>
61137
61138         * MODULES.html.sh (func_module): Don't create a hyperlink for
61139         function names like 'printf_frexp'.
61140         (Misc): Add crc, memxor.
61141         (Characteristics of floating types): New section.
61142         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61143         isnanf-nolibm, signbit, trunc, truncf, truncl.
61144         (Enhancements for ISO C 99 functions): New subsection Input/output.
61145         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61146         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61147         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61148         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61149         (Enhancements for POSIX:2001 functions): Add chdir-long.
61150         (File system functions): Add areadlink, chdir-safer, read-file.
61151         Remove cycle-check.
61152         (File system as inode set): New section.
61153         (Date and time): Add gethrxtime.
61154         (Multithreading): Add openmp.
61155         (Internationalization functions): Add localename.
61156         (Unicode string functions): Add unistr/u*-mbsnlen.
61157         (Support for maintaining and releasing projects): Add git-version-gen.
61158         (Lone files): Remove directories.
61159
61160 2007-10-08  Ben Pfaff  <blp@gnu.org>
61161
61162         * lib/xmalloca.h: Fix typo in comment.
61163
61164 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61165
61166         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61167         when avoiding problems with integer overflow.  Use a portable test
61168         instead.
61169
61170 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61171
61172         * modules/dummy (License): Change to LGPLv2+.
61173         * modules/float (License): Likewise
61174         * modules/realloc (License): Likewise
61175         * modules/stdlib (License): Likewise
61176
61177 2007-10-07  Bruno Haible  <bruno@clisp.org>
61178
61179         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61180         * floor.c (TWO_MANT_DIG): Likewise.
61181         * ceil.c (TWO_MANT_DIG): Likewise.
61182         Reported by Ben Pfaff.
61183
61184 2007-10-07  Bruno Haible  <bruno@clisp.org>
61185
61186         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61187         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61188         * lib/frexp.c (FUNC): Likewise.
61189         * lib/printf-frexp.h (printf_frexp): Likewise.
61190         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61191         * lib/printf-frexp.c (FUNC): Likewise.
61192         Suggested by Jim Meyering.
61193
61194 2007-10-07  Jim Meyering  <meyering@redhat.com>
61195
61196         Make xnanosleep's integer overflow test more robust.
61197         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61198         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61199
61200 2007-10-07  Bruno Haible  <bruno@clisp.org>
61201
61202         * NEWS: Mention the license change.
61203
61204         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61205         abbreviations in the modules files.
61206
61207         Change copyright notice from GPLv2+ to GPLv3+.
61208         * README: Change copyright notice.
61209         * MODULES.html.sh: Likewise.
61210         * build-aux/bootstrap.conf: Likewise.
61211         * build-aux/config.libpath: Likewise.
61212         * build-aux/csharpcomp.sh.in: Likewise.
61213         * build-aux/csharpexec.sh.in: Likewise.
61214         * build-aux/install-reloc: Likewise.
61215         * build-aux/javacomp.sh.in: Likewise.
61216         * build-aux/javaexec.sh.in: Likewise.
61217         * build-aux/ldd.sh.in: Likewise.
61218         * build-aux/reloc-ldflags: Likewise.
61219         * build-aux/relocatable.sh.in: Likewise.
61220         * build-aux/x-to-1.in: Likewise.
61221         * check-module: Likewise.
61222         * config/srclistvars.sh: Likewise.
61223         * gnulib-tool: Likewise.
61224         * lib/acl-internal.h: Likewise.
61225         * lib/acl.c: Likewise.
61226         * lib/acl.h: Likewise.
61227         * lib/acl_entries.c: Likewise.
61228         * lib/areadlink-with-size.c: Likewise.
61229         * lib/areadlink.c: Likewise.
61230         * lib/areadlink.h: Likewise.
61231         * lib/argmatch.c: Likewise.
61232         * lib/argmatch.h: Likewise.
61233         * lib/argp-ba.c: Likewise.
61234         * lib/argp-eexst.c: Likewise.
61235         * lib/argp-fmtstream.c: Likewise.
61236         * lib/argp-fmtstream.h: Likewise.
61237         * lib/argp-fs-xinl.c: Likewise.
61238         * lib/argp-help.c: Likewise.
61239         * lib/argp-namefrob.h: Likewise.
61240         * lib/argp-parse.c: Likewise.
61241         * lib/argp-pin.c: Likewise.
61242         * lib/argp-pv.c: Likewise.
61243         * lib/argp-pvh.c: Likewise.
61244         * lib/argp-xinl.c: Likewise.
61245         * lib/argp.h: Likewise.
61246         * lib/at-func.c: Likewise.
61247         * lib/atanl.c: Likewise.
61248         * lib/backupfile.c: Likewise.
61249         * lib/backupfile.h: Likewise.
61250         * lib/basename.c: Likewise.
61251         * lib/binary-io.h: Likewise.
61252         * lib/byteswap.in.h: Likewise.
61253         * lib/c-stack.c: Likewise.
61254         * lib/c-stack.h: Likewise.
61255         * lib/c-strcasestr.c: Likewise.
61256         * lib/c-strcasestr.h: Likewise.
61257         * lib/c-strstr.c: Likewise.
61258         * lib/c-strstr.h: Likewise.
61259         * lib/c-strtod.c: Likewise.
61260         * lib/calloc.c: Likewise.
61261         * lib/canon-host.c: Likewise.
61262         * lib/canon-host.h: Likewise.
61263         * lib/canonicalize-lgpl.c: Likewise.
61264         * lib/canonicalize.c: Likewise.
61265         * lib/canonicalize.h: Likewise.
61266         * lib/ceil.c: Likewise.
61267         * lib/ceilf.c: Likewise.
61268         * lib/ceill.c: Likewise.
61269         * lib/chdir-long.c: Likewise.
61270         * lib/chdir-long.h: Likewise.
61271         * lib/chdir-safer.c: Likewise.
61272         * lib/chdir-safer.h: Likewise.
61273         * lib/chown.c: Likewise.
61274         * lib/classpath.c: Likewise.
61275         * lib/classpath.h: Likewise.
61276         * lib/clean-temp.c: Likewise.
61277         * lib/clean-temp.h: Likewise.
61278         * lib/cloexec.c: Likewise.
61279         * lib/close-stream.c: Likewise.
61280         * lib/closein.c: Likewise.
61281         * lib/closein.h: Likewise.
61282         * lib/closeout.c: Likewise.
61283         * lib/closeout.h: Likewise.
61284         * lib/concat-filename.c: Likewise.
61285         * lib/copy-file.c: Likewise.
61286         * lib/copy-file.h: Likewise.
61287         * lib/count-one-bits.h: Likewise.
61288         * lib/crc.c: Likewise.
61289         * lib/crc.h: Likewise.
61290         * lib/creat-safer.c: Likewise.
61291         * lib/csharpcomp.c: Likewise.
61292         * lib/csharpcomp.h: Likewise.
61293         * lib/csharpexec.c: Likewise.
61294         * lib/csharpexec.h: Likewise.
61295         * lib/cycle-check.c: Likewise.
61296         * lib/cycle-check.h: Likewise.
61297         * lib/diacrit.c: Likewise.
61298         * lib/diacrit.h: Likewise.
61299         * lib/diffseq.h: Likewise.
61300         * lib/dirchownmod.c: Likewise.
61301         * lib/dirent.in.h: Likewise.
61302         * lib/dirfd.c: Likewise.
61303         * lib/dirfd.h: Likewise.
61304         * lib/dirname.c: Likewise.
61305         * lib/dirname.h: Likewise.
61306         * lib/dummy.c: Likewise.
61307         * lib/dup-safer.c: Likewise.
61308         * lib/dup2.c: Likewise.
61309         * lib/eealloc.h: Likewise.
61310         * lib/error.c: Likewise.
61311         * lib/error.h: Likewise.
61312         * lib/euidaccess.c: Likewise.
61313         * lib/exclude.c: Likewise.
61314         * lib/exclude.h: Likewise.
61315         * lib/execute.c: Likewise.
61316         * lib/execute.h: Likewise.
61317         * lib/exitfail.c: Likewise.
61318         * lib/exitfail.h: Likewise.
61319         * lib/expl.c: Likewise.
61320         * lib/fatal-signal.c: Likewise.
61321         * lib/fatal-signal.h: Likewise.
61322         * lib/fbufmode.c: Likewise.
61323         * lib/fbufmode.h: Likewise.
61324         * lib/fchdir.c: Likewise.
61325         * lib/fchmodat.c: Likewise.
61326         * lib/fchownat.c: Likewise.
61327         * lib/fcntl--.h: Likewise.
61328         * lib/fcntl-safer.h: Likewise.
61329         * lib/fcntl.in.h: Likewise.
61330         * lib/fd-safer.c: Likewise.
61331         * lib/fflush.c: Likewise.
61332         * lib/file-has-acl.c: Likewise.
61333         * lib/file-set.c: Likewise.
61334         * lib/file-type.c: Likewise.
61335         * lib/file-type.h: Likewise.
61336         * lib/fileblocks.c: Likewise.
61337         * lib/filemode.c: Likewise.
61338         * lib/filemode.h: Likewise.
61339         * lib/filename.h: Likewise.
61340         * lib/filenamecat.c: Likewise.
61341         * lib/filenamecat.h: Likewise.
61342         * lib/findprog.c: Likewise.
61343         * lib/findprog.h: Likewise.
61344         * lib/float.in.h: Likewise.
61345         * lib/floor.c: Likewise.
61346         * lib/floorf.c: Likewise.
61347         * lib/floorl.c: Likewise.
61348         * lib/fopen-safer.c: Likewise.
61349         * lib/fopen.c: Likewise.
61350         * lib/fpending.c: Likewise.
61351         * lib/fpending.h: Likewise.
61352         * lib/fprintf.c: Likewise.
61353         * lib/fprintftime.h: Likewise.
61354         * lib/fpucw.h: Likewise.
61355         * lib/fpurge.c: Likewise.
61356         * lib/fpurge.h: Likewise.
61357         * lib/freadable.c: Likewise.
61358         * lib/freadable.h: Likewise.
61359         * lib/freadahead.c: Likewise.
61360         * lib/freadahead.h: Likewise.
61361         * lib/freading.c: Likewise.
61362         * lib/freading.h: Likewise.
61363         * lib/free.c: Likewise.
61364         * lib/freopen.c: Likewise.
61365         * lib/frexp.c: Likewise.
61366         * lib/frexpl.c: Likewise.
61367         * lib/fseek.c: Likewise.
61368         * lib/fseterr.c: Likewise.
61369         * lib/fseterr.h: Likewise.
61370         * lib/fstatat.c: Likewise.
61371         * lib/fstrcmp.c: Likewise.
61372         * lib/fstrcmp.h: Likewise.
61373         * lib/fsusage.c: Likewise.
61374         * lib/fsusage.h: Likewise.
61375         * lib/ftell.c: Likewise.
61376         * lib/ftello.c: Likewise.
61377         * lib/fts-cycle.c: Likewise.
61378         * lib/fts.c: Likewise.
61379         * lib/fts_.h: Likewise.
61380         * lib/full-read.c: Likewise.
61381         * lib/full-read.h: Likewise.
61382         * lib/full-write.c: Likewise.
61383         * lib/full-write.h: Likewise.
61384         * lib/fwritable.c: Likewise.
61385         * lib/fwritable.h: Likewise.
61386         * lib/fwriteerror.c: Likewise.
61387         * lib/fwriteerror.h: Likewise.
61388         * lib/fwriting.c: Likewise.
61389         * lib/fwriting.h: Likewise.
61390         * lib/gcd.c: Likewise.
61391         * lib/gcd.h: Likewise.
61392         * lib/getcwd.c: Likewise.
61393         * lib/getdate.h: Likewise.
61394         * lib/getdate.y: Likewise.
61395         * lib/getdomainname.c: Likewise.
61396         * lib/getdomainname.h: Likewise.
61397         * lib/getgroups.c: Likewise.
61398         * lib/gethostname.c: Likewise.
61399         * lib/gethrxtime.c: Likewise.
61400         * lib/gethrxtime.h: Likewise.
61401         * lib/getloadavg.c: Likewise.
61402         * lib/getndelim2.c: Likewise.
61403         * lib/getndelim2.h: Likewise.
61404         * lib/getnline.c: Likewise.
61405         * lib/getnline.h: Likewise.
61406         * lib/getopt.c: Likewise.
61407         * lib/getopt.in.h: Likewise.
61408         * lib/getopt1.c: Likewise.
61409         * lib/getopt_int.h: Likewise.
61410         * lib/getpagesize.h: Likewise.
61411         * lib/getsubopt.c: Likewise.
61412         * lib/gettime.c: Likewise.
61413         * lib/getugroups.c: Likewise.
61414         * lib/getugroups.h: Likewise.
61415         * lib/getusershell.c: Likewise.
61416         * lib/gl_anyavltree_list1.h: Likewise.
61417         * lib/gl_anyavltree_list2.h: Likewise.
61418         * lib/gl_anyhash_list1.h: Likewise.
61419         * lib/gl_anyhash_list2.h: Likewise.
61420         * lib/gl_anylinked_list1.h: Likewise.
61421         * lib/gl_anylinked_list2.h: Likewise.
61422         * lib/gl_anyrbtree_list1.h: Likewise.
61423         * lib/gl_anyrbtree_list2.h: Likewise.
61424         * lib/gl_anytree_list1.h: Likewise.
61425         * lib/gl_anytree_list2.h: Likewise.
61426         * lib/gl_anytree_oset.h: Likewise.
61427         * lib/gl_anytreehash_list1.h: Likewise.
61428         * lib/gl_anytreehash_list2.h: Likewise.
61429         * lib/gl_array_list.c: Likewise.
61430         * lib/gl_array_list.h: Likewise.
61431         * lib/gl_array_oset.c: Likewise.
61432         * lib/gl_array_oset.h: Likewise.
61433         * lib/gl_avltree_list.c: Likewise.
61434         * lib/gl_avltree_list.h: Likewise.
61435         * lib/gl_avltree_oset.c: Likewise.
61436         * lib/gl_avltree_oset.h: Likewise.
61437         * lib/gl_avltreehash_list.c: Likewise.
61438         * lib/gl_avltreehash_list.h: Likewise.
61439         * lib/gl_carray_list.c: Likewise.
61440         * lib/gl_carray_list.h: Likewise.
61441         * lib/gl_linked_list.c: Likewise.
61442         * lib/gl_linked_list.h: Likewise.
61443         * lib/gl_linkedhash_list.c: Likewise.
61444         * lib/gl_linkedhash_list.h: Likewise.
61445         * lib/gl_list.c: Likewise.
61446         * lib/gl_list.h: Likewise.
61447         * lib/gl_oset.c: Likewise.
61448         * lib/gl_oset.h: Likewise.
61449         * lib/gl_rbtree_list.c: Likewise.
61450         * lib/gl_rbtree_list.h: Likewise.
61451         * lib/gl_rbtree_oset.c: Likewise.
61452         * lib/gl_rbtree_oset.h: Likewise.
61453         * lib/gl_rbtreehash_list.c: Likewise.
61454         * lib/gl_rbtreehash_list.h: Likewise.
61455         * lib/gl_sublist.c: Likewise.
61456         * lib/gl_sublist.h: Likewise.
61457         * lib/group-member.c: Likewise.
61458         * lib/group-member.h: Likewise.
61459         * lib/hard-locale.c: Likewise.
61460         * lib/hard-locale.h: Likewise.
61461         * lib/hash-pjw.c: Likewise.
61462         * lib/hash-pjw.h: Likewise.
61463         * lib/hash-triple.c: Likewise.
61464         * lib/hash.c: Likewise.
61465         * lib/hash.h: Likewise.
61466         * lib/human.c: Likewise.
61467         * lib/human.h: Likewise.
61468         * lib/i-ring.c: Likewise.
61469         * lib/i-ring.h: Likewise.
61470         * lib/idcache.c: Likewise.
61471         * lib/imaxabs.c: Likewise.
61472         * lib/imaxdiv.c: Likewise.
61473         * lib/inet_pton.c: Likewise.
61474         * lib/inet_pton.h: Likewise.
61475         * lib/intprops.h: Likewise.
61476         * lib/inttostr.c: Likewise.
61477         * lib/inttostr.h: Likewise.
61478         * lib/inttypes.in.h: Likewise.
61479         * lib/isapipe.c: Likewise.
61480         * lib/isdir.c: Likewise.
61481         * lib/isnan.c: Likewise.
61482         * lib/isnan.h: Likewise.
61483         * lib/isnanf.c: Likewise.
61484         * lib/isnanf.h: Likewise.
61485         * lib/isnanl-nolibm.h: Likewise.
61486         * lib/isnanl.c: Likewise.
61487         * lib/isnanl.h: Likewise.
61488         * lib/javacomp.c: Likewise.
61489         * lib/javacomp.h: Likewise.
61490         * lib/javaexec.c: Likewise.
61491         * lib/javaexec.h: Likewise.
61492         * lib/javaversion.c: Likewise.
61493         * lib/javaversion.h: Likewise.
61494         * lib/javaversion.java: Likewise.
61495         * lib/lbrkprop.h: Likewise.
61496         * lib/lchmod.h: Likewise.
61497         * lib/lchown.c: Likewise.
61498         * lib/ldexpl.c: Likewise.
61499         * lib/linebreak.c: Likewise.
61500         * lib/linebreak.h: Likewise.
61501         * lib/linebuffer.c: Likewise.
61502         * lib/linebuffer.h: Likewise.
61503         * lib/locale.in.h: Likewise.
61504         * lib/logl.c: Likewise.
61505         * lib/long-options.c: Likewise.
61506         * lib/long-options.h: Likewise.
61507         * lib/lstat.c: Likewise.
61508         * lib/lstat.h: Likewise.
61509         * lib/math.in.h: Likewise.
61510         * lib/mbchar.c: Likewise.
61511         * lib/mbchar.h: Likewise.
61512         * lib/mbfile.h: Likewise.
61513         * lib/mbiter.h: Likewise.
61514         * lib/mbscasecmp.c: Likewise.
61515         * lib/mbscasestr.c: Likewise.
61516         * lib/mbschr.c: Likewise.
61517         * lib/mbscspn.c: Likewise.
61518         * lib/mbslen.c: Likewise.
61519         * lib/mbsncasecmp.c: Likewise.
61520         * lib/mbsnlen.c: Likewise.
61521         * lib/mbspbrk.c: Likewise.
61522         * lib/mbspcasecmp.c: Likewise.
61523         * lib/mbsrchr.c: Likewise.
61524         * lib/mbssep.c: Likewise.
61525         * lib/mbsspn.c: Likewise.
61526         * lib/mbsstr.c: Likewise.
61527         * lib/mbstok_r.c: Likewise.
61528         * lib/mbswidth.c: Likewise.
61529         * lib/mbswidth.h: Likewise.
61530         * lib/mbuiter.h: Likewise.
61531         * lib/memcasecmp.c: Likewise.
61532         * lib/memcasecmp.h: Likewise.
61533         * lib/memchr.c: Likewise.
61534         * lib/memcmp.c: Likewise.
61535         * lib/memcoll.c: Likewise.
61536         * lib/memcoll.h: Likewise.
61537         * lib/memcpy.c: Likewise.
61538         * lib/memrchr.c: Likewise.
61539         * lib/mkancesdirs.c: Likewise.
61540         * lib/mkdir-p.c: Likewise.
61541         * lib/mkdir-p.h: Likewise.
61542         * lib/mkdir.c: Likewise.
61543         * lib/mkdirat.c: Likewise.
61544         * lib/mkdtemp.c: Likewise.
61545         * lib/mkstemp-safer.c: Likewise.
61546         * lib/mkstemp.c: Likewise.
61547         * lib/modechange.c: Likewise.
61548         * lib/modechange.h: Likewise.
61549         * lib/mountlist.c: Likewise.
61550         * lib/mountlist.h: Likewise.
61551         * lib/mpsort.c: Likewise.
61552         * lib/nanosleep.c: Likewise.
61553         * lib/obstack.c: Likewise.
61554         * lib/obstack.h: Likewise.
61555         * lib/open-safer.c: Likewise.
61556         * lib/open.c: Likewise.
61557         * lib/openat-die.c: Likewise.
61558         * lib/openat-priv.h: Likewise.
61559         * lib/openat-proc.c: Likewise.
61560         * lib/openat.c: Likewise.
61561         * lib/openat.h: Likewise.
61562         * lib/pagealign_alloc.c: Likewise.
61563         * lib/pagealign_alloc.h: Likewise.
61564         * lib/physmem.c: Likewise.
61565         * lib/physmem.h: Likewise.
61566         * lib/pipe-safer.c: Likewise.
61567         * lib/pipe.c: Likewise.
61568         * lib/pipe.h: Likewise.
61569         * lib/posixtm.c: Likewise.
61570         * lib/posixtm.h: Likewise.
61571         * lib/posixver.c: Likewise.
61572         * lib/printf-frexp.c: Likewise.
61573         * lib/printf-frexp.h: Likewise.
61574         * lib/printf-frexpl.c: Likewise.
61575         * lib/printf-frexpl.h: Likewise.
61576         * lib/printf.c: Likewise.
61577         * lib/progname.c: Likewise.
61578         * lib/progname.h: Likewise.
61579         * lib/progreloc.c: Likewise.
61580         * lib/putenv.c: Likewise.
61581         * lib/quote.c: Likewise.
61582         * lib/quote.h: Likewise.
61583         * lib/quotearg.c: Likewise.
61584         * lib/quotearg.h: Likewise.
61585         * lib/raise.c: Likewise.
61586         * lib/readline.c: Likewise.
61587         * lib/readline.h: Likewise.
61588         * lib/readlink.c: Likewise.
61589         * lib/readtokens.c: Likewise.
61590         * lib/readtokens.h: Likewise.
61591         * lib/readtokens0.c: Likewise.
61592         * lib/readtokens0.h: Likewise.
61593         * lib/readutmp.c: Likewise.
61594         * lib/readutmp.h: Likewise.
61595         * lib/realloc.c: Likewise.
61596         * lib/relocwrapper.c: Likewise.
61597         * lib/rename-dest-slash.c: Likewise.
61598         * lib/rename.c: Likewise.
61599         * lib/rmdir.c: Likewise.
61600         * lib/rpmatch.c: Likewise.
61601         * lib/safe-read.c: Likewise.
61602         * lib/safe-read.h: Likewise.
61603         * lib/safe-write.c: Likewise.
61604         * lib/safe-write.h: Likewise.
61605         * lib/same-inode.h: Likewise.
61606         * lib/same.c: Likewise.
61607         * lib/same.h: Likewise.
61608         * lib/save-cwd.c: Likewise.
61609         * lib/save-cwd.h: Likewise.
61610         * lib/savedir.c: Likewise.
61611         * lib/savedir.h: Likewise.
61612         * lib/savewd.c: Likewise.
61613         * lib/savewd.h: Likewise.
61614         * lib/search.in.h: Likewise.
61615         * lib/setenv.c: Likewise.
61616         * lib/setenv.h: Likewise.
61617         * lib/settime.c: Likewise.
61618         * lib/sh-quote.c: Likewise.
61619         * lib/sh-quote.h: Likewise.
61620         * lib/sig2str.c: Likewise.
61621         * lib/sig2str.h: Likewise.
61622         * lib/signal.in.h: Likewise.
61623         * lib/signbitd.c: Likewise.
61624         * lib/signbitf.c: Likewise.
61625         * lib/signbitl.c: Likewise.
61626         * lib/sigprocmask.c: Likewise.
61627         * lib/sincosl.c: Likewise.
61628         * lib/sleep.c: Likewise.
61629         * lib/sprintf.c: Likewise.
61630         * lib/sqrtl.c: Likewise.
61631         * lib/stat-time.h: Likewise.
61632         * lib/stdio--.h: Likewise.
61633         * lib/stdio-safer.h: Likewise.
61634         * lib/stdlib--.h: Likewise.
61635         * lib/stdlib-safer.h: Likewise.
61636         * lib/stdlib.in.h: Likewise.
61637         * lib/stpcpy.c: Likewise.
61638         * lib/stpncpy.c: Likewise.
61639         * lib/strchrnul.c: Likewise.
61640         * lib/strcspn.c: Likewise.
61641         * lib/strerror.c: Likewise.
61642         * lib/strftime.c: Likewise.
61643         * lib/strftime.h: Likewise.
61644         * lib/striconveh.c: Likewise.
61645         * lib/striconveh.h: Likewise.
61646         * lib/striconveha.c: Likewise.
61647         * lib/striconveha.h: Likewise.
61648         * lib/stripslash.c: Likewise.
61649         * lib/strnlen1.c: Likewise.
61650         * lib/strnlen1.h: Likewise.
61651         * lib/strtod.c: Likewise.
61652         * lib/strtoimax.c: Likewise.
61653         * lib/strtok_r.c: Likewise.
61654         * lib/strtol.c: Likewise.
61655         * lib/strtoll.c: Likewise.
61656         * lib/strtoul.c: Likewise.
61657         * lib/strtoull.c: Likewise.
61658         * lib/sysexits.in.h: Likewise.
61659         * lib/tempname.c: Likewise.
61660         * lib/tempname.h: Likewise.
61661         * lib/timespec.h: Likewise.
61662         * lib/tls.c: Likewise.
61663         * lib/tls.h: Likewise.
61664         * lib/tmpdir.c: Likewise.
61665         * lib/tmpdir.h: Likewise.
61666         * lib/tmpfile-safer.c: Likewise.
61667         * lib/tmpfile.c: Likewise.
61668         * lib/trigl.c: Likewise.
61669         * lib/trigl.h: Likewise.
61670         * lib/trim.c: Likewise.
61671         * lib/trim.h: Likewise.
61672         * lib/trunc.c: Likewise.
61673         * lib/truncf.c: Likewise.
61674         * lib/truncl.c: Likewise.
61675         * lib/tsearch.c: Likewise.
61676         * lib/unicodeio.c: Likewise.
61677         * lib/unicodeio.h: Likewise.
61678         * lib/unistd--.h: Likewise.
61679         * lib/unistd-safer.h: Likewise.
61680         * lib/unistdio/ulc-fprintf.c: Likewise.
61681         * lib/unistdio/ulc-vfprintf.c: Likewise.
61682         * lib/unlinkdir.c: Likewise.
61683         * lib/unlinkdir.h: Likewise.
61684         * lib/unlocked-io.h: Likewise.
61685         * lib/unsetenv.c: Likewise.
61686         * lib/userspec.c: Likewise.
61687         * lib/utime.c: Likewise.
61688         * lib/utimecmp.c: Likewise.
61689         * lib/utimecmp.h: Likewise.
61690         * lib/utimens.c: Likewise.
61691         * lib/verify.h: Likewise.
61692         * lib/verror.c: Likewise.
61693         * lib/verror.h: Likewise.
61694         * lib/version-etc-fsf.c: Likewise.
61695         * lib/version-etc.c: Likewise.
61696         * lib/version-etc.h: Likewise.
61697         * lib/vfprintf.c: Likewise.
61698         * lib/vprintf.c: Likewise.
61699         * lib/vsprintf.c: Likewise.
61700         * lib/w32spawn.h: Likewise.
61701         * lib/wait-process.c: Likewise.
61702         * lib/wait-process.h: Likewise.
61703         * lib/wcwidth.c: Likewise.
61704         * lib/write-any-file.c: Likewise.
61705         * lib/xalloc-die.c: Likewise.
61706         * lib/xalloc.h: Likewise.
61707         * lib/xasprintf.c: Likewise.
61708         * lib/xgetcwd.c: Likewise.
61709         * lib/xgetcwd.h: Likewise.
61710         * lib/xgetdomainname.c: Likewise.
61711         * lib/xgetdomainname.h: Likewise.
61712         * lib/xgethostname.c: Likewise.
61713         * lib/xmalloc.c: Likewise.
61714         * lib/xmalloca.c: Likewise.
61715         * lib/xmalloca.h: Likewise.
61716         * lib/xmemcoll.c: Likewise.
61717         * lib/xnanosleep.c: Likewise.
61718         * lib/xreadlink.c: Likewise.
61719         * lib/xreadlink.h: Likewise.
61720         * lib/xsetenv.c: Likewise.
61721         * lib/xsetenv.h: Likewise.
61722         * lib/xstriconv.c: Likewise.
61723         * lib/xstriconv.h: Likewise.
61724         * lib/xstrndup.c: Likewise.
61725         * lib/xstrndup.h: Likewise.
61726         * lib/xstrtod.c: Likewise.
61727         * lib/xstrtod.h: Likewise.
61728         * lib/xstrtol-error.c: Likewise.
61729         * lib/xstrtol.c: Likewise.
61730         * lib/xstrtol.h: Likewise.
61731         * lib/xtime.h: Likewise.
61732         * lib/xvasprintf.c: Likewise.
61733         * lib/xvasprintf.h: Likewise.
61734         * lib/yesno.c: Likewise.
61735         * lib/yesno.h: Likewise.
61736         * posix-modules: Likewise.
61737         * tests/test-alloca-opt.c: Likewise.
61738         * tests/test-arcfour.c: Likewise.
61739         * tests/test-arctwo.c: Likewise.
61740         * tests/test-argmatch.c: Likewise.
61741         * tests/test-argp-2.sh: Likewise.
61742         * tests/test-argp.c: Likewise.
61743         * tests/test-arpa_inet.c: Likewise.
61744         * tests/test-array_list.c: Likewise.
61745         * tests/test-array_oset.c: Likewise.
61746         * tests/test-atexit.c: Likewise.
61747         * tests/test-avltree_list.c: Likewise.
61748         * tests/test-avltree_oset.c: Likewise.
61749         * tests/test-avltreehash_list.c: Likewise.
61750         * tests/test-base64.c: Likewise.
61751         * tests/test-binary-io.c: Likewise.
61752         * tests/test-byteswap.c: Likewise.
61753         * tests/test-c-ctype.c: Likewise.
61754         * tests/test-c-strcasecmp.c: Likewise.
61755         * tests/test-c-strcasestr.c: Likewise.
61756         * tests/test-c-strncasecmp.c: Likewise.
61757         * tests/test-c-strstr.c: Likewise.
61758         * tests/test-canonicalize-lgpl.c: Likewise.
61759         * tests/test-canonicalize.c: Likewise.
61760         * tests/test-carray_list.c: Likewise.
61761         * tests/test-ceilf.c: Likewise.
61762         * tests/test-ceill.c: Likewise.
61763         * tests/test-count-one-bits.c: Likewise.
61764         * tests/test-crc.c: Likewise.
61765         * tests/test-dirname.c: Likewise.
61766         * tests/test-fbufmode.c: Likewise.
61767         * tests/test-fcntl.c: Likewise.
61768         * tests/test-fflush.c: Likewise.
61769         * tests/test-floorf.c: Likewise.
61770         * tests/test-floorl.c: Likewise.
61771         * tests/test-fopen.c: Likewise.
61772         * tests/test-fprintf-posix.c: Likewise.
61773         * tests/test-fprintf-posix.h: Likewise.
61774         * tests/test-fpurge.c: Likewise.
61775         * tests/test-freadable.c: Likewise.
61776         * tests/test-freadahead.c: Likewise.
61777         * tests/test-freading.c: Likewise.
61778         * tests/test-freopen.c: Likewise.
61779         * tests/test-frexp.c: Likewise.
61780         * tests/test-frexpl.c: Likewise.
61781         * tests/test-fseek.c: Likewise.
61782         * tests/test-fseeko.c: Likewise.
61783         * tests/test-fseterr.c: Likewise.
61784         * tests/test-fstrcmp.c: Likewise.
61785         * tests/test-ftell.c: Likewise.
61786         * tests/test-ftello.c: Likewise.
61787         * tests/test-fwritable.c: Likewise.
61788         * tests/test-fwriting.c: Likewise.
61789         * tests/test-getaddrinfo.c: Likewise.
61790         * tests/test-getpass.c: Likewise.
61791         * tests/test-gettimeofday.c: Likewise.
61792         * tests/test-hmac-md5.c: Likewise.
61793         * tests/test-hmac-sha1.c: Likewise.
61794         * tests/test-iconv.c: Likewise.
61795         * tests/test-iconvme.c: Likewise.
61796         * tests/test-inttypes.c: Likewise.
61797         * tests/test-isnan.c: Likewise.
61798         * tests/test-isnanf.c: Likewise.
61799         * tests/test-isnanl-nolibm.c: Likewise.
61800         * tests/test-isnanl.c: Likewise.
61801         * tests/test-isnanl.h: Likewise.
61802         * tests/test-ldexpl.c: Likewise.
61803         * tests/test-linked_list.c: Likewise.
61804         * tests/test-linkedhash_list.c: Likewise.
61805         * tests/test-locale.c: Likewise.
61806         * tests/test-localename.c: Likewise.
61807         * tests/test-lock.c: Likewise.
61808         * tests/test-lseek.c: Likewise.
61809         * tests/test-malloca.c: Likewise.
61810         * tests/test-math.c: Likewise.
61811         * tests/test-mbscasecmp.c: Likewise.
61812         * tests/test-mbscasestr1.c: Likewise.
61813         * tests/test-mbscasestr2.c: Likewise.
61814         * tests/test-mbscasestr3.c: Likewise.
61815         * tests/test-mbscasestr4.c: Likewise.
61816         * tests/test-mbschr.c: Likewise.
61817         * tests/test-mbscspn.c: Likewise.
61818         * tests/test-mbsncasecmp.c: Likewise.
61819         * tests/test-mbspbrk.c: Likewise.
61820         * tests/test-mbspcasecmp.c: Likewise.
61821         * tests/test-mbsrchr.c: Likewise.
61822         * tests/test-mbsspn.c: Likewise.
61823         * tests/test-mbsstr1.c: Likewise.
61824         * tests/test-mbsstr2.c: Likewise.
61825         * tests/test-mbsstr3.c: Likewise.
61826         * tests/test-md5.c: Likewise.
61827         * tests/test-memmem.c: Likewise.
61828         * tests/test-netinet_in.c: Likewise.
61829         * tests/test-open.c: Likewise.
61830         * tests/test-printf-frexp.c: Likewise.
61831         * tests/test-printf-frexpl.c: Likewise.
61832         * tests/test-printf-posix.c: Likewise.
61833         * tests/test-printf-posix.h: Likewise.
61834         * tests/test-rbtree_list.c: Likewise.
61835         * tests/test-rbtree_oset.c: Likewise.
61836         * tests/test-rbtreehash_list.c: Likewise.
61837         * tests/test-read-file.c: Likewise.
61838         * tests/test-rijndael.c: Likewise.
61839         * tests/test-search.c: Likewise.
61840         * tests/test-signbit.c: Likewise.
61841         * tests/test-sleep.c: Likewise.
61842         * tests/test-snprintf-posix.c: Likewise.
61843         * tests/test-snprintf-posix.h: Likewise.
61844         * tests/test-snprintf.c: Likewise.
61845         * tests/test-sprintf-posix.c: Likewise.
61846         * tests/test-sprintf-posix.h: Likewise.
61847         * tests/test-stat-time.c: Likewise.
61848         * tests/test-stdbool.c: Likewise.
61849         * tests/test-stdint.c: Likewise.
61850         * tests/test-stdio.c: Likewise.
61851         * tests/test-stdlib.c: Likewise.
61852         * tests/test-stpncpy.c: Likewise.
61853         * tests/test-strcasestr.c: Likewise.
61854         * tests/test-striconv.c: Likewise.
61855         * tests/test-striconveh.c: Likewise.
61856         * tests/test-striconveha.c: Likewise.
61857         * tests/test-string.c: Likewise.
61858         * tests/test-sys_select.c: Likewise.
61859         * tests/test-sys_socket.c: Likewise.
61860         * tests/test-sys_stat.c: Likewise.
61861         * tests/test-sys_time.c: Likewise.
61862         * tests/test-sysexits.c: Likewise.
61863         * tests/test-time.c: Likewise.
61864         * tests/test-tls.c: Likewise.
61865         * tests/test-trunc.c: Likewise.
61866         * tests/test-truncf.c: Likewise.
61867         * tests/test-truncl.c: Likewise.
61868         * tests/test-unistd.c: Likewise.
61869         * tests/test-vasnprintf-posix.c: Likewise.
61870         * tests/test-vasnprintf-posix2.c: Likewise.
61871         * tests/test-vasnprintf.c: Likewise.
61872         * tests/test-vasprintf-posix.c: Likewise.
61873         * tests/test-vasprintf.c: Likewise.
61874         * tests/test-verify.c: Likewise.
61875         * tests/test-vfprintf-posix.c: Likewise.
61876         * tests/test-vprintf-posix.c: Likewise.
61877         * tests/test-vsnprintf-posix.c: Likewise.
61878         * tests/test-vsnprintf.c: Likewise.
61879         * tests/test-vsprintf-posix.c: Likewise.
61880         * tests/test-wchar.c: Likewise.
61881         * tests/test-wctype.c: Likewise.
61882         * tests/test-wcwidth.c: Likewise.
61883         * tests/test-xstrtol.c: Likewise.
61884         * tests/test-xvasprintf.c: Likewise.
61885         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61886         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61887         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61888         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61889         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61890         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61891         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61892         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61893         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61894         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61895         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61896         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61897         * tests/uniname/test-uninames.c: Likewise.
61898         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61899         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61900         * tests/unistdio/test-u16-printf1.h: Likewise.
61901         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61902         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61903         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61904         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61905         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61906         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61907         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61908         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61909         * tests/unistdio/test-u32-printf1.h: Likewise.
61910         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61911         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61912         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61913         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61914         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61915         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61916         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61917         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61918         * tests/unistdio/test-u8-printf1.h: Likewise.
61919         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61920         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61921         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61922         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61923         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61924         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61925         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61926         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61927         * tests/unistdio/test-ulc-printf1.h: Likewise.
61928         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61929         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61930         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61931         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61932         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61933         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61934         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61935         * tests/uniwidth/test-u16-width.c: Likewise.
61936         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61937         * tests/uniwidth/test-u32-width.c: Likewise.
61938         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61939         * tests/uniwidth/test-u8-width.c: Likewise.
61940         * tests/uniwidth/test-uc_width.c: Likewise.
61941         * config/srclist-update: Likewise.
61942         (fixlicense): Update to GPLv3+.
61943
61944         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61945         * tests/test-tsearch.c: Change copyright notice.
61946
61947         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61948         * lib/c-strcaseeq.h: Change copyright notice.
61949         * lib/streq.h: Likewise.
61950         * lib/uniconv.h: Likewise.
61951         * lib/uniconv/u-conv-from-enc.h: Likewise.
61952         * lib/uniconv/u-conv-to-enc.h: Likewise.
61953         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61954         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61955         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61956         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61957         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61958         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61959         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61960         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61961         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61962         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61963         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61964         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61965         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61966         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61967         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61968         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61969         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61970         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61971         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61972         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61973         * lib/uniname.h: Likewise.
61974         * lib/uniname/uniname.c: Likewise.
61975         * lib/unistdio.h: Likewise.
61976         * lib/unistdio/u-asnprintf.h: Likewise.
61977         * lib/unistdio/u-asprintf.h: Likewise.
61978         * lib/unistdio/u-printf-args.c: Likewise.
61979         * lib/unistdio/u-printf-args.h: Likewise.
61980         * lib/unistdio/u-printf-parse.h: Likewise.
61981         * lib/unistdio/u-snprintf.h: Likewise.
61982         * lib/unistdio/u-sprintf.h: Likewise.
61983         * lib/unistdio/u-vasprintf.h: Likewise.
61984         * lib/unistdio/u-vsnprintf.h: Likewise.
61985         * lib/unistdio/u-vsprintf.h: Likewise.
61986         * lib/unistdio/u16-asnprintf.c: Likewise.
61987         * lib/unistdio/u16-asprintf.c: Likewise.
61988         * lib/unistdio/u16-printf-parse.c: Likewise.
61989         * lib/unistdio/u16-snprintf.c: Likewise.
61990         * lib/unistdio/u16-sprintf.c: Likewise.
61991         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61992         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61993         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61994         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61995         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61996         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61997         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61998         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61999         * lib/unistdio/u16-vasnprintf.c: Likewise.
62000         * lib/unistdio/u16-vasprintf.c: Likewise.
62001         * lib/unistdio/u16-vsnprintf.c: Likewise.
62002         * lib/unistdio/u16-vsprintf.c: Likewise.
62003         * lib/unistdio/u32-asnprintf.c: Likewise.
62004         * lib/unistdio/u32-asprintf.c: Likewise.
62005         * lib/unistdio/u32-printf-parse.c: Likewise.
62006         * lib/unistdio/u32-snprintf.c: Likewise.
62007         * lib/unistdio/u32-sprintf.c: Likewise.
62008         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62009         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62010         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62011         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62012         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62013         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62014         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62015         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62016         * lib/unistdio/u32-vasnprintf.c: Likewise.
62017         * lib/unistdio/u32-vasprintf.c: Likewise.
62018         * lib/unistdio/u32-vsnprintf.c: Likewise.
62019         * lib/unistdio/u32-vsprintf.c: Likewise.
62020         * lib/unistdio/u8-asnprintf.c: Likewise.
62021         * lib/unistdio/u8-asprintf.c: Likewise.
62022         * lib/unistdio/u8-printf-parse.c: Likewise.
62023         * lib/unistdio/u8-snprintf.c: Likewise.
62024         * lib/unistdio/u8-sprintf.c: Likewise.
62025         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62026         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62027         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62028         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62029         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62030         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62031         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62032         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62033         * lib/unistdio/u8-vasnprintf.c: Likewise.
62034         * lib/unistdio/u8-vasprintf.c: Likewise.
62035         * lib/unistdio/u8-vsnprintf.c: Likewise.
62036         * lib/unistdio/u8-vsprintf.c: Likewise.
62037         * lib/unistdio/ulc-asnprintf.c: Likewise.
62038         * lib/unistdio/ulc-asprintf.c: Likewise.
62039         * lib/unistdio/ulc-printf-parse.c: Likewise.
62040         * lib/unistdio/ulc-snprintf.c: Likewise.
62041         * lib/unistdio/ulc-sprintf.c: Likewise.
62042         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62043         * lib/unistdio/ulc-vasprintf.c: Likewise.
62044         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62045         * lib/unistdio/ulc-vsprintf.c: Likewise.
62046         * lib/unistr.h: Likewise.
62047         * lib/unistr/u-cpy-alloc.h: Likewise.
62048         * lib/unistr/u-cpy.h: Likewise.
62049         * lib/unistr/u-endswith.h: Likewise.
62050         * lib/unistr/u-move.h: Likewise.
62051         * lib/unistr/u-set.h: Likewise.
62052         * lib/unistr/u-startswith.h: Likewise.
62053         * lib/unistr/u-stpcpy.h: Likewise.
62054         * lib/unistr/u-stpncpy.h: Likewise.
62055         * lib/unistr/u-strcat.h: Likewise.
62056         * lib/unistr/u-strcpy.h: Likewise.
62057         * lib/unistr/u-strcspn.h: Likewise.
62058         * lib/unistr/u-strdup.h: Likewise.
62059         * lib/unistr/u-strlen.h: Likewise.
62060         * lib/unistr/u-strncat.h: Likewise.
62061         * lib/unistr/u-strncpy.h: Likewise.
62062         * lib/unistr/u-strnlen.h: Likewise.
62063         * lib/unistr/u-strpbrk.h: Likewise.
62064         * lib/unistr/u-strspn.h: Likewise.
62065         * lib/unistr/u-strstr.h: Likewise.
62066         * lib/unistr/u-strtok.h: Likewise.
62067         * lib/unistr/u16-check.c: Likewise.
62068         * lib/unistr/u16-chr.c: Likewise.
62069         * lib/unistr/u16-cmp.c: Likewise.
62070         * lib/unistr/u16-cpy-alloc.c: Likewise.
62071         * lib/unistr/u16-cpy.c: Likewise.
62072         * lib/unistr/u16-endswith.c: Likewise.
62073         * lib/unistr/u16-mblen.c: Likewise.
62074         * lib/unistr/u16-mbsnlen.c: Likewise.
62075         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62076         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62077         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62078         * lib/unistr/u16-mbtouc.c: Likewise.
62079         * lib/unistr/u16-mbtoucr.c: Likewise.
62080         * lib/unistr/u16-move.c: Likewise.
62081         * lib/unistr/u16-next.c: Likewise.
62082         * lib/unistr/u16-prev.c: Likewise.
62083         * lib/unistr/u16-set.c: Likewise.
62084         * lib/unistr/u16-startswith.c: Likewise.
62085         * lib/unistr/u16-stpcpy.c: Likewise.
62086         * lib/unistr/u16-stpncpy.c: Likewise.
62087         * lib/unistr/u16-strcat.c: Likewise.
62088         * lib/unistr/u16-strchr.c: Likewise.
62089         * lib/unistr/u16-strcmp.c: Likewise.
62090         * lib/unistr/u16-strcpy.c: Likewise.
62091         * lib/unistr/u16-strcspn.c: Likewise.
62092         * lib/unistr/u16-strdup.c: Likewise.
62093         * lib/unistr/u16-strlen.c: Likewise.
62094         * lib/unistr/u16-strmblen.c: Likewise.
62095         * lib/unistr/u16-strmbtouc.c: Likewise.
62096         * lib/unistr/u16-strncat.c: Likewise.
62097         * lib/unistr/u16-strncmp.c: Likewise.
62098         * lib/unistr/u16-strncpy.c: Likewise.
62099         * lib/unistr/u16-strnlen.c: Likewise.
62100         * lib/unistr/u16-strpbrk.c: Likewise.
62101         * lib/unistr/u16-strrchr.c: Likewise.
62102         * lib/unistr/u16-strspn.c: Likewise.
62103         * lib/unistr/u16-strstr.c: Likewise.
62104         * lib/unistr/u16-strtok.c: Likewise.
62105         * lib/unistr/u16-to-u32.c: Likewise.
62106         * lib/unistr/u16-to-u8.c: Likewise.
62107         * lib/unistr/u16-uctomb-aux.c: Likewise.
62108         * lib/unistr/u16-uctomb.c: Likewise.
62109         * lib/unistr/u32-check.c: Likewise.
62110         * lib/unistr/u32-chr.c: Likewise.
62111         * lib/unistr/u32-cmp.c: Likewise.
62112         * lib/unistr/u32-cpy-alloc.c: Likewise.
62113         * lib/unistr/u32-cpy.c: Likewise.
62114         * lib/unistr/u32-endswith.c: Likewise.
62115         * lib/unistr/u32-mblen.c: Likewise.
62116         * lib/unistr/u32-mbsnlen.c: Likewise.
62117         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62118         * lib/unistr/u32-mbtouc.c: Likewise.
62119         * lib/unistr/u32-mbtoucr.c: Likewise.
62120         * lib/unistr/u32-move.c: Likewise.
62121         * lib/unistr/u32-next.c: Likewise.
62122         * lib/unistr/u32-prev.c: Likewise.
62123         * lib/unistr/u32-set.c: Likewise.
62124         * lib/unistr/u32-startswith.c: Likewise.
62125         * lib/unistr/u32-stpcpy.c: Likewise.
62126         * lib/unistr/u32-stpncpy.c: Likewise.
62127         * lib/unistr/u32-strcat.c: Likewise.
62128         * lib/unistr/u32-strchr.c: Likewise.
62129         * lib/unistr/u32-strcmp.c: Likewise.
62130         * lib/unistr/u32-strcpy.c: Likewise.
62131         * lib/unistr/u32-strcspn.c: Likewise.
62132         * lib/unistr/u32-strdup.c: Likewise.
62133         * lib/unistr/u32-strlen.c: Likewise.
62134         * lib/unistr/u32-strmblen.c: Likewise.
62135         * lib/unistr/u32-strmbtouc.c: Likewise.
62136         * lib/unistr/u32-strncat.c: Likewise.
62137         * lib/unistr/u32-strncmp.c: Likewise.
62138         * lib/unistr/u32-strncpy.c: Likewise.
62139         * lib/unistr/u32-strnlen.c: Likewise.
62140         * lib/unistr/u32-strpbrk.c: Likewise.
62141         * lib/unistr/u32-strrchr.c: Likewise.
62142         * lib/unistr/u32-strspn.c: Likewise.
62143         * lib/unistr/u32-strstr.c: Likewise.
62144         * lib/unistr/u32-strtok.c: Likewise.
62145         * lib/unistr/u32-to-u16.c: Likewise.
62146         * lib/unistr/u32-to-u8.c: Likewise.
62147         * lib/unistr/u32-uctomb.c: Likewise.
62148         * lib/unistr/u8-check.c: Likewise.
62149         * lib/unistr/u8-chr.c: Likewise.
62150         * lib/unistr/u8-cmp.c: Likewise.
62151         * lib/unistr/u8-cpy-alloc.c: Likewise.
62152         * lib/unistr/u8-cpy.c: Likewise.
62153         * lib/unistr/u8-endswith.c: Likewise.
62154         * lib/unistr/u8-mblen.c: Likewise.
62155         * lib/unistr/u8-mbsnlen.c: Likewise.
62156         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62157         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62158         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62159         * lib/unistr/u8-mbtouc.c: Likewise.
62160         * lib/unistr/u8-mbtoucr.c: Likewise.
62161         * lib/unistr/u8-move.c: Likewise.
62162         * lib/unistr/u8-next.c: Likewise.
62163         * lib/unistr/u8-prev.c: Likewise.
62164         * lib/unistr/u8-set.c: Likewise.
62165         * lib/unistr/u8-startswith.c: Likewise.
62166         * lib/unistr/u8-stpcpy.c: Likewise.
62167         * lib/unistr/u8-stpncpy.c: Likewise.
62168         * lib/unistr/u8-strcat.c: Likewise.
62169         * lib/unistr/u8-strchr.c: Likewise.
62170         * lib/unistr/u8-strcmp.c: Likewise.
62171         * lib/unistr/u8-strcpy.c: Likewise.
62172         * lib/unistr/u8-strcspn.c: Likewise.
62173         * lib/unistr/u8-strdup.c: Likewise.
62174         * lib/unistr/u8-strlen.c: Likewise.
62175         * lib/unistr/u8-strmblen.c: Likewise.
62176         * lib/unistr/u8-strmbtouc.c: Likewise.
62177         * lib/unistr/u8-strncat.c: Likewise.
62178         * lib/unistr/u8-strncmp.c: Likewise.
62179         * lib/unistr/u8-strncpy.c: Likewise.
62180         * lib/unistr/u8-strnlen.c: Likewise.
62181         * lib/unistr/u8-strpbrk.c: Likewise.
62182         * lib/unistr/u8-strrchr.c: Likewise.
62183         * lib/unistr/u8-strspn.c: Likewise.
62184         * lib/unistr/u8-strstr.c: Likewise.
62185         * lib/unistr/u8-strtok.c: Likewise.
62186         * lib/unistr/u8-to-u16.c: Likewise.
62187         * lib/unistr/u8-to-u32.c: Likewise.
62188         * lib/unistr/u8-uctomb-aux.c: Likewise.
62189         * lib/unistr/u8-uctomb.c: Likewise.
62190         * lib/unitypes.h: Likewise.
62191         * lib/uniwidth.h: Likewise.
62192         * lib/uniwidth/cjk.h: Likewise.
62193         * lib/uniwidth/u16-strwidth.c: Likewise.
62194         * lib/uniwidth/u16-width.c: Likewise.
62195         * lib/uniwidth/u32-strwidth.c: Likewise.
62196         * lib/uniwidth/u32-width.c: Likewise.
62197         * lib/uniwidth/u8-strwidth.c: Likewise.
62198         * lib/uniwidth/u8-width.c: Likewise.
62199         * lib/uniwidth/width.c: Likewise.
62200
62201 2007-10-07  Bruno Haible  <bruno@clisp.org>
62202
62203         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62204         The file is still under LGPL (see modules/inttypes).
62205
62206 2007-10-06  Bruno Haible  <bruno@clisp.org>
62207
62208         * modules/trunc (Dependencies): Add 'extensions'.
62209         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62210         Reported by Ben Pfaff <blp@gnu.org>.
62211
62212 2007-10-06  Bruno Haible  <bruno@clisp.org>
62213
62214         * modules/freopen-tests: New file.
62215         * tests/test-freopen.c: New file.
62216
62217         * modules/fopen-tests: New file.
62218         * tests/test-fopen.c: New file.
62219
62220         * modules/fopen: New file.
62221         * lib/fopen.c: New file.
62222         * m4/fopen.m4: New file.
62223         * modules/freopen: New file.
62224         * lib/freopen.c: New file.
62225         * m4/freopen.m4: New file.
62226         * lib/stdio.in.h (fopen, freopen): New declarations.
62227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62228         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62229         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62230         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62231         * doc/functions/fopen.texi: Mention the 'fopen' module.
62232         * doc/functions/freopen.texi: Mention the 'freopen' module.
62233
62234 2007-10-06  Bruno Haible  <bruno@clisp.org>
62235
62236         * modules/open-tests: New file.
62237         * tests/test-open.c: New file.
62238
62239         * modules/open: New file.
62240         * lib/open.c: New file.
62241         * m4/open.m4: New file.
62242         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62243         lib/open.c does.
62244         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62245         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62246         macros.
62247         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62248         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62249         REPLACE_OPEN.
62250         * doc/functions/open.texi: Mention the 'open' module.
62251
62252 2007-10-04  Bruno Haible  <bruno@clisp.org>
62253
62254         * modules/ceill-tests: New file.
62255         * tests/test-ceill.c: New file.
62256
62257         * modules/ceill: New file.
62258         * lib/ceill.c: Replace entire file.
62259         * m4/ceill.m4: New file.
62260         * lib/math.in.h (ceill): Replace declaration.
62261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62262         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62263         * doc/functions/ceill.texi: Mention the 'ceill' module.
62264         * modules/mathl (Files): Remove lib/ceill.c.
62265         (Depends-on): Add ceill.
62266
62267 2007-10-04  Bruno Haible  <bruno@clisp.org>
62268
62269         * modules/ceilf-tests: New file.
62270         * tests/test-ceilf.c: New file.
62271
62272         * modules/ceilf: New file.
62273         * lib/ceil.c: New file.
62274         * lib/ceilf.c: New file.
62275         * m4/ceilf.m4: New file.
62276         * lib/math.in.h (ceilf): New declaration.
62277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62278         HAVE_DECL_CEILF.
62279         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62280         HAVE_DECL_CEILF.
62281         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62282
62283 2007-10-04  Bruno Haible  <bruno@clisp.org>
62284
62285         * modules/floorl-tests: New file.
62286         * tests/test-floorl.c: New file.
62287
62288         * modules/floorl: New file.
62289         * lib/floorl.c: Replace entire file.
62290         * m4/floorl.m4: New file.
62291         * lib/math.in.h (floorl): Replace declaration.
62292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62293         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62294         * doc/functions/floorl.texi: Mention the 'floorl' module.
62295         * modules/mathl (Files): Remove lib/floorl.c.
62296         (Depends-on): Add floorl.
62297
62298 2007-10-04  Bruno Haible  <bruno@clisp.org>
62299
62300         * modules/floorf-tests: New file.
62301         * tests/test-floorf.c: New file.
62302
62303         * modules/floorf: New file.
62304         * lib/floor.c: New file.
62305         * lib/floorf.c: New file.
62306         * m4/floorf.m4: New file.
62307         * lib/math.in.h (floorf): New declaration.
62308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62309         HAVE_DECL_FLOORF.
62310         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62311         HAVE_DECL_FLOORF.
62312         * doc/functions/floorf.texi: Mention the 'floorf' module.
62313
62314 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62315             Bruno Haible  <bruno@clisp.org>
62316
62317         Advertise for the Git server instead of the CVS server.
62318         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62319         repository instead of the CVS one.
62320         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62321         about all VCS systems generically.
62322         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62323
62324 2007-10-04  Bruno Haible  <bruno@clisp.org>
62325
62326         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62327         means.
62328         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62329
62330 2007-10-04  Bruno Haible  <bruno@clisp.org>
62331
62332         * modules/truncl-tests: New file.
62333         * tests/test-truncl.c: New file.
62334
62335         * modules/truncl: New file.
62336         * lib/truncl.c: New file.
62337         * m4/truncl.m4: New file.
62338         * lib/math.in.h (truncl): New declaration.
62339         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62340         HAVE_DECL_TRUNCL.
62341         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62342         HAVE_DECL_TRUNCL.
62343         * doc/functions/truncl.texi: Mention the 'truncl' module.
62344
62345 2007-10-04  Bruno Haible  <bruno@clisp.org>
62346
62347         * modules/truncf-tests: New file.
62348         * tests/test-truncf.c: New file.
62349
62350         * modules/truncf: New file.
62351         * lib/trunc.c: Make paramerizable through USE_* macros.
62352         * lib/truncf.c: New file.
62353         * m4/truncf.m4: New file.
62354         * lib/math.in.h (truncf): New declaration.
62355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62356         HAVE_DECL_TRUNCF.
62357         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62358         HAVE_DECL_TRUNCF.
62359         * doc/functions/truncf.texi: Mention the 'truncf' module.
62360
62361 2007-10-03  Bruno Haible  <bruno@clisp.org>
62362
62363         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62364         augmentation also for tests modules.
62365         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62366         * modules/atexit-tests (Makefile.am): Likewise.
62367         * modules/binary-io-tests (Makefile.am): Likewise.
62368         * modules/c-strcase-tests (Makefile.am): Likewise.
62369         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62370         * modules/canonicalize-tests (Makefile.am): Likewise.
62371         * modules/closein-tests (Makefile.am): Likewise.
62372         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62373         * modules/freadahead-tests (Makefile.am): Likewise.
62374         * modules/fseek-tests (Makefile.am): Likewise.
62375         * modules/fseeko-tests (Makefile.am): Likewise.
62376         * modules/ftell-tests (Makefile.am): Likewise.
62377         * modules/ftello-tests (Makefile.am): Likewise.
62378         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62379         * modules/isnanl-tests (Makefile.am): Likewise.
62380         * modules/lseek-tests (Makefile.am): Likewise.
62381         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62382         * modules/mbscasestr-tests (Makefile.am): Likewise.
62383         * modules/mbschr-tests (Makefile.am): Likewise.
62384         * modules/mbscspn-tests (Makefile.am): Likewise.
62385         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62386         * modules/mbspbrk-tests (Makefile.am): Likewise.
62387         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62388         * modules/mbsrchr-tests (Makefile.am): Likewise.
62389         * modules/mbsspn-tests (Makefile.am): Likewise.
62390         * modules/mbsstr-tests (Makefile.am): Likewise.
62391         * modules/printf-posix-tests (Makefile.am): Likewise.
62392         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62393         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62394         * modules/tsearch-tests (Makefile.am): Likewise.
62395         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62396         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62397         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62398         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62399         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62400         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62401         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62402         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62403         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62404         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62405         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62406         * modules/xstrtol-tests (Makefile.am): Likewise.
62407         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62408         * modules/yesno-tests (Makefile.am): Likewise.
62409
62410 2007-10-03  Bruno Haible  <bruno@clisp.org>
62411
62412         * modules/trunc-tests: New file.
62413         * tests/test-trunc.c: New file.
62414
62415         * modules/trunc: New file.
62416         * lib/trunc.c: New file.
62417         * m4/trunc.m4: New file.
62418         * lib/math.in.h (trunc): New declaration.
62419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62420         HAVE_DECL_TRUNC.
62421         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62422         HAVE_DECL_TRUNC.
62423         * doc/functions/trunc.texi: Mention the 'trunc' module.
62424
62425 2007-10-03  Bruno Haible  <bruno@clisp.org>
62426
62427         * tests/test-fpending.c: New file, mostly copied
62428         from coreutils/lib/t-fpending.c.
62429         * modules/fpending-tests: New file.
62430
62431 2007-10-03  Bruno Haible  <bruno@clisp.org>
62432
62433         Port the stdio extensions to QNX (untested).
62434         * lib/fseterr.c (fseterr): Add support for QNX.
62435         * lib/fbufmode.c (fbufmode): Likewise.
62436         * lib/freadable.c (freadable): Likewise.
62437         * lib/fwritable.c (fwritable): Likewise.
62438         * lib/freading.c (freading): Likewise.
62439         * lib/fwriting.c (fwriting): Likewise.
62440         * lib/freadahead.c (freadahed): Likewise.
62441         * lib/fpurge.c (fpurge): Likewise.
62442         * lib/fseeko.c (rpl_fseeko): Likewise.
62443
62444 2007-10-03  Bruno Haible  <bruno@clisp.org>
62445             Jim Meyering  <jim@meyering.net>
62446             Eric Blake  <ebb9@byu.net>
62447
62448         * doc/relocatable.texi: Use @command instead of @program.
62449
62450 2007-10-02  Jim Meyering  <jim@meyering.net>
62451
62452         Perform one more "_.h" -> ".in.h" substitution.
62453         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62454         instead of unistd_.h here, too.
62455
62456 2007-10-01  Bruno Haible  <bruno@clisp.org>
62457
62458         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62459         Needed for the alloca-opt module.
62460
62461 2007-09-30  Bruno Haible  <bruno@clisp.org>
62462
62463         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62464         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62465         alloca_.h.
62466         * lib/argz.in.h: Renamed from lib/argz_.h.
62467         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62468         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62469         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62470         byteswap_.h.
62471         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62472         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62473         dirent_.h.
62474         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62475         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62476         fcntl_.h.
62477         * lib/float.in.h: Renamed from lib/float_.h.
62478         * modules/float (Files, Makefile.am): Use float.in.h instead of
62479         float_.h.
62480         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62481         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62482         fnmatch_.h.
62483         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62484         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62485         getopt_.h.
62486         * lib/glob.in.h: Renamed from lib/glob_.h.
62487         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62488         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62489         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62490         iconv_.h.
62491         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62492         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62493         inttypes_.h.
62494         * lib/locale.in.h: Renamed from lib/locale_.h.
62495         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62496         locale_.h.
62497         * lib/math.in.h: Renamed from lib/math_.h.
62498         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62499         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62500         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62501         of netinet_in_.h. Add dependency.
62502         * lib/poll.in.h: Renamed from lib/poll_.h.
62503         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62504         * lib/search.in.h: Renamed from lib/search_.h.
62505         * modules/search (Files, Makefile.am): Use search.in.h instead of
62506         search_.h.
62507         * lib/signal.in.h: Renamed from lib/signal_.h.
62508         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62509         _signal.h.
62510         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62511         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62512         stdbool_.h.
62513         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62514         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62515         stdint_.h.
62516         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62517         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62518         stdio_.h.
62519         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62520         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62521         stdlib_.h.
62522         * lib/string.in.h: Renamed from lib/string_.h.
62523         * modules/string (Files, Makefile.am): Use string.in.h instead of
62524         string_.h.
62525         * doc/gnulib-tool.texi (Initial import): Update.
62526         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62527         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62528         of sys_select_.h. Add dependency.
62529         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62530         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62531         of sys_socket_.h.
62532         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62533         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62534         sys_stat_.h.
62535         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62536         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62537         sys_time_.h.
62538         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62539         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62540         sysexits_.h.
62541         * lib/time.in.h: Renamed from lib/time_.h.
62542         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62543         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62544         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62545         unistd_.h.
62546         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62547         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62548         wchar_.h.
62549         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62550         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62551         wctype_.h.
62552         * build-aux/bootstrap (slurp): Update.
62553         * lib/.cppi-disable: Update.
62554
62555 2007-09-30  Bruno Haible  <bruno@clisp.org>
62556
62557         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62558         Needed on BeOS.
62559
62560 2007-09-30  Bruno Haible  <bruno@clisp.org>
62561
62562         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62563
62564 2007-09-29  Bruno Haible  <bruno@clisp.org>
62565
62566         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62567
62568 2007-09-29  Bruno Haible  <bruno@clisp.org>
62569
62570         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62571         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62572         * build-aux/install-reloc: Compile also areadlink.c.
62573         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62574
62575 2007-09-29  Bruno Haible  <bruno@clisp.org>
62576
62577         * gnulib-tool (func_emit_initmacro_done): Indentation.
62578
62579 2007-09-29  Bruno Haible  <bruno@clisp.org>
62580
62581         * README: Add CVS checkout update instructions.
62582         Info from Bob Proulx <bob@proulx.com>.
62583
62584 2007-09-28  Eric Blake  <ebb9@byu.net>
62585
62586         Provide move-if-change.
62587         * build-aux/move-if-change: New file, based on best practice
62588         rather than any canonical upstream location.
62589
62590 2007-09-28  Jim Meyering  <jim@meyering.net>
62591
62592         Fix canonicalize loop-detection corner case.
62593         Do not attempt to stat the symlink values stored via seen_triple.
62594         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62595         on linux-2.6.18, (but not 2.6.22).
62596         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62597         triple_compare.  The former compares dev,ino,filename, while the latter
62598         would actually stat dirname(filename) when dev and ino were equal.
62599         * lib/hash-triple.c: Install <string.h>.
62600         (STREQ): Define.
62601         (triple_compare_ino_str): New function.
62602         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62603
62604 2007-09-28  Eric Blake  <ebb9@byu.net>
62605
62606         Enforce that AC_REPLACE_FUNCS files exist.
62607         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62608         override check for typos.
62609
62610         Fix test-closein on Solaris 10.
62611         * tests/test-closein.c (main): Don't assume stdin can be inherited
62612         closed on all systems.
62613         * tests/test-closein.sh: Likewise.
62614         Reported by Piotr Tarnowski.
62615
62616 2007-09-28  Jim Meyering  <jim@meyering.net>
62617
62618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62619
62620 2007-09-27  Jim Meyering  <jim@meyering.net>
62621
62622         canonicalize: Avoid a false-positive cycle failure.
62623         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62624         Sort.  Remove cycle-check.
62625         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62626         not cycle-check.h.
62627         (seen_triple): New function.
62628         (canonicalize_filename_mode): Use it instead of cycle-check.
62629         * tests/test-canonicalize.c: Add a test for this bug.
62630         * tests/test-canonicalize.sh: Set up and run the test.
62631
62632         New module, file-set, from coreutils.
62633         * modules/file-set: Define it.
62634         * lib/file-set.c, lib/file-set.h: Implement.
62635
62636         New module, hash-triple, from coreutils.
62637         * modules/hash-triple: Define it.
62638         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62639
62640 2007-09-25  Eric Blake  <ebb9@byu.net>
62641
62642         Fix strerror on Interix.
62643         * lib/string_.h (strerror): Declare replacement.
62644         * doc/functions/strerror.texi (strerror): Document the Interix
62645         shortcoming.
62646         * modules/string (Makefile.am): Support new hooks.
62647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62648         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62649         gl_FUNC_STRERROR_SEPARATE.
62650         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62651         * lib/strerror.c (rpl_strerror): Provide replacement.
62652         * modules/strerror (Depends-on): Add string.
62653         (configure.ac): Detect use of module.
62654         * tests/test-strerror.c: New file.
62655         * modules/strerror-tests: New test module.
62656         * modules/argp (Depends-on): Add strerror.
62657         * modules/error (Depends-on): Likewise.
62658         Reported by Martin Koeppe.
62659
62660 2007-09-24  Bruno Haible  <bruno@clisp.org>
62661
62662         * README: Update git instructions.
62663
62664 2007-09-24  Eric Blake  <ebb9@byu.net>
62665
62666         Revert fpending breakage from 2007-09-08.
62667         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62668         __fpending.c.
62669
62670 2007-09-24  Jim Meyering  <jim@meyering.net>
62671
62672         filenamecat.c: Add a test.
62673         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62674         showing how the function works when DIR is the empty string.
62675
62676 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62677
62678         * tests/test-canonicalize.sh: Turn on executable bit.
62679
62680 2007-09-19  Eric Blake  <ebb9@byu.net>
62681
62682         * README: Update CVS instructions.
62683
62684 2007-09-18  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/areadlink: New file.
62687         * lib/areadlink.h (areadlink): New declaration.
62688         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62689
62690 2007-09-17  Jim Meyering  <jim@meyering.net>
62691
62692         * lib/savewd.c (ESTALE) [!defined]: Define.
62693         Reported to be required on Interix by Martin Koeppe.
62694
62695 2007-09-17  Bruno Haible  <bruno@clisp.org>
62696
62697         * gnulib-tool (func_version): Use $version.
62698
62699 2007-09-16  Bruno Haible  <bruno@clisp.org>
62700
62701         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62702         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62703         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62704         Reported by Greg Schafer <gschafer@zip.com.au>.
62705
62706 2007-09-15  Bruno Haible  <bruno@clisp.org>
62707
62708         * gnulib-tool (sed): Try a little harder to make bash understand the
62709         alias.
62710         Reported by Bruce Korb <bruce.korb@gmail.com>.
62711
62712 2007-09-13  Eric Blake  <ebb9@byu.net>
62713
62714         * ChangeLog: Remove conflict markers.
62715
62716 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62717
62718         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62719         Reported by Bruno Haible <bruno@clisp.org>.
62720
62721 2007-09-12  Bruno Haible  <bruno@clisp.org>
62722
62723         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62724         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62725         is not defined.
62726
62727 2007-09-12  Eric Blake  <ebb9@byu.net>
62728
62729         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62730         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62731         Autoconf definition.
62732         * modules/euidaccess (Depends-on): Add extensions, for
62733         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62734         * modules/fnmatch (Depends-on): Likewise.
62735         * modules/getaddrinfo (Depends-on): Likewise.
62736         * modules/getdelim (Depends-on): Likewise.
62737         * modules/getline (Depends-on): Likewise.
62738         * modules/getsubopt (Depends-on): Likewise.
62739         * modules/gettext (Depends-on): Likewise.
62740         * modules/group-member (Depends-on): Likewise.
62741         * modules/mbchar (Depends-on): Likewise.
62742         * modules/memmem (Depends-on): Likewise.
62743         * modules/mempcpy (Depends-on): Likewise.
62744         * modules/memrchr (Depends-on): Likewise.
62745         * modules/pagealign_alloc (Depends-on): Likewise.
62746         * modules/readutmp (Depends-on): Likewise.
62747         * modules/stpcpy (Depends-on): Likewise.
62748         * modules/stpncpy (Depends-on): Likewise.
62749         * modules/strchrnul (Depends-on): Likewise.
62750         * modules/strndup (Depends-on): Likewise.
62751         * modules/strsep (Depends-on): Likewise.
62752         * modules/strverscmp (Depends-on): Likewise.
62753         * modules/vasprintf (Depends-on): Likewise.
62754         * modules/wcwidth (Depends-on): Likewise.
62755         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62756         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62757         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62758         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62759         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62760         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62761         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62762         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62763         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62764         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62765         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62766         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62767         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62768         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62769         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62770         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62771         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62772         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62773         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62774         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62775         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62776         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62777         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62778         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62779         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62780         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62781         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62782         so that lock.m4 can be used in gettext without extensions module.
62783
62784 2007-09-11  Bruno Haible  <bruno@clisp.org>
62785
62786         * m4/isc-posix.m4: Remove file.
62787         Suggested by Eric Blake.
62788
62789 2007-09-11  Eric Blake  <ebb9@byu.net>
62790
62791         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62792
62793 2007-09-10  Bruno Haible  <bruno@clisp.org>
62794
62795         * posix-modules: Fix typo in error message.
62796         Reported by Matt <mkraai@beckman.com>.
62797
62798 2007-09-09  Bruno Haible  <bruno@clisp.org>
62799
62800         * doc/functions/getdelim.texi: Update list of platforms lacking the
62801         function.
62802         * doc/functions/getline.texi: Likewise.
62803
62804 2007-09-09  Jim Meyering  <jim@meyering.net>
62805
62806         * lib/hash.c (hash_initialize): Detect calloc failure.
62807         Reported by Bruno Haible.
62808
62809 2007-09-09  Bruno Haible  <bruno@clisp.org>
62810
62811         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62812         malloc or realloc fails.
62813
62814 2007-09-09  Bruno Haible  <bruno@clisp.org>
62815
62816         * modules/getcwd (Depends-on): Add malloc-posix.
62817         * modules/glob (Depends-on): Likewise.
62818         * modules/putenv (Depends-on): Likewise.
62819         * modules/strdup (Depends-on): Likewise.
62820         * modules/getdelim (Depends-on): Add realloc-posix.
62821         * modules/read-file (Depends-on): Likewise.
62822
62823 2007-09-09  Bruno Haible  <bruno@clisp.org>
62824
62825         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62826         (gl_FUNC_MALLOC_POSIX): Require it.
62827         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62828         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62829         * modules/realloc (Files): Add m4/malloc.m4.
62830         * modules/calloc (Files): Likewise.
62831
62832 2007-09-09  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/malloc-posix: New file.
62835         * modules/malloc (Depends-on): Add malloc-posix.
62836         * lib/malloc.c: Include errno.h.
62837         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62838         and a POSIX-compatible malloc into a single function. Set ENOMEM
62839         when returning NULL.
62840         * m4/malloc.m4: New file.
62841         * doc/functions/malloc.texi: Mention the malloc-posix module.
62842         * lib/stdlib_.h (malloc): New declaration.
62843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62844         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62845         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62846         and HAVE_MALLOC_POSIX.
62847
62848 2007-09-09  Bruno Haible  <bruno@clisp.org>
62849
62850         * modules/realloc-posix: New file.
62851         * modules/realloc (Depends-on): Add realloc-posix.
62852         * lib/realloc.c: Include errno.h.
62853         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62854         and a POSIX-compatible realloc into a single function. Set ENOMEM
62855         when returning NULL.
62856         * m4/realloc.m4: New file.
62857         * doc/functions/realloc.texi: Mention the realloc-posix module.
62858         * lib/stdlib_.h (realloc): New declaration.
62859         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62860         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62861         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62862         and HAVE_REALLOC_POSIX.
62863
62864 2007-09-09  Bruno Haible  <bruno@clisp.org>
62865
62866         * modules/calloc-posix: New file.
62867         * modules/calloc (Depends-on): Add calloc-posix.
62868         * lib/calloc.c: Include errno.h.
62869         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62870         and a POSIX-compatible calloc into a single function. Set ENOMEM
62871         when returning NULL.
62872         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62873         * doc/functions/calloc.texi: Mention the calloc-posix module.
62874         * lib/stdlib_.h (calloc): New declaration.
62875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62876         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62877         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62878         and HAVE_CALLOC_POSIX.
62879
62880 2007-09-09  Bruno Haible  <bruno@clisp.org>
62881
62882         Allow for modules to show an arbitrary notice.
62883         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62884         * gnulib-tool: New option --extract-notice.
62885         (func_usage): Document it.
62886         (sed_extract_prog): Update.
62887         (func_get_notice): New function.
62888         (func_modules_notice): New function.
62889         (func_import, func_create_testdir): Invoke it.
62890         Suggested by Jim Meyering.
62891
62892 2007-09-09  Bruno Haible  <bruno@clisp.org>
62893
62894         * gnulib-tool: New options --verbose, --quiet.
62895         (func_usage): Document them.
62896         (verbose): New variable.
62897         (func_execute_command): New function.
62898         (func_import): Don't show the module list and the file list if
62899         $verbose < 0.
62900         (func_create_testdir): Likewise. Use func_execute_command.
62901         (func_create_megatestdir): Use func_execute_command.
62902
62903 2007-09-08  Bruno Haible  <bruno@clisp.org>
62904
62905         * gnulib-tool (func_import): Prefer rsync over wget when available,
62906         for fetching the PO files.
62907
62908 2007-09-08  Bruno Haible  <bruno@clisp.org>
62909
62910         * posix-modules: New file. Portions copied from gnulib-tool.
62911         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62912
62913 2007-09-08  Jim Meyering  <jim@meyering.net>
62914
62915         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62916         * lib/fpending.h: Rename from __fpending.h.
62917         * lib/fpending.c: Rename from __fpending.c.
62918         Include "fpending.h", not "__fpending.h".
62919         * lib/__fpending.h, lib/__fpending.c: Remove files.
62920         * modules/fpending (Files): Reflect new file names.
62921         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62922
62923 2007-09-08  Bruno Haible  <bruno@clisp.org>
62924
62925         * m4/inttypes-h.m4: Remove stub file.
62926
62927 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62928
62929         * doc/headers/stdint.texi: Discuss #include_next issue.
62930
62931 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62934
62935 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62936
62937         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62938         in variable name.
62939
62940 2007-09-03  Jim Meyering  <jim@meyering.net>
62941
62942         New module: git-version-gen.
62943         * modules/git-version-gen: New file.
62944
62945         Import changes from coreutils for bootstrap script.
62946
62947         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62948
62949         bootstrap: uses rsync to download the .po files
62950         * build-aux/bootstrap (po_download_command_format): New global.
62951         (download_po_files): Use rsync.
62952         (update_po_files): Don't remove .po files after download,
62953         so future rsync runs can take advantage of the copies.
62954
62955         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62956
62957         Solve the unnecessary-.po-file-regeneration problem once and for all.
62958         * build-aux/bootstrap (download_po_files): New function, renamed from
62959         get_translations.  Now, downloads, but doesn't update LINGUAS.
62960         (update_po_files): New function.
62961
62962         bootstrap: Ignore more.
62963         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62964         uniwidth to e.g., lib/.gitignore.
62965         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62966
62967         * build-aux/bootstrap: New setting: vc_ignore.
62968         (insert_sorted_if_absent): Create $file if absent.
62969         Adapt to new, possibly empty, list: $vc_ignore.
62970
62971         bootstrap: generate more ignorable names
62972         * build-aux/bootstrap (slurp): When generating ignorable names,
62973         also map .sin to .sed, .gperf to .c, and .y to .c.
62974
62975 2007-09-03  Jim Meyering  <jim@meyering.net>
62976
62977         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62978         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62979
62980 2007-09-02  Bruno Haible  <bruno@clisp.org>
62981
62982         Fix mis-recognition of 'mcs' on QNX 6.
62983         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62984         output contains the string "Mono".
62985         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62986         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62987
62988 2007-09-01  Bruno Haible  <bruno@clisp.org>
62989
62990         Fix collision between uniwidth/* and linebreak modules.
62991         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62992         u32_width): Remove declarations.
62993         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62994         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62995         streq3, streq2, streq1, streq0): Remove functions.
62996         (STREQ): Remove macro.
62997         (is_cjk_encoding): Remove function.
62998         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62999         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63000         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63001         * NEWS: Document the change.
63002
63003 2007-09-01  Bruno Haible  <bruno@clisp.org>
63004
63005         * lib/streq.h: Add double-inclusion guard.
63006
63007 2007-09-01  Karl Berry  <karl@gnu.org>
63008
63009         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63010
63011 2007-08-28  Jim Meyering  <jim@meyering.net>
63012
63013         Rename mreadlink_with_size to areadlink_with_size.
63014         * NEWS: Document the change.
63015         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63016         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63017         * lib/mreadlink.h: Rename this to...
63018         * lib/areadlink.h: ...this.
63019         * modules/mreadlink-with-size: Rename this to...
63020         * modules/areadlink-with-size: ...this.
63021         * lib/canonicalize.c: Reflect the renaming.
63022         * modules/canonicalize: Likewise.
63023
63024 2007-08-26  Bruno Haible  <bruno@clisp.org>
63025
63026         * gnulib-tool (func_import): When deciding which files to remove,
63027         consider also dangling symbolic links.
63028         Reported by Eric Blake.
63029
63030 2007-08-26  Bruno Haible  <bruno@clisp.org>
63031
63032         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63033
63034 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63035
63036         * lib/readline.c: Don't include getline.h, the prototype is now
63037         found in stdio.h.
63038
63039 2007-08-23  Jim Meyering  <jim@meyering.net>
63040
63041         Getdelim touchup.
63042         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63043         around the funlockfile call, since funlockfile never sets errno.
63044         Don't set errno upon failed realloc.
63045
63046 2007-08-22  Eric Blake  <ebb9@byu.net>
63047
63048         Getline touchups.
63049         * lib/getdelim.c (getdelim): Revert regression that required *n to
63050         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63051         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63052         getdelim, rather than whether implementation is missing.
63053         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63054         * lib/stdio_.h (getline): Also declare if replacement is
63055         required.
63056         * doc/functions/getdelim.texi: New file.
63057         * doc/functions/getline.texi: Likewise.
63058         * doc/gnulib.texi (Function Substitutes): Add new files.
63059         Reported by Bruno Haible.
63060
63061 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63062
63063         * users.txt: Add Guile.
63064
63065 2007-08-22  Eric Blake  <ebb9@byu.net>
63066
63067         * tests/test-getdelim.c (main): Use remove, not unlink.
63068         * tests/test-getline.c (main): Likewise.
63069
63070         Move getline and getdelim into stdio.h, per POSIX 200x.
63071         * modules/getline (Files): Remove getline.h.
63072         (Depends-on): Add stdio.
63073         (configure.ac): Add module indicator.
63074         * modules/getdelim (Files): Remove getdelim.h.
63075         (Depends-on): Add stdio.
63076         (configure.ac): Add module indicator.
63077         * modules/stdio (Makefile.am): Work with new indicators.
63078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63080         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63081         * lib/getdelim.h: Delete.
63082         * lib/getline.h: Delete.
63083         * lib/stdio_.h (getdelim, getline): Declare.
63084         * modules/getdelim-tests: New module.
63085         * modules/getline-tests: Likewise.
63086         * tests/test-getdelim.c: New file.
63087         * tests/test-getline.c: Likewise.
63088         * NEWS: Document the change.
63089         * lib/getline.c: Update choice of header.
63090         * lib/csharpcomp.c: Likewise.
63091         * lib/getpass.c: Likewise.
63092         * lib/javacomp.c: Likewise.
63093         * lib/javaversion.c: Likewise.
63094         * lib/yesno.c: Likewise.
63095         * lib/getdelim.c: Likewise.
63096         (getdelim): Set errno on failure, and avoid memory leak.
63097
63098 2007-08-19  Bruno Haible  <bruno@clisp.org>
63099
63100         * modules/closein (Depends-on): Add freadahead.
63101         * lib/closein.c: Include freadahead.h.
63102         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63103         is zero.
63104
63105 2007-08-19  Bruno Haible  <bruno@clisp.org>
63106
63107         * modules/freadahead-tests: New file.
63108         * tests/test-freadahead.sh: New file.
63109         * tests/test-freadahead.c: New file.
63110
63111         * modules/freadahead: New file.
63112         * lib/freadahead.h: New file.
63113         * lib/freadahead.c: New file.
63114         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63115         fbufmode, fpurge, freadable, fwritable.
63116
63117 2007-08-19  Eric Blake  <ebb9@byu.net>
63118
63119         Test yesno in combination with closein.
63120         * lib/yesno.c (yesno): Document use of stdin.
63121         * modules/yesno-tests (Files): New module.
63122         * tests/test-yesno.c (main): New file.
63123         * tests/test-yesno.sh: Likewise.
63124
63125 2007-08-19  Bruno Haible  <bruno@clisp.org>
63126
63127         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63128         * lib/fseeko.c (rpl_fseeko): Likewise.
63129         * lib/fseterr.c (fseterr): Likewise.
63130
63131 2007-08-19  Bruno Haible  <bruno@clisp.org>
63132
63133         * tests/test-lseek.c (main): Disable a test for BeOS.
63134         * doc/functions/lseek.texi: Document the BeOS bug.
63135
63136 2007-08-19  Bruno Haible  <bruno@clisp.org>
63137             Eric Blake  <ebb9@byu.net>
63138
63139         * lib/lseek.c: Include <sys/stat.h>.
63140         (rpl_lseek): Add workaround code also for Unix platforms.
63141         Needed for BeOS.
63142         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63143         * doc/functions/lseek.texi: Document BeOS definiency.
63144
63145 2007-08-18  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/fstrcmp-tests: New file.
63148         * tests/test-fstrcmp.c: New file.
63149
63150 2007-08-18  Bruno Haible  <bruno@clisp.org>
63151
63152         * modules/fstrcmp: New file, from GNU gettext with modifications.
63153         * lib/fstrcmp.h: New file, from GNU gettext.
63154         * lib/fstrcmp.c: New file, from GNU gettext.
63155         * MODULES.html.sh (String handling): Add fstrcmp.
63156
63157 2007-08-18  Bruno Haible  <bruno@clisp.org>
63158
63159         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63160         'bool'.
63161         (diag, compareseq): Remove const from the ctxt argument.
63162         (USE_HEURISTIC): Undefine at the end.
63163
63164 2007-08-18  Jim Meyering  <jim@meyering.net>
63165
63166         New file: lib/idcache.h
63167         * NEWS: Mention the addition.
63168         * modules/idcache (Files): Add lib/idcache.h
63169         * lib/idcache.c: Include "idcache.h".
63170         Don't include <sys/types.h>.
63171         Add a FIXME comment.
63172         Move file-scoped "static" declarations to the top.
63173         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63174
63175 2007-08-17  Bruno Haible  <bruno@clisp.org>
63176         and Paul Eggert  <eggert@cs.ucla.edu>
63177
63178         * MODULES.html.sh: Add diffseq.
63179         * modules/diffseq: New file.
63180         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63181         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63182
63183 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63184
63185         Import changes from coreutils for bootstrap script.
63186
63187         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * build-aux/bootstrap (slurp): Work even in environments where
63190         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63191         current code does not slurp files whose names start with ".", and
63192         this looks like it might be a troublesome area.
63193
63194         2007-07-11  Jim Meyering  <jim@meyering.net>
63195
63196         If there's a GPL vN copyright comment, require that N == 3.
63197
63198         2007-07-08  Jim Meyering  <jim@meyering.net>
63199
63200         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63201         * build-aux/bootstrap (mam_template): Move definition out of loop.
63202
63203         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63204
63205         * build-aux/bootstrap (symlink_to_dir): Rename function from
63206         symlink_to_gnulib.  Add a directory parameter.  Update all
63207         callers.
63208         (cp_mark_as_generated): Also check for -- and link to -- files in
63209         gl/.
63210
63211         2007-07-08  Jim Meyering  <jim@meyering.net>
63212
63213         Adapt to deeper hierarchy in gnulib.
63214         * build-aux/bootstrap (symlink_to_dir): If the destination
63215         directory doesn't exist, create it. This is required at least for
63216         "lib/uniwidth/cjk.h".
63217
63218         2007-05-15  Jim Meyering  <jim@meyering.net>
63219
63220         * build-aux/bootstrap: Now that generated Makefile.am files
63221         are no longer under version control, they must be created at
63222         bootstrap time.
63223
63224 2007-08-14  Ben Pfaff  <blp@gnu.org>
63225
63226         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63227
63228 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63229
63230         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63231         given the changes below.
63232         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63233         even on hosts that have padding bits beyond the supported 64.
63234
63235 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63236
63237         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63238         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63239         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63240         depends on it.
63241         (xstrtol_error): Remove.
63242         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63243         but with a different signature.
63244         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63245         * lib/xstrtol-error.c: Include exitfail.h.
63246         (xstrtol_fatal): New function, with a different signature from the
63247         old xstrtol_error, so that the caller need not worry about passing
63248         in an exit status, or about storage management of the option argument.
63249         (xstrtol_error): Now a static function.  Redo signature to
63250         implement xstrtol_fatal.  Output the correct number of hyphens in
63251         front of the option so that the caller need not worry about
63252         storage management.
63253         (N_): New macro.
63254         (_): Remove; not used now.
63255         * modules/xstrtol: Depend on getopt.
63256         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63257         of old STRTOL_FATAL_ERROR macro.
63258         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63259         of test program.
63260         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63261         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63262
63263 2007-08-08  Eric Blake  <ebb9@byu.net>
63264
63265         * lib/xstrtol-error.c: Add missing include.
63266
63267         Move xstrtol messages into gnulib domain, when --pobase is used.
63268         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63269         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63270         * modules/xstrtol (Files): Distribute new file.
63271         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63272         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63273         * tests/test-xstrtol.c: ...into new file.
63274         * tests/test-xstrtoul.c: Also test xstrtoul.
63275         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63276         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63277         * tests/test-xstrtol.sh: Drive the tests.
63278         * tests/test-xstrtoimax.sh: Likewise.
63279         * tests/test-xstrtoumax.sh: Likewise.
63280         * modules/xstrtol-tests: New module.
63281         * modules/xstrtoimax-tests: Likewise.
63282         * modules/xstrtoumax-tests: Likewise.
63283
63284 2007-08-08  Jim Meyering  <jim@meyering.net>
63285
63286         New function: mfile_name_concat.
63287         * lib/filenamecat.c (mfile_name_concat): New function, just like
63288         file_name_concat, but return NULL upon failure rather than exiting
63289         with a diagnostic.
63290         * lib/filenamecat.h: Declare it.
63291
63292 2007-08-07  Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63295         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63296         warning from gcc.
63297         Reported by Eric Blake.
63298
63299 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63300
63301         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63302         * modules/crypto/arcfour (License): Likewise.
63303         * modules/crypto/des-tests (License): Likewise.
63304         * modules/crypto/gc-arctwo-tests (License): Likewise.
63305         * modules/crypto/gc-des-tests (License): Likewise.
63306         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63307         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63308         * modules/crypto/gc-md2-tests (License): Likewise.
63309         * modules/crypto/gc-md4-tests (License): Likewise.
63310         * modules/crypto/gc-md5-tests (License): Likewise.
63311         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63312         * modules/crypto/gc-rijndael-tests (License): Likewise.
63313         * modules/crypto/gc-sha1-tests (License): Likewise.
63314         * modules/crypto/gc-tests (License): Likewise.
63315         * modules/crypto/hmac-md5 (License): Likewise.
63316         * modules/crypto/hmac-sha1 (License): Likewise.
63317         * modules/crypto/md2-tests (License): Likewise.
63318         * modules/crypto/md4-tests (License): Likewise.
63319         * modules/crypto/md5 (License): Likewise.
63320         * modules/crypto/rijndael (License): Likewise.
63321         * modules/crypto/sha1 (License): Likewise.
63322         * modules/memxor (License): Likewise.
63323
63324 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63325         and Bruno Haible  <bruno@clisp.org>
63326
63327         * NEWS: Describe interface changes to human, xstrtol.
63328         * lib/human.h: Include <xstrtol.h>.
63329         (human_options): Return enum strtol_error, not int.  Remove
63330         bool arg; take int * instead.
63331         * lib/human.c: Don't include "gettext.h".
63332         (_): Remove; no longer used.
63333         Don't include <xstrtol.h>, since human.h does it.
63334         (human_options): Adjust to abovementioned interface changes.
63335         Do not report error to stderr; that's now the caller's
63336         responsibility.
63337         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63338         interface change.
63339         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63340         Str, Argument_type_string.  All uses changed.  Put " argument"
63341         in diagnostics to make them clearer.  Change wording of suffix
63342         message for clarity.
63343         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63344         Argument_type_string.
63345         (STRTOL_FATAL_WARN): Remove; no longer used.
63346         * modules/human (Depends-on): Remove gettext-h.
63347
63348 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63349
63350         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63351
63352 2007-07-31  Bruno Haible  <bruno@clisp.org>
63353
63354         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63355         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63356         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63357
63358 2007-07-31  Bruno Haible  <bruno@clisp.org>
63359
63360         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63361         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63362
63363 2007-07-30  Bruno Haible  <bruno@clisp.org>
63364
63365         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63366         * modules/c-ctype (License): Likewise.
63367         * modules/c-strcase (License): Likewise.
63368         * modules/check-version (License): Likewise.
63369         * modules/iconv (License): Likewise.
63370         * modules/iconv_open (License): Likewise.
63371         * modules/read-file (License): Likewise.
63372         * modules/striconv (License): Likewise.
63373         * modules/strverscmp (License): Likewise.
63374         * modules/vasprintf (License): Likewise.
63375         * modules/crypto/des (License): Likewise.
63376         * modules/crypto/gc (License): Likewise.
63377         * modules/crypto/gc-arcfour (License): Likewise.
63378         * modules/crypto/gc-arctwo (License): Likewise.
63379         * modules/crypto/gc-des (License): Likewise.
63380         * modules/crypto/gc-hmac-md5 (License): Likewise.
63381         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63382         * modules/crypto/gc-md2 (License): Likewise.
63383         * modules/crypto/gc-md4 (License): Likewise.
63384         * modules/crypto/gc-md5 (License): Likewise.
63385         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63386         * modules/crypto/gc-random (License): Likewise.
63387         * modules/crypto/gc-rijndael (License): Likewise.
63388         * modules/crypto/gc-sha1 (License): Likewise.
63389         * modules/crypto/md2 (License): Likewise.
63390         * modules/crypto/md4 (License): Likewise.
63391
63392 2007-07-30  Jim Meyering  <jim@meyering.net>
63393
63394         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63395         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63396         it has valid stat data.  This bug would cause du not to count the
63397         sizes of inaccessible directories.
63398         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63399         in <http://bugzilla.redhat.com/250077>.
63400
63401 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63402             Bruno Haible  <bruno@clisp.org>
63403
63404         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63405         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63406         #include_next, gives a diagnostic about it, but reports no error in
63407         the exit code.
63408         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63409
63410 2007-07-24  Ben Pfaff  <blp@gnu.org>
63411
63412         Improve name: "count-one-bits" is better than "popcount".
63413         * MODULES.html.sh: Update name.
63414         * lib/popcount.h: Renamed lib/count-one-bits.h.
63415         (popcount): Renamed count_one_bits.
63416         (popcountl): Renamed count_one_bits_l.
63417         (popcountll): Renamed count_one_bits_ll.
63418         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63419         * modules/popcount: Renamed module/count-one-bits.
63420         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63421         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63422
63423 2007-07-23  Ben Pfaff  <blp@gnu.org>
63424
63425         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63426         better code generation, and add U to large constants to avoid
63427         warnings, in non-GCC case.
63428         Suggested by Bruno Haible.
63429
63430 2007-07-23  Ben Pfaff  <blp@gnu.org>
63431
63432         * lib/popcount.h: Use verify_true instead of if...abort.
63433         * modules/popcount: Depend on verify module.
63434         Suggested by Jim Meyering.
63435
63436 2007-07-23  Bruno Haible  <bruno@clisp.org>
63437
63438         * gnulib-tool (func_import): Create a .cvsignore file also when the
63439         directory is not yet in CVS but the toplevel directory is. When
63440         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63441         Reported by Karl Berry.
63442
63443 2007-07-22  Ben Pfaff  <blp@gnu.org>
63444
63445         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63446         case.
63447         Suggested by Eric Blake.
63448
63449 2007-07-22  Ben Pfaff  <blp@gnu.org>
63450
63451         New module: popcount.
63452         * MODULES.html.sh: Add popcount.
63453         * modules/popcount: New file.
63454         * modules/popcount-tests: New file.
63455         * tests/test-popcount.c: New file.
63456         * lib/popcount.h: New file.
63457         * m4/popcount.m4: New file.
63458
63459 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * build-aux/announce-gen: Update to GPLv3.
63462
63463         * build-aux/config.guess: Update from config.
63464
63465 2007-07-21  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63468         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63469
63470 2007-07-20  Jim Meyering  <jim@meyering.net>
63471
63472         * check-module: Diagnose a self-dependency.
63473
63474 2007-07-19  Bruno Haible  <bruno@clisp.org>
63475
63476         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63477         empty.
63478         Reported by Eric Blake.
63479
63480 2007-07-18  Bruno Haible  <bruno@clisp.org>
63481
63482         * gnulib-tool: New options --po-base, --po-domain.
63483         (func_usage): Document them.
63484         (pobase, po_domain): New variables.
63485         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63486         DEFAULT_TEXT_DOMAIN.
63487         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63488         (func_import): Consider pobase and po_domain. Create a po/ directory.
63489         (func_create_testdir): Set pobase and po_domain to empty.
63490         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63491         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63492
63493 2007-07-18  Bruno Haible  <bruno@clisp.org>
63494
63495         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63496         EXTRA_DIST augmentation for files in build-aux/.
63497
63498 2007-07-16  Bruno Haible  <bruno@clisp.org>
63499
63500         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63501         * modules/getdelim (License): Likewise.
63502
63503 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63504
63505         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63506         * modules/d-type (License): Likewise.
63507         * modules/extensions (License): Likewise.
63508         * modules/fnmatch (License): Likewise.
63509         * modules/fseeko (License): Likewise.
63510         * modules/getaddrinfo (License): Likewise.
63511         * modules/getline (License): Likewise.
63512         * modules/getlogin_r (License): Likewise.
63513         * modules/getpass (License): Likewise.
63514         * modules/gettimeofday (License): Likewise.
63515         * modules/glob (License): Likewise.
63516         * modules/inet_ntop (License): Likewise.
63517         * modules/malloc (License): Likewise.
63518         * modules/malloca (License): Likewise.
63519         * modules/memmem (License): Likewise.
63520         * modules/mempcpy (License): Likewise.
63521         * modules/memset (License): Likewise.
63522         * modules/minmax (License): Likewise.
63523         * modules/mktime (License): Likewise.
63524         * modules/netinet_in (License): Likewise.
63525         * modules/pathmax (License): Likewise.
63526         * modules/poll (License): Likewise.
63527         * modules/regex (License): Likewise.
63528         * modules/snprintf (License): Likewise.
63529         * modules/stdbool (License): Likewise.
63530         * modules/stdint (License): Likewise.
63531         * modules/stdio (License): Likewise.
63532         * modules/strcase (License): Likewise.
63533         * modules/strcasestr (License): Likewise.
63534         * modules/strdup (License): Likewise.
63535         * modules/string (License): Likewise.
63536         * modules/strndup (License): Likewise.
63537         * modules/strnlen (License): Likewise.
63538         * modules/strpbrk (License): Likewise.
63539         * modules/strptime (License): Likewise.
63540         * modules/strsep (License): Likewise.
63541         * modules/sys_select (License): Likewise.
63542         * modules/sys_socket (License): Likewise.
63543         * modules/sys_stat (License): Likewise.
63544         * modules/sys_time (License): Likewise.
63545         * modules/time (License): Likewise.
63546         * modules/time_r (License): Likewise.
63547         * modules/timegm (License): Likewise.
63548         * modules/unistd (License): Likewise.
63549         * modules/vsnprintf (License): Likewise.
63550         * modules/wctype (License): Likewise.
63551
63552 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63553
63554         * modules/argz (License): LGPLv2+.
63555
63556 2007-07-15  Karl Berry  <karl@gnu.org>
63557
63558         * doc/gnulib.texi: revise node structure per new fdl.texi.
63559
63560 2007-07-14  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63563         the output file.
63564         * lib/uniname/uninames.h: Regenerated.
63565
63566 2007-07-14  Karl Berry  <karl@gnu.org>
63567
63568         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63569         omitting sectioning and index commands.
63570
63571 2007-07-13  Bruno Haible  <bruno@clisp.org>
63572
63573         New gnulib-tool option --more-symlinks.
63574         * gnulib-tool (func_usage): Document --more-symlinks.
63575         (do_copyrights): New variable.
63576         Recognize option --more-symlinks.
63577         (func_import): Don't add a copyright notice transform to
63578         sed_transform_lib_file if do_copyrights is empty.
63579
63580 2007-07-13  Bruno Haible  <bruno@clisp.org>
63581
63582         * lib/vasnprintf.c (decimal_point_char): Define also if
63583         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63584         && !NEED_PRINTF_DIRECTIVE_A.
63585         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63586         Gary V. Vaughan <gary@gnu.org>.
63587
63588 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63589
63590         * lib/inttypes_.h: Undo previous change, since it was fixed
63591         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63592
63593 2007-07-13  Bruno Haible  <bruno@clisp.org>
63594
63595         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63596         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63597
63598 2007-07-13  Jim Meyering  <jim@meyering.net>
63599
63600         df: Don't fail for Tru64's "file-on-file mount".
63601         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63602         so we fall through and use statfs instead.  Details here:
63603         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63604         Reported by Albert Chin.
63605
63606 2007-07-13  Bruno Haible  <bruno@clisp.org>
63607
63608         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63609         * modules/configmake (License): Likewise.
63610         * modules/gettext (License): Likewise.
63611         * modules/gettext-h (License): Likewise.
63612         * modules/include_next (License): Likewise.
63613         * modules/link-warning (License): Likewise.
63614         * modules/localcharset (License): Likewise.
63615         * modules/localename (License): Likewise.
63616         * modules/lock (License): Likewise.
63617         * modules/relocatable-lib-lgpl (License): Likewise.
63618         * modules/size_max (License): Likewise.
63619         * modules/vasnprintf (License): Likewise.
63620         * modules/wchar (License): Likewise.
63621         * modules/xsize (License): Likewise.
63622
63623 2007-07-13  Bruno Haible  <bruno@clisp.org>
63624
63625         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63626         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63627
63628 2007-07-12  Bruno Haible  <bruno@clisp.org>
63629
63630         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63631         in the modules files.
63632
63633 2007-07-11  Karl Berry  <karl@gnu.org>
63634
63635         * MODULES.html.sh (func_module): use
63636          sed -e '\|^'"${includefile}"'$|d'
63637          instead of /.../d, to avoid errors on $includefile's containing /.
63638
63639 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63640
63641         * gnulib-tool (func_import): Avoid duplication of --avoid
63642         statements
63643         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63644         names to `_' in variable names.
63645
63646 2007-07-10  Eric Blake  <ebb9@byu.net>
63647
63648         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63649         * NEWS: Document this change.
63650
63651 2007-07-08  Bruno Haible  <bruno@clisp.org>
63652
63653         Update to Unicode 5.0.
63654         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63655         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63656         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63657         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63658         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63659         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63660         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63661         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63662         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63663         U+10A3F, U+1D242..U+1D244.
63664         (nonspacing_table_ind): Update.
63665         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63666         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63667
63668 2007-07-08  Bruno Haible  <bruno@clisp.org>
63669
63670         Update to Unicode 5.0.
63671         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63672         code transform. Extend the name index field of unicode_name_to_code and
63673         unicode_code_to_name from 16 to 24 bits.
63674         * lib/uniname/uniname.c (unicode_character_name,
63675         unicode_name_character): Add the range 0x12xxx to the code transform.
63676         * lib/uniname/uninames.h: Regenerated.
63677         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63678
63679 2007-07-07  Bruno Haible  <bruno@clisp.org>
63680
63681         * modules/wcwidth-tests: New file.
63682         * tests/test-wcwidth.c: New file.
63683
63684         Work around MacOS X wcwidth() bug.
63685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63686         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63687         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63688         original wcwidth in non-UTF-8 locales.
63689         * modules/wcwidth (Depends-on): Add localcharset, streq,
63690         uniwidth/width.
63691         * doc/functions/wcwidth.texi: Update.
63692
63693 2007-07-07  Bruno Haible  <bruno@clisp.org>
63694
63695         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63696         (wcwidth): New declaration.
63697         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63698         macros.
63699         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63700         here. Prepare for creating <wchar.h> unconditionally.
63701         * modules/wchar (Depends-on): Add link-warning.
63702         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63703         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63704         * lib/wcwidth.h: Remove file.
63705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63706         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63707         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63708         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63709         (Include): Replace wcwidth.h with <wchar.h>.
63710         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63711         * lib/mbchar.h: Don't include wcwidth.h.
63712         * lib/mbswidth.c: Likewise.
63713         * NEWS: Mention the change.
63714
63715 2007-07-07  Bruno Haible  <bruno@clisp.org>
63716
63717         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63718         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63719         definition with an external declaration.
63720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63721         defined as a function. Remove AC_C_INLINE requirement.
63722         * modules/wcwidth (Files): Add lib/wcwidth.c.
63723         (Makefile.am): Remove redundant statement.
63724
63725 2007-07-07  Bruno Haible  <bruno@clisp.org>
63726
63727         * MODULES.html.sh (Unicode string functions): Add the new modules.
63728
63729         * tests/uniwidth/test-u32-strwidth.c: New file.
63730         * modules/uniwidth/u32-strwidth-tests: New file.
63731
63732         * lib/uniwidth/u32-strwidth.c: New file.
63733         * modules/uniwidth/u32-strwidth: New file.
63734
63735         * tests/uniwidth/test-u16-strwidth.c: New file.
63736         * modules/uniwidth/u16-strwidth-tests: New file.
63737
63738         * lib/uniwidth/u16-strwidth.c: New file.
63739         * modules/uniwidth/u16-strwidth: New file.
63740
63741         * tests/uniwidth/test-u8-strwidth.c: New file.
63742         * modules/uniwidth/u8-strwidth-tests: New file.
63743
63744         * lib/uniwidth/u8-strwidth.c: New file.
63745         * modules/uniwidth/u8-strwidth: New file.
63746
63747         * tests/uniwidth/test-u32-width.c: New file.
63748         * modules/uniwidth/u32-width-tests: New file.
63749
63750         * lib/uniwidth/u32-width.c: New file.
63751         * modules/uniwidth/u32-width: New file.
63752
63753         * tests/uniwidth/test-u16-width.c: New file.
63754         * modules/uniwidth/u16-width-tests: New file.
63755
63756         * lib/uniwidth/u16-width.c: New file.
63757         * modules/uniwidth/u16-width: New file.
63758
63759         * tests/uniwidth/test-u8-width.c: New file.
63760         * modules/uniwidth/u8-width-tests: New file.
63761
63762         * lib/uniwidth/u8-width.c: New file.
63763         * modules/uniwidth/u8-width: New file.
63764
63765         * tests/uniwidth/test-uc_width.c: New file.
63766         * modules/uniwidth/width-tests: New file.
63767
63768         * lib/uniwidth/width.c: New file, from GNU libiconv.
63769         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63770         * modules/uniwidth/width: New file.
63771
63772         * lib/uniwidth.h: New file, from GNU libiconv.
63773         * modules/uniwidth/base: New file.
63774
63775 2007-07-07  Bruno Haible  <bruno@clisp.org>
63776
63777         * lib/uniname.h: New file, from GNU gettext.
63778         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63779         * lib/uniname/uninames.h: New file, from GNU gettext.
63780         * lib/uniname/uniname.c: New file, from GNU gettext.
63781         * tests/uniname/test-uninames.sh: New file.
63782         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63783         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63784         * modules/uniname/base: New file.
63785         * modules/uniname/uniname: New file.
63786         * modules/uniname/uniname-tests: New file.
63787         * MODULES.html.sh (Unicode string functions): Add the new modules.
63788
63789 2007-07-06  Bruno Haible  <bruno@clisp.org>
63790
63791         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63792
63793 2007-07-06  Bruno Haible  <bruno@clisp.org>
63794
63795         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63796         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63797         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63798         include <sys/time.h>.
63799         Reported by Eric Blake.
63800
63801 2007-07-06  Eric Blake  <ebb9@byu.net>
63802
63803         Fix testing canonicalize on cygwin.
63804         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63805         Revert patch from 2007-06-19.
63806         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63807         canonicalize module is also in use.
63808         * tests/test-canonicalize.c: New file.
63809         * tests/test-canonicalize.sh: Likewise.
63810         * modules/canonicalize-tests: Likewise.
63811
63812 2007-07-06  Jim Meyering  <jim@meyering.net>
63813
63814         * lib/getugroups.c (getugroups): Detect getgrent failure.
63815         Adjust comment to reflect reality: this function may return -1.
63816
63817 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63818
63819         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63820         the new TP address.
63821         (usage): Fix typo
63822         (gnulib_mk): New variable.
63823
63824 2007-07-05  Jim Meyering  <jim@meyering.net>
63825
63826         Don't let endgrent clobber errno, no matter how improbable.
63827         * lib/getugroups.c (getugroups): Save and restore errno around
63828         endgrent call.
63829
63830         Close the group DB even when failing with 2^31 or more members.
63831         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63832
63833 2007-07-04  Jim Meyering  <jim@meyering.net>
63834
63835         * lib/getugroups.h: New file.
63836         * lib/getugroups.c: Include "getugroups.h".
63837         Remove uses of "register" keyword.
63838         Move local variable, "cp", down into scope where used.
63839         Give "username" parameter the "const" attribute.
63840         * modules/getugroups (Files): Add lib/getugroups.h
63841
63842 2007-07-04  Karl Berry  <karl@gnu.org>
63843
63844         * MODULES.html.sh (func_all_modules): Complete rename of
63845         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63846
63847 2007-07-02  Bruno Haible  <bruno@clisp.org>
63848
63849         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63850         mode, when inttypes.h comes from gnulib.
63851         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63852
63853 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63854
63855         * NEWS: Mention lgpl module name change.
63856
63857         * modules/lgpl-2.1: Renamed from lgpl.
63858
63859         * NEWS: Mention gpl module name change.
63860
63861         * modules/gpl-3.0: New file, based on gpl-2.0.
63862
63863         * modules/gpl-2.0: Renamed from gpl.
63864
63865         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63866         doc/gpl-2.0.texi.
63867
63868 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63869
63870         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63871         #define __STDC_LIMIT_MACROS temporarily while including
63872         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63873         Problem reported by Joel E. Denny in
63874         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63875
63876 2007-07-01  Bruno Haible  <bruno@clisp.org>
63877
63878         * lib/unistdio.h: New file.
63879         * lib/unistdio/u-asnprintf.h: New file.
63880         * lib/unistdio/u-asprintf.h: New file.
63881         * lib/unistdio/u-printf-args.c: New file.
63882         * lib/unistdio/u-printf-args.h: New file.
63883         * lib/unistdio/u-printf-parse.h: New file.
63884         * lib/unistdio/u-snprintf.h: New file.
63885         * lib/unistdio/u-sprintf.h: New file.
63886         * lib/unistdio/u-vasprintf.h: New file.
63887         * lib/unistdio/u-vsnprintf.h: New file.
63888         * lib/unistdio/u-vsprintf.h: New file.
63889         * lib/unistdio/ulc-asnprintf.c: New file.
63890         * lib/unistdio/ulc-asprintf.c: New file.
63891         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63892         * lib/unistdio/ulc-printf-parse.c: New file.
63893         * lib/unistdio/ulc-snprintf.c: New file.
63894         * lib/unistdio/ulc-sprintf.c: New file.
63895         * lib/unistdio/ulc-vasnprintf.c: New file.
63896         * lib/unistdio/ulc-vasprintf.c: New file.
63897         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63898         * lib/unistdio/ulc-vsnprintf.c: New file.
63899         * lib/unistdio/ulc-vsprintf.c: New file.
63900         * lib/unistdio/u8-asnprintf.c: New file.
63901         * lib/unistdio/u8-asprintf.c: New file.
63902         * lib/unistdio/u8-printf-parse.c: New file.
63903         * lib/unistdio/u8-snprintf.c: New file.
63904         * lib/unistdio/u8-sprintf.c: New file.
63905         * lib/unistdio/u8-vasnprintf.c: New file.
63906         * lib/unistdio/u8-vasprintf.c: New file.
63907         * lib/unistdio/u8-vsnprintf.c: New file.
63908         * lib/unistdio/u8-vsprintf.c: New file.
63909         * lib/unistdio/u8-u8-asnprintf.c: New file.
63910         * lib/unistdio/u8-u8-asprintf.c: New file.
63911         * lib/unistdio/u8-u8-snprintf.c: New file.
63912         * lib/unistdio/u8-u8-sprintf.c: New file.
63913         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63914         * lib/unistdio/u8-u8-vasprintf.c: New file.
63915         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63916         * lib/unistdio/u8-u8-vsprintf.c: New file.
63917         * lib/unistdio/u16-asnprintf.c: New file.
63918         * lib/unistdio/u16-asprintf.c: New file.
63919         * lib/unistdio/u16-printf-parse.c: New file.
63920         * lib/unistdio/u16-snprintf.c: New file.
63921         * lib/unistdio/u16-sprintf.c: New file.
63922         * lib/unistdio/u16-vasnprintf.c: New file.
63923         * lib/unistdio/u16-vasprintf.c: New file.
63924         * lib/unistdio/u16-vsnprintf.c: New file.
63925         * lib/unistdio/u16-vsprintf.c: New file.
63926         * lib/unistdio/u16-u16-asnprintf.c: New file.
63927         * lib/unistdio/u16-u16-asprintf.c: New file.
63928         * lib/unistdio/u16-u16-snprintf.c: New file.
63929         * lib/unistdio/u16-u16-sprintf.c: New file.
63930         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63931         * lib/unistdio/u16-u16-vasprintf.c: New file.
63932         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63933         * lib/unistdio/u16-u16-vsprintf.c: New file.
63934         * lib/unistdio/u32-asnprintf.c: New file.
63935         * lib/unistdio/u32-asprintf.c: New file.
63936         * lib/unistdio/u32-printf-parse.c: New file.
63937         * lib/unistdio/u32-snprintf.c: New file.
63938         * lib/unistdio/u32-sprintf.c: New file.
63939         * lib/unistdio/u32-vasnprintf.c: New file.
63940         * lib/unistdio/u32-vasprintf.c: New file.
63941         * lib/unistdio/u32-vsnprintf.c: New file.
63942         * lib/unistdio/u32-vsprintf.c: New file.
63943         * lib/unistdio/u32-u32-asnprintf.c: New file.
63944         * lib/unistdio/u32-u32-asprintf.c: New file.
63945         * lib/unistdio/u32-u32-snprintf.c: New file.
63946         * lib/unistdio/u32-u32-sprintf.c: New file.
63947         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63948         * lib/unistdio/u32-u32-vasprintf.c: New file.
63949         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63950         * lib/unistdio/u32-u32-vsprintf.c: New file.
63951         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63952         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63953         * tests/unistdio/test-ulc-printf1.h: New file.
63954         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63955         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63956         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63957         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63958         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63959         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63960         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63961         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63962         * tests/unistdio/test-u8-asnprintf1.c: New file.
63963         * tests/unistdio/test-u8-asnprintf1.h: New file.
63964         * tests/unistdio/test-u8-printf1.h: New file.
63965         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63966         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63967         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63968         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63969         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63970         * tests/unistdio/test-u8-vasprintf1.c: New file.
63971         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63972         * tests/unistdio/test-u8-vsprintf1.c: New file.
63973         * tests/unistdio/test-u16-asnprintf1.c: New file.
63974         * tests/unistdio/test-u16-asnprintf1.h: New file.
63975         * tests/unistdio/test-u16-printf1.h: New file.
63976         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63977         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63978         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63979         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63980         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63981         * tests/unistdio/test-u16-vasprintf1.c: New file.
63982         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63983         * tests/unistdio/test-u16-vsprintf1.c: New file.
63984         * tests/unistdio/test-u32-asnprintf1.c: New file.
63985         * tests/unistdio/test-u32-asnprintf1.h: New file.
63986         * tests/unistdio/test-u32-printf1.h: New file.
63987         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63988         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63989         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63990         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63991         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63992         * tests/unistdio/test-u32-vasprintf1.c: New file.
63993         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63994         * tests/unistdio/test-u32-vsprintf1.c: New file.
63995         * modules/unistdio/base: New file.
63996         * modules/unistdio/u-printf-args: New file.
63997         * modules/unistdio/ulc-asnprintf: New file.
63998         * modules/unistdio/ulc-asprintf: New file.
63999         * modules/unistdio/ulc-fprintf: New file.
64000         * modules/unistdio/ulc-printf-parse: New file.
64001         * modules/unistdio/ulc-snprintf: New file.
64002         * modules/unistdio/ulc-sprintf: New file.
64003         * modules/unistdio/ulc-vasnprintf: New file.
64004         * modules/unistdio/ulc-vasprintf: New file.
64005         * modules/unistdio/ulc-vfprintf: New file.
64006         * modules/unistdio/ulc-vsnprintf: New file.
64007         * modules/unistdio/ulc-vsprintf: New file.
64008         * modules/unistdio/u8-asnprintf: New file.
64009         * modules/unistdio/u8-asprintf: New file.
64010         * modules/unistdio/u8-printf-parse: New file.
64011         * modules/unistdio/u8-snprintf: New file.
64012         * modules/unistdio/u8-sprintf: New file.
64013         * modules/unistdio/u8-vasnprintf: New file.
64014         * modules/unistdio/u8-vasprintf: New file.
64015         * modules/unistdio/u8-vsnprintf: New file.
64016         * modules/unistdio/u8-vsprintf: New file.
64017         * modules/unistdio/u8-u8-asnprintf: New file.
64018         * modules/unistdio/u8-u8-asprintf: New file.
64019         * modules/unistdio/u8-u8-snprintf: New file.
64020         * modules/unistdio/u8-u8-sprintf: New file.
64021         * modules/unistdio/u8-u8-vasnprintf: New file.
64022         * modules/unistdio/u8-u8-vasprintf: New file.
64023         * modules/unistdio/u8-u8-vsnprintf: New file.
64024         * modules/unistdio/u8-u8-vsprintf: New file.
64025         * modules/unistdio/u16-asnprintf: New file.
64026         * modules/unistdio/u16-asprintf: New file.
64027         * modules/unistdio/u16-printf-parse: New file.
64028         * modules/unistdio/u16-snprintf: New file.
64029         * modules/unistdio/u16-sprintf: New file.
64030         * modules/unistdio/u16-vasnprintf: New file.
64031         * modules/unistdio/u16-vasprintf: New file.
64032         * modules/unistdio/u16-vsnprintf: New file.
64033         * modules/unistdio/u16-vsprintf: New file.
64034         * modules/unistdio/u16-u16-asnprintf: New file.
64035         * modules/unistdio/u16-u16-asprintf: New file.
64036         * modules/unistdio/u16-u16-snprintf: New file.
64037         * modules/unistdio/u16-u16-sprintf: New file.
64038         * modules/unistdio/u16-u16-vasnprintf: New file.
64039         * modules/unistdio/u16-u16-vasprintf: New file.
64040         * modules/unistdio/u16-u16-vsnprintf: New file.
64041         * modules/unistdio/u16-u16-vsprintf: New file.
64042         * modules/unistdio/u32-asnprintf: New file.
64043         * modules/unistdio/u32-asprintf: New file.
64044         * modules/unistdio/u32-printf-parse: New file.
64045         * modules/unistdio/u32-snprintf: New file.
64046         * modules/unistdio/u32-sprintf: New file.
64047         * modules/unistdio/u32-vasnprintf: New file.
64048         * modules/unistdio/u32-vasprintf: New file.
64049         * modules/unistdio/u32-vsnprintf: New file.
64050         * modules/unistdio/u32-vsprintf: New file.
64051         * modules/unistdio/u32-u32-asnprintf: New file.
64052         * modules/unistdio/u32-u32-asprintf: New file.
64053         * modules/unistdio/u32-u32-snprintf: New file.
64054         * modules/unistdio/u32-u32-sprintf: New file.
64055         * modules/unistdio/u32-u32-vasnprintf: New file.
64056         * modules/unistdio/u32-u32-vasprintf: New file.
64057         * modules/unistdio/u32-u32-vsnprintf: New file.
64058         * modules/unistdio/u32-u32-vsprintf: New file.
64059         * modules/unistdio/ulc-asnprintf-tests: New file.
64060         * modules/unistdio/ulc-vasnprintf-tests: New file.
64061         * modules/unistdio/ulc-vasprintf-tests: New file.
64062         * modules/unistdio/ulc-vsnprintf-tests: New file.
64063         * modules/unistdio/ulc-vsprintf-tests: New file.
64064         * modules/unistdio/u8-asnprintf-tests: New file.
64065         * modules/unistdio/u8-vasnprintf-tests: New file.
64066         * modules/unistdio/u8-vasprintf-tests: New file.
64067         * modules/unistdio/u8-vsnprintf-tests: New file.
64068         * modules/unistdio/u8-vsprintf-tests: New file.
64069         * modules/unistdio/u16-asnprintf-tests: New file.
64070         * modules/unistdio/u16-vasnprintf-tests: New file.
64071         * modules/unistdio/u16-vasprintf-tests: New file.
64072         * modules/unistdio/u16-vsnprintf-tests: New file.
64073         * modules/unistdio/u16-vsprintf-tests: New file.
64074         * modules/unistdio/u32-asnprintf-tests: New file.
64075         * modules/unistdio/u32-vasnprintf-tests: New file.
64076         * modules/unistdio/u32-vasprintf-tests: New file.
64077         * modules/unistdio/u32-vsnprintf-tests: New file.
64078         * modules/unistdio/u32-vsprintf-tests: New file.
64079         * MODULES.html.sh (Unicode string functions): Add the new modules.
64080
64081 2007-07-01  Bruno Haible  <bruno@clisp.org>
64082
64083         * lib/sprintf.c (sprintf): Limit the available length estimation,
64084         to avoid address wraparound.
64085         * lib/vsprintf.c (vsprintf): Likewise.
64086         * modules/sprintf-posix (Dependencies): Add stdint.
64087         * modules/vsprintf-posix (Dependencies): Likewise.
64088
64089 2007-07-01  Bruno Haible  <bruno@clisp.org>
64090
64091         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64092         Windows PATH as well. Conservative double-quoting. Comments.
64093
64094 2007-07-01  Bruno Haible  <bruno@clisp.org>
64095             Eric Blake  <ebb9@byu.net>
64096             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64097
64098         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64099         empty components in $PATH, denoting '.'.
64100
64101 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64102
64103         * gnulib-tool: Fix indentation.
64104         (func_create_megatestdir): Likewise.
64105         Report by Bruno Haible.
64106
64107 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64108
64109         Sync from Automake.
64110         * build-aux/gnupload: Fix shell portability issues with for loops.
64111         Report by Karl Berry.
64112
64113 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64114
64115         * build-aux/maint.mk (POURL): Use translationproject.org.
64116
64117 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64118             Bruno Haible  <bruno@clisp.org>
64119
64120         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64121         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64122         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64123         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64124         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64125
64126 2007-06-27  Bruno Haible  <bruno@clisp.org>
64127
64128         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64129         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64130
64131 2007-06-26  Karl Berry  <karl@gnu.org>
64132
64133         * MODULES.html.sh: remove xreadlink-with-size.
64134
64135 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64138         method that I hope also handles the double-include problem noted
64139         by Bruno Haible in
64140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64141
64142 2007-06-23  Bruno Haible  <bruno@clisp.org>
64143
64144         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64145         Don't let the 'mostlyclean' target fail if the last subdirectory could
64146         not be removed.
64147         Reported by Karl Berry.
64148
64149 2007-06-23  Bruno Haible  <bruno@clisp.org>
64150
64151         * gnulib-tool (echo): Add a speedier workaround for ksh.
64152         * tests/test-echo.sh: Likewise.
64153
64154 2007-06-23  Bruno Haible  <bruno@clisp.org>
64155
64156         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64157         * tests/test-echo.sh: Likewise.
64158
64159 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64160
64161         * gnulib-tool (IFS): Initialize early, so we don't set it to
64162         empty later.
64163         (self_abspathname): Rewrite algorithm to set it, reindent.
64164         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64165         (func_create_megatestdir): Merge some sed scripts.
64166
64167 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64168
64169         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64170         exposed by Sun Studio 11 cc on Solaris 8.
64171
64172 2007-06-22  Bruno Haible  <bruno@clisp.org>
64173
64174         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64175         backslashes.
64176         * tests/test-echo.sh: New file.
64177
64178 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64179
64180         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64181         simplify `sed_replace_build_aux' scripts, they are portable but
64182         echoing them with `echo' is not.
64183         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64184
64185 2007-06-21  Karl Berry  <karl@gnu.org>
64186
64187         * config/srclist.txt: guess we can't handle the licenses via
64188         srclist at the moment.
64189
64190 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64191
64192         * MODULES.html.sh: Add include_next.
64193         * modules/include_next: New file.
64194
64195 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64198         INCLUDE_NEXT.
64199         (gl_CHECK_NEXT_HEADERS): New macro.
64200         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64201         the obsolescent gl_ABSOLUTE_HEADER.
64202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64203         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64204         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64205         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64206         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64207         * m4/math_h.m4 (gl_MATH_H): Likewise.
64208         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64209         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64210         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64211         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64212         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64213         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64214         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64215         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64216         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64218         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64219         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64220         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64221         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64222         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64223         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64224         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64225         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64226         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64227         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64228         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64229         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64230         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64231         * lib/float_.h: Likewise.
64232         * lib/inttypes_.h: Likewise.
64233         * lib/math_.h: Likewise.
64234         * lib/search_.h: Likewise.
64235         * lib/signal_.h: Likewise.
64236         * lib/stdint_.h: Likewise.
64237         * lib/stdio_.h: Likewise.
64238         * lib/stdlib_.h: Likewise.
64239         * lib/string_.h: Likewise.
64240         * lib/sys_stat_.h: Likewise.
64241         * lib/sys_time_.h: Likewise.
64242         * lib/time_.h: Likewise.
64243         * lib/unistd_.h: Likewise.
64244         * lib/wchar_.h: Likewise.
64245         * lib/wctype_.h: Likewise.
64246         * lib/dirent_.h: Likewise.
64247         * lib/iconv_.h: Likewise.
64248         * lib/locale_.h: Likewise.
64249         * lib/netinet_in_.h: Likewise.
64250         * lib/sys_select_.h: Likewise.
64251         * lib/sys_socket_.h: Likewise.
64252         * lib/sysexits_.h: Likewise.
64253         * modules/fcntl (Depends-on): Depend on include_next, not
64254         absolute_header.
64255         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64256         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64257         * modules/fchdir: Likewise.
64258         * modules/float: Likewise.
64259         * modules/iconv_open: Likewise.
64260         * modules/inttypes: Likewise.
64261         * modules/locale: Likewise.
64262         * modules/math: Likewise.
64263         * modules/netinet_in: Likewise.
64264         * modules/search: Likewise.
64265         * modules/signal: Likewise.
64266         * modules/stdint: Likewise.
64267         * modules/stdio: Likewise.
64268         * modules/stdlib: Likewise.
64269         * modules/string: Likewise.
64270         * modules/sys_select: Likewise.
64271         * modules/sys_socket: Likewise.
64272         * modules/sys_stat: Likewise.
64273         * modules/sys_time: Likewise.
64274         * modules/sysexits: Likewise.
64275         * modules/time: Likewise.
64276         * modules/unistd: Likewise.
64277         * modules/wchar: Likewise.
64278         * modules/wctype: Likewise.
64279         * modules/sys_stat: Change maintainer to "all".
64280         * modules/unistd: Likewise.
64281
64282 2007-06-20  Karl Berry  <karl@gnu.org>
64283
64284         * config/srclist.txt: track www changes in license files.
64285
64286 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64287
64288         * build-aux/bootstrap: Remove stray dot.
64289         Make sure build_aux settings are honored when linking
64290         gnulib_extra_files.
64291
64292 2007-06-19  Eric Blake  <ebb9@byu.net>
64293
64294         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64295         Allow compilation on cygwin.
64296
64297 2007-06-19  Jim Meyering  <jim@meyering.net>
64298
64299         xreadlink-with-size: Remove module.  No longer used.
64300         Ex-callers now use xreadlink or mreadlink-with-size.
64301         * modules/xreadlink-with-size: Remove module.
64302         * lib/xreadlink-with-size.c: Remove file.
64303         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64304         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64305         just before the function definition *is* accurate.
64306
64307         Eliminate one way canonicalize_filename_mode could exit.
64308         * lib/canonicalize.c (canonicalize_filename_mode):
64309         Use mreadlink_with_size, not xreadlink_with_size.
64310
64311 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64312
64313         Detect porting problems to FreeBSD/arm, which has time_t wider than
64314         long int.  Original problem reported for GNU diff by Xin Li in
64315         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64316         * modules/getdate (Depends-on): Add intprops, verify.
64317         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64318         is an integer type no wider than long int.
64319
64320 2007-06-18  Jim Meyering  <jim@meyering.net>
64321
64322         New module: mreadlink-with-size.
64323         * MODULES.html.sh: Add mreadlink-with-size.
64324         * modules/mreadlink-with-size: New module
64325         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64326         not xreadlink-with-size.
64327         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64328
64329 2007-06-16  Bruno Haible  <bruno@clisp.org>
64330
64331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64332         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64333         Reported by Gary V. Vaughan <gary@gnu.org>.
64334
64335 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64336
64337         Revamp lchown so that it lives in unistd.h where it belongs.
64338         * lib/lchown.h: Remove.
64339         * lib/dirchownmod.c: Don't include lib/lchown.h.
64340         * lib/fchownat.c: Likewise.
64341         * lib/openat.c: Likewise.
64342         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64343         does not follow symlinks.
64344         (EOPNOTSUPP): Define if not defined.
64345         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64346         is defined to 0.
64347         (lchown): New decl.
64348         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64349         Do not check for lchown decl.
64350         Set REPLACE_LCHOWN.
64351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64352         REPLACE_LCHOWN.
64353         * modules/chown: Make it clear it follows symlinks.
64354         * modules/lchown: Make it clear it doesn't follow symlinks.
64355         (Files): Remove lib/lchown.h
64356         (Depends-on): Add unistd.
64357         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64358         (Include): Include <unistd.h>, not "lchown.h".
64359         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64360         REPLACE_LCHOWN.
64361
64362 2007-06-15  Jim Meyering  <jim@meyering.net>
64363
64364         Change license (GPL to LGPL) of fsusage and dependents.
64365         * modules/fsusage (License): Change to LGPL.
64366         * modules/full-read (License): Likewise.
64367         * modules/full-write (License): Likewise.
64368         * modules/safe-read (License): Likewise.
64369         * modules/safe-write (License): Likewise.
64370
64371 2007-06-14  Ben Pfaff  <blp@gnu.org>
64372
64373         Missing part of allocsa -> malloca transition.
64374         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64375         gl_MALLOCA.
64376
64377 2007-06-12  Bruno Haible  <bruno@clisp.org>
64378
64379         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64380         to ia64, x86_64, i386.
64381         Reported by Eric Blake.
64382
64383 2007-06-12  Bruno Haible  <bruno@clisp.org>
64384
64385         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64386         cross-compiling to x86_64.
64387
64388 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64389
64390         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64391         glitch reported by Ralf Wildenhues in
64392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64393
64394         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64395         Vin Shelton.
64396
64397 2007-06-11  Bruno Haible  <bruno@clisp.org>
64398
64399         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64400         replacement string.
64401         Reported by Eric Blake.
64402
64403 2007-06-10  Bruno Haible  <bruno@clisp.org>
64404
64405         Prepare vasnprintf code for use with Unicode strings.
64406         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64407         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64408         TYPE_U32_STRING.
64409         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64410         a_u32_string variants.
64411         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64412         * lib/printf-args.c: Don't include config.h and the specification
64413         header if PRINTF_FETCHARGS is already defined.
64414         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64415         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64416         TYPE_U16_STRING, TYPE_U32_STRING.
64417         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64418         u16_directive, u16_directives, u32_directive, u32_directives): New
64419         types.
64420         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64421         New declarations.
64422         * lib/printf-parse.c: Don't include config.h and the specification
64423         header if PRINTF_PARSE is already defined. Eliminate the set of
64424         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64425         them now. Include c-ctype.h.
64426         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64427         directive and CHAR_T_ONLY_ASCII.
64428         * lib/vasnprintf.c: Don't include config.h and the specification header
64429         if VASNPRINTF is already defined.
64430         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64431         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64432         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64433         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64434         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64435         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64436         code accordingly.
64437         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64438         pad_ourselves also in this case, with the 'c' and 's' directives, and
64439         with a different notion of "width".
64440         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64441
64442 2007-06-10  Bruno Haible  <bruno@clisp.org>
64443
64444         * modules/unistr/u32-mbsnlen: New file.
64445         * lib/unistr/u32-mbsnlen.c: New file.
64446
64447         * modules/unistr/u16-mbsnlen: New file.
64448         * lib/unistr/u16-mbsnlen.c: New file.
64449
64450         * modules/unistr/u8-mbsnlen: New file.
64451         * lib/unistr/u8-mbsnlen.c: New file.
64452
64453         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64454         declarations.
64455
64456 2007-06-10  Bruno Haible  <bruno@clisp.org>
64457
64458         * lib/string_.h (mbsnlen): New declaration.
64459         * lib/mbsnlen.c: New file.
64460         * m4/mbsnlen.m4: New file.
64461         * modules/mbsnlen: New file.
64462         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64463         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64464         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64465
64466 2007-06-10  Bruno Haible  <bruno@clisp.org>
64467
64468         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64469
64470 2007-06-10  Bruno Haible  <bruno@clisp.org>
64471
64472         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64473         * lib/mbuiter.h: Likewise.
64474
64475 2007-06-10  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64478         declaration.
64479
64480 2007-06-10  Karl Berry  <karl@gnu.org>
64481
64482         * config/srclist.txt: remove gettext entries, Bruno prefers
64483         to update individually.
64484
64485 2007-06-10  Bruno Haible  <bruno@clisp.org>
64486
64487         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64488         'maxlen'. Ensure only length + width bytes are allocated, not
64489         length + 1 + width.
64490
64491 2007-06-09  Bruno Haible  <bruno@clisp.org>
64492
64493         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64494         (CHAR_T): Remove macro.
64495         (VASNPRINTF): Update.
64496
64497 2007-06-09  Bruno Haible  <bruno@clisp.org>
64498
64499         * MODULES.html.sh (Unicode string functions): Add the new modules.
64500
64501         * modules/uniconv/u32-conv-to-enc: New file.
64502         * lib/uniconv/u32-conv-to-enc.c: New file.
64503         * modules/uniconv/u32-conv-to-enc-tests: New file.
64504         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64505
64506         * modules/uniconv/u16-conv-to-enc: New file.
64507         * lib/uniconv/u16-conv-to-enc.c: New file.
64508         * lib/uniconv/u-conv-to-enc.h: New file.
64509         * modules/uniconv/u16-conv-to-enc-tests: New file.
64510         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64511
64512         * modules/uniconv/u8-conv-to-enc: New file.
64513         * lib/uniconv/u8-conv-to-enc.c: New file.
64514         * modules/uniconv/u8-conv-to-enc-tests: New file.
64515         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64516
64517         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64518         u32_conv_to_encoding): New declarations.
64519
64520 2007-06-09  Bruno Haible  <bruno@clisp.org>
64521
64522         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64523
64524 2007-06-09  Bruno Haible  <bruno@clisp.org>
64525
64526         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64527         * modules/malloca: Renamed from modules/allocsa, updated.
64528         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64529         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64530         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64531         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64532         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64533         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64534         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64535         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64536         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64537         * modules/c-strcasestr (Depends-on): Update.
64538         * lib/c-strcasestr.c: Update.
64539         * modules/c-strstr (Depends-on): Update.
64540         * lib/c-strstr.c: Update.
64541         * modules/canonicalize-lgpl (Depends-on): Update.
64542         * lib/canonicalize-lgpl.c: Update.
64543         * modules/clean-temp (Depends-on): Update.
64544         * lib/clean-temp.c: Update.
64545         * modules/csharpcomp (Depends-on): Update.
64546         * lib/csharpcomp.c: Update.
64547         * modules/csharpexec (Depends-on): Update.
64548         * lib/csharpexec.c: Update.
64549         * modules/javacomp (Depends-on): Update.
64550         * lib/javacomp.c: Update.
64551         * modules/javaexec (Depends-on): Update.
64552         * lib/javaexec.c: Update.
64553         * modules/mbscasestr (Depends-on): Update.
64554         * lib/mbscasestr.c: Update.
64555         * modules/mbsstr (Depends-on): Update.
64556         * lib/mbsstr.c: Update.
64557         * modules/setenv (Depends-on): Update.
64558         * lib/setenv.c: Update.
64559         * modules/strcasestr (Depends-on): Update.
64560         * lib/strcasestr.c: Update.
64561         * modules/striconveha (Depends-on): Update.
64562         * lib/striconveha.c: Update.
64563         * modules/relocatable-prog-wrapper (Files): Update.
64564         * lib/relocwrapper.c: Update.
64565         * build-aux/install-reloc: Update.
64566         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64567
64568 2007-06-08  Bruno Haible  <bruno@clisp.org>
64569
64570         Port to uClibc.
64571         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64572         * lib/fpurge.c (fpurge): Likewise.
64573         * lib/freading.c (freading): Likewise.
64574         * lib/fseeko.c (rpl_fseeko): Likewise.
64575         * lib/fseterr.c (fseterr): Likewise.
64576         * lib/fwriting.c (fwriting): Likewise.
64577         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64578
64579 2007-06-08  Bruno Haible  <bruno@clisp.org>
64580
64581         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64582         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64583         * modules/gettext (Files): Add m4/intlmacosx.m4.
64584
64585 2007-06-07  Bruno Haible  <bruno@clisp.org>
64586
64587         * modules/localename-tests: New file.
64588         * tests/test-localename.c: New file.
64589
64590         New module 'localename'.
64591         * lib/localename.h: New file.
64592         * lib/localename.c: New file, from GNU gettext.
64593         * m4/localename.m4: New file.
64594         * modules/localename: New file.
64595
64596 2007-06-07  Bruno Haible  <bruno@clisp.org>
64597
64598         Work around the lack of <wchar.h> on some builds of uClibc.
64599         * doc/headers/wchar.texi: Update.
64600         * lib/wchar_.h: Include <wchar.h> only if it exists.
64601         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64602         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64603         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64604         doesn't exist.
64605         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64606         * modules/mbfile (Depends-on): Add wchar.
64607         * modules/mbiter (Depends-on): Likewise.
64608         * modules/mbuiter (Depends-on): Likewise.
64609         Reported by Simon Josefsson.
64610
64611 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64612
64613         Work around problem reported by Steven M. Schweda in
64614         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64615         Tru64 5.1B with the Compaq compiler environment installed declares
64616         an 'isblank' function but does not define it in the C library.
64617         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64618         * lib/regex_internal.h (isblank): Likewise.
64619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64620         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64621
64622 2007-06-05  Bruno Haible  <bruno@clisp.org>
64623
64624         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64625         ia64.
64626         * modules/printf-safe: New file.
64627         * modules/fprintf-posix (Depends-on): Add printf-safe.
64628         * modules/printf-posix (Depends-on): Likewise.
64629         * modules/snprintf-posix (Depends-on): Likewise.
64630         * modules/sprintf-posix (Depends-on): Likewise.
64631         * modules/vasnprintf-posix (Depends-on): Likewise.
64632         * modules/vasprintf-posix (Depends-on): Likewise.
64633         * modules/vfprintf-posix (Depends-on): Likewise.
64634         * modules/vprintf-posix (Depends-on): Likewise.
64635         * modules/vsnprintf-posix (Depends-on): Likewise.
64636         * modules/vsprintf-posix (Depends-on): Likewise.
64637         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64638         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64639         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64640         "no" on i386, x86_64, ia64.
64641         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64642         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64643         on i386, x86_64, ia64.
64644         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64645         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64646         on i386, x86_64, ia64.
64647         * tests/test-vasnprintf-posix.c: Include float.h.
64648         (LDBL80_WORDS): New macro.
64649         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64650         on i386, x86_64, ia64.
64651         * tests/test-vasprintf-posix.c: Include float.h.
64652         (LDBL80_WORDS): New macro.
64653         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64654         on i386, x86_64, ia64.
64655         * tests/test-snprintf-posix.c: Include float.h.
64656         * tests/test-sprintf-posix.c: Likewise.
64657         * tests/test-vsnprintf-posix.c: Likewise.
64658         * tests/test-vsprintf-posix.c: Likewise.
64659
64660 2007-06-05  Bruno Haible  <bruno@clisp.org>
64661
64662         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64663         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64664         non-IEEE numbers on i386, x86_64, ia64.
64665         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64666         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64667         * tests/test-isnanl.h: Include float.h.
64668         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64669
64670 2007-06-05  Bruno Haible  <bruno@clisp.org>
64671
64672         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64673         also the %a / %A. Handle the %a / %A code before this extra handling.
64674
64675 2007-06-05  Bruno Haible  <bruno@clisp.org>
64676
64677         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64678         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64679
64680 2007-06-05  Bruno Haible  <bruno@clisp.org>
64681
64682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64683         typo in variable name.
64684
64685 2007-06-05  Eric Blake  <ebb9@byu.net>
64686
64687         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64688         Reported by Simon Josefsson.
64689
64690 2007-06-04  Bruno Haible  <bruno@clisp.org>
64691
64692         Avoid test failures on some PowerPC platforms.
64693         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64694         Define differently for PowerPC.
64695         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64696         Reported by Gary V. Vaughan <gary@gnu.org>.
64697
64698 2007-06-02  Bruno Haible  <bruno@clisp.org>
64699
64700         Fix test-stdint failure on FreeBSD/ia64.
64701         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64702         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64703         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64704         * doc/headers/stdint.texi: Update.
64705
64706 2007-06-01  Bruno Haible  <bruno@clisp.org>
64707
64708         * tests/test-binary-io.c (main): Pass a third argument to open().
64709         Reported by Gary V. Vaughan <gary@gnu.org>.
64710
64711 2007-06-01  Bruno Haible  <bruno@clisp.org>
64712
64713         * doc/functions/frexpl.texi: Update for mingw.
64714
64715 2007-06-01  Bruno Haible  <bruno@clisp.org>
64716
64717         * tests/test-lseek.c (main): Disable test of errno for invalid third
64718         argument.
64719         * doc/functions/lseek.texi: Update.
64720         Reported by Gary V. Vaughan <gary@gnu.org>.
64721
64722 2007-05-28  Bruno Haible  <bruno@clisp.org>
64723
64724         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64725
64726 2007-05-31  Eric Blake  <ebb9@byu.net>
64727
64728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64729         cross compiling.
64730
64731 2007-05-30  Eric Blake  <ebb9@byu.net>
64732         and Bruno Haible  <bruno@clisp.org>
64733
64734         Work around mingw test failures exposed by m4-1.4.9b.
64735         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64736         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64737         moment.
64738
64739 2007-05-30  Bruno Haible  <bruno@clisp.org>
64740
64741         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64742         assuming that they are closed. Needed on HP-UX 11.
64743
64744 2007-05-29  Bruno Haible  <bruno@clisp.org>
64745
64746         Fix a problem with #include_next.
64747         * lib/dirent_.h: Split the double-inclusion guard.
64748         * lib/fcntl_.h: Likewise.
64749         * lib/float_.h: Likewise.
64750         * lib/iconv_.h: Likewise.
64751         * lib/inttypes_.h: Likewise.
64752         * lib/locale_.h: Likewise.
64753         * lib/math_.h: Likewise.
64754         * lib/netinet_in_.h: Likewise.
64755         * lib/search_.h: Likewise.
64756         * lib/signal_.h: Likewise.
64757         * lib/stdint_.h: Likewise.
64758         * lib/stdio_.h: Likewise.
64759         * lib/stdlib_.h: Likewise.
64760         * lib/string_.h: Likewise.
64761         * lib/sys_select_.h: Likewise.
64762         * lib/sys_socket_.h: Likewise.
64763         * lib/sys_stat_.h: Likewise.
64764         * lib/sys_time_.h: Likewise.
64765         * lib/sysexits_.h: Likewise.
64766         * lib/time_.h: Likewise.
64767         * lib/unistd_.h: Likewise.
64768         * lib/wchar_.h: Likewise.
64769         * lib/wctype_.h: Likewise.
64770
64771 2007-05-29  Bruno Haible  <bruno@clisp.org>
64772
64773         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64774         for the moment.
64775
64776 2007-05-29  Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64779         invocation.
64780         Reported by Eric Blake.
64781
64782 2007-05-29  Bruno Haible  <bruno@clisp.org>
64783
64784         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64785         compiling case.
64786
64787 2007-05-29  Eric Blake  <ebb9@byu.net>
64788             Bruno Haible  <bruno@clisp.org>
64789
64790         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64791         cross compiles.
64792
64793 2007-05-28  Eric Blake  <ebb9@byu.net>
64794
64795         * modules/closein-tests (test_closein_LDADD): Support test on
64796         cygwin with libtool.
64797
64798 2007-05-28  Bruno Haible  <bruno@clisp.org>
64799
64800         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64801         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64802         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64803         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64804         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64805         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64806         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64807         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64808         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64809
64810 2007-05-28  Eric Blake  <ebb9@byu.net>
64811
64812         Unconditionally include <config.h> in unit tests.
64813         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64814         * tests/test-allocsa.c, tests/test-arcfour.c,
64815         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64816         tests/test-array_list.c, tests/test-array_oset.c,
64817         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64818         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64819         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64820         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64821         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64822         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64823         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64824         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64825         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64826         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64827         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64828         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64829         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64830         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64831         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64832         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64833         test-md5.c, test-memmem.c, test-printf-posix.c,
64834         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64835         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64836         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64837         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64838         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64839         test-vasnprintf-posix2.c, test-vasnprintf.c,
64840         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64841         test-vfprintf-posix.c, test-vprintf-posix.c,
64842         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64843         test-xvasprintf.c: Likewise.
64844
64845 2007-05-28  Bruno Haible  <bruno@clisp.org>
64846
64847         * gnulib-tool (func_import): Remember the --with-tests command-line
64848         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64849         Reported by Eric Blake.
64850
64851 2007-05-28  Bruno Haible  <bruno@clisp.org>
64852
64853         * modules/ftell-tests: New file.
64854         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64855         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64856
64857         * lib/ftell.c: New file.
64858         * modules/ftell: New file.
64859         * m4/ftell.m4: New file.
64860         * doc/functions/ftell.texi: Update.
64861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64862         REPLACE_FTELL.
64863         * lib/stdio_.h (rpl_ftell): New declaration.
64864         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64865         REPLACE_FTELL.
64866
64867 2007-05-28  Eric Blake  <ebb9@byu.net>
64868
64869         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64870
64871 2007-05-28  Bruno Haible  <bruno@clisp.org>
64872
64873         * modules/fseek-tests: New file.
64874         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64875         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64876
64877         * lib/fseek.c: New file.
64878         * modules/fseek: New file.
64879         * m4/fseek.m4: New file.
64880         * doc/functions/fseek.texi: Update.
64881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64882         REPLACE_FSEEK.
64883         * lib/stdio_.h (rpl_fseek): New declaration.
64884         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64885         REPLACE_FSEEK.
64886
64887 2007-05-28  Bruno Haible  <bruno@clisp.org>
64888
64889         * lib/stdio_.h (fflush): More comments.
64890
64891 2007-05-28  Bruno Haible  <bruno@clisp.org>
64892
64893         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64894         runtime test.
64895
64896 2007-05-28  Eric Blake  <ebb9@byu.net>
64897
64898         Improve lseek module.
64899         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64900         * lib/unistd_.h (lseek): Scale back link warning message.
64901         * tests/test-lseek.c: Beef up test.
64902         * tests/test-lseek.sh: Exercise more facets of lseek.
64903         Reported by Bruno Haible.
64904
64905 2007-05-28  Bruno Haible  <bruno@clisp.org>
64906
64907         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64908         to define.
64909
64910 2007-05-27  Bruno Haible  <bruno@clisp.org>
64911
64912         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64913
64914 2007-05-27  Bruno Haible  <bruno@clisp.org>
64915
64916         * modules/openmp: New file.
64917         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64918         Noah Misch.
64919
64920 2007-05-26  Bruno Haible  <bruno@clisp.org>
64921
64922         * modules/chdir-long (Depends-on): Add fchdir.
64923         * modules/chdir-safer (Depends-on): Likewise.
64924         * modules/fts (Depends-on): Likewise.
64925         * modules/fts-lgpl (Depends-on): Likewise.
64926         * modules/openat (Depends-on): Likewise.
64927         * modules/savewd (Depends-on): Likewise.
64928
64929 2007-05-24  Eric Blake  <ebb9@byu.net>
64930
64931         Fix lseek on mingw.
64932         * modules/lseek: New module.
64933         * m4/lseek.m4: New file.
64934         * lib/lseek.c: New file.
64935         * modules/lseek-tests: New file.
64936         * tests/test-lseek.c: New file.
64937         * tests/test-lseek.sh: New file.
64938         * MODULES.html.sh: Document lseek module.
64939         * modules/fflush (Depends-on): Add lseek, fseeko.
64940         * modules/fseeko (Depends-on): Likewise.
64941         * modules/ftello (Depends-on): Likewise.
64942         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64943         broken.
64944         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64945         broken.
64946         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64947         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64948         * lib/ftello.c (rpl_ftello): Likewise.
64949         * tests/test-fseeko.c (main): Test this.
64950         * tests/test-fseeko.sh: Likewise.
64951         * tests/test-ftello.c (main): Likewise.
64952         * tests/test-ftello.sh: Likewise.
64953         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64954         implies replacing fseek.
64955         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64956         HAVE_FTELLO.
64957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64958         * modules/unistd (Makefile.am): Likewise.
64959         * lib/unistd_.h (lseek): Declare a replacement.
64960         * doc/functions/lseek.texi (lseek): Document this fix.
64961         * doc/functions/fseek.texi (fseek): Likewise.
64962         * doc/functions/ftell.texi (ftell): Likewise.
64963
64964 2007-05-24  Bruno Haible  <bruno@clisp.org>
64965
64966         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64967         in the printed representation of a NaN.
64968         * tests/test-vasprintf-posix.c (test_function): Likewise.
64969         * tests/test-snprintf-posix.h (test_function): Likewise.
64970         * tests/test-sprintf-posix.h (test_function): Likewise.
64971         Reported by Eric Blake.
64972
64973 2007-05-23  Eric Blake  <ebb9@byu.net>
64974
64975         Fix fseeko/ftello on cygwin 1.5.24.
64976         * doc/functions/fseeko.texi (fseeko): Document the fix.
64977         * doc/functions/ftello.texi (ftello): Document the fix.
64978         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64979         * doc/functions/stdout.text (stdout): New file.
64980         * doc/functions/stderr.text (stderr): New file.
64981         * doc/gnulib.texi (Function Substitutes): Use new files.
64982         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64983         prior to 1.7.0.
64984         * tests/test-ftello.c (main): Likewise for ftello.
64985         * tests/test-fseeko.sh: New file.
64986         * tests/test-ftello.sh: New file.
64987         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64988         with seekable stdin.
64989         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64991         (gl_REPLACE_FSEEKO): New macro.
64992         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64993         * modules/fseeko (Files): Distribute fseeko.c.
64994         * modules/ftello (Files): Distribute ftello.c.
64995         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64996         mode.
64997         * lib/ftello.c (rpl_ftello): New file.
64998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64999         fseeko, ftello.
65000         (gl_STDIN_LARGE_OFFSET): New macro.
65001         * modules/stdio (Makefile.am): Perform the replacement.
65002         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65003
65004 2007-05-23  Bruno Haible  <bruno@clisp.org>
65005
65006         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65007         GNULIB_POSIXCHECK is defined.
65008
65009 2007-05-21  Bruno Haible  <bruno@clisp.org>
65010
65011         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65012         Check also the output for NaN arguments. When cross-compiling, guess
65013         no on IRIX.
65014         * lib/vasnprintf.c: Update comments.
65015         * tests/test-vasnprintf-posix.c (strisnan): New function.
65016         (test_function): Use it.
65017         * tests/test-vasprintf-posix.c (strisnan): New function.
65018         (test_function): Use it.
65019         * tests/test-snprintf-posix.h (strisnan): New function.
65020         (test_function): Use it.
65021         * tests/test-sprintf-posix.h (strisnan): New function.
65022         (test_function): Use it.
65023         Reported by Eric Blake.
65024
65025 2007-05-20  Bruno Haible  <bruno@clisp.org>
65026
65027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65028         numbers that fails on BeOS.
65029         * doc/functions/frexpl.texi: Update.
65030
65031 2007-05-20  Jim Meyering  <jim@meyering.net>
65032
65033         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65034         forced upon us by glibc-2.6.
65035
65036 2007-05-20  Bruno Haible  <bruno@clisp.org>
65037
65038         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65039         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65040         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65041         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65042         NEED_PRINTF_INFINITE.
65043         (is_infinitel): New function.
65044         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65046         gl_PREREQ_VASNPRINTF_INFINITE.
65047         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65048         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65049         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65050         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65051         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65052         gl_PREREQ_VASNPRINTF_INFINITE.
65053         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65055         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65056         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65057         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65058         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65060         * doc/functions/fprintf.texi: Update.
65061         * doc/functions/printf.texi: Update.
65062         * doc/functions/snprintf.texi: Update.
65063         * doc/functions/sprintf.texi: Update.
65064         * doc/functions/vfprintf.texi: Update.
65065         * doc/functions/vprintf.texi: Update.
65066         * doc/functions/vsnprintf.texi: Update.
65067         * doc/functions/vsprintf.texi: Update.
65068
65069 2007-05-20  Bruno Haible  <bruno@clisp.org>
65070
65071         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65072         was not found in libc.
65073         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65074
65075 2007-05-20  Bruno Haible  <bruno@clisp.org>
65076
65077         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65078         printed as "-nan" instead of "nan".
65079         * tests/test-vasprintf-posix.c (test_function): Likewise.
65080         * tests/test-snprintf-posix.h (test_function): Likewise.
65081         * tests/test-sprintf-posix.h (test_function): Likewise.
65082         Needed for HP-UX 11.
65083
65084 2007-05-20  Jim Meyering  <jim@meyering.net>
65085
65086         Fix buggy test for the fchownat-deref bug.
65087         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65088         symlink required for the run-test.  Without it, this test would
65089         always declare that fchownat doesn't work, and client code would
65090         unnecessarily use the replacement function with fixed libc.
65091         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65092         Reported by Greg Schafer.
65093
65094 2007-05-19  Bruno Haible  <bruno@clisp.org>
65095
65096         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65097         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65098         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65099         Needed for IRIX 6.5 and Solaris 2.5.1.
65100
65101 2007-05-19  Bruno Haible  <bruno@clisp.org>
65102
65103         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65104         (test_function): Skip tests involving -0.0 on platforms where
65105         -0.0 = 0.0.
65106         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65107         (test_function): Skip tests involving -0.0 on platforms where
65108         -0.0 = 0.0.
65109         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65110         (test_function): Skip tests involving -0.0 on platforms where
65111         -0.0 = 0.0.
65112         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65113         (test_function): Skip tests involving -0.0 on platforms where
65114         -0.0 = 0.0.
65115         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65116         tests.
65117         * tests/test-printf-posix.h (test_function): Likewise.
65118         * tests/test-printf-posix.output: Remove all -0.0 related results.
65119         Needed for IRIX 6.5.
65120
65121 2007-05-19  Bruno Haible  <bruno@clisp.org>
65122
65123         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65124         printed as "nan0x7fffffff" instead of "nan".
65125         * tests/test-vasprintf-posix.c (test_function): Likewise.
65126         * tests/test-snprintf-posix.h (test_function): Likewise.
65127         * tests/test-sprintf-posix.h (test_function): Likewise.
65128         * tests/test-fprintf-posix.h (NaN): Remove macro.
65129         (test_function): Remove all NaN related tests.
65130         * tests/test-printf-posix.h (NaN): Remove macro.
65131         (test_function): Remove all NaN related tests.
65132         * tests/test-printf-posix.output: Remove all NaN related results.
65133         Needed for IRIX 6.5.
65134
65135 2007-05-19  Bruno Haible  <bruno@clisp.org>
65136
65137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65139
65140 2007-05-19  Bruno Haible  <bruno@clisp.org>
65141
65142         * lib/float_.h: New file.
65143         * m4/float_h.m4: New file.
65144         * modules/float: New file.
65145         * modules/isnanl (Dependencies): Add float.
65146         * modules/isnanl-nolibm (Dependencies): Likewise.
65147         * modules/mathl (Dependencies): Likewise.
65148         * modules/printf-frexpl (Dependencies): Likewise.
65149         * modules/signbit (Dependencies): Likewise.
65150         * modules/vasnprintf (Dependencies): Likewise.
65151         * doc/headers/float.texi: Update.
65152
65153 2007-05-19  Jim Meyering  <jim@meyering.net>
65154
65155         * lib/utimens.c (gl_futimens): Rename from futimens,
65156         now that glibc-2.6 declares futimens.
65157         * lib/utimens.h: Likewise.
65158
65159 2007-05-19  Bruno Haible  <bruno@clisp.org>
65160
65161         Avoid test failures on mingw.
65162         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65163         * tests/test-printf-posix.sh: Likewise.
65164         * tests/test-vfprintf-posix.sh: Likewise.
65165         * tests/test-vprintf-posix.sh: Likewise.
65166
65167 2007-05-19  Bruno Haible  <bruno@clisp.org>
65168
65169         Fix *printf result for NaN, Inf, -0.0 on mingw.
65170         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65171         * lib/vasnprintf.c: Include math.h and isnan.h.
65172         (is_infinite_or_zero): New function.
65173         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65174         values in the %f, %F, %e, %E, %g, %G directives.
65175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65176         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65177         gl_PRINTF_INFINITE and test its result. Invoke
65178         gl_PREREQ_VASNPRINTF_INFINITE.
65179         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65180         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65182         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65183         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65184         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65185         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65186         * doc/functions/fprintf.texi: Update.
65187         * doc/functions/printf.texi: Update.
65188         * doc/functions/snprintf.texi: Update.
65189         * doc/functions/sprintf.texi: Update.
65190         * doc/functions/vfprintf.texi: Update.
65191         * doc/functions/vprintf.texi: Update.
65192         * doc/functions/vsnprintf.texi: Update.
65193         * doc/functions/vsprintf.texi: Update.
65194
65195 2007-05-19  Bruno Haible  <bruno@clisp.org>
65196
65197         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65198         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65199         Instead of multiplying with 10^k, set extra_zeroes to k.
65200         (scale10_round_long_double): Remove function.
65201
65202 2007-05-18  Bruno Haible  <bruno@clisp.org>
65203
65204         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65205         introduced on 2007-05-06.
65206
65207 2007-05-18  Bruno Haible  <bruno@clisp.org>
65208
65209         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65210         %g directives.
65211         * tests/test-vasprintf-posix.c (test_function): Likewise.
65212         * tests/test-snprintf-posix.h (test_function): Likewise.
65213         * tests/test-sprintf-posix.h (test_function): Likewise.
65214
65215 2007-05-18  Bruno Haible  <bruno@clisp.org>
65216
65217         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65218         (strmatch): New function.
65219         (test_function): Test the %f directive on numbers of various exponents.
65220         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65221         (strmatch): New function.
65222         (test_function): Test the %f directive on numbers of various exponents.
65223         * tests/test-snprintf-posix.h (strmatch): New function.
65224         (test_function): Test the %f directive on numbers of various exponents.
65225         * tests/test-sprintf-posix.h (strmatch): New function.
65226         (test_function): Test the %f directive on numbers of various exponents.
65227         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65228         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65229         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65230         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65231
65232 2007-05-18  Bruno Haible  <bruno@clisp.org>
65233
65234         Add support for 'long double' number output.
65235         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65236         * lib/vasnprintf.c: Include math.h and float+.h.
65237         (mp_limb_t): New type.
65238         (GMP_LIMB_BITS): New macro.
65239         (mp_twolimb_t): New type.
65240         (GMP_TWOLIMB_BITS): New macro.
65241         (mpn_t): New type.
65242         (multiply, divide, convert_to_decimal, decode_long_double,
65243         scale10_round_long_double, scale10_round_decimal_long_double,
65244         floorlog10l): New functions.
65245         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65246         for the %f, %F, %e, %E, %g, %G directives.
65247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65248         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65249         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65250         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65251         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65252         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65253         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65254         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65255         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65256         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65257         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65258         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65259         * modules/snprintf-posix (Depends-on): Likewise.
65260         * modules/sprintf-posix (Depends-on): Likewise.
65261         * modules/vasnprintf-posix (Depends-on): Likewise.
65262         * modules/vasprintf-posix (Depends-on): Likewise.
65263         * modules/vfprintf-posix (Depends-on): Likewise.
65264         * modules/vsnprintf-posix (Depends-on): Likewise.
65265         * modules/vsprintf-posix (Depends-on): Likewise.
65266         * modules/vasnprintf (Files): Add lib/float+.h.
65267         * doc/functions/fprintf.texi: Update.
65268         * doc/functions/printf.texi: Update.
65269         * doc/functions/snprintf.texi: Update.
65270         * doc/functions/sprintf.texi: Update.
65271         * doc/functions/vfprintf.texi: Update.
65272         * doc/functions/vprintf.texi: Update.
65273         * doc/functions/vsnprintf.texi: Update.
65274         * doc/functions/vsprintf.texi: Update.
65275
65276 2007-05-18  Bruno Haible  <bruno@clisp.org>
65277
65278         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65279
65280 2007-05-18  Bruno Haible  <bruno@clisp.org>
65281
65282         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65283         for printing 64-bit integers. Needed for mingw.
65284
65285 2007-05-18  Bruno Haible  <bruno@clisp.org>
65286
65287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65288         gl_FUNC_FREXPL_WORKS.
65289         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65290
65291 2007-05-18  Bruno Haible  <bruno@clisp.org>
65292
65293         * modules/frexpl-nolibm-tests: New file.
65294
65295         * modules/frexpl-nolibm: New file.
65296         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65297
65298 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65299
65300         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65301         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65302         GCC 4.2, which otherwise issues a lot of warnings.
65303         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65304         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65305         Likewise.
65306         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65307         * modules/iconv_open (iconv.h): Likewise.
65308         * modules/locale (locale.h): Likewise.
65309         * modules/netinet_in (netinet/in.h): Likewise.
65310         * modules/sys_select (sys_select.h): Likewise.
65311         * modules/sys_socket (sys/socket.h): Likewise.
65312         * modules/sys_stat (sys/stat.h): Likewise.
65313         * modules/sysexits (sysexits.h): Likewise.
65314         * modules/unistd (unistd.h): Likewise.
65315
65316 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65317
65318         * modules/closein-tests (Makefile.am): Distribute
65319         `test-closein.sh'.
65320
65321 2007-05-17  Bruno Haible  <bruno@clisp.org>
65322
65323         * tests/test-printf-posix.output: Renamed from
65324         tests/test-fprintf-posix.out.
65325         * modules/fprintf-posix-tests: Update.
65326         * modules/printf-posix-tests: Update.
65327         * modules/vfprintf-posix-tests: Update.
65328         * modules/vprintf-posix-tests: Update.
65329         * tests/test-fprintf-posix.sh: Update.
65330         * tests/test-printf-posix.sh: Update.
65331         * tests/test-vfprintf-posix.sh: Update.
65332         * tests/test-vprintf-posix.sh: Update.
65333         Reported by Ralf Wildenhues.
65334
65335 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65336
65337         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65338         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65339         GCC 4.2, which otherwise issues a lot of warnings.
65340         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65341         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65342         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65343         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65344         it should no longer be needed.
65345         * lib/string_.h: Likewise.
65346         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65347         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65348         * modules/inttypes (inttypes.h): Likewise.
65349         * modules/math (math.h): Likewise.
65350         * modules/search (search.h): Likewise.
65351         * modules/signal (signal.h): Likewise.
65352         * modules/stdint (stdint.h): Likewise.
65353         * modules/stdio (stdio.h): Likewise.
65354         * modules/stdlib (stdlib.h): Likewise.
65355         * modules/string (string.h): Likewise.
65356         * modules/sys_time (sys/time.h): Likewise.
65357         * modules/time (time.h): Likewise.
65358         * modules/wchar (wchar.h): Likewise.
65359         * modules/wctype (wtype.h): Likewise.
65360
65361 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65362
65363         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65364
65365 2007-05-13  Bruno Haible  <bruno@clisp.org>
65366
65367         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65368         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65369         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65370         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65371         (gl_PREREQ_STRTOK_R): Don't require it here.
65372
65373 2007-05-13  Bruno Haible  <bruno@clisp.org>
65374
65375         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65376         when used in C++ mode.
65377
65378 2007-05-12  Bruno Haible  <bruno@clisp.org>
65379
65380         * lib/linebuffer.h: Tweak doc.
65381         * lib/linebuffer.c: Likewise.
65382
65383 2007-05-12  James Youngman  <jay@gnu.org>
65384
65385         * lib/linebuffer.c (readlinebuffer_delim): New function,
65386         like readlinebuffer, but use a caller-specified delimiter.
65387         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65388         as the delimiter.
65389         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65390
65391 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65392
65393         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65394         * modules/openat (Files): Remove openat-die.c.
65395         (Depends-on): Add openat-die.
65396         * modules/openat-die: New module.
65397
65398 2007-05-06  Bruno Haible  <bruno@clisp.org>
65399
65400         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65401         Update with info about Cygwin.
65402         * doc/functions/fprintf.texi: Update.
65403         * doc/functions/printf.texi: Update.
65404         * doc/functions/snprintf.texi: Update.
65405         * doc/functions/sprintf.texi: Update.
65406         * doc/functions/vfprintf.texi: Update.
65407         * doc/functions/vprintf.texi: Update.
65408         * doc/functions/vsnprintf.texi: Update.
65409         * doc/functions/vsprintf.texi: Update.
65410         Reported by Eric Blake.
65411
65412 2007-05-06  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65415         padding ourselves for the floating-point directives.
65416         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65418         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65419         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65420         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65421         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65425         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65426         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65427         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65428         * tests/test-snprintf-posix.h (test_function): Also check the width
65429         and some flags in the %f directive.
65430         * tests/test-sprintf-posix.h (test_function): Likewise.
65431         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65432         * tests/test-vasprintf-posix.c (test_function): Likewise.
65433         * doc/functions/fprintf.texi: Update.
65434         * doc/functions/printf.texi: Update.
65435         * doc/functions/snprintf.texi: Update.
65436         * doc/functions/sprintf.texi: Update.
65437         * doc/functions/vfprintf.texi: Update.
65438         * doc/functions/vprintf.texi: Update.
65439         * doc/functions/vsnprintf.texi: Update.
65440         * doc/functions/vsprintf.texi: Update.
65441
65442 2007-05-06  Bruno Haible  <bruno@clisp.org>
65443
65444         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65445         pass the ' flag character to sprintf or snprintf.
65446         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65447         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65448         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65449         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65450         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65451         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65452         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65455         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65456         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65457         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65458         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65459         flag.
65460         * tests/test-sprintf-posix.h (test_function): Likewise.
65461         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65462         * tests/test-vasprintf-posix.c (test_function): Likewise.
65463         * doc/functions/fprintf.texi: Update.
65464         * doc/functions/printf.texi: Update.
65465         * doc/functions/snprintf.texi: Update.
65466         * doc/functions/sprintf.texi: Update.
65467         * doc/functions/vfprintf.texi: Update.
65468         * doc/functions/vprintf.texi: Update.
65469         * doc/functions/vsnprintf.texi: Update.
65470         * doc/functions/vsprintf.texi: Update.
65471
65472 2007-05-01  Bruno Haible  <bruno@clisp.org>
65473
65474         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65475
65476 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65477
65478         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65479         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65480
65481 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65482
65483         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65484         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65485         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65486
65487 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65488
65489         * lib/argp-help.c (struct hol_entry): New member `ord'.
65490         (HOL_ENTRY_PTRCMP): Use ord for comparison
65491         (hol_sort): Initialize ord.
65492
65493 2007-05-01  Bruno Haible  <bruno@clisp.org>
65494
65495         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65496         Reported by Eric Blake.
65497         * doc/gnulib.texi (Function Substitutes): Update.
65498
65499 2007-05-01  Bruno Haible  <bruno@clisp.org>
65500
65501         * doc/functions.texi: Remove file, now redundant through
65502         doc/functions/*.texi.
65503
65504 2007-05-01  Bruno Haible  <bruno@clisp.org>
65505
65506         * modules/argp (Depends-on): Add sleep.
65507
65508 2007-05-01  Bruno Haible  <bruno@clisp.org>
65509
65510         * modules/sleep-tests: New file.
65511         * tests/test-sleep.c: New file.
65512
65513         * modules/sleep: New file.
65514         * lib/sleep.c: New file.
65515         * m4/sleep.m4: New file.
65516         * lib/unistd_.h (sleep): New declaration.
65517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65518         HAVE_SLEEP.
65519         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65520         * doc/functions/sleep.texi: Document the sleep module.
65521
65522 2007-05-01  Bruno Haible  <bruno@clisp.org>
65523
65524         * lib/sigprocmask.h: Remove file.
65525         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65526         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65527         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65528         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65529         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65530         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65531         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65532         HAVE_SIGSET_T as a shell variable.
65533         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65534         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65535         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65536         (Depends-on): Add signal. Remove verify.
65537         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65538         (Include): Mention <signal.h> instead of sigprocmask.h.
65539         * NEWS: Mention the change.
65540         * lib/fatal-signal.c: Don't include sigprocmask.h.
65541
65542 2007-05-01  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/signal: New file.
65545         * lib/signal_.h: New file.
65546         * m4/signal_h.m4: New file.
65547
65548 2007-05-01  Bruno Haible  <bruno@clisp.org>
65549
65550         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65551         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65552         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65553         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65554
65555 2007-05-01  Bruno Haible  <bruno@clisp.org>
65556
65557         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65558         configure time.
65559         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65560         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65561         * modules/sys_stat (Makefile.am): Substitute their values into
65562         sys/stat.h.
65563
65564 2007-05-01  Bruno Haible  <bruno@clisp.org>
65565
65566         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65567         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65568         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65569
65570 2007-05-01  Bruno Haible  <bruno@clisp.org>
65571
65572         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65573         'assert' module here.
65574
65575 2007-05-01  Bruno Haible  <bruno@clisp.org>
65576
65577         * doc/functions/*.texi: New files.
65578         * doc/functions/google-ranking.txt: New file.
65579         * doc/gnulib.texi (Function Substitutes): New chapter.
65580         (ctime, inet_ntoa): Remove sections.
65581         * doc/ctime.texi: Remove file.
65582         * doc/inet_ntoa.texi: Remove file.
65583         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65584         dependencies.
65585         (%.info): New rule, specifying a --reference-limit.
65586
65587 2007-05-01  Bruno Haible  <bruno@clisp.org>
65588
65589         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65590
65591 2007-05-01  Bruno Haible  <bruno@clisp.org>
65592
65593         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65594         the portability of 'mkdir' to mingw systems.
65595
65596 2007-05-01  Bruno Haible  <bruno@clisp.org>
65597
65598         * doc/headers/google-ranking.txt: New file.
65599
65600 2007-04-30  Eric Blake  <ebb9@byu.net>
65601
65602         Prefer fseeko to fseek.
65603         * modules/getpass (Depends-on): Add fseeko.
65604         * lib/getpass.c (getpass): Use fseeko, not fseek.
65605
65606 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65607
65608         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65609         assumes the sorting is stable, while most qsort implementations
65610         are not.  Use argument addresses to ensure they never compare as
65611         equal.
65612
65613         * tests/test-argp-2.sh (usage-indent test): Fix output
65614         (func_compare): Restore diff options
65615         * tests/test-argp.c: Restore #include "progname.h"
65616
65617 2007-04-29  Bruno Haible  <bruno@clisp.org>
65618
65619         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65621         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65622         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65623         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65624         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65625         (TESTS, check_PROGRAMS): Add test-snprintf.
65626         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65627         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65628         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65629         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65630         assertions that fail on HP-UX, OSF/1, or IRIX.
65631         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65632
65633 2007-04-29  Bruno Haible  <bruno@clisp.org>
65634
65635         * MODULES.html.sh (posix_functions): Remove 'contents'.
65636
65637 2007-04-29  Karl Berry  <karl@gnu.org>
65638
65639         * config/srclist.txt (gendocs_template_min): new entry.
65640
65641 2007-04-29  Bruno Haible  <bruno@clisp.org>
65642
65643         Work around fpurge bug on BSD systems.
65644         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65645         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65646         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65647         fpurge to rpl_fpurge if the system already has this function.
65648         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65649         the case where the system already has this function. Correct invariants
65650         on BSD systems.
65651         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65652         BSD systems.
65653
65654 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65655
65656         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65657         proposed by Sven Verdoolaege.
65658
65659         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65660         options.
65661         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65662         (usage and help tests): Update
65663
65664 2007-04-29  Bruno Haible  <bruno@clisp.org>
65665
65666         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65667         Print more information in case of failure. Disable a test on BeOS.
65668
65669 2007-04-29  Bruno Haible  <bruno@clisp.org>
65670
65671         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65672         This helps debugging on systems on which no gdb is available.
65673
65674 2007-04-29  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/freading.h: Improve comments.
65677         * lib/fwriting.h: Likewise.
65678         * tests/test-freading.c (main): Don't check freading immediately after
65679         repositioning. Needed for glibc.
65680
65681 2007-04-29  Bruno Haible  <bruno@clisp.org>
65682
65683         * lib/freading.c (freading): Trivial simplification.
65684
65685 2007-04-28  Bruno Haible  <bruno@clisp.org>
65686
65687         * tests/test-fwriting.c (main): Also test the interaction between
65688         fflush and fwriting.
65689         * modules/fwriting-tests (Depends-on): Add fflush.
65690
65691         * tests/test-freading.c (main): Also test the interaction between
65692         fflush and freading.
65693         * modules/freading-tests (Depends-on): Add fflush.
65694
65695 2007-04-28  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65698         fseeko and ftello.
65699         Suggested by Eric Blake.
65700
65701 2007-04-28  Jim Meyering  <jim@meyering.net>
65702
65703         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65704         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65705         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65706
65707 2007-04-27  Eric Blake  <ebb9@byu.net>
65708
65709         * doc/headers/assert.texi (assert.h): Document assert module use.
65710
65711 2007-04-27  Bruno Haible  <bruno@clisp.org>
65712
65713         * doc/headers/*.texi: New files.
65714         * doc/gnulib.texi (Header File Substitutes): New chapter.
65715         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65716         dependencies.
65717         (standards.info ,standards.html, standards.dvi): Update dependencies.
65718         (mostlyclean, clean): New targets.
65719
65720 2007-04-27  Bruno Haible  <bruno@clisp.org>
65721
65722         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65723         * modules/sysexits (Files, Makefile.am): Update.
65724
65725         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65726         * modules/sys_socket (Files, Makefile.am): Update.
65727
65728         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65729         * modules/sys_stat (Files, Makefile.am): Update.
65730
65731 2007-04-27  Eric Blake  <ebb9@byu.net>
65732
65733         * lib/freading.h: Improve comments.
65734         * lib/fwriting.h: Likewise.
65735         * lib/fflush.c: Likewise.
65736
65737         Fix closein for mingw.
65738         * modules/closein-tests: Add tests for closein.
65739         * tests/test-closein.c: New file.
65740         * tests/test-closein.sh: Likewise.
65741         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65742         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65743
65744 2007-04-27  Bruno Haible  <bruno@clisp.org>
65745
65746         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65747         version is < 6.
65748         * lib/math_.h [__DECC]: Likewise.
65749         * lib/stdio_.h [__DECC]: Likewise.
65750         * lib/stdlib_.h [__DECC]: Likewise.
65751         * lib/string_.h [__DECC]: Likewise.
65752         * lib/time_.h [__DECC]: Likewise.
65753         * lib/wchar_.h [__DECC]: Likewise.
65754         * lib/wctype_.h [__DECC]: Likewise.
65755
65756 2007-04-27  Bruno Haible  <bruno@clisp.org>
65757
65758         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65759
65760 2007-04-27  Bruno Haible  <bruno@clisp.org>
65761
65762         * lib/fflush.c: Add comments.
65763         * modules/fpurge-tests (Depends-on): Add fflush.
65764         * modules/freadable-tests (Depends-on): Likewise.
65765         * modules/fwritable-tests (Depends-on): Likewise.
65766
65767 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65768
65769         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65770         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65771         Report by Bruno Haible <bruno@clisp.org>.
65772
65773 2007-04-26  Eric Blake  <ebb9@byu.net>
65774
65775         Fix fflush on mingw.
65776         * modules/fflush (Depends-on): Add freading.
65777         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65778         but unread data.
65779
65780 2007-04-26  Eric Blake  <ebb9@byu.net>
65781         and Bruno Haible  <bruno@clisp.org>
65782
65783         Implement freading and fwriting.
65784         * lib/freading.c: New file.
65785         * lib/freading.h: Likewise.
65786         * m4/freading.m4: Likewise.
65787         * modules/freading: Likewise.
65788         * modules/freading-tests: Likewise.
65789         * tests/test-freading.c: Likewise.
65790         * lib/fwriting.c: New file.
65791         * lib/fwriting.h: Likewise.
65792         * m4/fwriting.m4: Likewise.
65793         * modules/fwriting: Likewise.
65794         * modules/fwriting-tests: Likewise.
65795         * tests/test-fwriting.c: Likewise.
65796         * MODULES.html.sh (File stream based Input/Output): Mention them.
65797
65798 2007-04-26  Bruno Haible  <bruno@clisp.org>
65799
65800         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65801         'long' when we assume it.
65802         Suggested by Eric Blake.
65803
65804 2007-04-26  Bruno Haible  <bruno@clisp.org>
65805
65806         Ensure fseeko, ftello are declared on glibc systems.
65807         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65808         * modules/fseeko (configure.ac-early): Likewise.
65809         * modules/ftello (configure.ac-early): Likewise.
65810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65811         AC_FUNC_FSEEKO for this.
65812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65813         (gl_CHECK_FSEEKO): Remove macro.
65814
65815 2007-04-26  Bruno Haible  <bruno@clisp.org>
65816
65817         * tests/test-fflush.c (main): Also check the ftell result after
65818         fflush and fseek/fseeko.
65819         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65820         file descriptor position cache in the stream.
65821         * lib/fseeko.c (rpl_fseeko): Likewise.
65822
65823 2007-04-26  Bruno Haible  <bruno@clisp.org>
65824
65825         * modules/fflush-tests (Depends-on): Add fseeko.
65826
65827 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65828             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65829
65830         * lib/argz_.h: ensure error_t definition is obtained in same
65831         mechanism system argz.h would have.
65832         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65833         argz facilities are known bad.  Err on the side of caution if
65834         cross-compiling.
65835
65836 2007-04-25  Eric Blake  <ebb9@byu.net>
65837
65838         * lib/fpurge.c (includes): Use stdlib.h for free.
65839         * tests/test-fflush.c (main): Also test fflush-fseeko.
65840
65841 2007-04-25  Bruno Haible  <bruno@clisp.org>
65842
65843         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65844         * lib/fseeko.c: New file.
65845         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65846         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65847         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65848         gl_FUNC_FSEEKO.
65849         (gl_FUNC_FSEEKO): Invoke it.
65850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65851         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65852         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65853
65854 2007-04-25  Bruno Haible  <bruno@clisp.org>
65855
65856         * modules/fflush (Depends-on): Add ftello.
65857
65858 2007-04-25  Bruno Haible  <bruno@clisp.org>
65859
65860         * modules/ftello-tests: New file.
65861         * tests/test-ftello.c: New file.
65862
65863         * modules/ftello: New file.
65864         * m4/ftello.m4: New file.
65865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65866         HAVE_FTELLO.
65867         * lib/stdio_.h (ftello): New declaration.
65868         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65869         HAVE_FTELLO.
65870
65871 2007-04-25  Bruno Haible  <bruno@clisp.org>
65872
65873         * modules/fseeko-tests: New file.
65874         * tests/test-fseeko.c: New file.
65875
65876         * modules/fseeko: New file.
65877         * m4/fseeko.m4: New file.
65878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65879         HAVE_FSEEKO.
65880         * lib/stdio_.h (fseeko): New declaration.
65881         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65882         HAVE_FSEEKO.
65883
65884 2007-04-25  Bruno Haible  <bruno@clisp.org>
65885
65886         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65887
65888 2007-04-25  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65891         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65892         * tests/test-unistd.c: Likewise.
65893         * tests/test-fcntl.c: Likewise.
65894
65895 2007-04-23  Eric Blake  <ebb9@byu.net>
65896
65897         * lib/fflush.c: Fix missing include.
65898         Reported by Bruno Haible.
65899
65900 2007-04-23  Bruno Haible  <bruno@clisp.org>
65901
65902         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65903         Reported by Eric Blake.
65904
65905 2007-04-23  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65908
65909 2007-04-23  Bruno Haible  <bruno@clisp.org>
65910
65911         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65912
65913 2007-04-23  Bruno Haible  <bruno@clisp.org>
65914
65915         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65916         Needed on HP-UX 11.
65917
65918 2007-04-16  Eric Blake  <ebb9@byu.net>
65919
65920         Make fflush rely on fpurge.
65921         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65922         open coding all variants.
65923         * modules/fflush (Depends-on): Add fpurge and unistd.
65924         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65925         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65926
65927         Fix --with-tests compilation on cygwin.
65928         * modules/argmatch-tests (Makefile.am): List gnulib library first
65929         in LDADD.
65930         * modules/argp-tests (Makefile.am): Likewise.
65931         * modules/array-list-tests (Makefile.am): Likewise.
65932         * modules/array-oset-tests (Makefile.am): Likewise.
65933         * modules/avltree-list-tests (Makefile.am): Likewise.
65934         * modules/avltree-oset-tests (Makefile.am): Likewise.
65935         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65936         * modules/carray-list-tests (Makefile.am): Likewise.
65937         * modules/dirname-tests (Makefile.am): Likewise.
65938         * modules/frexp-tests (Makefile.am): Likewise.
65939         * modules/isnanl-tests (Makefile.am): Likewise.
65940         * modules/linked-list-tests (Makefile.am): Likewise.
65941         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65942         * modules/lock-tests (Makefile.am): Likewise.
65943         * modules/rbtree-list-tests (Makefile.am): Likewise.
65944         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65945         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65946         * modules/tls-tests (Makefile.am): Likewise.
65947         * modules/tsearch-tests (Makefile.am): Likewise.
65948         * modules/xvasprintf-tests (Makefile.am): Likewise.
65949
65950         Fix fpurge for cygwin.
65951         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65952         value.
65953         * modules/fpurge-tests (Depends-on): Clean up trash.
65954
65955 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65956
65957         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65958
65959         * m4/autobuild.m4: Re-indent.
65960
65961 2007-04-13  Bruno Haible  <bruno@clisp.org>
65962
65963         * modules/fpurge-tests: New file.
65964         * tests/test-fpurge.c: New file.
65965
65966         * modules/fpurge: New file.
65967         * lib/fpurge.h: New file.
65968         * lib/fpurge.c: New file.
65969         * m4/fpurge.m4: New file.
65970
65971 2007-04-13  Bruno Haible  <bruno@clisp.org>
65972
65973         * modules/fbufmode-tests: New file.
65974         * tests/test-fbufmode.c: New file.
65975
65976         * modules/fbufmode: New file.
65977         * lib/fbufmode.h: New file.
65978         * lib/fbufmode.c: New file.
65979         * m4/fbufmode.m4: New file.
65980
65981 2007-04-13  Bruno Haible  <bruno@clisp.org>
65982
65983         * modules/fwritable-tests: New file.
65984         * tests/test-fwritable.c: New file.
65985
65986         * modules/fwritable: New file.
65987         * lib/fwritable.h: New file.
65988         * lib/fwritable.c: New file.
65989         * m4/fwritable.m4: New file.
65990
65991 2007-04-13  Bruno Haible  <bruno@clisp.org>
65992
65993         * modules/freadable-tests: New file.
65994         * tests/test-freadable.c: New file.
65995
65996         * modules/freadable: New file.
65997         * lib/freadable.h: New file.
65998         * lib/freadable.c: New file.
65999         * m4/freadable.m4: New file.
66000
66001 2007-04-13  Bruno Haible  <bruno@clisp.org>
66002
66003         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66004         MOSTLYCLEANFILES.
66005
66006 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66007
66008         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66009         gzip bootstrap.conf to avoid dragging in i18n machinery.
66010         (gnulib_tool_option): Use it.
66011
66012 2007-04-13  Bruno Haible  <bruno@clisp.org>
66013
66014         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66015         %F directives.
66016         * tests/test-vasprintf-posix.c (test_function): Likewise.
66017         * tests/test-snprintf-posix.h (test_function): Likewise.
66018         * tests/test-sprintf-posix.h (test_function): Likewise.
66019         * tests/test-fprintf-posix.h (test_function): Likewise.
66020         * tests/test-printf-posix.h (test_function): Likewise.
66021         * tests/test-fprintf-posix.out: Likewise.
66022
66023 2007-04-13  Bruno Haible  <bruno@clisp.org>
66024
66025         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66026         * modules/tls-tests (configure.ac): Likewise.
66027         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66028
66029 2007-04-13  Bruno Haible  <bruno@clisp.org>
66030
66031         * lib/tls.c (glthread_tls_get): Fix return type.
66032         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66033
66034 2007-04-12  Eric Blake  <ebb9@byu.net>
66035
66036         * modules/gettime (Depends-on): Remove gettime.
66037         Reported by Dmitry V. Levin.
66038
66039 2007-04-12  Bruno Haible  <bruno@clisp.org>
66040
66041         * modules/fflush (Include): Mention <stdio.h>.
66042         * modules/strtoimax (Include): Mention <inttypes.h>.
66043         * modules/strtoumax (Include): Likewise.
66044
66045 2007-04-12  Eric Blake  <ebb9@byu.net>
66046
66047         * .cvsignore: New file.
66048         * .gitignore: Likewise.
66049
66050 2007-04-12  Bruno Haible  <bruno@clisp.org>
66051
66052         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66053         not before, since $(LDADD) often contains libgnu.a.
66054         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66055         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66056         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66057         Needed on Cygwin.
66058
66059 2007-04-12  Eric Blake  <ebb9@byu.net>
66060
66061         Work around glibc's failure to flush stdin on fclose.
66062         * lib/closein.c (close_stdin): Flush stdin before closing.
66063
66064         Work around glibc's failure to reset seekable stdin on exit.
66065         * modules/closein: New module.
66066         * lib/closein.c: New file.
66067         * lib/closein.h: Likewise.
66068         * m4/closein.m4: Likewise.
66069         * MODULES.html.sh (File stream based Input/Output): Document it.
66070
66071 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66072
66073         * gnulib-tool: Rename generated 'autobuild' script to
66074         'do-autobuild' in --create-megatestdir output.
66075
66076         * doc/gnulib.texi (Build robot for gnulib): Fix.
66077
66078 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66079
66080         * modules/sysexits (Depends-on): Add absolute-header.
66081
66082 2007-04-12  Eric Blake  <ebb9@byu.net>
66083
66084         No need to preserve errno on success.
66085         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66086         Reported by Bruno Haible.
66087
66088 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66089
66090         * MODULES.html.sh (Support for maintaining and releasing
66091         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66092
66093 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66094
66095         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66096
66097 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66098
66099         * modules/autobuild: New module.
66100
66101         * m4/autobuild.m4: New file.
66102
66103 2007-04-11  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66106         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66107         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66110         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66111         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66112         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66113         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66114         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66115         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66116         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66117         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66118         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66119         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66120         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66122         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66123         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66125         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66126         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66127         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66128         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66129         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66130         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66131         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66132         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66133         Reported by Eric Blake.
66134
66135 2007-04-11  Bruno Haible  <bruno@clisp.org>
66136
66137         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66138
66139 2007-04-10  Bruno Haible  <bruno@clisp.org>
66140
66141         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66142         for NaN and Infinity. Needed on FreeBSD 6.1.
66143         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66144         regarding results for "%010a" of Infinity and NaN.
66145         * tests/test-vasprintf-posix.c (test_function): Likewise.
66146         * tests/test-snprintf-posix.h (test_function): Likewise.
66147         * tests/test-sprintf-posix.h (test_function): Likewise.
66148         * tests/test-fprintf-posix.h (test_function): Likewise.
66149         * tests/test-printf-posix.h (test_function): Likewise.
66150         * tests/test-fprintf-posix.out: Likewise.
66151
66152 2007-04-10  Bruno Haible  <bruno@clisp.org>
66153
66154         * modules/locale-tests: New file.
66155         * tests/test-locale.c: New file.
66156
66157         * modules/locale: New file.
66158         * lib/locale_.h: New file.
66159         * m4/locale_h.m4: New file.
66160
66161 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66162             Bruno Haible  <bruno@clisp.org>
66163
66164         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66165         be determined, test for availability of the copysignf, copysign,
66166         copysignl functions.
66167         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66168         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66169         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66170
66171 2007-04-09  Eric Blake  <ebb9@byu.net>
66172
66173         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66174         * modules/stdio (Makefile.am): Support fflush.
66175         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66176         * modules/fflush: New file.
66177         * lib/fflush.c: Likewise.
66178         * m4/fflush.m4: Likewise.
66179         * modules/fflush-tests: New test.
66180         * tests/test-fflush.c: Likewise.
66181         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66182
66183 2007-04-06  Bruno Haible  <bruno@clisp.org>
66184
66185         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66186         (VASNPRINTF): Use signbit for faster determination whether to print a
66187         minus sign.
66188         * modules/vasnprintf (Files): Remove lib/float+.h.
66189         * modules/fprintf-posix (Depends-on): Add signbit.
66190         * modules/snprintf-posix (Depends-on): Likewise.
66191         * modules/sprintf-posix (Depends-on): Likewise.
66192         * modules/vasnprintf-posix (Depends-on): Likewise.
66193         * modules/vasprintf-posix (Depends-on): Likewise.
66194         * modules/vfprintf-posix (Depends-on): Likewise.
66195         * modules/vsnprintf-posix (Depends-on): Likewise.
66196         * modules/vsprintf-posix (Depends-on): Likewise.
66197
66198 2007-04-06  Bruno Haible  <bruno@clisp.org>
66199
66200         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66201         * tests/test-frexpl.c (main): Likewise.
66202         * tests/test-ldexpl.c (main): Likewise.
66203         * modules/frexp-tests (Depends-on): Add signbit.
66204         * modules/frexpl-tests (Depdends-on): Likewise.
66205         * modules/ldexpl-tests (Depdends-on): Likewise.
66206
66207 2007-04-06  Bruno Haible  <bruno@clisp.org>
66208
66209         * modules/signbit-tests: New file.
66210         * tests/test-signbit.c: New file.
66211
66212         * modules/signbit: New file.
66213         * lib/signbitf.c: New file.
66214         * lib/signbitd.c: New file.
66215         * lib/signbitl.c: New file.
66216         * m4/signbit.m4: New file.
66217         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66218         (signbit): New macro.
66219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66220         REPLACE_SIGNBIT.
66221         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66222         REPLACE_FREXPL into math.h.
66223
66224 2007-04-06  Bruno Haible  <bruno@clisp.org>
66225
66226         * modules/isnanf-nolibm-tests: New file.
66227         * tests/test-isnanf.c: New file.
66228
66229         * modules/isnanf-nolibm: New file.
66230         * lib/isnanf.h: New file.
66231         * lib/isnanf.c: New file.
66232         * lib/isnan.c: Consider the USE_FLOAT macro.
66233         * m4/isnanf.m4: New file.
66234
66235 2007-04-06  Bruno Haible  <bruno@clisp.org>
66236
66237         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66238         (Link): New section.
66239
66240         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66241
66242 2007-04-06  Bruno Haible  <bruno@clisp.org>
66243
66244         Assume the 'long double' type.
66245         * m4/longdouble.m4: Remove file.
66246         * config/srclist.txt: Don't mention longdouble.m4.
66247         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66248         * lib/float+.h: Likewise.
66249         * lib/frexp.c: Likewise.
66250         * lib/printf-args.h: Likewise.
66251         * lib/printf-args.c: Likewise.
66252         * lib/printf-frexp.c: Likewise.
66253         * lib/printf-parse.c: Likewise.
66254         * lib/vasnprintf.c: Likewise.
66255         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66256         * m4/intl.m4: Likewise.
66257         * m4/isnanl.m4: Likewise.
66258         * m4/printf.m4: Likewise.
66259         * m4/printf-frexpl.m4: Likewise.
66260         * m4/vasnprintf.m4: Likewise.
66261         * modules/allocsa (Files): Remove m4/longdouble.m4.
66262         * modules/gettext (Files): Likewise.
66263         * modules/relocatable-prog-wrapper (Files): Likewise.
66264         * modules/vasnprintf (Files): Likewise.
66265         * modules/isnanl (Files): Likewise.
66266         (Include): Simplify.
66267         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66268         (Include): Simplify.
66269         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66270         (Include): Simplify.
66271         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66272         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66273         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66274         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66275         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66276         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66277         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66278         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66279         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66280         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66281         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66282         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66283         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66284         * tests/test-isnanl.c: Likewise.
66285         * tests/test-snprintf-posix.h: Likewise.
66286         * tests/test-sprintf-posix.h: Likewise.
66287         * tests/test-vasnprintf-posix.c: Likewise.
66288         * tests/test-vasnprintf-posix2.c: Likewise.
66289         * tests/test-vasprintf-posix.c: Likewise.
66290
66291 2007-04-06  Bruno Haible  <bruno@clisp.org>
66292
66293         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66294         * lib/math_.h [__DECC]: Include the overridden include file through
66295         #include_next, outside the double-inclusion guard.
66296         * lib/stdio_.h [__DECC]: Likewise.
66297         * lib/stdlib_.h [__DECC]: Likewise.
66298         * lib/string_.h [__DECC]: Likewise.
66299         * lib/time_.h [__DECC]: Likewise.
66300         * lib/wchar_.h [__DECC]: Likewise.
66301         * lib/wctype_.h [__DECC]: Likewise.
66302         * lib/inttypes_.h [__DECC]: Likewise.
66303         Reported by Albert Chin <china@thewrittenword.com> in
66304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66305
66306 2007-04-04  Eric Blake  <ebb9@byu.net>
66307
66308         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66309         1.5.x.
66310
66311 2007-04-04  Bruno Haible  <bruno@clisp.org>
66312
66313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66314         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66315
66316 2007-04-04  Bruno Haible  <bruno@clisp.org>
66317
66318         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66319         results for "%010a" of Infinity and NaN.
66320         * tests/test-vasprintf-posix.c (test_function): Likewise.
66321         * tests/test-snprintf-posix.h (test_function): Likewise.
66322         * tests/test-sprintf-posix.h (test_function): Likewise.
66323         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66324         * tests/test-printf-posix.h (test_function): Likewise.
66325         * tests/test-fprintf-posix.out: Update.
66326         Needed for FreeBSD 6.1.
66327
66328 2007-04-04  Bruno Haible  <bruno@clisp.org>
66329
66330         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66331         directly used by the gnulib modules nor by gnulib-tool.
66332
66333 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66334
66335         * DEPENDENCIES: Give overall description of version dependency
66336         desirability.  Use more-typical names for apps.
66337         Add shell, coreutils, diffutils, grep, tar, gzip.
66338
66339 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66340
66341         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66342
66343 2007-04-04  Karl Berry  <karl@gnu.org>
66344
66345         * MODULES.html.sh (func_module): missing '.
66346
66347 2007-04-03  Bruno Haible  <bruno@clisp.org>
66348
66349         * modules/argmatch-tests (Makefile.am): New variable
66350         test_argmatch_LDADD.
66351         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66352         * modules/array-list-tests (Makefile.am): New variable
66353         test_array_list_LDADD.
66354         * modules/array-oset-tests (Makefile.am): New variable
66355         test_array_oset_LDADD.
66356         * modules/avltree-list-tests (Makefile.am): New variable
66357         test_avltree_list_LDADD.
66358         * modules/avltree-oset-tests (Makefile.am): New variable
66359         test_avltree_oset_LDADD.
66360         * modules/avltreehash-list-tests (Makefile.am): New variable
66361         test_avltreehash_list_LDADD.
66362         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66363         test_canonicalize_lgpl_LDADD.
66364         * modules/carray-list-tests (Makefile.am): New variable
66365         test_carray_list_LDADD.
66366         * modules/dirname-tests (Makefile.am): New variable
66367         test_dirname_LDADD.
66368         * modules/linked-list-tests (Makefile.am): New variable
66369         test_linked_list_LDADD.
66370         * modules/linkedhash-list-tests (Makefile.am): New variable
66371         test_linkedhash_list_LDADD.
66372         * modules/rbtree-list-tests (Makefile.am): New variable
66373         test_rbtree_list_LDADD.
66374         * modules/rbtree-oset-tests (Makefile.am): New variable
66375         test_rbtree_oset_LDADD.
66376         * modules/rbtreehash-list-tests (Makefile.am): New variable
66377         test_rbtreehash_list_LDADD.
66378         * modules/xvasprintf-tests (Makefile.am): New variable
66379         test_xvasprintf_LDADD.
66380         Reported by Eric Blake.
66381
66382 2007-04-03  Eric Blake  <ebb9@byu.net>
66383
66384         * DEPENDENCIES: Weaken m4 requirements.
66385
66386 2007-04-03  Bruno Haible  <bruno@clisp.org>
66387
66388         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66389         * modules/isnanl-tests (configure.ac): Likewise.
66390
66391 2007-04-03  Ben Pfaff  <blp@gnu.org>
66392
66393         * modules/iconv_open: Add $(srcdir)/ to source directory
66394         references in Makefile fragments that call gperf, to fix VPATH
66395         builds.
66396
66397 2007-04-03  Bruno Haible  <bruno@clisp.org>
66398
66399         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66400         * lib/ldexpl.c: Undo last change.
66401
66402 2007-04-03  Bruno Haible  <bruno@clisp.org>
66403
66404         * modules/printf-frexpl (Depends-on): Undo last change.
66405         (Files): Add m4/ldexpl.m4.
66406
66407 2007-04-03  Bruno Haible  <bruno@clisp.org>
66408
66409         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66410         * modules/isnanl (Link): New section.
66411
66412         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66413         * modules/frexp (Link): New section.
66414
66415         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66416         * modules/frexpl (Link): New section.
66417
66418         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66419         * modules/ldexpl (Link): New section.
66420
66421 2007-04-03  Bruno Haible  <bruno@clisp.org>
66422
66423         * modules/TEMPLATE-EXTENDED: New file.
66424         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66425
66426 2007-04-03  Bruno Haible  <bruno@clisp.org>
66427
66428         * DEPENDENCIES: New file.
66429         Suggested by Simon Josefsson.
66430
66431 2007-04-03  Bruno Haible  <bruno@clisp.org>
66432
66433         * doc/gnulib.texi: Escape @.
66434
66435 2007-04-03  James Youngman  <jay@gnu.org>
66436         and Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66439         birthtime on all systems that have birthtime, not just those which
66440         use st_birthtimensec rather than st_birthtim.  Putting zero in
66441         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66442         that the birth time is not available for files on an NFS mount.
66443
66444 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66445
66446         * modules/memxor: Move back from crypto/, suggested by Bruno.
66447         * modules/crypto/hmac-sha1: Fix memxor dependency.
66448
66449         * modules/crypto/gc: Moved from ../.
66450
66451 2007-04-02  Eric Blake  <ebb9@byu.net>
66452
66453         * lib/ldexpl.c (includes): Avoid libm.
66454
66455         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66456
66457 2007-04-02  Bruno Haible  <bruno@clisp.org>
66458
66459         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66460         on IRIX.
66461
66462 2007-04-02  Bruno Haible  <bruno@clisp.org>
66463
66464         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66465         x86 or x86_64 platforms running MacOS X.
66466         Reported by Ryan Schmidt <@ryandesign.com>.
66467
66468 2007-04-02  Bruno Haible  <bruno@clisp.org>
66469
66470         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66471         i386.
66472
66473 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66474
66475         * modules/crypto/arcfour: Moved from ../.
66476         * modules/crypto/arcfour-tests: Moved from ../.
66477         * modules/crypto/arctwo: Moved from ../.
66478         * modules/crypto/arctwo-tests: Moved from ../.
66479         * modules/crypto/des: Moved from ../.
66480         * modules/crypto/des-tests: Moved from ../.
66481         * modules/crypto/gc-arcfour: Moved from ../.
66482         * modules/crypto/gc-arcfour-tests: Moved from ../.
66483         * modules/crypto/gc-arctwo: Moved from ../.
66484         * modules/crypto/gc-arctwo-tests: Moved from ../.
66485         * modules/crypto/gc-des: Moved from ../.
66486         * modules/crypto/gc-des-tests: Moved from ../.
66487         * modules/crypto/gc-hmac-md5: Moved from ../.
66488         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66489         * modules/crypto/gc-hmac-sha1: Moved from ../.
66490         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66491         * modules/crypto/gc-md2: Moved from ../.
66492         * modules/crypto/gc-md2-tests: Moved from ../.
66493         * modules/crypto/gc-md4: Moved from ../.
66494         * modules/crypto/gc-md4-tests: Moved from ../.
66495         * modules/crypto/gc-md5: Moved from ../.
66496         * modules/crypto/gc-md5-tests: Moved from ../.
66497         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66498         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66499         * modules/crypto/gc-random: Moved from ../.
66500         * modules/crypto/gc-rijndael: Moved from ../.
66501         * modules/crypto/gc-rijndael-tests: Moved from ../.
66502         * modules/crypto/gc-sha1: Moved from ../.
66503         * modules/crypto/gc-sha1-tests: Moved from ../.
66504         * modules/crypto/gc-tests: Moved from ../.
66505         * modules/crypto/hmac-md5: Moved from ../.
66506         * modules/crypto/hmac-md5-tests: Moved from ../.
66507         * modules/crypto/hmac-sha1: Moved from ../.
66508         * modules/crypto/hmac-sha1-tests: Moved from ../.
66509         * modules/crypto/md2: Moved from ../.
66510         * modules/crypto/md2-tests: Moved from ../.
66511         * modules/crypto/md4: Moved from ../.
66512         * modules/crypto/md4-tests: Moved from ../.
66513         * modules/crypto/md5: Moved from ../.
66514         * modules/crypto/md5-tests: Moved from ../.
66515         * modules/crypto/memxor: Moved from ../.
66516         * modules/crypto/rijndael: Moved from ../.
66517         * modules/crypto/rijndael-tests: Moved from ../.
66518         * modules/crypto/sha1: Moved from ../.
66519
66520 2007-03-30  James Youngman  <jay@gnu.org>
66521
66522         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66523         rename() to change the ctime of a file (because ctime is unaffected
66524         by rename on jfs2 on AIX 5.1).
66525         (main): Start by doing cleanup, in case a previous run failed leaving
66526         test files behind.
66527
66528 2007-03-31  Bruno Haible  <bruno@clisp.org>
66529
66530         Support old proprietary implementations of iconv.
66531         * modules/iconv_open: New file.
66532         * lib/iconv_.h: New file.
66533         * m4/iconv_h.m4: New file.
66534         * lib/iconv_open.c: New file.
66535         * lib/iconv_open-aix.gperf: New file.
66536         * lib/iconv_open-hpux.gperf: New file.
66537         * lib/iconv_open-irix.gperf: New file.
66538         * lib/iconv_open-osf.gperf: New file.
66539         * m4/iconv_open.m4: New file.
66540         * modules/linebreak (Depends-on): Add iconv_open.
66541         * modules/striconv (Depends-on): Likewise.
66542         * modules/striconveh (Depends-on): Likewise.
66543         * modules/unicodeio (Depends-on): Likewise.
66544         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66545         (iconv_t)(-1).
66546         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66547         conversion if cd is (iconv_t)(-1).
66548         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66549         is not possible.
66550
66551 2007-03-31  Bruno Haible  <bruno@clisp.org>
66552
66553         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66554         work on Solaris either. Protect also second use of "autodetect_jp".
66555
66556 2007-03-31  Bruno Haible  <bruno@clisp.org>
66557
66558         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66559         the function is not present.
66560
66561 2007-03-31  Bruno Haible  <bruno@clisp.org>
66562
66563         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66564         the function is not present.
66565
66566 2007-03-31  Bruno Haible  <bruno@clisp.org>
66567
66568         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66569         a bug in HP-UX iconv_open().
66570
66571 2007-03-31  Bruno Haible  <bruno@clisp.org>
66572
66573         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66574         (Mathematics <math.h>): New section, add fpieee.
66575         (Input/output <stdio.h>): Add fseterr.
66576         (Mathematics <math.h>): New section, add printf-frexp.
66577         (Container data structures): Add sublist.
66578         (Core language properties): Add fpucw, inline.
66579         (Functions for greatest-width integer types <inttypes.h>): Add
66580         imaxabs, imaxdiv, inttypes.
66581         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66582         isnanl-nolibm, ldexp.
66583         (Mathematics <math.h>): New section, add printf-frexpl.
66584         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66585         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66586         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66587         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66588         (Unicode string functions): Add unistr/u*-mbtoucr.
66589         (Java): Add javacomp-script, javaexec-script.
66590         (C#): Add csharpcomp-script, csharpexec-script.
66591         (Support for building libraries and executables): Add havelib,
66592         relocatable-*.
66593         (Support for maintaining and releasing projects): Renamed from
66594         'Support for maintaining and release projects'. Add announce-gen.
66595
66596 2007-03-31  Bruno Haible  <bruno@clisp.org>
66597
66598         * README: Talk primarily about git.
66599         (git and CVS): Renamed from CVS.
66600         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66601         gnulib is available through git.
66602         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66603
66604 2007-03-30  Bruno Haible  <bruno@clisp.org>
66605
66606         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66607         * lib/poll_.h: Likewise.
66608         * lib/stat_.h: Likewise.
66609         * lib/sys_time_.h: Likewise.
66610         * lib/sysexit_.h: Likewise.
66611         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66612         * lib/stdbool_.h: Likewise.
66613         * lib/byteswap_.h: Add double-inclusion guard.
66614
66615 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66616
66617         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66618
66619 2007-03-30  Karl Berry  <karl@gnu.org>
66620
66621         * config/srclist-update: double space after USA in the license
66622         substitution, since that's how it's usually (?) written.
66623
66624 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66625
66626         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66627         reported by Bruno Haible.
66628
66629 2007-03-29  Bruno Haible  <bruno@clisp.org>
66630
66631         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66632         a bug in AIX iconv().
66633
66634 2007-03-29  Bruno Haible  <bruno@clisp.org>
66635
66636         * modules/ldexpl-tests: New file.
66637         * tests/test-ldexpl.c: New file.
66638
66639 2007-03-29  Bruno Haible  <bruno@clisp.org>
66640
66641         * lib/ldexpl.c: Include fpucw.h.
66642         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66643         multiplication.
66644         * modules/ldexpl (Depends-on): Add fpucw.
66645
66646 2007-03-29  Bruno Haible  <bruno@clisp.org>
66647
66648         * modules/ldexpl: New file.
66649         * m4/ldexpl.m4: New file.
66650         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66651         set.
66652         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66653         REPLACE_LDEXPL.
66654         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66655         REPLACE_LDEXPL.
66656         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66657         gl_FUNC_LDEXPL_WORKS.
66658         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66659         * modules/mathl (Files): Remove lib/ldexpl.c.
66660         (Depends-on): Add ldexpl.
66661
66662 2007-03-29  Bruno Haible  <bruno@clisp.org>
66663
66664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66665
66666 2007-03-29  Bruno Haible  <bruno@clisp.org>
66667
66668         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66669         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66670         and possibly also HP-UX.
66671         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66672         work on AIX, IRIX, HP-UX, OSF/1.
66673         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66674         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66675         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66676         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66677         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66678         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66679
66680 2007-03-29  Bruno Haible  <bruno@clisp.org>
66681
66682         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66683
66684 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66685
66686         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66687         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66688
66689 2007-03-29  Eric Blake  <ebb9@byu.net>
66690
66691         * lib/acl-internal.h: Remove redundant include.
66692         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66693         Cygwin when a file is locked.
66694
66695 2007-03-29  Bruno Haible  <bruno@clisp.org>
66696
66697         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66698         file.
66699         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66700
66701 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66702
66703         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66704         try to remove a parent directory if the child couldn't be removed
66705         (except for the first rmdir, which could fail because the child
66706         doesn't exist).  Problem reported by Jeff Blaine in
66707         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66708
66709 2007-03-28  Bruno Haible  <bruno@clisp.org>
66710
66711         * lib/striconveh.c (utf8conv_carefully): New function.
66712         (mem_cd_iconveh_internal): Invoke it.
66713
66714 2007-03-28  Bruno Haible  <bruno@clisp.org>
66715
66716         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66717         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66718         input.
66719         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66720         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66721         unistr/u8-uctomb.
66722
66723 2007-03-28  Bruno Haible  <bruno@clisp.org>
66724
66725         * modules/unistr/u8-mbtoucr: New file.
66726         * lib/unistr/u8-mbtoucr.c: New file.
66727         * modules/unistr/u16-mbtoucr: New file.
66728         * lib/unistr/u16-mbtoucr.c: New file.
66729         * modules/unistr/u16-mbtoucr: New file.
66730         * lib/unistr/u16-mbtoucr.c: New file.
66731         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66732
66733 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66734             Bruno Haible  <bruno@clisp.org>
66735
66736         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66737         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66738         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66739
66740         * m4/stdio_h.m4: Add stubs for vasprintf too.
66741
66742         * modules/stdio: Support vasprintf in sed command.
66743
66744         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66745         vasprintf.h.  Add stdio module indicator.
66746
66747         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66748         vasprintf.h.
66749
66750         * lib/vasprintf.h: File removed.
66751
66752         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66753         * lib/vasprintf.c: Ditto.
66754         * lib/xvasprintf.c: Ditto.
66755         * tests/test-vasprintf-posix.c: Ditto.
66756         * tests/test-vasprintf.c: Ditto.
66757
66758 2007-03-27  Bruno Haible  <bruno@clisp.org>
66759
66760         Make vasnprintf multithread-safe.
66761         * lib/vasnprintf.c (decimal_point_char): New function.
66762         (VASNPRINTF): Use it.
66763         Suggested by Simon Josefsson.
66764
66765 2007-03-27  Eric Blake  <ebb9@byu.net>
66766
66767         Support sub-second birthtime on cygwin.
66768         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66769         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66770         (get_stat_birthtime): Also work with st_birthtim.
66771
66772 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66775         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66776         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66777         (get_stat_birthtime_ns): Simplify compile-time tests.
66778         (get_stat_birthtime): Change the API to look like
66779         get_stat_mtime etc., except return a negative tv_nsec on error.
66780         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66781         Don't check for "spare" fields.
66782         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66783         or for struct stat.st_birthtime, as these tests aren't used.
66784         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66785
66786 2007-03-27  Bruno Haible  <bruno@clisp.org>
66787
66788         * lib/stat-time.h: Include <sys/stat.h>.
66789
66790 2007-03-27  James Youngman  <jay@gnu.org>
66791
66792         * lib/stat-time.h (get_stat_birthtime): New function for
66793           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66794         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66795           and its variants.
66796         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66797         * modules/stat-time-test: New file.
66798         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66799
66800 2007-03-26  Bruno Haible  <bruno@clisp.org>
66801
66802         Better support of signalling NaNs.
66803         * lib/atanl.c: Include isnanl.h.
66804         (atanl): Perform test for NaN at the beginning of the function and
66805         through a call to isnanl.
66806         * lib/cosl.c: Include isnanl.h.
66807         (cosl): Perform test for NaN at the beginning of the function and
66808         through a call to isnanl.
66809         * lib/ldexpl.c: Include isnanl.h.
66810         (ldexpl): Perform test for NaN through a call to isnanl.
66811         * lib/logl.c: Include isnanl.h.
66812         (logl): Perform test for NaN at the beginning of the function and
66813         through a call to isnanl.
66814         * lib/sinl.c: Include isnanl.h.
66815         (sinl): Perform test for NaN at the beginning of the function and
66816         through a call to isnanl.
66817         * lib/sqrtl.c: Include isnanl.h.
66818         (sqrtl): Perform test for NaN at the beginning of the function and
66819         through a call to isnanl.
66820         * lib/tanl.c: Include isnanl.h.
66821         (tanl): Perform test for NaN at the beginning of the function and
66822         through a call to isnanl.
66823         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66824         * modules/mathl (Depends-on): Add isnanl.
66825
66826 2007-03-26  Eric Blake  <ebb9@byu.net>
66827
66828         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66829         regression in logic sense of previous patch.
66830
66831 2007-03-26  Bruno Haible  <bruno@clisp.org>
66832
66833         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66834         unportable shell command "if ! ...".
66835         Reported by Ralf Wildenhues.
66836
66837 2007-03-25  Bruno Haible  <bruno@clisp.org>
66838
66839         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66840         <sysexits.h> file, and only add EX_CONFIG.
66841         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66842         absolute file name and whether it is sufficient. Substitute also
66843         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66844         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66845         ABSOLUTE_SYSEXITS_H into sysexits.h.
66846
66847 2007-03-25  Bruno Haible  <bruno@clisp.org>
66848
66849         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66850         hints is NULL.
66851
66852 2007-03-25  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66855         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66856
66857 2007-03-25  Bruno Haible  <bruno@clisp.org>
66858
66859         * lib/vasnprintf.c: Include langinfo.h.
66860         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66861         multithread-safe.
66862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66864         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66865         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66871         Reported by Simon Josefsson.
66872
66873 2007-03-25  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66876         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66877         * modules/vasnprintf (Depends-on): Add stdint.
66878
66879 2007-03-25  Bruno Haible  <bruno@clisp.org>
66880
66881         * modules/fpieee: New file.
66882         * m4/fpieee.m4: New file.
66883         * modules/isnan-nolibm (Depends-on): Add fpieee.
66884         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66885         * modules/isnanl (Depends-on): Add fpieee.
66886
66887 2007-03-25  Bruno Haible  <bruno@clisp.org>
66888
66889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66890
66891 2007-03-25  Bruno Haible  <bruno@clisp.org>
66892
66893         Avoid test failures on IRIX 6.5.
66894         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66895         (main): Use it.
66896         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66897         macros.
66898         (main): Use them.
66899
66900 2007-03-25  Bruno Haible  <bruno@clisp.org>
66901
66902         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66903         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66904         exists but doesn't work.
66905         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66906         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66908         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66909         math.h.
66910
66911 2007-03-25  Bruno Haible  <bruno@clisp.org>
66912
66913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66914         returns inf. Needed on IRIX 6.5.
66915
66916 2007-03-25  Bruno Haible  <bruno@clisp.org>
66917
66918         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66919         (main): Use isnanl instead of x != x idiom.
66920         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66921
66922         * tests/test-frexp.c: Include isnan.h.
66923         (main): Use isnan instead of x != x idiom.
66924         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66925
66926 2007-03-25  Bruno Haible  <bruno@clisp.org>
66927
66928         * tests/test-frexp.c (NaN): New function/macro.
66929         (main): Use it instead of 0.0 / 0.0.
66930         * tests/test-isnan.c (NaN): New function/macro.
66931         (main): Use it instead of 0.0 / 0.0.
66932         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66933         (test_function): Use it instead of 0.0 / 0.0.
66934         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66935         (test_function): Use it instead of 0.0 / 0.0.
66936         * tests/test-snprintf-posix.h (NaN): New function/macro.
66937         (test_function): Use it instead of 0.0 / 0.0.
66938         * tests/test-sprintf-posix.h (NaN): New function/macro.
66939         (test_function): Use it instead of 0.0 / 0.0.
66940         * tests/test-fprintf-posix.h (NaN): New function/macro.
66941         (test_function): Use it instead of 0.0 / 0.0.
66942         * tests/test-printf-posix.h (NaN): New function/macro.
66943         (test_function): Use it instead of 0.0 / 0.0.
66944
66945         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66946
66947 2007-03-25  Bruno Haible  <bruno@clisp.org>
66948
66949         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66950
66951 2007-03-25  Bruno Haible  <bruno@clisp.org>
66952
66953         * lib/regexec.c (merge_state_with_log): Make static.
66954
66955 2007-03-25  Bruno Haible  <bruno@clisp.org>
66956
66957         * lib/trigl.c (kernel_rem_pio2): Make static.
66958
66959 2007-03-25  Bruno Haible  <bruno@clisp.org>
66960
66961         * lib/sincosl.c (sincosl_table): Make static.
66962
66963 2007-03-25  Bruno Haible  <bruno@clisp.org>
66964
66965         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66966         if the compiler does not support C99.
66967
66968 2007-03-25  Bruno Haible  <bruno@clisp.org>
66969
66970         * modules/time (Makefile.am): Ensure all rule action lines start with a
66971         tab.
66972
66973 2007-03-24  Bruno Haible  <bruno@clisp.org>
66974
66975         * modules/tsearch-tests: New file.
66976         * tests/test-tsearch.sh: New file.
66977         * tests/test-tsearch.c: New file, mostly copied from glibc.
66978
66979         * modules/search-tests: New file.
66980         * tests/test-search.c: New file.
66981
66982         * modules/search: New file.
66983         * lib/search_.h: New file, incorporating lib/tsearch.h.
66984         * m4/search_h.m4: New file.
66985         * lib/tsearch.h: Remove file.
66986         * lib/tsearch.c: Include search.h instead of tsearch.h.
66987         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66988         HAVE_TSEARCH.
66989         * modules/tsearch (Files): Remove lib/tsearch.h.
66990         (Depends-on): Add search.
66991         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66992         (Include): Change tsearch.h into search.h.
66993
66994 2007-03-24  Bruno Haible  <bruno@clisp.org>
66995
66996         * modules/fpucw: New file.
66997         * lib/fpucw.h: New file.
66998         * lib/frexp.c: Include fpucw.h.
66999         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67000         (FUNC): Use them.
67001         * lib/printf-frexp.c: Include fpucw.h.
67002         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67003         (FUNC): Use them.
67004         * lib/vasnprintf.c: Include fpucw.h.
67005         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67006         'long double' calculations.
67007         * tests/test-frexpl.c: Include fpucw.h.
67008         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67009         * tests/test-printf-frexpl.c: Include fpucw.h.
67010         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67011         * modules/frexpl (Depends-on): Add fpucw.
67012         * modules/printf-frexpl (Depends-on): Likewise.
67013         * modules/fprintf-posix (Depends-on): Likewise.
67014         * modules/snprintf-posix (Depends-on): Likewise.
67015         * modules/sprintf-posix (Depends-on): Likewise.
67016         * modules/vasnprintf-posix (Depends-on): Likewise.
67017         * modules/vasprintf-posix (Depends-on): Likewise.
67018         * modules/vfprintf-posix (Depends-on): Likewise.
67019         * modules/vsnprintf-posix (Depends-on): Likewise.
67020         * modules/vsprintf-posix (Depends-on): Likewise.
67021         * modules/frexpl-tests (Depends-on): Likewise.
67022         * modules/printf-frexpl-tests (Depends-on): Likewise.
67023
67024 2007-03-24  Bruno Haible  <bruno@clisp.org>
67025
67026         * lib/float+.h: New file.
67027         * lib/isnan.c: Include float+.h.
67028         (SIZE): New macro.
67029         (FUNC): Compare only SIZE bytes of the value.
67030         * lib/vasnprintf.c: Include float+.h.
67031         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67032         SIZEOF_LDBL or SIZEOF_DBL bytes.
67033         * modules/isnan-nolibm (Files): Add lib/float+.h.
67034         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67035         * modules/isnanl (Files): Add lib/float+.h.
67036         * modules/vasnprintf (Files): Add lib/float+.h.
67037
67038 2007-03-24  Bruno Haible  <bruno@clisp.org>
67039
67040         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67041         include isnanl-nolibm.h.
67042
67043 2007-03-24  Bruno Haible  <bruno@clisp.org>
67044
67045         * tests/test-read-file.c (main): Don't produce spurious output for
67046         expected situations. Make the test fail if it encountered unexpected
67047         results.
67048
67049 2007-03-24  Bruno Haible  <bruno@clisp.org>
67050
67051         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67052         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67053
67054 2007-03-24  Bruno Haible  <bruno@clisp.org>
67055
67056         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67057
67058 2007-03-24  Bruno Haible  <bruno@clisp.org>
67059
67060         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67061         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67062
67063         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67064         * modules/utf8-ucs4: Turn into a symbolic link to module
67065         unistr/u8-mbtouc.
67066
67067         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67068         utf8-ucs4-unsafe.
67069         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67070         unistr/u8-mbtouc-unsafe.
67071
67072         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67073         * modules/utf16-ucs4: Turn into a symbolic link to module
67074         unistr/u16-mbtouc.
67075
67076         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67077         utf16-ucs4-unsafe.
67078         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67079         unistr/u16-mbtouc-unsafe.
67080
67081         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67082         * modules/ucs4-utf8: Turn into a symbolic link to module
67083         unistr/u8-ubtomb.
67084
67085         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67086         * modules/ucs4-utf16: Turn into a symbolic link to module
67087         unistr/u16-ubtomb.
67088
67089 2007-03-24  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67092         Enable the function only if HAVE_INLINE.
67093         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67094         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67095         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67096         Enable the function only if HAVE_INLINE.
67097         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67098         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67099         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67100         Enable the function only if HAVE_INLINE.
67101         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67102         Enable the function only if HAVE_INLINE.
67103         * modules/utf8-ucs4: Update.
67104         * modules/utf8-ucs4-unsafe: Update.
67105         * modules/utf16-ucs4: Update.
67106         * modules/utf16-ucs4-unsafe: Update.
67107         * modules/ucs4-utf8: Update.
67108         * modules/ucs4-utf16: Update.
67109
67110 2007-03-24  Bruno Haible  <bruno@clisp.org>
67111
67112         * lib/utf8-ucs4.h: Remove file.
67113         * lib/utf8-ucs4-unsafe.h: Remove file.
67114         * lib/utf16-ucs4.h: Remove file.
67115         * lib/utf16-ucs4-unsafe.h: Remove file.
67116         * lib/ucs4-utf8.h: Remove file.
67117         * lib/ucs4-utf16.h: Remove file.
67118         * lib/unistr.h: Include their previous contents.
67119         * m4/utf-ucs4.m4: Remove file.
67120         * m4/ucs4-utf.m4: Remove file.
67121         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67122         (Depends-on): Add unistr/base.
67123         (configure.ac): Remove gl_UTF_UCS4.
67124         (Makefile.am): Update.
67125         (Include): Change to unistr.h.
67126         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67127         (Depends-on): Add unistr/base.
67128         (configure.ac): Remove gl_UTF_UCS4.
67129         (Makefile.am): Update.
67130         (Include): Change to unistr.h.
67131         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67132         (Depends-on): Add unistr/base.
67133         (configure.ac): Remove gl_UTF_UCS4.
67134         (Makefile.am): Update.
67135         (Include): Change to unistr.h.
67136         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67137         (Depends-on): Add unistr/base.
67138         (configure.ac): Remove gl_UTF_UCS4.
67139         (Makefile.am): Update.
67140         (Include): Change to unistr.h.
67141         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67142         (Depends-on): Add unistr/base.
67143         (configure.ac): Remove gl_UCS4_UTF.
67144         (Makefile.am): Update.
67145         (Include): Change to unistr.h.
67146         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67147         (Depends-on): Add unistr/base.
67148         (configure.ac): Remove gl_UCS4_UTF.
67149         (Makefile.am): Update.
67150         (Include): Change to unistr.h.
67151         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67152         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67153         utf8-ucs4-unsafe.h.
67154         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67155         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67156         utf16-ucs4-unsafe.h.
67157         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67158         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67159         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67160         * lib/unistr/u8-strchr.c: Likewise.
67161         * lib/unistr/u8-strrchr.c: Likewise.
67162         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67163         * lib/unistr/u16-strchr.c: Likewise.
67164         * lib/unistr/u16-strrchr.c: Likewise.
67165         * lib/striconveh.c: Update.
67166         * lib/linebreak.c: Update.
67167
67168 2007-03-24  Bruno Haible  <bruno@clisp.org>
67169
67170         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67171         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67172
67173 2007-03-22  Bruno Haible  <bruno@clisp.org>
67174
67175         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67176
67177 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67178
67179         * MODULES.html.sh (File system functions): New module write-any-file.
67180         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67181         * m4/write-any-file.m4: New files.
67182
67183 2007-03-23  Eric Blake  <ebb9@byu.net>
67184
67185         * gnulib-tool: Rearrange space-tab sequences, since some editors
67186         like to eat them.
67187
67188 2007-03-23  Eric Blake  <ebb9@byu.net>
67189
67190         * lib/version-etc.c (version_etc_va): Update license wording to
67191         be more concise.  Recommended by Richard Stallman.
67192
67193 2007-03-22  Bruno Haible  <bruno@clisp.org>
67194
67195         * lib/poll.c (MSG_PEEK): New fallback definition.
67196
67197 2007-03-22  Bruno Haible  <bruno@clisp.org>
67198
67199         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67200         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67201         (main): Update.
67202         Fixes a compilation error on BeOS.
67203
67204 2007-03-22  Bruno Haible  <bruno@clisp.org>
67205
67206         * modules/frexpl-tests: New file.
67207         * tests/test-frexpl.c: New file.
67208
67209         * modules/frexpl: New file.
67210         * m4/frexpl.m4: New file.
67211         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67212         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67214         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67215         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67216         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67217
67218 2007-03-22  Bruno Haible  <bruno@clisp.org>
67219
67220         * lib/frexpl.c: Share code with lib/frexp.c.
67221         * modules/mathl (Files): Add lib/frexp.c.
67222         (Depends-on): Add isnanl-nolibm.
67223
67224 2007-03-22  Bruno Haible  <bruno@clisp.org>
67225
67226         * modules/printf-frexp (Files): Add m4/frexp.m4.
67227         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67228         only if the found frexp function actually works.
67229
67230 2007-03-22  Bruno Haible  <bruno@clisp.org>
67231
67232         * lib/frexp.c: Remove older implementation that uses divisions.
67233
67234 2007-03-21  Bruno Haible  <bruno@clisp.org>
67235
67236         * modules/frexp-tests: New file.
67237         * tests/test-frexp.c: New file.
67238
67239         * modules/frexp: New file.
67240         * lib/frexp.c: New file.
67241         * m4/frexp.m4: New file.
67242         * lib/math_.h (frexp): New declaration.
67243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67244         REPLACE_FREXP.
67245         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67246
67247 2007-03-21  Bruno Haible  <bruno@clisp.org>
67248
67249         * modules/isnanl-tests: New file.
67250         * tests/test-isnanl.c: New file.
67251
67252         * modules/isnanl: New file.
67253         * lib/isnanl.h: New file.
67254         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67255         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67256         gl_FUNC_ISNANL_WORKS.
67257         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67258         New macros.
67259
67260 2007-03-21  Bruno Haible  <bruno@clisp.org>
67261
67262         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67263         lib/isnanl.h.
67264         (Include): Update.
67265         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67266         * lib/vasnprintf.c: Update.
67267         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67268         tests/test-isnanl.h, remove tests/test-isnanl.c.
67269         (Makefile.am): Update.
67270         * tests/test-isnanl-nolibm.c: New file.
67271         * tests/test-isnanl.h: New file.
67272         * tests/test-isnanl.c: Remove file.
67273
67274 2007-03-21  Jim Meyering  <jim@meyering.net>
67275
67276         When trying to open ".", treat ESTALE like EACCES.
67277         * lib/savewd.c (savewd_save): Resort to forking not just upon
67278         failure with EACCES, but also when errno is ESTALE.
67279
67280 2007-03-20  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67283         Needed on AIX 5.1. Reported by Matthew Woehlke.
67284
67285 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67286
67287         Suggestions by Bruno Haible:
67288         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67289         our own.
67290         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67291         * modules/acl (Depends-on): Add gettext.
67292
67293 2007-03-19  Bruno Haible  <bruno@clisp.org>
67294
67295         * modules/iconvme: Remove file.
67296         * lib/iconvme.h: Remove file.
67297         * lib/iconvme.c: Remove file.
67298         * m4/iconvme.m4: Remove file.
67299
67300 2007-03-19  Bruno Haible  <bruno@clisp.org>
67301
67302         * doc/relocatable-maint.texi: Break long shell script line.
67303         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67304
67305 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67308         handle file_has_acl.
67309         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67310         * lib/acl.c: Move header inclusions and related macro defns into
67311         lib/acl-internal.h.
67312         (S_ISLNK): Remove defn, since that's now done for us.
67313         (file_has_acl): Move to lib/file-has-acl.c.
67314         Call acl_trivial if available.  This is the crucial part of the fix.
67315         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67316         shared within the library.  Rewrite a bit, partly to make it compatible
67317         with the GNU coding style.
67318         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67319         Remove unnecessary double-quotes.
67320         Don't test for acl_to_text; the build will catch that.
67321         Replace acl_entries if it doesn't exist and it is needed.
67322         Check for -lsec and acl_trivial (as used on Solaris 10).
67323         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67324         lib/file-has-acl.c.
67325         (Depends-on): Add sys_stat, for S_ISLNK.
67326
67327 2007-03-19  Ben Pfaff  <blp@gnu.org>
67328
67329         * doc/gnulib.texi: Fix typos.
67330         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67331
67332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67335         If size is zero here, buf must be zero.
67336
67337 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67338
67339         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67340         <bruno@clisp.org>.
67341
67342 2007-03-18  Bruno Haible  <bruno@clisp.org>
67343
67344         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67345         Suggested by Eric Blake.
67346
67347 2007-03-18  Ben Pfaff  <blp@gnu.org>
67348
67349         * doc/relocatable.texi: Recommend using as prefix a directory
67350         that does not exist and will never be created.  Based on
67351         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67352         and others.
67353
67354 2007-03-17  Bruno Haible  <bruno@clisp.org>
67355
67356         * lib/fchownat.c: Include lchown.h.
67357
67358 2007-03-17  Bruno Haible  <bruno@clisp.org>
67359
67360         Fix endless loop when the given allocated size was > INT_MAX.
67361         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67362         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67363         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67364         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67365         * lib/sprintf.c (sprintf): Likewise.
67366
67367 2007-03-17  Bruno Haible  <bruno@clisp.org>
67368
67369         * tests/test-argp-2.sh (func_compare): Output a context diff.
67370
67371 2007-03-17  Bruno Haible  <bruno@clisp.org>
67372
67373         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67374         locale's decimal-point character.
67375
67376 2007-03-17  Bruno Haible  <bruno@clisp.org>
67377
67378         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67379         before comparing it. Needed because on some platforms (e.g. x86) a
67380         'long double' occupies less bytes than sizeof (long double).
67381
67382 2007-03-17  Bruno Haible  <bruno@clisp.org>
67383
67384         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67385         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67386         * tests/test-getaddrinfo.c (simple): Likewise.
67387         * tests/test-read-file.c (main): Likewise.
67388
67389 2007-03-17  Bruno Haible  <bruno@clisp.org>
67390
67391         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67392
67393 2007-03-17  Bruno Haible  <bruno@clisp.org>
67394
67395         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67396         unused variable.
67397
67398 2007-03-17  Bruno Haible  <bruno@clisp.org>
67399
67400         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67401         * tests/test-c-strncasecmp.c: Likewise.
67402
67403 2007-03-17  Bruno Haible  <bruno@clisp.org>
67404
67405         * modules/stdlib (Depends-on): Add unistd.
67406         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67407         Needed for MacOS X 10.3.
67408
67409 2007-03-17  Bruno Haible  <bruno@clisp.org>
67410
67411         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67412
67413 2007-03-17  Bruno Haible  <bruno@clisp.org>
67414
67415         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67416
67417 2007-03-17  Bruno Haible  <bruno@clisp.org>
67418
67419         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67420         to reflect files copied from gnulib (with or without modifications).
67421         Suggested by Jim Meyering.
67422
67423 2007-03-17  Eric Blake  <ebb9@byu.net>
67424
67425         * NEWS: Document stdlib change from 2007-02-18.
67426
67427 2007-03-17  Jim Meyering  <jim@meyering.net>
67428
67429         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67430         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67431         someone uses a name containing shell meta-characters.
67432         Reported by Alfred M. Szmidt.
67433
67434         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67435
67436 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67437
67438         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67439         and copy gettext configuration files only if configure.ac contains
67440         a use of AM_GNU_GETTEXT_VERSION.
67441
67442 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67443
67444         * build-aux/bootstrap (gnulib_name): New variable.
67445         (gnulib_tool_options): Use it.
67446
67447 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67448
67449         * tests/test-des.c: Use new namespace.
67450
67451 2007-03-15  Bruno Haible  <bruno@clisp.org>
67452
67453         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67454         Reported by James Youngman <jay@gnu.org>.
67455
67456 2007-03-15  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67459         declared prototype. Needed with cc on OSF/1 5.1.
67460
67461 2007-03-15  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67464         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67465         (struct gl_list_implementation): Add dispose_fn argument to the
67466         'create_empty', 'create' methods.
67467         (struct gl_list_impl_base): Add field 'dispose_fn'.
67468         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67469         argument.
67470         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67471         dispose_fn argument.
67472         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67473         dispose_fn on the dropped values.
67474         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67475         dispose_fn argument.
67476         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67477         dropped values.
67478         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67479         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67480         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67481         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67482         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67483         argument.
67484         (gl_tree_list_free): Call dispose_fn on the dropped values.
67485         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67486         the dropped values.
67487         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67488         Add dispose_fn argument.
67489         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67490         Call dispose_fn on the dropped values.
67491         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67492         Add dispose_fn argument.
67493         (gl_sublist_create): Initialize the 'dispose_fn' field.
67494         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67495         * tests/test-array_list.c (main): Update.
67496         * tests/test-carray_list.c (main): Update.
67497         * tests/test-avltree_list.c (main): Update.
67498         * tests/test-rbtree_list.c (main): Update.
67499         * tests/test-avltreehash_list.c (main): Update.
67500         * tests/test-rbtreehash_list.c (main): Update.
67501         * tests/test-linked_list.c (main): Update.
67502         * tests/test-linkedhash_list.c (main): Update.
67503         * tests/test-array_oset.c (main): Update.
67504
67505 2007-03-15  Bruno Haible  <bruno@clisp.org>
67506
67507         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67508         (gl_oset_create_empty): Add dispose_fn argument.
67509         (struct gl_oset_implementation): Add dispose_fn argument to
67510         'create_empty' method.
67511         (struct gl_oset_impl_base): Add dispose_fn field.
67512         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67513         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67514         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67515         values.
67516         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67517         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67518         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67519         dropped value.
67520         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67521         dropped value.
67522         * tests/test-array_oset.c (main): Update.
67523         * tests/test-avltree_oset.c (main): Update.
67524         * tests/test-rbtree_oset.c (main): Update.
67525         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67526
67527 2007-03-13  Bruno Haible  <bruno@clisp.org>
67528
67529         * tests/test-stdbool.c (i): Update after last patch.
67530
67531 2007-03-12  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67534         the iswprint macro. Needed on Solaris 2.5.1.
67535
67536 2007-03-12  Bruno Haible  <bruno@clisp.org>
67537
67538         * tests/test-printf-frexp.c (main): Declare x as volatile.
67539
67540 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67541
67542         * doc/gnulib.texi (Build robot for gnulib): New section.
67543
67544 2007-03-12  Jim Meyering  <jim@meyering.net>
67545
67546         * build-aux/bootstrap: New file.
67547         * build-aux/bootstrap.conf: New file, from coreutils.
67548
67549 2007-03-11  Bruno Haible  <bruno@clisp.org>
67550
67551         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67552
67553 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67554
67555         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67556         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67557         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67558
67559 2007-03-11  Bruno Haible  <bruno@clisp.org>
67560
67561         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67562         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67563
67564 2007-03-11  Bruno Haible  <bruno@clisp.org>
67565
67566         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67567         formula. Needed for SunPRO C 5.0.
67568
67569 2007-03-11  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/long-options (Depends-on): Add getopt.
67572
67573 2007-03-11  Bruno Haible  <bruno@clisp.org>
67574
67575         * modules/modechange (Depends-on): Add stdbool.
67576
67577 2007-03-11  Bruno Haible  <bruno@clisp.org>
67578
67579         * modules/i-ring (Depends-on): Add stdbool.
67580
67581 2007-03-11  Bruno Haible  <bruno@clisp.org>
67582
67583         * modules/gc-des (Depends-on): Add stdbool.
67584
67585 2007-03-11  Bruno Haible  <bruno@clisp.org>
67586
67587         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67588
67589 2007-03-11  Bruno Haible  <bruno@clisp.org>
67590
67591         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67592
67593 2007-03-11  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67596
67597 2007-03-11  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/vasnprintf.c (sprintf): Undefine.
67600
67601 2007-03-11  Bruno Haible  <bruno@clisp.org>
67602
67603         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67604         initializers in SunPRO C and Compaq C compilers.
67605
67606 2007-03-11  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67609         decrementing code ANSI C compliant.
67610
67611 2007-03-11  Bruno Haible  <bruno@clisp.org>
67612
67613         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67614         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67615
67616 2007-03-11  Bruno Haible  <bruno@clisp.org>
67617
67618         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67619         <stdbool.h> substitute doesn't pass.
67620
67621 2007-03-11  Bruno Haible  <bruno@clisp.org>
67622
67623         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67624
67625 2007-03-11  Bruno Haible  <bruno@clisp.org>
67626
67627         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67628         script, for submission to autobuild.josefsson.org.
67629
67630 2007-03-10  Bruno Haible  <bruno@clisp.org>
67631
67632         * modules/canonicalize-lgpl-tests: New file.
67633         * tests/test-canonicalize-lgpl.sh: New file.
67634         * tests/test-canonicalize-lgpl.c: New file.
67635
67636         * modules/c-strcase-tests: New file.
67637         * tests/test-c-strcase.sh: New file.
67638         * tests/test-c-strcasecmp.c: New file.
67639         * tests/test-c-strncasecmp.c: New file.
67640
67641         * modules/atexit-tests: New file.
67642         * tests/test-atexit.sh: New file.
67643         * tests/test-atexit.c: New file.
67644
67645 2007-03-10  Bruno Haible  <bruno@clisp.org>
67646
67647         * tests/test-binary-io.sh: Use temporary filenames that are not so
67648         likely to clash with those of other tests (in a parallel make).
67649         * tests/test-binary-io.c: Likewise.
67650
67651 2007-03-10  Bruno Haible  <bruno@clisp.org>
67652
67653         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67654         fallback; use #error instead.
67655         Suggested by Simon Josefsson.
67656
67657 2007-03-10  Bruno Haible  <bruno@clisp.org>
67658
67659         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67660         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67661         first and the last.
67662
67663 2007-03-10  Bruno Haible  <bruno@clisp.org>
67664
67665         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67666
67667 2007-03-10  Bruno Haible  <bruno@clisp.org>
67668
67669         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67670         "make distcheck".
67671         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67672         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67673         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67674
67675 2007-03-10  Bruno Haible  <bruno@clisp.org>
67676
67677         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67678         variable.
67679         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67680         variable.
67681
67682 2007-03-09  Eric Blake  <ebb9@byu.net>
67683         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67684
67685         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67686         types are not being provided by gnulib.
67687         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67688         types are supported.
67689
67690 2007-03-10  Bruno Haible  <bruno@clisp.org>
67691
67692         * lib/stdio_.h (__attribute__): New macro.
67693         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67694         vsprintf): Specify __attribute__ __format__ for GCC.
67695         Suggested by Eric Blake.
67696
67697 2007-03-09  Bruno Haible  <bruno@clisp.org>
67698
67699         * modules/printf-posix-tests: New file.
67700         * tests/test-printf-posix.sh: New file.
67701         * tests/test-printf-posix.c: New file.
67702
67703         * modules/printf-posix: New file.
67704         * lib/printf.c: New file.
67705         * m4/printf-posix-rpl.m4: New file.
67706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67707         REPLACE_PRINTF.
67708         * lib/stdio_.h (printf): New declaration.
67709         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67710         ____strfmon____): New macros.
67711         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67712         REPLACE_PRINTF.
67713
67714 2007-03-09  Bruno Haible  <bruno@clisp.org>
67715
67716         * tests/test-vasnprintf-posix2.sh: New file.
67717         * tests/test-vasnprintf-posix2.c: New file.
67718         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67719         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67720         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67721
67722         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67723         a locale dependent decimal point, rather than always '.'.
67724
67725 2007-03-09  Eric Blake  <ebb9@byu.net>
67726
67727         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67728         spite of platforms like Tandem/NSK that define it to -1.
67729
67730 2007-03-08  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/vprintf-posix-tests: New file.
67733         * tests/test-vprintf-posix.sh: New file.
67734         * tests/test-vprintf-posix.c: New file.
67735         * tests/test-printf-posix.h: New file.
67736
67737         * modules/vprintf-posix: New file.
67738         * lib/vprintf.c: New file.
67739         * m4/vprintf-posix.m4: New file.
67740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67741         REPLACE_VPRINTF.
67742         * lib/stdio_.h (vprintf): New declaration.
67743         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67744         REPLACE_VPRINTF.
67745
67746 2007-03-08  Bruno Haible  <bruno@clisp.org>
67747
67748         * modules/fprintf-posix-tests: New file.
67749         * tests/test-fprintf-posix.sh: New file.
67750         * tests/test-fprintf-posix.c: New file.
67751
67752         * modules/fprintf-posix: New file.
67753         * lib/fprintf.c: New file.
67754         * m4/fprintf-posix.m4: New file.
67755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67756         REPLACE_FPRINTF.
67757         * lib/stdio_.h (fprintf): New declaration.
67758         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67759         REPLACE_FPRINTF.
67760
67761 2007-03-08  Bruno Haible  <bruno@clisp.org>
67762
67763         * modules/vfprintf-posix-tests: New file.
67764         * tests/test-vfprintf-posix.sh: New file.
67765         * tests/test-vfprintf-posix.c: New file.
67766         * tests/test-fprintf-posix.h: New file.
67767         * tests/test-fprintf-posix.out: New file.
67768
67769         * modules/vfprintf-posix: New file.
67770         * lib/vfprintf.c: New file.
67771         * m4/vfprintf-posix.m4: New file.
67772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67773         REPLACE_VFPRINTF.
67774         * lib/stdio_.h (vfprintf): New declaration.
67775         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67776         REPLACE_VFPRINTF.
67777
67778 2007-03-08  Bruno Haible  <bruno@clisp.org>
67779
67780         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67781
67782 2007-03-08  Bruno Haible  <bruno@clisp.org>
67783
67784         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67785         instead of 'expr' invocations.
67786         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67787         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67791         Suggested by Paul Eggert.
67792
67793 2007-03-08  Bruno Haible  <bruno@clisp.org>
67794
67795         * modules/fseterr-tests: New file.
67796         * tests/test-fseterr.c: New file.
67797
67798         * modules/fseterr: New file.
67799         * lib/fseterr.h: New file.
67800         * lib/fseterr.c: New file.
67801
67802 2007-03-08  Bruno Haible  <bruno@clisp.org>
67803
67804         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67805         * lib/getopt_.h: Likewise.
67806         * lib/mbswidth.h: Likewise.
67807         * lib/setenv.h: Likewise.
67808         * lib/vasnprintf.h: Likewise.
67809         * lib/vasprintf.h: Likewise.
67810         * lib/verror.h: Likewise.
67811         * lib/xsetenv.h: Likewise.
67812         * lib/xvasprintf.h: Likewise.
67813
67814 2007-03-08  Jim Meyering  <jim@meyering.net>
67815
67816         * users.txt: Add parted.
67817
67818         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67819
67820 2007-03-07  Bruno Haible  <bruno@clisp.org>
67821
67822         * m4/printf.m4: Make the shell script snippets copy&pastable.
67823
67824 2007-03-02  Bruno Haible  <bruno@clisp.org>
67825
67826         * lib/netinet_in_.h: New file.
67827         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67828         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67829         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67830         (Depends-on): Add absolute-header.
67831         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67832         into netinet/in.h.
67833
67834 2007-03-03  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/sys_select_.h: New file.
67837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67838         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67839         * modules/sys_select (Files): Add lib/sys_select_.h.
67840         (Depends-on): Add absolute-header.
67841         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67842         into sys/select.h.
67843
67844 2007-03-02  Bruno Haible  <bruno@clisp.org>
67845
67846         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67847         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67848         values.
67849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67850         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67851         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67852         * modules/sys_socket (Depends-on): Add absolute-header.
67853         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67854         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67855         (Include): Remove requirement of inclusion of <sys/types.h>.
67856
67857 2007-03-02  Bruno Haible  <bruno@clisp.org>
67858
67859         * lib/byteswap_.h (bswap_32): Fix formula.
67860
67861 2007-03-06  Bruno Haible  <bruno@clisp.org>
67862
67863         * modules/sprintf-posix-tests: New file.
67864         * tests/test-sprintf-posix.c: New file.
67865
67866         * modules/sprintf-posix: New file.
67867         * lib/sprintf.c: New file.
67868         * m4/sprintf-posix.m4: New file.
67869         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67870         REPLACE_SPRINTF.
67871         * lib/stdio_.h (sprintf): New declaration.
67872         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67873         REPLACE_SPRINTF.
67874
67875 2007-03-06  Bruno Haible  <bruno@clisp.org>
67876
67877         * modules/vsprintf-posix-tests: New file.
67878         * tests/test-vsprintf-posix.c: New file.
67879         * tests/test-sprintf-posix.h: New file.
67880
67881         * modules/vsprintf-posix: New file.
67882         * lib/vsprintf.c: New file.
67883         * m4/vsprintf-posix.m4: New file.
67884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67885         REPLACE_VSPRINTF.
67886         * lib/stdio_.h (vsprintf): New declaration.
67887         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67888         REPLACE_VSPRINTF.
67889
67890 2007-03-06  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/vsnprintf (Depend-on): Remove minmax.
67893
67894 2007-03-06  Bruno Haible  <bruno@clisp.org>
67895
67896         * modules/snprintf-posix-tests: New file.
67897         * tests/test-snprintf-posix.c: New file.
67898
67899         * modules/snprintf-posix: New file.
67900         * m4/snprintf-posix.m4: New file.
67901         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67902         gl_FUNC_SNPRINTF.
67903         (gl_FUNC_SNPRINTF): Invoke it.
67904         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67905         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67906         is set.
67907         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67908
67909 2007-03-06  Bruno Haible  <bruno@clisp.org>
67910
67911         * modules/vsnprintf-posix-tests: New file.
67912         * tests/test-vsnprintf-posix.c: New file.
67913         * tests/test-snprintf-posix.h: New file.
67914
67915         * modules/vsnprintf-posix: New file.
67916         * m4/vsnprintf-posix.m4: New file.
67917         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67918         gl_FUNC_VSNPRINTF.
67919         (gl_FUNC_VSNPRINTF): Invoke it.
67920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67921         * lib/stdio_.h (vsnprintf): Define as a replacement if
67922         REPLACE_VSNPRINTF is set.
67923         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67924
67925 2007-03-06  Bruno Haible  <bruno@clisp.org>
67926
67927         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67929
67930 2007-03-06  Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67933         (asinl): Declare also if HAVE_DECL_ASINL is set.
67934         (atanl): Declare also if HAVE_DECL_ATANL is set.
67935         (ceill): Declare also if HAVE_DECL_CEILL is set.
67936         (cosl): Declare also if HAVE_DECL_COSL is set.
67937         (expl): Declare also if HAVE_DECL_EXPL is set.
67938         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67939         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67940         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67941         (logl): Declare also if HAVE_DECL_LOGL is set.
67942         (sinl): Declare also if HAVE_DECL_SINL is set.
67943         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67944         (tanl): Declare also if HAVE_DECL_TANL is set.
67945         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67947         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67948         declaration of frexpl, ldexpl.
67949         * modules/printf-frexpl (Depends-on): Add math.
67950         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67951
67952 2007-03-05  Bruno Haible  <bruno@clisp.org>
67953
67954         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67955         frexpl and ldexpl are declared.
67956         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67957
67958 2007-03-05  Bruno Haible  <bruno@clisp.org>
67959
67960         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67961         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67962
67963 2007-03-05  Bruno Haible  <bruno@clisp.org>
67964
67965         * lib/stdio_.h: Include <stddef.h>.
67966
67967 2007-03-05  Bruno Haible  <bruno@clisp.org>
67968
67969         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67970
67971 2007-03-05  Bruno Haible  <bruno@clisp.org>
67972
67973         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67974         NetBSD 4, from Ralf Wildenhues.
67975
67976 2007-03-04  Bruno Haible  <bruno@clisp.org>
67977
67978         * lib/vasprintf.h: Update #if logic for the case when the functions
67979         exist but are overridden.
67980
67981 2007-03-04  Bruno Haible  <bruno@clisp.org>
67982
67983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67984         implementations: glibc-2.4 and MacOS X 10.3.
67985         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67986         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67987         * tests/test-vasprintf-posix.c (test_function): Likewise.
67988
67989 2007-03-04  Bruno Haible  <bruno@clisp.org>
67990
67991         * modules/vasprintf-posix-tests: New file.
67992         * tests/test-vasprintf-posix.c: New file.
67993
67994         * modules/vasprintf-posix: New file.
67995         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67996         defined.
67997         * m4/vasprintf-posix.m4: New file.
67998         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67999         gl_FUNC_VASPRINTF.
68000         (gl_FUNC_VASPRINTF): Invoke it.
68001         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68002         here.
68003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68004
68005 2007-03-04  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68008         REPLACE_GETTIMEOFDAY.
68009         * modules/sys_time (Makefile.am): Likewise.
68010         * m4/sys_time_h.m4: Likewise.
68011         * m4/gettimeofday.m4: Likewise.
68012
68013 2007-03-04  Bruno Haible  <bruno@clisp.org>
68014
68015         * modules/vasnprintf-posix-tests: New file.
68016         * tests/test-vasnprintf-posix.c: New file.
68017
68018         * modules/vasnprintf-posix: New file.
68019         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68020         printf-frexpl.h.
68021         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68022         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68023         REPLACE_VASNPRINTF is defined.
68024         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68025         gl_FUNC_VASNPRINTF.
68026         (gl_FUNC_VASNPRINTF): Invoke it.
68027         * m4/vasnprintf-posix.m4: New file.
68028         * m4/printf.m4: New file.
68029
68030 2007-03-04  Bruno Haible  <bruno@clisp.org>
68031
68032         Compile progreloc.c only if --enable-relocatable is specified.
68033         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68034         if --enable-relocatable was specified.
68035         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68036         lib_SOURCES.
68037
68038 2007-03-04  Jim Meyering  <jim@meyering.net>
68039
68040         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68041         Use it consistently, rather than enumerating errno constants.
68042
68043 2007-03-04  Bruno Haible  <bruno@clisp.org>
68044
68045         * modules/xvasprintf-tests: New file.
68046         * tests/test-xvasprintf.c: New file.
68047
68048         * modules/vasprintf-tests: New file.
68049         * tests/test-vasprintf.c: New file.
68050
68051         * modules/vasnprintf-tests: New file.
68052         * tests/test-vasnprintf.c: New file.
68053
68054         * modules/vsnprintf-tests: New file.
68055         * tests/test-vsnprintf.c: New file.
68056
68057         * modules/snprintf-tests: New file.
68058         * tests/test-snprintf.c: New file.
68059
68060 2007-03-04  Bruno Haible  <bruno@clisp.org>
68061
68062         Compile relocatable.c only if --enable-relocatable is specified.
68063         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68064         gl_RELOCATABLE_LIBRARY.
68065         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68066         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68067         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68068         gl_RELOCATABLE_LIBRARY.
68069         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68070         (Makefile.am): Remove lib_SOURCES.
68071         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68072         gl_RELOCATABLE_LIBRARY.
68073         (Makefile.am): Remove lib_SOURCES.
68074         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68075         always.
68076         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68077         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68078
68079 2007-03-04  Bruno Haible  <bruno@clisp.org>
68080
68081         * modules/argmatch-tests: New file.
68082         * tests/test-argmatch.c: New file.
68083
68084         * tests/test-allocsa.c (main): Halve the number of loop runs.
68085
68086         * modules/alloca-opt-tests: New file.
68087         * tests/test-alloca-opt.c: New file.
68088
68089 2007-03-04  Jim Meyering  <jim@meyering.net>
68090
68091         Work around difference between Linux ACLs and Solaris 10 ZFS.
68092         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68093         for EINVAL.
68094
68095 2007-03-03  Bruno Haible  <bruno@clisp.org>
68096
68097         * modules/relocatable-prog (Depends-on): Add back progreloc's
68098         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68099
68100 2007-03-03  Bruno Haible  <bruno@clisp.org>
68101
68102         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68103         * modules/relocatable-lib: New file.
68104
68105 2007-03-03  Bruno Haible  <bruno@clisp.org>
68106
68107         * modules/relocatable-prog: Renamed from modules/relocatable.
68108         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68109
68110 2007-03-03  Bruno Haible  <bruno@clisp.org>
68111
68112         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68113         m4/relocatable-lib.m4.
68114         (Depends-on): Remove 'relocatable'.
68115         (configure.ac): Add gl_RELOCATABLE_NOP.
68116
68117 2007-03-03  Bruno Haible  <bruno@clisp.org>
68118
68119         * modules/relocatable-prog-wrapper: New file.
68120         * modules/relocatable (Depends-on): Add it. Remove all other
68121         dependencies except progname.
68122         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68123
68124         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68125         (gl_FUNC_STRERROR): Nop.
68126         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68127
68128         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68129         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68130
68131         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68132         (gl_FUNC_READLINK): Update.
68133
68134         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68135
68136 2007-03-03  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68139         * modules/xreadlink (Depends-on): Add unistd.
68140         * modules/xreadlink-with-size (Depends-on): Likewise.
68141
68142 2007-03-03  Bruno Haible  <bruno@clisp.org>
68143
68144         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68145         extracted from gt_FUNC_SETENV.
68146         (gt_FUNC_SETENV): Remove macro.
68147         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68148         remove gt_FUNC_SETENV.
68149
68150 2007-03-03  Bruno Haible  <bruno@clisp.org>
68151
68152         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68153         ENABLE_RELOCATABLE here.
68154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68155
68156 2007-03-03  Bruno Haible  <bruno@clisp.org>
68157
68158         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68159         * tests/test-rbtreehash_list.c: Include progname.h.
68160         (main): Call set_program_name.
68161
68162         * modules/rbtree-oset-tests (Depends-on): Add progname.
68163         * tests/test-rbtree_oset.c: Include progname.h.
68164         (main): Call set_program_name.
68165
68166         * modules/rbtree-list-tests (Depends-on): Add progname.
68167         * tests/test-rbtree_list.c: Include progname.h.
68168         (main): Call set_program_name.
68169
68170         * modules/linked-list-tests (Depends-on): Add progname.
68171         * tests/test-linked_list.c: Include progname.h.
68172         (main): Call set_program_name.
68173
68174 2007-03-03  Bruno Haible  <bruno@clisp.org>
68175
68176         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68177         All uses of __restrict changed to _Restrict_.
68178         * lib/glob_.h (__restrict): Remove macro.
68179
68180 2007-03-02  Bruno Haible  <bruno@clisp.org>
68181
68182         * modules/gettext (configure.ac): Require gettext infrastructure
68183         from version 0.16.1.
68184
68185 2007-03-02  Bruno Haible  <bruno@clisp.org>
68186
68187         * modules/linkedhash-list-tests (Depends-on): Add progname.
68188         * tests/test-linkedhash_list.c: Include progname.h.
68189         (main): Call set_program_name.
68190
68191         * modules/carray-list-tests (Depends-on): Add progname.
68192         * tests/test-carray_list.c: Include progname.h.
68193         (main): Call set_program_name.
68194
68195         * modules/avltreehash-list-tests (Depends-on): Add progname.
68196         * tests/test-avltreehash_list.c: Include progname.h.
68197         (main): Call set_program_name.
68198
68199         * modules/avltree-oset-tests (Depends-on): Add progname.
68200         * tests/test-avltree_oset.c: Include progname.h.
68201         (main): Call set_program_name.
68202
68203         * modules/avltree-list-tests (Depends-on): Add progname.
68204         * tests/test-avltree_list.c: Include progname.h.
68205         (main): Call set_program_name.
68206
68207         * modules/array-oset-tests (Depends-on): Add progname.
68208         * tests/test-array_oset.c: Include progname.h.
68209         (main): Call set_program_name.
68210
68211         * modules/array-list-tests (Depends-on): Add progname.
68212         * tests/test-array_list.c: Include progname.h.
68213         (main): Call set_program_name.
68214
68215         * modules/argp-tests (Depends-on): Add progname.
68216         * tests/test-argp.c: Include argp.h first. Include progname.h.
68217         (main): Call set_program_name.
68218
68219 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68220
68221         * doc/gnulib-tool.texi (Initial import): Reword description of
68222         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68223         limited effect even if defined after the first system include.
68224
68225 2007-03-01  Bruno Haible  <bruno@clisp.org>
68226
68227         * build-aux/config.libpath: Update to libtool-1.5.22.
68228         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68229
68230 2007-03-01  Bruno Haible  <bruno@clisp.org>
68231
68232         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68233         foo_CFLAGS.
68234         Reported by Ralf Wildenhues.
68235
68236 2007-03-01  Bruno Haible  <bruno@clisp.org>
68237
68238         * build-aux/install-reloc: Remove object files left over by some
68239         compilers.
68240         Reported by Ralf Wildenhues.
68241
68242 2007-03-01  Bruno Haible  <bruno@clisp.org>
68243
68244         * build-aux/install-reloc: Break long lines.
68245
68246 2007-03-01  Bruno Haible  <bruno@clisp.org>
68247
68248         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68249         Reported by Ralf Wildenhues.
68250
68251 2007-03-01  Bruno Haible  <bruno@clisp.org>
68252
68253         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68254         include ordering constraints.
68255
68256 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68257
68258         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68259         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68260         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68261         as another example.
68262         * lib/time_.h: Fix misspelling.
68263         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68264         Require gl_HEADER_TIME_H_DEFAULTS.
68265         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68266         * m4/time_r.m4 (gl_TIME_R): Likewise.
68267         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68268
68269 2007-03-01  Bruno Haible  <bruno@clisp.org>
68270
68271         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68272         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68273
68274 2007-03-01  Jim Meyering  <jim@meyering.net>
68275
68276         * modules/xreadlink (Maintainer): Add my name.
68277         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68278
68279 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68280             Bruno Haible  <bruno@clisp.org>
68281
68282         * build-aux/install-reloc: Compile also c-ctype.c.
68283         * build-aux/relocatable.sh.in: New file.
68284         * doc/relocatable.texi: New file.
68285         * doc/relocatable-maint.texi: New file.
68286         * doc/gnulib.texi: Include relocatable-maint.texi.
68287         * lib/progreloc.c: Include unistd.h unconditionally.
68288         * lib/relocwrapper.c: Include unistd.h unconditionally.
68289         Include c-ctype.h.
68290         (add_dotbin): Use c_tolower.
68291         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68292         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68293         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68294         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68295         to m4/relocatable-lib.m4.
68296         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68297         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68298         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68299         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68300         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68301         * modules/relocatable: New file.
68302         * modules/relocatable-lib: New file.
68303         * modules/relocatable-script: New file.
68304
68305 2007-02-28  Bruno Haible  <bruno@clisp.org>
68306
68307         Import --enable-relocatable infrastructure.
68308         * build-aux/config.libpath: New file, from GNU gettext.
68309         * build-aux/install-reloc: New file, from GNU gettext.
68310         * build-aux/reloc-ldflags: New file, from GNU gettext.
68311         * lib/relocatable.h: New file, from GNU gettext.
68312         * lib/relocatable.c: New file, from GNU gettext.
68313         * lib/relocwrapper.c: New file, from GNU gettext.
68314         * m4/relocatable.m4: New file, from GNU gettext.
68315
68316 2007-02-28  Bruno Haible  <bruno@clisp.org>
68317
68318         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68319
68320         * modules/xreadlink: New file, from GNU gettext with modifications.
68321         * lib/xreadlink.c: New file, from GNU gettext.
68322         * lib/xreadlink.h: Add comments.
68323         (xreadlink): New declaration.
68324
68325         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68326         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68327         lib/xreadlink-with-size.c.
68328         (configure.ac): Remove gl_XREADLINK invocation.
68329         (Makefile.am): Augment lib_SOURCES.
68330         * m4/xreadlink.m4: Remove file.
68331         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68332         (xreadlink_with_size): Renamed from xreadink.
68333         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68334         * modules/canonicalize (Depends-on): Replace xreadlink with
68335         xreadlink-with-size.
68336         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68337
68338 2007-02-25  Jim Meyering  <jim@meyering.net>
68339
68340         * build-aux/announce-gen: When complaining about excess arguments,
68341         list them.
68342
68343 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68344
68345         * README: Document signed integer overflow situation more
68346         accurately.
68347
68348 2007-02-25  Bruno Haible  <bruno@clisp.org>
68349
68350         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68351         'a' or 'A' conversion.
68352
68353 2007-02-25  Bruno Haible  <bruno@clisp.org>
68354
68355         * modules/filename: Renamed from modules/pathname.
68356         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68357         lib/concatpath.c with lib/concat-filename.c.
68358         (Makefile.am): Update.
68359         (Include): Replace pathname.h with filename.h.
68360         * lib/filename.h: Renamed from lib/pathname.h.
68361         (concatenated_filename): Renamed from concatenated_pathname.
68362         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68363         (concatenated_filename): Renamed from concatenated_pathname.
68364         * lib/findprog.c: Include filename.h instead of pathname.h.
68365         (find_in_path): Update.
68366         * lib/javacomp.c: Include filename.h instead of pathname.h.
68367         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68368         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68369         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68370         is_oldgcj_14_13_usable, is_javac_usable): Update.
68371         * lib/javaexec.c: Include filename.h instead of pathname.h.
68372         (execute_java_class): Update.
68373         * modules/findprog: Update.
68374         * modules/javacomp: Update.
68375         * modules/javaexec: Update.
68376         * MODULES.html.sh (File system functions): Add 'filename', remove
68377         'pathname'.
68378
68379 2007-02-25  Bruno Haible  <bruno@clisp.org>
68380
68381         * modules/printf-frexpl-tests: New file.
68382         * tests/test-printf-frexpl.c: New file.
68383
68384         * modules/printf-frexpl: New file.
68385         * lib/printf-frexpl.h: New file.
68386         * lib/printf-frexpl.c: New file.
68387         * m4/printf-frexpl.m4: New file.
68388
68389 2007-02-25  Bruno Haible  <bruno@clisp.org>
68390
68391         * modules/printf-frexp-tests: New file.
68392         * tests/test-printf-frexp.c: New file.
68393
68394         * modules/printf-frexp: New file.
68395         * lib/printf-frexp.h: New file.
68396         * lib/printf-frexp.c: New file.
68397         * m4/printf-frexp.m4: New file.
68398
68399 2007-02-25  Bruno Haible  <bruno@clisp.org>
68400
68401         Assume automake >= 1.10 for the tests.
68402         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68403         * modules/arctwo-tests: Likewise.
68404         * modules/argp-tests: Likewise.
68405         * modules/avltree-list-tests: Likewise.
68406         * modules/avltree-oset-tests: Likewise.
68407         * modules/avltreehash-list-tests: Likewise.
68408         * modules/carray-list-tests: Likewise.
68409         * modules/crc-tests: Likewise.
68410         * modules/des-tests: Likewise.
68411         * modules/gc-arcfour-tests: Likewise.
68412         * modules/gc-arctwo-tests: Likewise.
68413         * modules/gc-des-tests: Likewise.
68414         * modules/gc-hmac-md5-tests: Likewise.
68415         * modules/gc-hmac-sha1-tests: Likewise.
68416         * modules/gc-md2-tests: Likewise.
68417         * modules/gc-md4-tests: Likewise.
68418         * modules/gc-md5-tests: Likewise.
68419         * modules/gc-pbkdf2-sha1-tests: Likewise.
68420         * modules/gc-rijndael-tests: Likewise.
68421         * modules/gc-sha1-tests: Likewise.
68422         * modules/gc-tests: Likewise.
68423         * modules/getaddrinfo-tests: Likewise.
68424         * modules/hmac-md5-tests: Likewise.
68425         * modules/hmac-sha1-tests: Likewise.
68426         * modules/linked-list-tests: Likewise.
68427         * modules/linkedhash-list-tests: Likewise.
68428         * modules/lock-tests: Likewise.
68429         * modules/md2-tests: Likewise.
68430         * modules/md4-tests: Likewise.
68431         * modules/md5-tests: Likewise.
68432         * modules/rbtree-list-tests: Likewise.
68433         * modules/rbtree-oset-tests: Likewise.
68434         * modules/rbtreehash-list-tests: Likewise.
68435         * modules/read-file-tests: Likewise.
68436         * modules/rijndael-tests: Likewise.
68437         * modules/stdint-tests: Likewise.
68438         * modules/tls-tests: Likewise.
68439
68440 2007-02-24  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68443         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68444         function; instead check whether isnan with a double argument links.
68445         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68446         function; instead check whether isnan with a 'long double' argument
68447         links.
68448         Reported by Eric Blake <ebb9@byu.net>.
68449
68450 2007-02-24  Bruno Haible  <bruno@clisp.org>
68451
68452         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68453         defined.
68454         * lib/isnanl.c: Remove all code. Just include isnan.c.
68455         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68456
68457 2007-02-25  Jim Meyering  <jim@meyering.net>
68458
68459         Avoid conflicting types for 'unsetenv' on FreeBSD.
68460         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68461         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68462         in stdlib.h.
68463
68464 2007-02-24  Bruno Haible  <bruno@clisp.org>
68465
68466         * modules/isnanl-nolibm-tests: New file.
68467         * tests/test-isnanl.c: New file.
68468
68469         * modules/isnanl-nolibm: New file.
68470         * lib/isnanl.h: New file.
68471         * lib/isnanl.c: New file.
68472         * m4/isnanl.m4: New file.
68473
68474 2007-02-24  Bruno Haible  <bruno@clisp.org>
68475
68476         * modules/isnan-nolibm-tests: New file.
68477         * tests/test-isnan.c: New file.
68478
68479         * modules/isnan-nolibm: New file.
68480         * lib/isnan.h: New file.
68481         * lib/isnan.c: New file.
68482         * m4/isnan.m4: New file.
68483
68484 2007-02-24  Bruno Haible  <bruno@clisp.org>
68485
68486         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68487         assume that an exponent fits in 20 bits.
68488
68489 2007-02-24  Jim Meyering  <jim@meyering.net>
68490
68491         * m4/regex.m4: Update the description of the configure-time option,
68492         --without-included-regex, to state accurately what the defaults are,
68493         and perhaps to give people an idea why using this option is risky.
68494
68495 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68498         loops on small arguments.  This attempts to avoid the problem
68499         Bruno Haible reported for AIX 4.3.2 in
68500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68501
68502 2007-02-23  Bruno Haible  <bruno@clisp.org>
68503
68504         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68505         Needed for help2man.
68506
68507 2007-02-23  Karl Berry  <karl@gnu.org>
68508
68509         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68510         exists, foo.h should be cvs-ignored, not committed.
68511
68512 2007-02-23  Eric Blake  <ebb9@byu.net>
68513
68514         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68515         * lib/stat-time.h (includes): Likewise.
68516         * lib/utimecmp.c (includes): Likewise.
68517         * lib/utimens.h (includes): Likewise.
68518         * lib/getdate.y (includes): Also include "timespec.h" for use
68519         internal to the module.
68520         * modules/utimens (Depends-on): Revert yesterday's patch.
68521         * modules/nanosleep (Depends-on): Add missing dependency.
68522
68523 2007-02-22  Bruno Haible  <bruno@clisp.org>
68524
68525         * lib/glob.c: Don't include getlogin_r.h.
68526
68527 2007-02-22  Jim Meyering  <jim@meyering.net>
68528
68529         * modules/utimens (Depends-on): Add timespec, required for
68530         utimens.h's inclusion of timespec.h.
68531
68532 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68535         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68536         Schwab in
68537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68538         I'll try to think of a better way to fix the Solaris problem.
68539
68540         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68541         like glibc; on Solaris 10, it fails with errno == EINVAL.
68542         POSIX says the behavior is unspecified if the first argument is NULL,
68543         so play it safe and never pass NULL to the system getcwd.
68544
68545 2007-02-21  Jim Meyering  <jim@meyering.net>
68546
68547         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68548         of gettimeofday.  It would conflict with the one now always
68549         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68550         an IRIX 6.5 build failure.
68551
68552 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68553
68554         Minor fixups to port to Solaris 10 with Sun C 5.8.
68555         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68556         * modules/getcwd (Depends-on): Add dirfd.
68557         * lib/putenv.c (putenv): #undef it.
68558         (rpl_putenv): New decl.
68559         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68560
68561 2007-02-20  Bruno Haible  <bruno@clisp.org>
68562
68563         * modules/stdio-tests: New file.
68564         * tests/test-stdio.c: New file.
68565
68566         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68567         (Depends-on): Add stdio.
68568         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68569         (Include): Use <stdio.h> instead of vsnprintf.h.
68570         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68571         HAVE_DECL_VSNPRINTF.
68572         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68573
68574         * modules/snprintf (Files): Remove lib/snprintf.h.
68575         (Depends-on): Add stdio.
68576         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68577         (Include): Use <stdio.h> instead of snprintf.h.
68578         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68579         HAVE_DECL_SNPRINTF.
68580         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68581         * lib/getaddrinfo.c: Likewise.
68582
68583         * modules/stdio: New file.
68584         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68585         * lib/snprintf.h: Remove file.
68586         * lib/vsnprintf.h: Remove file.
68587         * lib/.cppi-disable: Remove snprintf.h.
68588         * m4/stdio_h.m4: New file.
68589         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68590
68591 2007-02-20  Jim Meyering  <jim@meyering.net>
68592
68593         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68594         used by e.g., mingw.  From Bruno Haible.
68595
68596 2007-02-19  Bruno Haible  <bruno@clisp.org>
68597
68598         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68599         warnings.
68600         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68601
68602 2007-02-19  Bruno Haible  <bruno@clisp.org>
68603
68604         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68605         from mingw users.
68606
68607 2007-02-19  Bruno Haible  <bruno@clisp.org>
68608
68609         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68610         warnings.
68611         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68612
68613 2007-02-19  Jim Meyering  <jim@meyering.net>
68614
68615         Don't use FD after a successful "fdopendir (fd)".
68616         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68617         Reset it by calling dirfd on the just-obtained DIR*.
68618
68619         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68620         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68621
68622 2007-02-18  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/readlink.c: Include <unistd.h>.
68625         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68626         HAVE_READLINK.
68627         * modules/readlink (Depends-on): Add unistd.
68628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68629         (Include): Add <unistd.h>.
68630
68631         * lib/getlogin_r.h: Remove file.
68632         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68633         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68634         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68635         HAVE_DECL_GETLOGIN_R.
68636         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68637         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68638         (Include): Use <unistd.h> instead of getlogin_r.h.
68639
68640         * lib/getcwd.h: Remove file.
68641         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68642         * lib/xgetcwd.c: Likewise.
68643         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68644         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68645         * modules/getcwd (Files): Remove lib/getcwd.h.
68646         (Depends-on): Add unistd.
68647         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68648         (Include): Use <unistd.h> instad of getcwd.h.
68649
68650         * lib/ftruncate.c: Include <unistd.h> first.
68651         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68652         Set HAVE_FTRUNCATE.
68653         * modules/ftruncate (Depends-on): Add unistd.
68654         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68655
68656         * lib/fchdir.c: Include <unistd.h> first.
68657         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68659         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68660         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68661         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68662
68663         * lib/dup2.c: Include <unistd.h> first.
68664         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68665         HAVE_DUP2.
68666         * modules/dup2 (Depends-on): Add unistd.
68667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68668
68669         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68670         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68671         REPLACE_CHOWN. Don't define chown as a macro here.
68672         * modules/chown (Depends-on): Add unistd.
68673         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68674
68675         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68676         Add definition for GL_LINK_WARNING.
68677         (chown, dup2): New declarations.
68678         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68679         link warning.
68680         (ftruncate): New declaration.
68681         (getcwd): New declaration, taken from old getcwd.h.
68682         (getlogin_r): New declaration, taken from old getlogin_r.h.
68683         (readlink): New declaration.
68684         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68685         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68686         (gl_PREREQ_UNISTD): Remove macro.
68687         (gl_UNISTD_MODULE_INDICATOR): New macro.
68688         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68689         many new variables. Don't set UNISTD_H.
68690         * modules/unistd (Description): Change.
68691         (Depends-on): Add link-warning.
68692         (configure.ac): Update.
68693         (Makefile.am): Create unistd.h always. Substitute many new variables
68694         into it.
68695
68696 2007-02-18  Bruno Haible  <bruno@clisp.org>
68697
68698         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68699         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68700         HAVE_GETSUBOPT.
68701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68702         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68703         * lib/getsubopt.h: Remove file.
68704         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68705         (Depends-on): Add stdlib.
68706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68707         (Includes): Use <stdlib.h> instead of getsubopt.h.
68708         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68709         Set HAVE_GETSUBOPT.
68710         * lib/getsubopt.c: Don't include getsubopt.h.
68711
68712 2007-02-18  Bruno Haible  <bruno@clisp.org>
68713
68714         * modules/fchdir (Depends-on): Add dup2.
68715
68716 2007-02-18  Bruno Haible  <bruno@clisp.org>
68717
68718         * lib/stdlib_.h: Handle glibc's special invocation convention
68719         specially.
68720
68721 2007-02-18  Bruno Haible  <bruno@clisp.org>
68722
68723         * modules/stdlib-tests: New file.
68724         * tests/test-stdlib.c: New file.
68725
68726         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68727         (Depends-on): Add stdlib.
68728         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68729         (Includes): Use <stdlib.h> instead of mkstemp.h.
68730         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68731         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68732         * lib/mkstemp.c: Don't include mkstemp.h.
68733         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68734         * lib/stdlib--.h: Don't include mkstemp.h.
68735
68736         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68737         (Depends-on): Add stdlib.
68738         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68739         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68740         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68741         HAVE_MKDTEMP.
68742         * lib/mkdtemp.c: Don't include mkdtemp.h.
68743         * lib/clean-temp.c: Don't include mkdtemp.h.
68744
68745         * modules/exit (Files): Remove lib/exit.h.
68746         (Depends-on): Add stdlib.
68747         (Makefile.am): Remove lib_SOURCES.
68748         (Include): Use <stdlib.h> instead of exit.h.
68749         * lib/argmatch.c: Don't include exit.h.
68750         * lib/execute.c: Likewise.
68751         * lib/pagealign_alloc.c: Likewise.
68752         * lib/pipe.c: Likewise.
68753         * lib/wait-process.c: Likewise.
68754         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68755         * lib/exitfail.c: Likewise.
68756         * lib/savewd.c: Likewise.
68757         * lib/xsetenv.c: Likewise.
68758
68759         * modules/stdlib: New file.
68760         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68761         and extra comments about mkstemp().
68762         * lib/exit.h: Remove file.
68763         * lib/mkdtemp.h: Remove file.
68764         * lib/mkstemp.h: Remove file.
68765         * m4/stdlib_h.m4: New file.
68766         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68767
68768 2007-02-18  Bruno Haible  <bruno@clisp.org>
68769
68770         * modules/math-tests: New file.
68771         * tests/test-math.c: New file.
68772
68773         * modules/math: New file.
68774         * modules/mathl (Files): Remove lib/mathl.h.
68775         (Depends-on): Add math.
68776         (Makefile.am): Don't mention mathl.h.
68777         (Include): Use <math.h> instead of mathl.h.
68778         * lib/math_.h: New file.
68779         * lib/mathl.h: Remove file.
68780         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68781         mathl.h.
68782         * lib/asinl.c: Likewise.
68783         * lib/atanl.c: Likewise.
68784         * lib/ceill.c: Likewise.
68785         * lib/cosl.c: Likewise.
68786         * lib/expl.c: Likewise.
68787         * lib/floorl.c: Likewise.
68788         * lib/frexpl.c: Likewise.
68789         * lib/ldexpl.c: Likewise.
68790         * lib/logl.c: Likewise.
68791         * lib/sincosl.c: Likewise.
68792         * lib/sinl.c: Likewise.
68793         * lib/sqrtl.c: Likewise.
68794         * lib/tanl.c: Likewise.
68795         * lib/trigl.c: Likewise.
68796         * m4/math_h.m4: New file.
68797         * MODULES.html.sh (Mathematics): Add math.
68798
68799 2007-02-17  Bruno Haible  <bruno@clisp.org>
68800
68801         * modules/wctype-tests: New file.
68802         * tests/test-wctype.c: New file.
68803
68804         * modules/wchar-tests: New file.
68805         * tests/test-wchar.c: New file.
68806
68807         * modules/unistd-tests: New file.
68808         * tests/test-unistd.c: New file.
68809
68810         * modules/time-tests: New file.
68811         * tests/test-time.c: New file.
68812
68813         * modules/sysexits-tests: New file.
68814         * tests/test-sysexits.c: New file.
68815
68816         * modules/sys_time-tests: New file.
68817         * tests/test-sys_time.c: New file.
68818
68819         * modules/sys_stat-tests: New file.
68820         * tests/test-sys_stat.c: New file.
68821
68822         * modules/sys_socket-tests: New file.
68823         * tests/test-sys_socket.c: New file.
68824
68825         * modules/sys_select-tests: New file.
68826         * tests/test-sys_select.c: New file.
68827
68828         * modules/string-tests: New file.
68829         * tests/test-string.c: New file.
68830
68831         * modules/stdbool-tests: New file.
68832         * tests/test-stdbool.c: New file.
68833
68834         * modules/netinet_in-tests: New file.
68835         * tests/test-netinet_in.c: New file.
68836
68837         * modules/inttypes-tests: New file.
68838         * tests/test-inttypes.c: New file.
68839
68840         * modules/fcntl-tests: New file.
68841         * tests/test-fcntl.c: New file.
68842
68843         * modules/byteswap-tests: New file.
68844         * tests/test-byteswap.c: New file.
68845
68846         * modules/arpa_inet-tests: New file.
68847         * tests/test-arpa_inet.c: New file.
68848
68849 2007-02-17  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68852         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68853         if the corresponding module is not enabled. Emit link warnings if
68854         the function is used nevertheless.
68855         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68856         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68857         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68858         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68859         * modules/inttypes (Depends-on): Add link-warning.
68860         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68861         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68862         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68863         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68864         * modules/imaxdiv (configure.ac): Likewise.
68865         * modules/strtoimax (configure.ac): Likewise.
68866         * modules/strtoumax (configure.ac): Likewise.
68867
68868 2007-02-17  Bruno Haible  <bruno@clisp.org>
68869
68870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68871         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68872         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68873         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68874
68875 2007-02-17  Bruno Haible  <bruno@clisp.org>
68876
68877         * modules/link-warning: New file.
68878         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68879         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68880         * modules/string (Depends-on): Add link-warning.
68881         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68882         string.h.
68883         * MODULES.html.sh (Support for building libraries and executables): Add
68884         link-warning.
68885
68886 2007-02-17  Bruno Haible  <bruno@clisp.org>
68887
68888         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68889         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68890         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68891         long lines.
68892
68893 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68894             Bruno Haible  <bruno@clisp.org>
68895
68896         * modules/tmpfile: New file.
68897         * lib/tmpfile.c: New file.
68898         * m4/tmpfile.m4: New file.
68899         * MODULES.html.sh (func_all_modules): New section "Input/output".
68900
68901 2007-02-15  Bruno Haible  <bruno@clisp.org>
68902
68903         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68904         (supports_delete_on_close): New function.
68905         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68906
68907 2007-02-14  Bruno Haible  <bruno@clisp.org>
68908
68909         * modules/mbspcasecmp-tests: New file.
68910         * tests/test-mbspcasecmp.sh: New file.
68911         * tests/test-mbspcasecmp.c: New file.
68912
68913         New module mbspcasecmp.
68914         * modules/mbspcasecmp: New file.
68915         * lib/mbspcasecmp.c: New file.
68916         * lib/string_.h (strncasecmp): Change warning message.
68917         (mbspcasecmp): New declaration.
68918         * m4/mbspcasecmp.m4: New file.
68919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68920         GNULIB_MBSPCASECMP.
68921         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68922         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68923
68924 2007-02-14  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/mbsncasecmp-tests: New file.
68927         * tests/test-mbsncasecmp.sh: New file.
68928         * tests/test-mbsncasecmp.c: New file.
68929
68930         New module mbsncasecmp.
68931         * modules/mbsncasecmp: New file.
68932         * lib/mbsncasecmp.c: New file.
68933         * lib/string_.h (mbsncasecmp): New declaration.
68934         * m4/mbsncasecmp.m4: New file.
68935         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68936         GNULIB_MBSNCASECMP.
68937         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68938         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68939
68940 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68941
68942         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68943         Verify that it doesn't overlap with our flags.
68944         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68945         do not have the desired effect in multibyte locales; instead, use
68946         mbscasecmp.
68947         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68948         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68949         we don't require GNU fnmatch ourselves (if our users require it, they
68950         should do so explicitly).
68951
68952         Fix regex code so it doesn't rely on strcasecmp.
68953         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68954         Otherwise, include gnulib's langinfo.h.
68955         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68956         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68957         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68958         * modules/regex (FILES): Remove m4/codeset.m4.
68959         (Depends-on): Add localcharset.  Remove strcase.
68960
68961 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68962
68963         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68964         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68965
68966 2007-02-13  Bruno Haible  <bruno@clisp.org>
68967
68968         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68969         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68970
68971 2007-02-12  Bruno Haible  <bruno@clisp.org>
68972
68973         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68974         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68975         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68976         time warning rather than a link error.
68977
68978 2007-02-12  Bruno Haible  <bruno@clisp.org>
68979
68980         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68981         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68983
68984 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68987         args, not 2.
68988
68989 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         New module 'time', so that apps can include <time.h> as per
68992         POSIX and GNU instead of separate include files like time_r.h
68993         and timegm.h.  This implementation tries out a simpler approach
68994         for replacing decls in standard include files (as compared to
68995         the string module), somewhat as an experiment.
68996
68997         * config/srclist.txt: Comment out mktime.c for now.
68998         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68999         since it doesn't apply any more.  Use generic wording instead.
69000         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69001         'time'.
69002         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69003         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69004         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69005         Don't include <sys/types.h>; no longer needed since we assume C89.
69006         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69007         * lib/strftime.c: Likewise.
69008         * lib/time_r.c: Likewise.
69009         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69010         * lib/nanosleep.c: Include <time.h> first, to check interface.
69011         * lib/strptime.c: Likewise.
69012         * lib/time_r.c: Likewise.
69013         * lib/timegm.c: Likewise.
69014         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69015         needed.
69016         * lib/timegm.c: Don't include timegm.h; no longer needed.
69017         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69018         time.h now handles any problems in that area.
69019         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69020         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69021         that time.h defines struct timespec.
69022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69023         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69024         handles that.
69025         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69026         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69027         needed.  Set REPLACE_LOCALTIME.
69028         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69029         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69030         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69031         nanosleep; time_h.m4 now does that.  Don't require
69032         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69033         module handles this now.
69034         * modules/getdate (Depends-on): Remove timespec.  Add time.
69035         * modules/nanosleep (Depends-on): Likewise.
69036         * modules/stat-time (Depends-on): Likewise.
69037         * modules/nanosleep (Include): Include time.h, not timespec.h.
69038         * modules/strptime (Files): Remove lib/strptime.h.
69039         (Depends-on): Add extensions, time.
69040         (Include): Include time.h, not strptime.h.
69041         * modules/time_r (Files): Remove lib/time_r.h.
69042         (Depends-on): Add time.
69043         (Include): Include time.h, not time_r.h.
69044         * modules/timegm: Likewise.
69045         * modules/timespec (Description): Now does timespec-related decls
69046         of our own, instead of struct timespec itself.
69047         (Depends-on): Add time; remove extensions.
69048         (Maintainer): Add self.
69049         * modules/utimecmp (Depends-on): Add time; remove timespec.
69050         * modules/utimens (Depends-on): Likewise.
69051         * modules/xnanosleep (Depends-on): Likewise.
69052
69053 2007-02-11  Bruno Haible  <bruno@clisp.org>
69054
69055         * lib/c-strstr.c: Include allocsa.h.
69056         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69057         * lib/c-strcasestr.c: Include allocsa.h.
69058         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69059         * lib/strcasestr.c: Include allocsa.h.
69060         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69061         * lib/mbsstr.c: Include allocsa.h.
69062         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69063         allocsa/freesa instead of malloc/free.
69064         * lib/mbscasestr.c: Include allocsa.h.
69065         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69066         allocsa/freesa instead of malloc/free.
69067         * modules/c-strstr (Depends-on): Add allocsa.
69068         * modules/c-strcasestr (Depends-on): Likewise.
69069         * modules/strcasestr (Depends-on): Likewise.
69070         * modules/mbsstr (Depends-on): Likewise.
69071         * modules/mbscasestr (Depends-on): Likewise.
69072
69073 2007-02-11  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69076
69077         * modules/mbsspn-tests: New file.
69078         * tests/test-mbsspn.sh: New file.
69079         * tests/test-mbsspn.c: New file.
69080
69081 2007-02-11  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69084
69085         * modules/mbspbrk-tests: New file.
69086         * tests/test-mbspbrk.sh: New file.
69087         * tests/test-mbspbrk.c: New file.
69088
69089 2007-02-11  Bruno Haible  <bruno@clisp.org>
69090
69091         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69092         unneeded cast.
69093
69094         * modules/mbscspn-tests: New file.
69095         * tests/test-mbscspn.sh: New file.
69096         * tests/test-mbscspn.c: New file.
69097
69098 2007-02-11  Bruno Haible  <bruno@clisp.org>
69099
69100         * modules/mbscasecmp-tests: New file.
69101         * tests/test-mbscasecmp.sh: New file.
69102         * tests/test-mbscasecmp.c: New file.
69103
69104 2007-02-11  Bruno Haible  <bruno@clisp.org>
69105
69106         Ensure O(n) worst-case complexity of mbscasestr.
69107         * lib/mbscasestr.c: Include stdbool.h.
69108         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69109         functions.
69110         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69111         the bookkeeping indicates that it's worth it.
69112         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69113
69114         * modules/mbscasestr-tests: New file.
69115         * tests/test-mbscasestr1.c: New file.
69116         * tests/test-mbscasestr2.sh: New file.
69117         * tests/test-mbscasestr2.c: New file.
69118         * tests/test-mbscasestr3.sh: New file.
69119         * tests/test-mbscasestr3.c: New file.
69120         * tests/test-mbscasestr4.sh: New file.
69121         * tests/test-mbscasestr4.c: New file.
69122         * m4/locale-tr.m4: New file.
69123
69124 2007-02-11  Bruno Haible  <bruno@clisp.org>
69125
69126         Ensure O(n) worst-case complexity of mbsstr.
69127         * lib/mbsstr.c: Include stdbool.h.
69128         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69129         functions.
69130         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69131         bookkeeping indicates that it's worth it.
69132         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69133
69134         * modules/mbsstr-tests: New file.
69135         * tests/test-mbsstr1.c: New file.
69136         * tests/test-mbsstr2.sh: New file.
69137         * tests/test-mbsstr2.c: New file.
69138         * tests/test-mbsstr3.sh: New file.
69139         * tests/test-mbsstr3.c: New file.
69140         * m4/locale-fr.m4: New file.
69141
69142 2007-02-11  Bruno Haible  <bruno@clisp.org>
69143
69144         * lib/mbsrchr.c (mbsrchr): Fix bug.
69145
69146         * modules/mbsrchr-tests: New file.
69147         * tests/test-mbsrchr.sh: New file.
69148         * tests/test-mbsrchr.c: New file.
69149
69150 2007-02-11  Bruno Haible  <bruno@clisp.org>
69151
69152         * lib/mbschr.c (mbschr): Fix bug.
69153
69154         * modules/mbschr-tests: New file.
69155         * tests/test-mbschr.sh: New file.
69156         * tests/test-mbschr.c: New file.
69157         * m4/locale-zh.m4: New file.
69158
69159 2007-02-11  Bruno Haible  <bruno@clisp.org>
69160
69161         Support for copying multibyte string iterators.
69162         * lib/mbiter.h: Include <string.h>.
69163         (mbiter_multi_copy): New function.
69164         (mbi_copy): New macro.
69165         * lib/mbuiter.h: Include <string.h>.
69166         (mbuiter_multi_copy): New function.
69167         (mbui_copy): New macro.
69168
69169 2007-02-11  Bruno Haible  <bruno@clisp.org>
69170
69171         New module mbslen.
69172         * modules/mbslen: New file.
69173         * lib/mbslen.c: New file.
69174         * lib/string_.h (mbslen): New declaration.
69175         * m4/mbslen.m4: New file.
69176         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69177         GNULIB_MBSLEN.
69178         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69179         * MODULES.html.sh (Internationalization functions): Add mbslen.
69180
69181 2007-02-11  Bruno Haible  <bruno@clisp.org>
69182
69183         Ensure O(n) worst-case complexity of strcasestr substitute.
69184         * lib/strcasestr.c: Include stdbool.h.
69185         (knuth_morris_pratt): New function.
69186         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69187         bookkeeping indicates that it's worth it.
69188         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69189
69190         * modules/strcasestr-tests: New file.
69191         * tests/test-strcasestr.c: New file.
69192
69193 2007-02-11  Bruno Haible  <bruno@clisp.org>
69194
69195         Ensure O(n) worst-case complexity of c_strcasestr.
69196         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69197         (knuth_morris_pratt): New function.
69198         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69199         the bookkeeping indicates that it's worth it.
69200         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69201
69202         * modules/c-strcasestr-tests: New file.
69203         * tests/test-c-strcasestr.c: New file.
69204
69205 2007-02-11  Bruno Haible  <bruno@clisp.org>
69206
69207         Ensure O(n) worst-case complexity of c_strstr.
69208         * lib/c-strstr.c: Include stdbool.h, string.h.
69209         (knuth_morris_pratt): New function.
69210         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69211         bookkeeping indicates that it's worth it.
69212         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69213
69214         * lib/c-strstr.c: Complete rewrite for maintainability.
69215
69216         * modules/c-strstr-tests: New file.
69217         * tests/test-c-strstr.c: New file.
69218
69219 2007-02-11  Bruno Haible  <bruno@clisp.org>
69220
69221         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69222         5.2.1 and earlier, whereby \055 was treated just like the range
69223         delimiter '-'.
69224         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69225
69226 2007-02-08  Bruno Haible  <bruno@clisp.org>
69227
69228         * modules/regex (Depends-on): Add stdbool.
69229         Reported by Dalibor Topic <robilad@kaffe.org>.
69230
69231 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69234         Prefer returning from main to exiting from it.
69235         Remove unnecessary parens after sizeof.
69236
69237 2007-02-05  Bruno Haible  <bruno@clisp.org>
69238
69239         New module mbssep.
69240         * modules/mbssep: New file.
69241         * lib/mbssep.c: New file.
69242         * lib/string_.h (strsep): Add a conditional link warning.
69243         (mbssep): New declaration.
69244         * m4/mbssep.m4: New file.
69245         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69246         GNULIB_MBSSEP.
69247         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69248         * MODULES.html.sh (Internationalization functions): Add mbssep.
69249
69250 2007-02-05  Bruno Haible  <bruno@clisp.org>
69251
69252         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69253         Optimize search in case of 1 delimiter.
69254
69255 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69256
69257         * lib/acl.h: Include sys/types.h before sys/acl.h.
69258
69259 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69260
69261         Merge upstream fix for glibc bugzilla #3957:
69262
69263         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69264
69265         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69266         bit for RE_HAT_LISTS_NOT_NEWLINE.
69267         (build_charclass_op): Remove bogus comment.
69268
69269 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69270
69271         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69272
69273 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69274
69275         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69276         * lib/memmem.c [!defined _LIBC]: Include config.h.
69277
69278 2007-02-04  Bruno Haible  <bruno@clisp.org>
69279
69280         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69281         warning message.
69282
69283 2007-02-04  Bruno Haible  <bruno@clisp.org>
69284
69285         New module mbstok_r.
69286         * modules/mbstok_r: New file.
69287         * lib/mbstok_r.c: New file.
69288         * lib/string_.h (strtok_r): Change argument names to match the
69289         comments. Add a conditional link warning.
69290         (mbstok_r): New declaration.
69291         * m4/mbstok_r.m4: New file.
69292         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69293         GNULIB_MBSTOK_R.
69294         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69295         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69296
69297 2007-02-04  Bruno Haible  <bruno@clisp.org>
69298
69299         New module mbsspn.
69300         * modules/mbsspn: New file.
69301         * lib/mbsspn.c: New file.
69302         * lib/string_.h (strspn): Add a conditional link warning.
69303         (mbsspn): New declaration.
69304         * m4/mbsspn.m4: New file.
69305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69306         GNULIB_MBSSPN.
69307         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69308         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69309
69310 2007-02-04  Bruno Haible  <bruno@clisp.org>
69311
69312         New module mbspbrk.
69313         * modules/mbspbrk: New file.
69314         * lib/mbspbrk.c: New file.
69315         * lib/string_.h (strpbrk): Add a conditional link warning.
69316         (mbspbrk): New declaration.
69317         * m4/mbspbrk.m4: New file.
69318         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69319         GNULIB_MBSPBRK.
69320         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69321         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69322
69323 2007-02-04  Bruno Haible  <bruno@clisp.org>
69324
69325         New module mbscspn.
69326         * modules/mbscspn: New file.
69327         * lib/mbscspn.c: New file.
69328         * lib/string_.h (strcspn): Add a conditional link warning.
69329         (mbscspn): New declaration.
69330         * m4/mbscspn.m4: New file.
69331         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69332         GNULIB_MBSCSPN.
69333         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69334         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69335
69336 2007-02-04  Bruno Haible  <bruno@clisp.org>
69337
69338         New module mbscasestr, reduced goal of strcasestr.
69339         * modules/mbscasestr: New file.
69340         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69341         (mbscasestr): Renamed from strcasestr.
69342         * lib/strcasestr.c: Don't include mbuiter.h.
69343         (strcasestr): Remove support for multibyte locales.
69344         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69345         Change the conditional link warning.
69346         (mbscasestr): New declaration.
69347         * m4/mbscasestr.m4: New file.
69348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69349         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69350         REPLACE_STRCASESTR.
69351         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69353         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69354         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69355         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69356         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69357         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69358         (Depends-on): Remove mbuiter.
69359         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69360
69361 2007-02-04  Bruno Haible  <bruno@clisp.org>
69362
69363         Simplify handling of strncasecmp.
69364         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69365         the conditional link warning.
69366         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69367         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69368         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69369         * modules/strcase (configure.ac): Don't invoke
69370         gl_STRING_MODULE_INDICATOR.
69371         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69372
69373 2007-02-04  Bruno Haible  <bruno@clisp.org>
69374
69375         New module mbscasecmp, reduced goal of strcasecmp.
69376         * modules/mbscasecmp: New file.
69377         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69378         (mbscasecmp): Renamed from strcasecmp.
69379         * lib/strcasecmp.c: Don't include mbuiter.h.
69380         (strcasecmp): Remove support for multibyte locales.
69381         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69382         Change the conditional link warning.
69383         (mbscasecmp): New declaration.
69384         * m4/mbscasecmp.m4: New file.
69385         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69386         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69387         REPLACE_STRCASECMP.
69388         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69390         GNULIB_MBSCASECMP.
69391         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69392         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69393         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69394         (Depends-on): Remove mbuiter.
69395         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69396
69397 2007-02-04  Bruno Haible  <bruno@clisp.org>
69398
69399         New module mbsstr. Remove module strstr.
69400         * modules/mbsstr: New file.
69401         * modules/strstr: Remove file.
69402         * lib/mbsstr.c: Renamed from lib/strstr.c.
69403         (mbsstr): Renamed from strstr.
69404         * lib/string_.h (strstr): Remove declaration. Change the conditional
69405         link warning.
69406         (mbsstr): New declaration.
69407         * m4/mbsstr.m4: New file.
69408         * m4/strstr.m4: Remove file.
69409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69410         REPLACE_STRSTR.
69411         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69412         Don't initialize GNULIB_STRSTR.
69413         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69414         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69415         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69416         (Support for systems lacking ANSI C 89): Remove strstr.
69417
69418 2007-02-04  Bruno Haible  <bruno@clisp.org>
69419
69420         New module mbsrchr.
69421         * modules/mbsrchr: New file.
69422         * lib/mbsrchr.c: New file.
69423         * lib/string_.h (strrchr): Add a conditional link warning.
69424         (mbsrchr): New declaration.
69425         * m4/mbsrchr.m4: New file.
69426         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69427         GNULIB_MBSRCHR.
69428         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69429         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69430
69431 2007-02-04  Bruno Haible  <bruno@clisp.org>
69432
69433         New module mbschr.
69434         * modules/mbschr: New file.
69435         * lib/mbschr.c: New file.
69436         * lib/string_.h (strchr): Add a conditional link warning.
69437         (mbschr): New declaration.
69438         * m4/mbschr.m4: New file.
69439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69440         GNULIB_MBSCHR.
69441         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69442         * MODULES.html.sh (Internationalization functions): Add mbschr.
69443
69444 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69447
69448         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69449
69450 2007-02-04  Bruno Haible  <bruno@clisp.org>
69451
69452         New module description section 'configure.ac-early'.
69453         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69454         (func_get_autoconf_early_snippet): New function.
69455         (func_import, func_create_testdir): Use it. Remove special cases for
69456         modules 'extensions' and 'lock'.
69457         * modules/extensions (configure.ac-early): Require
69458         gl_USE_SYSTEM_EXTENSIONS.
69459         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69460
69461 2007-02-04  Bruno Haible  <bruno@clisp.org>
69462
69463         Make use of gcj-4.3's -fsource and -ftarget option.
69464         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69465         and if so try the options -fsource and -ftarget.
69466         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69467         source_version, ftarget_option, target_version arguments.
69468         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69469         (is_envjavac_oldgcj_14_14_usable): Renamed from
69470         is_envjavac_gcj_14_14_usable.
69471         (is_envjavac_oldgcj_14_13_usable): Renamed from
69472         is_envjavac_gcj_14_13_usable.
69473         (is_gcj_present): Update.
69474         (is_gcj_43, is_gcj43_usable): New functions.
69475         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69476         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69477         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69478         try the options -fsource and -ftarget.
69479
69480 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69483         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69484         larger value.
69485
69486 2007-02-03  Jim Meyering  <jim@meyering.net>
69487
69488         Give tools a better chance to allocate space for very large buffers.
69489         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69490
69491         Make pwd and readlink work also when run with an unreadable parent dir
69492         on systems with openat support.
69493         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69494         provided getcwd function, even when we have openat support.
69495         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69496
69497 2007-02-02  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69500         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69501         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69502         portability problems if one of these functions is only used on specific
69503         platforms.
69504         Reported by Paul Eggert.
69505
69506 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69507
69508         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69509         is causing more trouble than it's curing.
69510         * lib/regex_internal.h (__mempcpy): Remove.
69511         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69512         (and make the code a tad smaller to boot).
69513         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69514
69515 2007-02-02  Jim Meyering  <jim@meyering.net>
69516
69517         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69518         section, not in the Makefile.am: one.
69519
69520 2007-02-02  Eric Blake  <ebb9@byu.net>
69521
69522         * lib/strchrnul.c: Always include config.h first.
69523
69524         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69525         gnulib strstr is not necessary here.
69526
69527 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69528
69529         * m4/socklen.m4: Fix typo.
69530
69531 2007-02-02  Eric Blake  <ebb9@byu.net>
69532
69533         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69534         * modules/netinet_in (Makefile.am): Likewise.
69535
69536 2007-02-01  Bruno Haible  <bruno@clisp.org>
69537
69538         * lib/string_.h (GL_LINK_WARNING): New macro.
69539         (strcasecmp, strstr, strcasestr): If provided by the system,
69540         conditionally define as a macro that leads to a warning instead of to
69541         an error.
69542         (strncasecmp): Conditionally define as a macro that leads to a warning.
69543
69544 2007-02-01  Karl Berry  <karl@gnu.org>
69545
69546         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69547
69548 2007-02-01  Bruno Haible  <bruno@clisp.org>
69549
69550         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69551         renamings.
69552
69553 2007-02-01  Eric Blake  <ebb9@byu.net>
69554
69555         * modules/regex (Depends-on): Revert dependence on mempcpy.
69556         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69557         module's definition of mempcpy.
69558         Reported by Paul Eggert.
69559
69560 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69563         the symbol XYZ before redefining it.  This fixes a problem with
69564         programs that don't use XYZ, when compiled on systems that define
69565         XYZ to something else.
69566
69567 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69568
69569         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69570         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69571         writeable to group or other and (2) is intended to have a special
69572         mode bit that is set or cleared.  In such a case, the directory
69573         should be neither group- nor other-writeable until the special
69574         mode bits are right.
69575
69576 2007-01-31  Eric Blake  <ebb9@byu.net>
69577
69578         * modules/mountlist (Depends-on): Add strstr.
69579
69580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69581         bug.
69582         * modules/string (Makefile.am): Remove redundant replacement.
69583         * modules/regex (Depends-on): Add mempcpy.
69584
69585 2007-01-31  Bruno Haible  <bruno@clisp.org>
69586
69587         New module description field 'Link'.
69588         * gnulib-tool (func_usage): Document --extract-link-directive.
69589         (sed_extract_prog): Recognize 'Link' directive.
69590         (func_get_link_directive): New function.
69591         (func_import): Show summary of link directives.
69592         Handle --extract-link-directive option.
69593         * modules/acl (Link): New section.
69594         * modules/clock-time (Link): New section.
69595         * modules/euidaccess (Link): New section.
69596         * modules/gettext (Link): New section.
69597         * modules/iconv (Link): New section.
69598         * modules/lock (Link): New section.
69599         * modules/nanosleep (Link): New section.
69600         * modules/readline (Link): New section.
69601
69602 2007-01-27  Bruno Haible  <bruno@clisp.org>
69603
69604         Enforce the use of gnulib modules for unportable <string.h> functions.
69605         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69606         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69607         (gl_HEADER_STRING_H_BODY): Require it.
69608         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69609         the symbol XYZ to one that gives a link error.
69610         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69611         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69612         * modules/mempcpy (configure.ac): Likewise.
69613         * modules/memrchr (configure.ac): Likewise.
69614         * modules/stpcpy (configure.ac): Likewise.
69615         * modules/stpncpy (configure.ac): Likewise.
69616         * modules/strcase (configure.ac): Likewise.
69617         * modules/strcasestr (configure.ac): Likewise.
69618         * modules/strchrnul (configure.ac): Likewise.
69619         * modules/strdup (configure.ac): Likewise.
69620         * modules/strndup (configure.ac): Likewise.
69621         * modules/strnlen (configure.ac): Likewise.
69622         * modules/strpbrk (configure.ac): Likewise.
69623         * modules/strsep (configure.ac): Likewise.
69624         * modules/strstr (configure.ac): Likewise.
69625         * modules/strtok_r (configure.ac): Likewise.
69626
69627 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69628
69629         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69630
69631 2007-01-30  Jim Meyering  <jim@meyering.net>
69632
69633         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69634
69635 2007-01-29  Bruno Haible  <bruno@clisp.org>
69636
69637         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69638         * lib/execute.c: Likewise.
69639         * lib/pipe.c: Likewise.
69640         * lib/printf-args.h: Likewise.
69641         * lib/printf-args.c: Likewise.
69642         * lib/printf-parse.c: Likewise.
69643         * lib/vasnprintf.c: Likewise.
69644
69645 2007-01-29  Eric Blake  <ebb9@byu.net>
69646
69647         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69648         declaration.
69649
69650 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69651
69652         * lib/strptime.h (strptime): Use 'restrict' for args where
69653         POSIX requires this.
69654         * lib/strptime.c (strptime): Likewise.
69655         Change license notice from LGPL to GPL, since gnulib-tool will
69656         change this as needed.
69657         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69658         defined.
69659         Include "strptime.h" first, to check interface.
69660         Do not #undef _LIBC and _NL_CURRENT.
69661         Do not include <stdlib.h>; no longer needed.
69662         Include "time_r.h" and declare ptime_locale_status
69663         only if _LIBC is not defined.
69664         (__P): Remove unused macro.
69665         (match_string): Bring back glibc version, but use it only if _LIBC
69666         is defined.
69667         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69668         Remove unnecessary assertion and abort() call.
69669         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69670         * m4/strptime.m4: Fix serial number comment.
69671         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69672         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69673         (Depends-on): Add time_r.
69674
69675 2007-01-29  Bruno Haible  <bruno@clisp.org>
69676
69677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69678         strptime.
69679         * modules/strptime (Depends-on): Add stdbool.
69680         * lib/strptime.h: Include <time.h> always. Add comments.
69681
69682 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69683
69684         * modules/strptime: New file.
69685         * lib/strptime.h: New file.
69686         * lib/strptime.c: New file.
69687         * m4/strptime.m4: New file.
69688
69689 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69690
69691         * MODULES.html.sh: New module mpsort.
69692         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69693
69694         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69695         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69697         All uses changed.
69698         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69699         All uses changed.
69700         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69701         to _Restrict_.
69702         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69703         the parameter matches the prototype.
69704
69705 2007-01-28  Jim Meyering  <jim@meyering.net>
69706
69707         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69708         sys/time.h here, reverting that part of the previous patch:
69709         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69710
69711 2007-01-28  Bruno Haible  <bruno@clisp.org>
69712
69713         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69714         value of $(SYS_TIME_H).
69715         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69716         remove it conditionally, too. [added by Jim Meyering]
69717         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69718         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69719         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69720         GETTIMEOFDAY_REPLACEMENT to 1.
69721
69722 2007-01-28  Bruno Haible  <bruno@clisp.org>
69723
69724         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69725         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69726         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69727         Set UNISTD_H instead of UNISTD_H2.
69728         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69729
69730 2007-01-28  Bruno Haible  <bruno@clisp.org>
69731
69732         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69733         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69734
69735 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69736
69737         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69738         (func_create_testdir): Ensure C locale for `grep' and `tr'
69739         character ranges.
69740         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69741         ACLOCAL_AMFLAGS parsing state machine.
69742
69743 2007-01-27  Bruno Haible  <bruno@clisp.org>
69744
69745         * modules/unistr/base: Update.
69746
69747 2007-01-27  Bruno Haible  <bruno@clisp.org>
69748
69749         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69750         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69751         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69752         modules/unistr/u32-mbtouc.
69753         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69754         * lib/unistr.h: Update.
69755         * lib/linebreak.c: Update.
69756         * modules/unistr/u32-mbtouc: Renamed from
69757         modules/unistr/u32-mbtouc-safe.
69758         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69759         * lib/unistr.h: Update.
69760         * lib/unistr/u32-to-u8.c: Update.
69761         * lib/unistr/u32-to-u16.c: Update.
69762
69763 2007-01-27  Bruno Haible  <bruno@clisp.org>
69764
69765         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69766         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69767         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69768         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69769         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69770         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69771         modules/unistr/u16-mbtouc.
69772         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69773         * lib/unistr.h: Update.
69774         * lib/linebreak.c: Update.
69775         * modules/linebreak: Update.
69776         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69777         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69778         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69779         * modules/unistr/u16-mbtouc: Renamed from
69780         modules/unistr/u16-mbtouc-safe.
69781         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69782         * lib/unistr.h: Update.
69783         * lib/unistr/u16-to-u8.c: Update.
69784         * modules/unistr/u16-to-u8: Update.
69785         * lib/unistr/u16-to-u32.c: Update.
69786         * modules/unistr/u16-to-u32: Update.
69787
69788 2007-01-27  Bruno Haible  <bruno@clisp.org>
69789
69790         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69791         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69792         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69793         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69794         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69795         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69796         modules/unistr/u8-mbtouc.
69797         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69798         * lib/unistr.h: Update.
69799         * lib/striconveh.c: Update.
69800         * modules/striconveh: Update.
69801         * lib/linebreak.c: Update.
69802         * modules/linebreak: Update.
69803         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69804         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69805         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69806         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69807         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69808         * lib/unistr.h: Update.
69809         * lib/striconveh.c: Update.
69810         * modules/striconveh: Update.
69811         * lib/unistr/u8-to-u16.c: Update.
69812         * modules/unistr/u8-to-u16: Update.
69813         * lib/unistr/u8-to-u32.c: Update.
69814         * modules/unistr/u8-to-u32: Update.
69815
69816 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69817
69818         Sync from Libtool.
69819         * lib/argz.c: Do not include strings.h nor memory.h, include
69820         string.h unconditionally.  Patch by Simon Josefsson.
69821
69822 2007-01-27  Bruno Haible  <bruno@clisp.org>
69823
69824         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69825         from gl_HEADER_STRING_H_BODY.
69826         (gl_HEADER_STRING_H_BODY): Require it.
69827         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69828         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69829         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69830         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69831         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69832         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69834         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69835         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69836         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69837         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69838         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69839         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69840         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69842
69843 2007-01-27  Bruno Haible  <bruno@clisp.org>
69844
69845         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69846         check_PROGRAMS into noinst_PROGRAMS.
69847         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69848         check_PROGRAMS in this case.
69849         (func_import): Set for_test to false.
69850         (func_create_testdir): Set for_test to true.
69851
69852 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69853             Bruno Haible  <bruno@clisp.org>
69854
69855         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69856         (Depends-on): Add string.
69857         (Includes): Use <string.h> instead of strcasestr.h.
69858         * modules/string (Makefile.am): Also substitute the value of
69859         REPLACE_STRCASESTR.
69860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69861         assume strcasestr is declared in <string.h> not <strings.h>. Also
69862         set REPLACE_STRCASESTR.
69863         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69864         REPLACE_STRCASESTR.
69865         * lib/strcasestr.h: Remove file.
69866         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69867         * lib/string_.h (strcasestr): New declaration.
69868
69869 2007-01-27  Bruno Haible  <bruno@clisp.org>
69870
69871         * lib/string_.h: Use 'extern'.
69872
69873 2007-01-27  Jim Meyering  <jim@meyering.net>
69874
69875         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69876         of set-but-not-used local, "q".
69877
69878         * lib/mempcpy.c: Include <config.h> before <string.h>.
69879         This fixes a compilation error on HP-UX, due to the system's
69880         "restrict"-using mempcpy prototype.
69881
69882 2007-01-26  Bruno Haible  <bruno@clisp.org>
69883
69884         Small optimization.
69885         * lib/javacomp.c: Include c-strstr.h.
69886          (is_envjavac_gcj): Use c_strstr instead of strstr.
69887         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69888
69889 2007-01-26  Bruno Haible  <bruno@clisp.org>
69890
69891         * MODULES.html.sh (Unicode string functions): Add the new modules.
69892
69893         * modules/uniconv/u32-strconv-to-locale: New file.
69894         * lib/uniconv/u32-strconv-to-locale.c: New file.
69895
69896         * modules/uniconv/u16-strconv-to-locale: New file.
69897         * lib/uniconv/u16-strconv-to-locale.c: New file.
69898
69899         * modules/uniconv/u8-strconv-to-locale: New file.
69900         * lib/uniconv/u8-strconv-to-locale.c: New file.
69901
69902         * modules/uniconv/u32-strconv-from-locale: New file.
69903         * lib/uniconv/u32-strconv-from-locale.c: New file.
69904
69905         * modules/uniconv/u16-strconv-from-locale: New file.
69906         * lib/uniconv/u16-strconv-from-locale.c: New file.
69907
69908         * modules/uniconv/u8-strconv-from-locale: New file.
69909         * lib/uniconv/u8-strconv-from-locale.c: New file.
69910
69911         * modules/uniconv/u32-strconv-to-enc: New file.
69912         * lib/uniconv/u32-strconv-to-enc.c: New file.
69913         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69914         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69915
69916         * modules/uniconv/u16-strconv-to-enc: New file.
69917         * lib/uniconv/u16-strconv-to-enc.c: New file.
69918         * lib/uniconv/u-strconv-to-enc.h: New file.
69919         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69920         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69921
69922         * modules/uniconv/u8-strconv-to-enc: New file.
69923         * lib/uniconv/u8-strconv-to-enc.c: New file.
69924         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69925         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69926
69927         * modules/uniconv/u32-strconv-from-enc: New file.
69928         * lib/uniconv/u32-strconv-from-enc.c: New file.
69929         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69930         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69931
69932         * modules/uniconv/u16-strconv-from-enc: New file.
69933         * lib/uniconv/u16-strconv-from-enc.c: New file.
69934         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69935         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69936
69937         * modules/uniconv/u8-strconv-from-enc: New file.
69938         * lib/uniconv/u8-strconv-from-enc.c: New file.
69939         * lib/uniconv/u-strconv-from-enc.h: New file.
69940         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69941         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69942
69943         * modules/uniconv/u32-conv-from-enc: New file.
69944         * lib/uniconv/u32-conv-from-enc.c: New file.
69945         * modules/uniconv/u32-conv-from-enc-tests: New file.
69946         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69947
69948         * modules/uniconv/u16-conv-from-enc: New file.
69949         * lib/uniconv/u16-conv-from-enc.c: New file.
69950         * lib/uniconv/u-conv-from-enc.h: New file.
69951         * modules/uniconv/u16-conv-from-enc-tests: New file.
69952         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69953
69954         * modules/uniconv/u8-conv-from-enc: New file.
69955         * lib/uniconv/u8-conv-from-enc.c: New file.
69956         * modules/uniconv/u8-conv-from-enc-tests: New file.
69957         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69958
69959         * modules/uniconv/base: New file.
69960         * lib/uniconv.h: New file.
69961
69962 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69963
69964         * doc/gnulib-tool.texi (Initial import): Update to match current
69965         behavior with strdup module.
69966         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69967         * lib/memmem.h: Remove; all uses removed.  This is now done
69968         by <string.h>.
69969         * lib/mempcpy.h: Likewise.
69970         * lib/memrchr.h: Likewise.
69971         * lib/stpcpy.h: Likewise.
69972         * lib/stpncpy.h: Likewise.
69973         * lib/strcase.h: Likewise.
69974         * lib/strchrnul.h: Likewise.
69975         * lib/strdup.h: Likewise.
69976         * lib/strndup.h: Likewise.
69977         * lib/strnlen.h: Likewise.
69978         * lib/strpbrk.h: Likewise.
69979         * lib/strsep.h: Likewise.
69980         * lib/strstr.h: Likewise.
69981         * lib/strtok_r.h: Likewise.
69982         * lib/string_.h: New file.
69983         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69984         Rely on <string.h> instead.
69985         * lib/canon-host.c: Likewise.
69986         * lib/chdir-long.c: Likewise.
69987         * lib/concatpath.c: Likewise.
69988         * lib/exclude.c: Likewise.
69989         * lib/fchdir.c: Likewise.
69990         * lib/getaddrinfo.c: Likewise.
69991         * lib/getcwd.c: Likewise.
69992         * lib/getsubopt.c: Likewise.
69993         * lib/glob.c: Likewise.
69994         * lib/hard-locale.c: Likewise.
69995         * lib/iconvme.c: Likewise.
69996         * lib/javacomp.c: Likewise.
69997         * lib/mempcpy.c: Likewise.
69998         * lib/memrchr.c: Likewise.
69999         * lib/regex_internal.h: Likewise.
70000         * lib/stpncpy.c: Likewise.
70001         * lib/strcasecmp.c: Likewise.
70002         * lib/strchrnul.c: Likewise.
70003         * lib/strdup.c: Likewise.
70004         * lib/striconv.c: Likewise.
70005         * lib/striconveh.c: Likewise.
70006         * lib/striconveha.c: Likewise.
70007         * lib/strncasecmp.c: Likewise.
70008         * lib/strndup.c: Likewise.
70009         * lib/strnlen.c: Likewise.
70010         * lib/strsep.c: Likewise.
70011         * lib/strstr.c: Likewise.
70012         * lib/strtok_r.c: Likewise.
70013         * lib/userspec.c: Likewise.
70014         * lib/w32spawn.h: Likewise.
70015         * lib/xstrndup.c: Likewise.
70016         * lib/mountlist.c (strstr): Remove decl.
70017         * m4/string_h.m4: New file.
70018         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70019         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70020         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70021         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70022         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70023         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70024         Set REPLACE_STRCASECMP if necessary.
70025         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70026         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70027         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70028         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70029         HAVE_DECL_STRDUP if necessary.
70030         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70031         since gl_FUNC_STRNDUP does that now.
70032         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70033         Check for decl here...
70034         (gl_PREREQ_STRNLEN): ... not here.
70035         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70036         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70037         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70038         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70039         necessary.
70040         * modules/string: New file.
70041         * modules/memmem (Files): Remove special-purpose include file.
70042         (Depends-on): Add string.
70043         (Include): Include <string.h>, not the removed file.
70044         * modules/mempcpy: Likewise.
70045         * modules/memrchr: Likewise.
70046         * modules/stpcpy: Likewise.
70047         * modules/stpncpy: Likewise.
70048         * modules/strcase: Likewise.
70049         * modules/strchrnul: Likewise.
70050         * modules/strdup: Likewise.
70051         * modules/strndup: Likewise.
70052         * modules/strnlen: Likewise.
70053         * modules/strpbrk: Likewise.
70054         * modules/strsep: Likewise.
70055         * modules/strstr: Likewise.
70056         * modules/strtok_r: Likewise.
70057         * tests/test-dirname.c: Don't include "strdup.h", since
70058         <string.h> now suffices.
70059         * tests/test-memmem.c: Don't include "memmem.h", since
70060         <string.h> now suffices.
70061
70062 2007-01-25  Bruno Haible  <bruno@clisp.org>
70063
70064         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70065         *resultp is 0.
70066
70067         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70068         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70069         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70070         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70071
70072         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70073         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70074         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70075         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70076         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70077         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70078
70079 2007-01-24  Bruno Haible  <bruno@clisp.org>
70080
70081         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70082         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70083         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70084         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70085         gl_FUNC_FTS_CORE.
70086         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70087         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70088         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70089         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70090         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70091         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70092         gl_FUNC_FCHOWNAT.
70093         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70094         gl_FUNC_STRFTIME.
70095         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70096         Reported by Ralf Wildenhues.
70097
70098 2007-01-24  Bruno Haible  <bruno@clisp.org>
70099
70100         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70101         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70102         gl_GETADDRINFO.
70103         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70104         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70105         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70106
70107 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70108
70109         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70110         Don't use 'exit'; just return from 'main'.
70111         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70112
70113         * lib/fnmatch_.h: Readjust white space and comments to match
70114         glibc, to avoid spurious diffs.
70115
70116 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70117
70118         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70119         2004-12-01 change by Jakub Jelinek, since this code won't compile
70120         if !LIBC.  Problem reported by Bob Proulx.
70121
70122 2007-01-23  Bruno Haible  <bruno@clisp.org>
70123
70124         * lib/striconveh.c: Include c-strcaseeq.h.
70125         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70126         * modules/striconveh (Depends-on): Add c-strcaseeq.
70127
70128 2007-01-23  Bruno Haible  <bruno@clisp.org>
70129
70130         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70131
70132         * modules/c-strcaseeq: New file.
70133         * lib/c-strcaseeq.h: New file.
70134
70135         * modules/streq: New file.
70136         * lib/streq.h: New file.
70137
70138 2007-01-23  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/striconveha-tests: New file.
70141         * tests/test-striconveha.c: New file.
70142
70143         * lib/striconveha.h: Include <stdbool.h>.
70144         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70145         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70146         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70147         (mem_iconveha): New function.
70148         (str_iconveha_notranslit): Renamed from str_iconveha.
70149         (str_iconveha): New function.
70150         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70151         c-strcase.
70152
70153 2007-01-23  Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70156         encodings without forgiving before trying any encoding with handler.
70157         (str_iconveha): Try all encodings without forgiving before trying any
70158         encoding with handler.
70159
70160 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70161
70162         Import the following changes from libc.
70163
70164         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70165
70166         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70167
70168         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70169
70170         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70171         normal_bracket label.
70172
70173         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70174
70175         [BZ #361]
70176         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70177         to normal_bracket after fetching the next character.
70178
70179 2007-01-22  Bruno Haible  <bruno@clisp.org>
70180
70181         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70182         argument.
70183         * lib/striconveh.c (iconv_carefully_1): New function.
70184         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70185         argument.
70186         (str_cd_iconveh): Update.
70187         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70188         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70189         * tests/test-striconveh.c (MAGIC): New macro.
70190         (new_offsets): New function.
70191         (main): Test call with and without offsets.
70192
70193 2007-01-22  Bruno Haible  <bruno@clisp.org>
70194
70195         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70196         * modules/sys_select (Makefile.am): Likewise.
70197         * modules/sys_socket (Makefile.am): Likewise.
70198         * modules/sys_time (Makefile.am): Likewise.
70199
70200 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * modules/gettimeofday (License): Change from GPL to LGPL, since
70203         gettimeofday is a library function.
70204
70205 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70206
70207         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70208
70209 2007-01-21  Bruno Haible  <bruno@clisp.org>
70210
70211         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70212
70213 2007-01-21  Bruno Haible  <bruno@clisp.org>
70214
70215         * modules/striconveha: New file.
70216         * lib/striconveha.h: New file.
70217         * lib/striconveha.c: New file.
70218         * MODULES.html.sh (Internationalization functions): Add striconveha.
70219         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70220         string.
70221         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70222
70223 2007-01-21  Bruno Haible  <bruno@clisp.org>
70224
70225         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70226         * lib/striconveh.c (str_iconveh): Likewise.
70227
70228 2007-01-21  Bruno Haible  <bruno@clisp.org>
70229
70230         * lib/striconveh.h (mem_iconveh): New declaration.
70231         * lib/striconveh.c (mem_iconveh): New function.
70232         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70233
70234 2007-01-21  Bruno Haible  <bruno@clisp.org>
70235
70236         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70237
70238         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70239         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70240         original result buffer.
70241         (str_cd_iconveh): Update.
70242         * tests/test-striconveh.c (main): Update.
70243
70244         * lib/striconv.h (mem_cd_iconv): Change specification.
70245         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70246         result buffer.
70247         (str_cd_iconv): Update.
70248         * tests/test-striconv.c (main): Update.
70249
70250 2007-01-21  Bruno Haible  <bruno@clisp.org>
70251
70252         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70253
70254 2007-01-20  Jim Meyering  <jim@meyering.net>
70255
70256         * lib/userspec.c (parse_with_separator): If a user or group string
70257         starts with "+", skip the corresponding name-to-ID look-up, since
70258         such a look-up must fail: user and group names may not include "+".
70259
70260 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70263         since we now assume the sys_time module.
70264         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70265         check for sys/time.h; no longer needed.
70266         * modules/poll (Depends-on): Depend on sys_time.
70267
70268 2007-01-18  Bruno Haible  <bruno@clisp.org>
70269
70270         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70271         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70272
70273         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70274         gettimeofday.
70275
70276         * tests/test-gettimeofday.c: Include <time.h>.
70277         (dummy): Remove variable.
70278
70279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70280         gl_HEADER_SYS_TIME_H.
70281         (gl_HEADER_SYS_TIME_H): New macro.
70282
70283         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70284         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70285         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70286         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70287         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70288         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70289         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70290         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70291         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70292         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70293         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70294
70295         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70296         last change; it caused a compilation error when cross-compiling to
70297         Cygwin.
70298
70299 2007-01-18  Jim Meyering  <jim@meyering.net>
70300
70301         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70302         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70303         than the race-prone "test -d sys || mkdir sys".
70304         (configure.ac): Use AC_PROG_MKDIR_P.
70305         * modules/sys_select: Likewise.
70306         * modules/sys_socket: Likewise.
70307         * modules/sys_time: Likewise.
70308
70309 2007-01-18  Eric Blake  <ebb9@byu.net>
70310
70311         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70312         replace gettimeofday.
70313         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70314         name, to avoid infinite recursion.
70315
70316 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70317
70318         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70319         module sys_time.
70320         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70321         assume timespec.h defines struct timeval.
70322         * lib/settime.c: Likewise.
70323         * lib/utimens.c: Likewise.
70324         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70325         since we now assume the gettimeofday module.
70326         * lib/tempname.c (__gen_tempname): Likewise.
70327         * lib/gettimeofday.h: Remove.
70328         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70329         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70330         Include <time.h>, for 'time()'.
70331         (localtime_buffer_addr): Also use this workaround if
70332         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70333         to simplify the uses.  All uses changed.
70334         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70335         that #undef is inside {}, and 'const' follows type name consistently.
70336         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70337         (gettimeofday): Do not use the maximum possible value for
70338         tv->tv_usec, since that might break usages other than ls.c.
70339         Instead, we'll leave ls.c alone.  This undoes today's patch
70340         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70341         we've never observed the problem but might as well keep the
70342         canary.
70343         * lib/nanosleep.c: Include timespec.h first, for interface check.
70344         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70345         now assume the sys_time module.
70346         * lib/tempname.c: Likewise.
70347         * lib/timespec.h: Likewise.
70348         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70349         needed.
70350         * lib/strftime.c: Likewise.
70351         * lib/timespec.h: Likewise.
70352         * lib/posixtm.c: Include posixtm.h first, for interface check.
70353         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70354         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70355         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70356         * lib/sys_time_.h: New file.
70357         * lib/timespec.h (struct timespec): Use long int, not long.
70358         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70359         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70360         Remove obsolescent call to AC_HEADER_TIME.
70361         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70363         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70364         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70365         Likewise.
70366         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70367         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70368         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70369         into the sys_time module.  Check for gettimeofday just once.
70370         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70371         for gettimeofday signature to just check the signature.  Merely
70372         compile it, since linking doesn't test signature.  Improve test for
70373         whether gettimeofday.o is actually needed.
70374         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70375         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70376         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70377         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70378         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70379         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70380         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70381         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70382         than worrying about sys/time.h.
70383         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70384         Don't bother worrying about TIME_WITH_SYS_TIME.
70385         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70386         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70387         * m4/sys_time_h.m4: New file.
70388         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70389         Don't include sys/time.h.  Return from main rather than exiting.
70390         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70391         all uses changed.
70392         * modules/gethrxtime (Depends-on): Add sys_time.
70393         * modules/gettime (Depends-on): Likewise.
70394         * modules/gettimeofday (Depends-on): Likewise.
70395         * modules/nanosleep (Depends-on): Likewise.
70396         * modules/settime (Depends-on): Likewise.
70397         * modules/tempname (Depends-on): Likewise.
70398         * modules/utimens (Depends-on): Likewise.
70399         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70400         (Include): Change back to <sys/time.h>.
70401         (Maintainer): Add self.
70402         * modules/sys_time: New file.
70403         * modules/tempname (Depends-on): Add gettimeofday.
70404         * tests/test-gettimeofday.c: Include <sys/time.h>
70405         rather than gettimeofday.h.
70406
70407 2007-01-17  Bruno Haible  <bruno@clisp.org>
70408
70409         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70410         the license default to GPL.
70411         (func_create_testdir): Don't complain if a module is LGPL and its
70412         tests module depends on GPLed modules.
70413
70414 2007-01-17  Bruno Haible  <bruno@clisp.org>
70415
70416         * lib/gettimeofday.c (gettimeofday): Add code for the case
70417         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70418         maximum possible value for tv->tv_usec, rather than the minimum one.
70419
70420 2005-10-08  Martin Lambers  <marlam@marlam.de>
70421 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70422 2007-01-16  Bruno Haible  <bruno@clisp.org>
70423
70424         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70425         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70426         gl_FUNC_GETTIMEOFDAY.
70427         (Include): Add gettimeofday.h.
70428         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70429         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70430         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70431         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70432         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70433         * lib/gettimeofday.h: New file.
70434         * lib/gettimeofday.c: Include <sys/timeb.h>.
70435         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70436         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70437         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70438         fall back on time().
70439
70440         * tests/test-gettimeofday.c: New file.
70441         * modules/gettimeofday-tests: New file.
70442
70443 2007-01-16  Eric Blake  <ebb9@byu.net>
70444
70445         * modules/fnmatch (Depends-on): Depend on wchar.
70446         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70447         * m4/fnmatch.m4: Likewise.
70448         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70449         * m4/mbchar.m4: Likewise.
70450         * modules/mbswidth (Depends-on): Depend on wchar.
70451         * lib/mbswidth.c: Assume <wchar.h>.
70452         * m4/mbswidth.m4: Likewise.
70453         * modules/quotearg (Depends-on): Depend on wchar.
70454         * lib/quotearg.c: Assume <wchar.h>.
70455         * m4/quotearg.m4: Likewise.
70456         * modules/regex (Depends-on): Depend on wchar.
70457         * lib/regex_internal.h: Assume <wchar.h>.
70458         * m4/regex.m4: Likewise.
70459         * modules/stdint (Depends-on): Depend on wchar.
70460         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70461         * m4/stdint.m4: Likewise.
70462         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70463         * modules/strftime (Depends-on): Depend on wchar.
70464         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70465         * modules/strtol (Depends-on): Depend on wchar.
70466         * lib/strtol.c: Assume <wchar.h>.
70467         * modules/wcwidth (Depends-on): Depend on wchar.
70468         * lib/wcwidth.h: Assume <wchar.h>.
70469         * m4/wcwidth.m4: Likewise.
70470
70471 2007-01-16  Bruno Haible  <bruno@clisp.org>
70472
70473         * modules/csharpexec-script: New, created from...
70474         * modules/csharpexec: ... this.
70475
70476 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70477
70478         * modules/javaexec-script: New, created from...
70479         * modules/javaexec: ... this.
70480
70481 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70482
70483         * modules/poll (Dependencies): Add sys_select.
70484
70485 2007-01-15  Jim Meyering  <jim@meyering.net>
70486
70487         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70488         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70489         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70490         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70491
70492 2007-01-15  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/striconveh: New file.
70495         * lib/striconveh.h: New file.
70496         * lib/striconveh.c: New file.
70497         * MODULES.html.sh (Internationalization functions): Add striconveh.
70498
70499         * modules/striconveh-tests: New file.
70500         * tests/test-striconveh.c: New file.
70501
70502 2007-01-15  Bruno Haible  <bruno@clisp.org>
70503
70504         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70505         not from GNU libiconv or GNU libc.
70506
70507 2007-01-15  Bruno Haible  <bruno@clisp.org>
70508
70509         * doc/gnulib-intro.texi (Copyright): Explain the different license
70510         terms for module descriptions, autoconf macros, tests, documentation.
70511
70512 2007-01-14  Bruno Haible  <bruno@clisp.org>
70513
70514         * modules/striconv-tests: New file.
70515         * tests/test-striconv.c: New file.
70516
70517 2007-01-14  Bruno Haible  <bruno@clisp.org>
70518
70519         * modules/iconv-tests: New file.
70520         * tests/test-iconv.c: New file.
70521
70522 2007-01-14  Bruno Haible  <bruno@clisp.org>
70523
70524         * gnulib-tool (func_get_license): For test modules, use the license of
70525         the main module.
70526
70527 2007-01-14  Bruno Haible  <bruno@clisp.org>
70528
70529         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70530         if iconv is found to exist.
70531
70532 2007-01-14  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/c-ctype-tests: New file.
70535         * tests/test-c-ctype.c: New file.
70536
70537 2007-01-14  Bruno Haible  <bruno@clisp.org>
70538
70539         * modules/binary-io-tests: New file.
70540         * tests/test-binary-io.sh: New file.
70541         * tests/test-binary-io.c: New file.
70542
70543 2007-01-14  Bruno Haible  <bruno@clisp.org>
70544
70545         * modules/array-oset-tests: New file.
70546         * tests/test-array_oset.c: New file.
70547
70548 2007-01-14  Bruno Haible  <bruno@clisp.org>
70549
70550         * modules/array-list-tests: New file.
70551         * tests/test-array_list.c: New file.
70552
70553 2007-01-14  Bruno Haible  <bruno@clisp.org>
70554
70555         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70556         and make.
70557         Reported by Simon Josefsson in
70558         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70559
70560 2007-01-14  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/allocsa-tests: New file.
70563         * tests/test-allocsa.c: New file.
70564
70565 2007-01-14  Bruno Haible  <bruno@clisp.org>
70566
70567         * modules/fchdir (Depends-on): Add absolute-header.
70568         * modules/unistd (Depends-on): Likewise.
70569
70570 2006-12-30  Bruno Haible  <bruno@clisp.org>
70571
70572         * modules/fchdir: New file.
70573         * modules/unistd (Files): Add lib/unistd_.h.
70574         (Makefile.am): Generate unistd.h from unistd_.h.
70575         * lib/fchdir.c: New file.
70576         * lib/dirent_.h: New file.
70577         * lib/unistd_.h: New file.
70578         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70579         * m4/fchdir.m4: New file.
70580         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70581         (gl_HEADER_UNISTD): Invoke it.
70582         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70583         function.
70584         * lib/backupfile.c (opendir, closedir): Undefine.
70585         * lib/chown.c (open, close): Undefine.
70586         * lib/clean-temp.c (open, close): Undefine.
70587         * lib/copy-file.c (open, close): Undefine.
70588         * lib/execute.c (open, close): Undefine.
70589         * lib/fsusage.c (open, close): Undefine.
70590         * lib/gc-gnulib.c (open, close): Undefine.
70591         * lib/getcwd.c (opendir, closedir): Undefine.
70592         * lib/glob.c (opendir, closedir): Undefine.
70593         * lib/javacomp.c (open, close): Undefine.
70594         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70595         * lib/openat-proc.c (open, close): Undefine.
70596         * lib/pagealign_alloc.c (open, close): Undefine.
70597         * lib/pipe.c (open, close): Undefine.
70598         * lib/progreloc.c (open, close): Undefine.
70599         * lib/savedir.c (opendir, closedir): Undefine.
70600         * lib/utime.c (open, close): Undefine.
70601         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70602
70603 2007-01-10  Bruno Haible  <bruno@clisp.org>
70604
70605         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70606
70607 2007-01-12  Eric Blake  <ebb9@byu.net>
70608
70609         Provide a robust <wchar.h>.  Further simplifications are now
70610         possible in other modules, but not included here.
70611         * modules/wchar: New module.
70612         * m4/wchar.m4: New file.
70613         * lib/wchar_.h: Likewise.
70614         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70615         of the new module.
70616         * MODULES.html.sh (Extended multibyte and wide character utilities):
70617         New section.
70618
70619 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70620
70621         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70622         to a reasonable default for memory allocation.
70623         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70624         file system that reports garbage st_size values for symlinks.
70625         Problem reported by Liyang Hu.
70626
70627 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70628
70629         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70630         Emacs .#* auto-save files).
70631
70632 2007-01-11  Bruno Haible  <bruno@clisp.org>
70633
70634         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70635         directory.
70636
70637 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         Use @...@ consistently in lib/wctype_.h.
70640         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70641         on it being set to 1 or 0.
70642         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70643         go back to AC_SUBSTing it.
70644         * modules/wctype (Makefile.am): Undo previous change.
70645
70646 2007-01-10  Eric Blake  <ebb9@byu.net>
70647
70648         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70649         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70650         * modules/wctype (Makefile.am): Likewise.
70651         Reported by Chris McGuire.
70652
70653 2007-01-10  Jim Meyering  <jim@meyering.net>
70654
70655         fts.c: a small readability/maintainability improvement
70656         * lib/fts.c (fts_read): Make this code slightly more readable and
70657         maintainable by hoisting the "sp->fts_cur = p" assignments to
70658         immediately follow the statements that set P.  Derived from
70659         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70660
70661 2007-01-10  Eric Blake  <ebb9@byu.net>
70662
70663         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70664         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70666         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70667         Reported by Chris McGuire.
70668
70669 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70670
70671         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70672         in sed script.
70673
70674 2007-01-09  Bruno Haible  <bruno@clisp.org>
70675
70676         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70677         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70678         variables.
70679         (func_module): Use them.
70680
70681 2007-01-09  Bruno Haible  <bruno@clisp.org>
70682
70683         * modules/unistr/base: New file.
70684         * lib/unistr.h: New file.
70685
70686         * modules/unistr/u8-to-u16: New file.
70687         * lib/unistr/u8-to-u16.c: New file.
70688
70689         * modules/unistr/u8-to-u32: New file.
70690         * lib/unistr/u8-to-u32.c: New file.
70691
70692         * modules/unistr/u16-to-u8: New file.
70693         * lib/unistr/u16-to-u8.c: New file.
70694
70695         * modules/unistr/u16-to-u32: New file.
70696         * lib/unistr/u16-to-u32.c: New file.
70697
70698         * modules/unistr/u32-to-u8: New file.
70699         * lib/unistr/u32-to-u8.c: New file.
70700
70701         * modules/unistr/u32-to-u16: New file.
70702         * lib/unistr/u32-to-u16.c: New file.
70703
70704         * modules/unistr/u8-check: New file.
70705         * modules/unistr/u16-check: New file.
70706         * modules/unistr/u32-check: New file.
70707         * lib/unistr/u8-check.c: New file.
70708         * lib/unistr/u16-check.c: New file.
70709         * lib/unistr/u32-check.c: New file.
70710
70711         * modules/unistr/u8-chr: New file.
70712         * modules/unistr/u16-chr: New file.
70713         * modules/unistr/u32-chr: New file.
70714         * lib/unistr/u8-chr.c: New file.
70715         * lib/unistr/u16-chr.c: New file.
70716         * lib/unistr/u32-chr.c: New file.
70717
70718         * modules/unistr/u8-cmp: New file.
70719         * modules/unistr/u16-cmp: New file.
70720         * modules/unistr/u32-cmp: New file.
70721         * lib/unistr/u8-cmp.c: New file.
70722         * lib/unistr/u16-cmp.c: New file.
70723         * lib/unistr/u32-cmp.c: New file.
70724
70725         * modules/unistr/u8-cpy: New file.
70726         * modules/unistr/u16-cpy: New file.
70727         * modules/unistr/u32-cpy: New file.
70728         * lib/unistr/u8-cpy.c: New file.
70729         * lib/unistr/u16-cpy.c: New file.
70730         * lib/unistr/u32-cpy.c: New file.
70731         * lib/unistr/u-cpy.h: New file.
70732
70733         * modules/unistr/u8-cpy-alloc: New file.
70734         * modules/unistr/u16-cpy-alloc: New file.
70735         * modules/unistr/u32-cpy-alloc: New file.
70736         * lib/unistr/u8-cpy-alloc.c: New file.
70737         * lib/unistr/u16-cpy-alloc.c: New file.
70738         * lib/unistr/u32-cpy-alloc.c: New file.
70739         * lib/unistr/u-cpy-alloc.h: New file.
70740
70741         * modules/unistr/u8-endswith: New file.
70742         * modules/unistr/u16-endswith: New file.
70743         * modules/unistr/u32-endswith: New file.
70744         * lib/unistr/u8-endswith.c: New file.
70745         * lib/unistr/u16-endswith.c: New file.
70746         * lib/unistr/u32-endswith.c: New file.
70747         * lib/unistr/u-endswith.h: New file.
70748
70749         * modules/unistr/u8-mblen: New file.
70750         * modules/unistr/u16-mblen: New file.
70751         * modules/unistr/u32-mblen: New file.
70752         * lib/unistr/u8-mblen.c: New file.
70753         * lib/unistr/u16-mblen.c: New file.
70754         * lib/unistr/u32-mblen.c: New file.
70755
70756         * modules/unistr/u8-mbtouc: New file.
70757         * modules/unistr/u16-mbtouc: New file.
70758         * modules/unistr/u32-mbtouc: New file.
70759         * lib/unistr/u8-mbtouc.c: New file.
70760         * lib/unistr/u16-mbtouc.c: New file.
70761         * lib/unistr/u32-mbtouc.c: New file.
70762
70763         * modules/unistr/u8-mbtouc-safe: New file.
70764         * modules/unistr/u16-mbtouc-safe: New file.
70765         * modules/unistr/u32-mbtouc-safe: New file.
70766         * lib/unistr/u8-mbtouc-safe.c: New file.
70767         * lib/unistr/u16-mbtouc-safe.c: New file.
70768         * lib/unistr/u32-mbtouc-safe.c: New file.
70769
70770         * modules/unistr/u8-move: New file.
70771         * modules/unistr/u16-move: New file.
70772         * modules/unistr/u32-move: New file.
70773         * lib/unistr/u8-move.c: New file.
70774         * lib/unistr/u16-move.c: New file.
70775         * lib/unistr/u32-move.c: New file.
70776         * lib/unistr/u-move.h: New file.
70777
70778         * modules/unistr/u8-next: New file.
70779         * modules/unistr/u16-next: New file.
70780         * modules/unistr/u32-next: New file.
70781         * lib/unistr/u8-next.c: New file.
70782         * lib/unistr/u16-next.c: New file.
70783         * lib/unistr/u32-next.c: New file.
70784
70785         * modules/unistr/u8-prev: New file.
70786         * modules/unistr/u16-prev: New file.
70787         * modules/unistr/u32-prev: New file.
70788         * lib/unistr/u8-prev.c: New file.
70789         * lib/unistr/u16-prev.c: New file.
70790         * lib/unistr/u32-prev.c: New file.
70791
70792         * modules/unistr/u8-set: New file.
70793         * modules/unistr/u16-set: New file.
70794         * modules/unistr/u32-set: New file.
70795         * lib/unistr/u8-set.c: New file.
70796         * lib/unistr/u16-set.c: New file.
70797         * lib/unistr/u32-set.c: New file.
70798         * lib/unistr/u-set.h: New file.
70799
70800         * modules/unistr/u8-startswith: New file.
70801         * modules/unistr/u16-startswith: New file.
70802         * modules/unistr/u32-startswith: New file.
70803         * lib/unistr/u8-startswith.c: New file.
70804         * lib/unistr/u16-startswith.c: New file.
70805         * lib/unistr/u32-startswith.c: New file.
70806         * lib/unistr/u-startswith.h: New file.
70807
70808         * modules/unistr/u8-stpcpy: New file.
70809         * modules/unistr/u16-stpcpy: New file.
70810         * modules/unistr/u32-stpcpy: New file.
70811         * lib/unistr/u8-stpcpy.c: New file.
70812         * lib/unistr/u16-stpcpy.c: New file.
70813         * lib/unistr/u32-stpcpy.c: New file.
70814         * lib/unistr/u-stpcpy.h: New file.
70815
70816         * modules/unistr/u8-stpncpy: New file.
70817         * modules/unistr/u16-stpncpy: New file.
70818         * modules/unistr/u32-stpncpy: New file.
70819         * lib/unistr/u8-stpncpy.c: New file.
70820         * lib/unistr/u16-stpncpy.c: New file.
70821         * lib/unistr/u32-stpncpy.c: New file.
70822         * lib/unistr/u-stpncpy.h: New file.
70823
70824         * modules/unistr/u8-strcat: New file.
70825         * modules/unistr/u16-strcat: New file.
70826         * modules/unistr/u32-strcat: New file.
70827         * lib/unistr/u8-strcat.c: New file.
70828         * lib/unistr/u16-strcat.c: New file.
70829         * lib/unistr/u32-strcat.c: New file.
70830         * lib/unistr/u-strcat.h: New file.
70831
70832         * modules/unistr/u8-strchr: New file.
70833         * modules/unistr/u16-strchr: New file.
70834         * modules/unistr/u32-strchr: New file.
70835         * lib/unistr/u8-strchr.c: New file.
70836         * lib/unistr/u16-strchr.c: New file.
70837         * lib/unistr/u32-strchr.c: New file.
70838
70839         * modules/unistr/u8-strcmp: New file.
70840         * modules/unistr/u16-strcmp: New file.
70841         * modules/unistr/u32-strcmp: New file.
70842         * lib/unistr/u8-strcmp.c: New file.
70843         * lib/unistr/u16-strcmp.c: New file.
70844         * lib/unistr/u32-strcmp.c: New file.
70845
70846         * modules/unistr/u8-strcpy: New file.
70847         * modules/unistr/u16-strcpy: New file.
70848         * modules/unistr/u32-strcpy: New file.
70849         * lib/unistr/u8-strcpy.c: New file.
70850         * lib/unistr/u16-strcpy.c: New file.
70851         * lib/unistr/u32-strcpy.c: New file.
70852         * lib/unistr/u-strcpy.h: New file.
70853
70854         * modules/unistr/u8-strcspn: New file.
70855         * modules/unistr/u16-strcspn: New file.
70856         * modules/unistr/u32-strcspn: New file.
70857         * lib/unistr/u8-strcspn.c: New file.
70858         * lib/unistr/u16-strcspn.c: New file.
70859         * lib/unistr/u32-strcspn.c: New file.
70860         * lib/unistr/u-strcspn.h: New file.
70861
70862         * modules/unistr/u8-strdup: New file.
70863         * modules/unistr/u16-strdup: New file.
70864         * modules/unistr/u32-strdup: New file.
70865         * lib/unistr/u8-strdup.c: New file.
70866         * lib/unistr/u16-strdup.c: New file.
70867         * lib/unistr/u32-strdup.c: New file.
70868         * lib/unistr/u-strdup.h: New file.
70869
70870         * modules/unistr/u8-strlen: New file.
70871         * modules/unistr/u16-strlen: New file.
70872         * modules/unistr/u32-strlen: New file.
70873         * lib/unistr/u8-strlen.c: New file.
70874         * lib/unistr/u16-strlen.c: New file.
70875         * lib/unistr/u32-strlen.c: New file.
70876         * lib/unistr/u-strlen.h: New file.
70877
70878         * modules/unistr/u8-strmblen: New file.
70879         * modules/unistr/u16-strmblen: New file.
70880         * modules/unistr/u32-strmblen: New file.
70881         * lib/unistr/u8-strmblen.c: New file.
70882         * lib/unistr/u16-strmblen.c: New file.
70883         * lib/unistr/u32-strmblen.c: New file.
70884
70885         * modules/unistr/u8-strmbtouc: New file.
70886         * modules/unistr/u16-strmbtouc: New file.
70887         * modules/unistr/u32-strmbtouc: New file.
70888         * lib/unistr/u8-strmbtouc.c: New file.
70889         * lib/unistr/u16-strmbtouc.c: New file.
70890         * lib/unistr/u32-strmbtouc.c: New file.
70891
70892         * modules/unistr/u8-strncat: New file.
70893         * modules/unistr/u16-strncat: New file.
70894         * modules/unistr/u32-strncat: New file.
70895         * lib/unistr/u8-strncat.c: New file.
70896         * lib/unistr/u16-strncat.c: New file.
70897         * lib/unistr/u32-strncat.c: New file.
70898         * lib/unistr/u-strncat.h: New file.
70899
70900         * modules/unistr/u8-strncmp: New file.
70901         * modules/unistr/u16-strncmp: New file.
70902         * modules/unistr/u32-strncmp: New file.
70903         * lib/unistr/u8-strncmp.c: New file.
70904         * lib/unistr/u16-strncmp.c: New file.
70905         * lib/unistr/u32-strncmp.c: New file.
70906
70907         * modules/unistr/u8-strncpy: New file.
70908         * modules/unistr/u16-strncpy: New file.
70909         * modules/unistr/u32-strncpy: New file.
70910         * lib/unistr/u8-strncpy.c: New file.
70911         * lib/unistr/u16-strncpy.c: New file.
70912         * lib/unistr/u32-strncpy.c: New file.
70913         * lib/unistr/u-strncpy.h: New file.
70914
70915         * modules/unistr/u8-strnlen: New file.
70916         * modules/unistr/u16-strnlen: New file.
70917         * modules/unistr/u32-strnlen: New file.
70918         * lib/unistr/u8-strnlen.c: New file.
70919         * lib/unistr/u16-strnlen.c: New file.
70920         * lib/unistr/u32-strnlen.c: New file.
70921         * lib/unistr/u-strnlen.h: New file.
70922
70923         * modules/unistr/u8-strpbrk: New file.
70924         * modules/unistr/u16-strpbrk: New file.
70925         * modules/unistr/u32-strpbrk: New file.
70926         * lib/unistr/u8-strpbrk.c: New file.
70927         * lib/unistr/u16-strpbrk.c: New file.
70928         * lib/unistr/u32-strpbrk.c: New file.
70929         * lib/unistr/u-strpbrk.h: New file.
70930
70931         * modules/unistr/u8-strrchr: New file.
70932         * modules/unistr/u16-strrchr: New file.
70933         * modules/unistr/u32-strrchr: New file.
70934         * lib/unistr/u8-strrchr.c: New file.
70935         * lib/unistr/u16-strrchr.c: New file.
70936         * lib/unistr/u32-strrchr.c: New file.
70937
70938         * modules/unistr/u8-strspn: New file.
70939         * modules/unistr/u16-strspn: New file.
70940         * modules/unistr/u32-strspn: New file.
70941         * lib/unistr/u8-strspn.c: New file.
70942         * lib/unistr/u16-strspn.c: New file.
70943         * lib/unistr/u32-strspn.c: New file.
70944         * lib/unistr/u-strspn.h: New file.
70945
70946         * modules/unistr/u8-strstr: New file.
70947         * modules/unistr/u16-strstr: New file.
70948         * modules/unistr/u32-strstr: New file.
70949         * lib/unistr/u8-strstr.c: New file.
70950         * lib/unistr/u16-strstr.c: New file.
70951         * lib/unistr/u32-strstr.c: New file.
70952         * lib/unistr/u-strstr.h: New file.
70953
70954         * modules/unistr/u8-strtok: New file.
70955         * modules/unistr/u16-strtok: New file.
70956         * modules/unistr/u32-strtok: New file.
70957         * lib/unistr/u8-strtok.c: New file.
70958         * lib/unistr/u16-strtok.c: New file.
70959         * lib/unistr/u32-strtok.c: New file.
70960         * lib/unistr/u-strtok.h: New file.
70961
70962         * modules/unistr/u8-uctomb: New file.
70963         * modules/unistr/u16-uctomb: New file.
70964         * modules/unistr/u32-uctomb: New file.
70965         * lib/unistr/u8-uctomb.c: New file.
70966         * lib/unistr/u16-uctomb.c: New file.
70967         * lib/unistr/u32-uctomb.c: New file.
70968
70969         * MODULES.html.sh (Unicode string functions): Add the new modules.
70970
70971 2007-01-08  Bruno Haible  <bruno@clisp.org>
70972
70973         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70974         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70975         subdirectories.
70976
70977 2007-01-08  Karl Berry  <karl@gnu.org>
70978
70979         * doc/error.texi: mention that main() fns must set program_name
70980         when progname is used.
70981
70982 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70983
70984         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70985         WCTYPE_H is empty, for the benefit of builds from non-distclean
70986         directories.  Problem reported by Eric Blake in
70987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70988
70989 2007-01-08  Bruno Haible  <bruno@clisp.org>
70990
70991         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70992         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70993         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70994         PROVIDE_CANONICALIZE_FILENAME_MODE.
70995         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70996
70997 2007-01-08  Bruno Haible  <bruno@clisp.org>
70998
70999         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71000         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71001         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71002         * lib/fts.c: Likewise.
71003         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71004
71005 2006-12-25  Bruno Haible  <bruno@clisp.org>
71006
71007         * modules/utf8-ucs4-safe: New file.
71008         * lib/utf8-ucs4-safe.h: New file.
71009         * lib/unistr/utf8-ucs4-safe.c: New file.
71010
71011         * modules/utf16-ucs4-safe: New file.
71012         * lib/utf16-ucs4-safe.h: New file.
71013         * lib/unistr/utf16-ucs4-safe.c: New file.
71014
71015         * MODULES.html.sh (Unicode string functions): Add the new modules.
71016
71017 2007-01-08  Bruno Haible  <bruno@clisp.org>
71018
71019         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71020         (Depends-on): Add unitypes.
71021         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71022         (u8_mbtouc_aux): Move out to separate file.
71023         (u8_mbtouc): Use ucs4_t, uint8_t types.
71024         * lib/unistr/utf8-ucs4.c: New file.
71025
71026         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71027         (Depends-on): Add unitypes.
71028         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71029         (u16_mbtouc_aux): Move out to separate file.
71030         (u16_mbtouc): Use ucs4_t, uint16_t types.
71031         * lib/unistr/utf16-ucs4.c: New file.
71032
71033         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71034         (Depends-on): Add unitypes.
71035         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71036         (u8_uctomb_aux): Move out to separate file.
71037         (u8_uctomb): Use ucs4_t, uint8_t types.
71038         * lib/unistr/ucs4-utf8.c: New file.
71039
71040         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71041         (Depends-on): Add unitypes.
71042         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71043         (u16_uctomb_aux): Move out to separate file.
71044         (u16_uctomb): Use ucs4_t, uint16_t types.
71045         * lib/unistr/ucs4-utf16.c: New file.
71046
71047 2006-12-25  Bruno Haible  <bruno@clisp.org>
71048
71049         * modules/unitypes: New file.
71050         * lib/unitypes.h: New file.
71051         * MODULES.html.sh (func_all_modules): New section "Unicode string
71052         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71053         this section. Add unitypes.
71054
71055 2007-01-08  Bruno Haible  <bruno@clisp.org>
71056
71057         Avoid variable names that conflict with those from libtool.
71058         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71059         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71060         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71061         library_names_spec to acl_library_names_spec, hardcode_* to
71062         acl_hardcode_*.
71063         Reported by Ralf Wildenhues.
71064
71065 2007-01-08  Bruno Haible  <bruno@clisp.org>
71066
71067         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71068         definition.
71069         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71070         definition.
71071         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71072         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71073         definition.
71074         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71075         definition.
71076         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71077         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71078         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71079         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71080         definition.
71081         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71082         definition.
71083         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71084         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71085         GC_USE_<algorithm>.
71086         * lib/gc-libgcrypt.c: Likewise.
71087         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71088         * modules/gc-arctwo (configure.ac): Likewise.
71089         * modules/gc-des (configure.ac): Likewise.
71090         * modules/gc-hmac-md5 (configure.ac): Likewise.
71091         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71092         * modules/gc-md2 (configure.ac): Likewise.
71093         * modules/gc-md4 (configure.ac): Likewise.
71094         * modules/gc-md5 (configure.ac): Likewise.
71095         * modules/gc-random (configure.ac): Likewise.
71096         * modules/gc-rijndael (configure.ac): Likewise.
71097         * modules/gc-sha1 (configure.ac): Likewise.
71098
71099 2007-01-08  Bruno Haible  <bruno@clisp.org>
71100
71101         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71102         macro definition.
71103         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71104         definition.
71105         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71106         definition.
71107         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71108         * modules/fcntl-safer (configure.ac): Likewise.
71109         * modules/fopen-safer (configure.ac): Likewise.
71110         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71111         GNULIB_FWRITEERROR macro definition.
71112
71113 2007-01-08  Bruno Haible  <bruno@clisp.org>
71114
71115         * m4/gnulib-common.m4: New file.
71116         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71117         (func_get_filelist): Add m4/gnulib-common.m4.
71118
71119 2007-01-08  Bruno Haible  <bruno@clisp.org>
71120
71121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71122         command.
71123
71124 2007-01-08  Jim Meyering  <jim@meyering.net>
71125
71126         Use a more robust test for a "can't happen" condition.
71127         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71128         narrowed the st_size value.  Presuming the "can't happen" condition
71129         is true, that narrowing could conceivably convert an invalid st_size
71130         value into a valid one.  Instead, use a change based on Matthew
71131         Woehlke's original patch.
71132
71133         Slight readability improvement: use an assert-like macro
71134         in place of literal "abort ()" uses.
71135         * lib/fts.c (fts_assert): Define.
71136         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71137         Use this macro instead of a bare 'abort'.
71138
71139 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71140
71141         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71142         simply work around them.
71143         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71144         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71145         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71146         declaring.
71147         Don't bother to define as macros, since the standard doesn't require it.
71148         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71149         longer worry about IRIX 5.3.
71150         (HAVE_WCTYPE_CTMP_BUG): Remove.
71151
71152 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71153
71154         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71155         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71156         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71157         Problems reported by Georg Schwarz for IRIX 5.3.
71158
71159         * gnulib-tool (autoconf_minversion): Take the maximum version number
71160         found, not the minimum.  Problem reported by James Youngman.
71161
71162 2007-01-03  Karl Berry  <karl@gnu.org>
71163
71164         * doc/error.texi: new file, explaining interaction with progname.
71165         * doc/gnulib.texi: include it.  Update copyright.
71166
71167 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71168
71169         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71170         AC_CANONICAL_HOST, to improve autobuild outputs.
71171
71172 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71173             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71174
71175         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71176         sockets, server sockets, and other file descriptors.  Count errors
71177         to compute the return value.  Reorder the code a bit to be easier
71178         to follow.  Don't set event bits that were not requested (except
71179         POLLERR and POLLHUP).
71180
71181 2007-01-01  Bruno Haible  <bruno@clisp.org>
71182
71183         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71184
71185 2007-01-03  Jim Meyering  <jim@meyering.net>
71186
71187         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71188
71189 2007-01-02  Bruno Haible  <bruno@clisp.org>
71190
71191         * modules/settime (Include): Require timespec.h.
71192         * modules/nanosleep (Include): Likewise.
71193
71194 2007-01-01  Bruno Haible  <bruno@clisp.org>
71195
71196         * gnulib-tool (func_emit_copyright_notice): Bump year.
71197         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71198
71199 2007-01-01  Bruno Haible  <bruno@clisp.org>
71200
71201         Improve support for OpenBSD.
71202         * build-aux/config.rpath (libname_spec): Export.
71203         (library_names_spec): New variable. Export.
71204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71205         library_names_spec from the config.rpath output. Locate shared library
71206         through the name pattern in library_names_spec.
71207
71208 2007-01-01  Eric Blake  <ebb9@byu.net>
71209
71210         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71211
71212 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71213
71214         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71215         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71216         assume the C locale, and avoid an "eval" that could cause trouble.
71217         Problem with SORT reported by Bob Proulx.
71218
71219         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71220         Define.  Trivial patch from Henning Nielsen Lund, originally
71221         sent to bug-grep@gnu.org today.
71222
71223 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71224
71225         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71226         struct stat.  Problem reported by Henning Nielsen Lund.
71227         * lib/acl.c: Include acl.h first, to check interface.  Don't
71228         bother to include sys/types.h and sys/stat.h again.
71229
71230 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         Import the following change from libc; problem reported by
71233         Sven Verdoolaege.
71234
71235         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71236
71237         [BZ #1373]
71238         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71239
71240 2006-12-28  Jim Meyering  <jim@meyering.net>
71241
71242         * build-aux/announce-gen: Do not assume that the package
71243         builds any of tar.gz, tar.bz2, and .xdelta files.
71244         Suggestion from Simon Josefsson.
71245
71246 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71247
71248         * modules/announce-gen: New file.
71249
71250 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71253         handles its gotchas now.
71254         * lib/mbswidth.c: Likewise.
71255         * lib/wcwidth.h: Likewise.
71256         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71257         and iswcntrl; the wctype module does this stuff now.
71258         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71260         * modules/mbchar (Depends-on): Add wctype.
71261         * modules/mbswidth (Depends-on): Likewise.
71262         * modules/wcwidth (Depends-on): Likewise.
71263
71264 2006-12-27  Eric Blake  <ebb9@byu.net>
71265
71266         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71267         module uses more than what <wctype.h> is required to provide.
71268
71269 2006-12-26  Eric Blake  <ebb9@byu.net>
71270
71271         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71272
71273 2006-12-26  Eric Blake  <ebb9@byu.net>
71274
71275         * modules/absolute-header: New module.
71276         * modules/fcntl (Depends-on): Depend on it.
71277         * modules/inttypes (Depends-on): Likewise.
71278         * modules/stdint (Depends-on): Likewise.
71279         * modules/sys_stat (Depends-on): Likewise.
71280         * modules/wctype (Depends-on): Likewise.
71281         * MODULES.html.sh (Support for building libraries and
71282         executables): Document it.
71283
71284 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71285
71286         * gnulib-tool (SED): Remove, undoing previous change.
71287         The problem was that it broke coreutils on Solaris, because
71288         "sed --posix" leaked into a makefile.
71289         (sed): New alias, if 'alias' and GNU sed.
71290
71291 2006-12-24  Jim Meyering  <jim@meyering.net>
71292
71293         Work around an fchownat bug in glibc-2.4:
71294         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71295         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71296         in spite of the -P option.
71297         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71298         New macros.
71299         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71300         * modules/openat (Files): Add lib/fchownat.c.
71301         * lib/openat.c (fchownat): Don't define here.  Move to...
71302         * lib/fchownat.c: ...this new file.
71303
71304 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71305
71306         Fix bug reported by Bruno Haible in
71307         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71308         where quotearg.c didn't compile on Mac OS X 10.2 because it
71309         lacks <wchar.h> and wint_t.
71310         * lib/wctype_.h (__wctype_wint_t): New type.
71311         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71312         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71313         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71314         Arg is now of type __wctype_wint_t, not wint_t.
71315         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71316         substitute HAVE_WINT_T.
71317         * modules/wctype (Files): Add m4/wint_t.m4.
71318         (wctype.h): Substitute HAVE_WINT_T.
71319
71320 2006-12-23  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71323
71324 2006-12-23  Bruno Haible  <bruno@clisp.org>
71325
71326         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71327         S_ISLNK.
71328         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71329         mingw.
71330
71331 2006-12-22  Bruno Haible  <bruno@clisp.org>
71332
71333         * lib/copy-file.c: Include acl.h.
71334         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71335         Close the file descriptors only after being done with copy_acl.
71336         * modules/copy-file (Depends-on): Add acl.
71337
71338 2006-12-22  Bruno Haible  <bruno@clisp.org>
71339
71340         * gnulib-tool (SED): New variable.
71341         Use $SED instead of sed everywhere.
71342
71343 2006-12-22  Bruno Haible  <bruno@clisp.org>
71344
71345         * modules/no-c++: New file.
71346         * m4/no-c++.m4: New file.
71347         * MODULES.html.sh (Support for building libraries and executables):
71348         Add no-c++.
71349
71350 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71351
71352         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71353         Include <limits.h>, and use its INT_MAX to rewrite the
71354         j loop so that it does not overflow 'int'.  Problem reported by
71355         Ralf Wildenhues in
71356         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71357         Play it safe by shifting left by 1 rather than multiplying by 2,
71358         as GCC is less likely to optimize this away when the value
71359         is signed (when it assumes overflow leads to undefined behavior).
71360         Also, don't assume time_t uses two's complement.
71361
71362 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71363
71364         * MODULES.html.sh: New module wctype.
71365         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71366         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71367         <wctype.h>, since the new wctype module should fix this.
71368         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71369         the wctype module should arrange for it.
71370         * lib/regex_internal.h: Likewise.
71371         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71372         since the wctype module should handle this now.
71373         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71374         * modules/fnmatch (Depends-on): Add wctype.
71375         * modules/quotearg (Depends-on): Likewise.
71376         * modules/regex (Depends-on): Likewise.
71377
71378 2006-12-19  Bruno Haible  <bruno@clisp.org>
71379
71380         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71381         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71382
71383 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71384
71385         * modules/savewd (Depends-on): Fix dependency on fcntl.
71386
71387 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71390         conforms to C99, rather than relying on the user's environment
71391         setting of STDINT_H.
71392
71393 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71394         and Eric Blake  <ebb9@byu.net>
71395
71396         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71397         This is more consistent with the other defines here.
71398         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71399         Port to z/OS.  Problem reported by Paul Gilmartin.
71400         Change local vars to use gl_ prefix rather than ac_.
71401         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71402         with other defines.
71403         * modules/double-slash-root: New module.
71404         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71405         (Depends-on): Add double-slash-root.
71406         * MODULES.html.sh (File system functions): Mention new module.
71407
71408 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71409
71410         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71411         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71412         This is for the benefit of gzip, which doesn't do i18n.
71413
71414 2006-12-12  Jim Meyering  <jim@meyering.net>
71415
71416         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71417         Reported by Andreas Schwab <schwab@suse.de>.
71418
71419 2006-12-12  Bruno Haible  <bruno@clisp.org>
71420
71421         Merge these changes.
71422         2006-09-05  Bruno Haible  <bruno@clisp.org>
71423         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71424         iconv_alloc succeeded.
71425         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71426         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71427         test for " && dest " at the end - dest is always != NULL there. Call
71428         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71429         with 2xNULL arguments, also to flush the state storage. Handle the
71430         IRIX iconv behaviour. Realloc the final result, to throw away unused
71431         memory.
71432
71433 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71434
71435         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71436         and fchmodat unconditionally, since glibc 2.4 has them.
71437         Problem reported by Arkadiusz Miskiewicz.
71438
71439 2006-12-10  Bruno Haible  <bruno@clisp.org>
71440
71441         * gnulib-tool (func_import): Show the include files only for those
71442         modules that are copied and specified.
71443         Reported by Karl Berry.
71444
71445 2006-12-08  Jim Meyering  <jim@meyering.net>
71446
71447         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71448         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71449
71450         * build-aux/announce-gen: Add two new options, both optional:
71451         --bootstrap-tools=TOOL_LIST
71452               a comma-separated list of tools, e.g.,
71453               autoconf,automake,bison,gnulib
71454         --gnulib-snapshot-date=DATE
71455               if gnulib is in the bootstrap tool list,
71456               then report this as the snapshot date.
71457               If not specified, use the current date/time.
71458               If you specify a date here, be sure it's UTC.
71459
71460 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71461
71462         * tests/test-argp-2.sh: Fix test to match actual output.
71463         (func_compare): Fix sed script to be portable.
71464
71465 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71466
71467         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71468         workaround for this case.  It is not autoconfigured now; offhand
71469         it's hard to see how to autoconfigure it.
71470
71471 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71474         a directory that is about to be chowned.  Such a directory's
71475         initial file permissions should permit the owner only and this
71476         should not be changed until after the chown, since the group and
71477         other bits would be incorrect if they granted permission before
71478         the chown.
71479
71480         Fix porting problem for iswctype reported by Georg Schwarz in:
71481         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71482         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71483         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71484         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71485         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71486
71487 2006-12-03  Jim Meyering  <jim@meyering.net>
71488
71489         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71490         p->fts_statp may not yet be defined.
71491         (fts_read): Instead, set it in the caller, once p->fts_statp is
71492         sure to be defined, and corresponds to a top-level directory.
71493         This bug made du -x fail.  Here's the coreutils test case:
71494         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71495         Reported by Mike Frysinger.
71496
71497 2006-12-01  Jim Meyering  <jim@meyering.net>
71498
71499         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71500         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71501         Reported by Simon Josefsson.
71502
71503 2006-11-30  Jim Meyering  <jim@meyering.net>
71504
71505         * m4/warning.m4: Use the all-permissive copyright notice
71506         recommended by RMS (rather than LGPL).
71507         * m4/vararrays.m4: Likewise.
71508         * m4/flexmember.m4: Likewise.
71509
71510 2006-11-29  Bruno Haible  <bruno@clisp.org>
71511
71512         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71513         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71514         using +=.
71515         Reported by Simon Josefsson <simon@josefsson.org>.
71516
71517 2006-11-28  James Youngman <jay@gnu.org>
71518
71519         * README: Advise users that they might find the bug-gnulib@gnu.org
71520         and autotools-announce@gnu.org mailing lists useful.
71521
71522 2006-11-28  Bruno Haible  <bruno@clisp.org>
71523
71524         * m4/ptrdiff_max.m4: Remove file.
71525
71526 2006-11-21  Bruno Haible  <bruno@clisp.org>
71527
71528         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71529         _AC_COMPUTE_INT.
71530         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71531         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71532         _AC_COMPUTE_INT.
71533         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71534         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71535         _AC_COMPUTE_INT.
71536         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71537
71538 2006-11-28  Jim Meyering  <jim@meyering.net>
71539
71540         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71541         warning from "gcc -Wshadow" about shadowing the builtin.
71542
71543 2006-11-27  Bruno Haible  <bruno@clisp.org>
71544
71545         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71546         _AC_COMPUTE_INT.
71547         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71548
71549 2006-11-27  Bruno Haible  <bruno@clisp.org>
71550             Paul Eggert  <eggert@cs.ucla.edu>
71551
71552         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71553
71554 2006-11-26  Bruno Haible  <bruno@clisp.org>
71555
71556         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71557         noinst_LTLIBRARIES.
71558
71559 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71560             Bruno Haible  <bruno@clisp.org>
71561
71562         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71563         if compiling with "gcc -ansi".
71564
71565 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         Fix some incompatibilities with gcc -ansi -pedantic.
71568         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71569         if compiling pedantically with GCC, unless it's C99 or later.
71570         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71571         it mishandles gcc -ansi -pedantic as well.
71572         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71573         if gcc -pedantic.
71574         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71575         initializers for struct if -pedantic, unless it's C99 or later.
71576
71577 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71578
71579         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71580         Don't close an fd more than once. Identical atimes indicate
71581         success, not failure.
71582
71583 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71584
71585         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71586
71587 2006-11-23  Jim Meyering  <jim@meyering.net>
71588
71589         * build-aux/announce-gen: New file.  From coreutils.
71590
71591 2006-11-22  Jim Meyering  <jim@meyering.net>
71592
71593         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71594         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71595         (fts_read): Use a temporary to narrow the overused st_size member
71596         before using it in a switch statement.  Reported by Matthew Woehlke.
71597
71598         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71599         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71600
71601 2006-11-20  Bruno Haible  <bruno@clisp.org>
71602
71603         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71604         changequote instead of pairs of brackets.
71605         Reported by Andreas Schwab <schwab@suse.de>.
71606
71607 2006-11-21  Jim Meyering  <jim@meyering.net>
71608
71609         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71610         so as to remain compatible with older compilers.
71611         Patch from Michael Deutschmann.
71612
71613 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71614
71615         * MODULES.html.sh (File system functions): Add openat.
71616
71617         * lib/openat.h (rpl_fstatat): New macro, if
71618         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71619         (fstatat): Define to rpl_fstatat under the same conditions,
71620         unless COMPILING_FSTATAT.
71621         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71622         seems to have the bug.
71623         * lib/fstatat.c: New file.
71624         * modules/openat (Files): Add it.
71625
71626 2006-11-20  Bruno Haible  <bruno@clisp.org>
71627
71628         * Makefile: New file.
71629
71630 2006-11-20  Jim Meyering  <jim@meyering.net>
71631
71632         The beginnings of syntax-related checks for gnulib.
71633         * lib/Makefile: New file.
71634         * lib/t-idcache: New script.  Ensure that the two halves of
71635         idcache.c stay in sync.
71636
71637         * lib/idcache.c: Adjust comments in user- and group- portions to
71638         be more accurate, and to be consistent with one another.
71639
71640 2006-11-20  Jim Meyering  <jim@meyering.net>
71641
71642         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71643         continue using the flexible array member (thus, this module performs
71644         half as many malloc calls), with the addition that...
71645         (getgroup, getuser): Consistently record a non-match via an empty
71646         "name" string, and map an empty string match to a NULL return value.
71647         * modules/idcache (Depends-on): Re-add flexmember.
71648
71649         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71650         (getuidbyname, getgroup, getgidbyname): Likewise.
71651
71652         Use cleaner syntax: NULL rather than 0.
71653         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71654
71655 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71656
71657         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71658         It mishandled the case where the group was missing.
71659         Problem reported by Greg Schafer.
71660         * modules/idcache: Likewise.
71661
71662 2006-11-18  Jim Meyering  <jim@meyering.net>
71663
71664         * check-module (%exempt_header): Add exception for some
71665         conditionally-included headers.
71666
71667         * modules/i-ring (Depends-on): Add verify.
71668         (License): Change to LGPL.
71669
71670 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71671
71672         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71673         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71674         and inttostr.h.  Use snprintf rather than uinttostr, so that
71675         LGPLed code doesn't depend on GPLed.
71676
71677 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         * modules/inline (License): Change from GPL to LGPL.
71680
71681 2006-11-17  Jim Meyering  <jim@meyering.net>
71682
71683         * modules/d-type (License): Switch to LGPL.
71684
71685 2006-11-15  Bruno Haible  <bruno@clisp.org>
71686
71687         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71688
71689 2006-11-15  Eric Blake  <ebb9@byu.net>
71690
71691         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71692         the module dependency.
71693
71694 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71695             Bruno Haible  <bruno@clisp.org>
71696
71697         * gnulib-tool (func_create_testdir): Add license consistency check.
71698
71699 2006-11-15  Eric Blake  <ebb9@byu.net>
71700
71701         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71702         random "(cached)" in configure output.
71703
71704 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71705
71706         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71707         test for conforming inttypes.h is both announced and cached.
71708
71709         * MODULES.html.sh (seen_modules, seen_files): New variables.
71710         (func_module): Rewrite to use a few less gnulib-tool and sed
71711         invocations.  Avoid a couple of quadratic algorithms for ...
71712         (missed_modules, missed_files): ... these, with ...
71713         (func_append, func_tmpdir): ... these new functions, from
71714         gnulib-tool.  Analogously, install traps for cleanup.
71715
71716         * tests/test-gc.c (main): Remove unused variables.
71717         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71718
71719 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71720
71721         * modules/inttostr (License): Change to LGPL.
71722
71723 2006-11-14  Eric Blake  <ebb9@byu.net>
71724
71725         * modules/tempname (License): Change to LGPL.
71726
71727 2006-11-14  Eric Blake  <ebb9@byu.net>
71728
71729         * doc/functions.texi (Function Portability): *printf functions on
71730         Cygwin now understand all POSIX size specifiers.
71731
71732 2006-11-14  Bruno Haible  <bruno@clisp.org>
71733
71734         * modules/c-ctype (License): Change to LGPL.
71735
71736 2006-11-12  Bruno Haible  <bruno@clisp.org>
71737
71738         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71739         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71740         for GNOME libraries, for which the include files are installed in
71741         subdirectories of $prefix/include.
71742
71743 2006-11-12  Bruno Haible  <bruno@clisp.org>
71744
71745         * m4/lib-link.m4: Require at least autoconf-2.54.
71746         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71747         name to underscores for the --with option.
71748
71749 2006-11-13  Bruno Haible  <bruno@clisp.org>
71750
71751         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71752         the tests directory.
71753         Reported by Ralf Wildenhues.
71754
71755 2006-11-13  Bruno Haible  <bruno@clisp.org>
71756
71757         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71758         (func_emit_initmacro_end): Undo the override here.
71759         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71760         Works around the famous automake error in coreutils.
71761
71762 2006-11-13  Eric Blake  <ebb9@byu.net>
71763
71764         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71765         element, not its node.
71766
71767 2006-11-12  Bruno Haible  <bruno@clisp.org>
71768
71769         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71770         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71771
71772 2006-11-12  Bruno Haible  <bruno@clisp.org>
71773
71774         * gnulib-tool: New option --local-symlink.
71775         (func_usage): Document it.
71776         (lsymbolic): New variable.
71777         (func_import, func_create_testdir): If --symlink was not specified,
71778         test whether --local-symlink was specified and the file comes from
71779         the local_gnulib_dir.
71780
71781 2006-11-12  Bruno Haible  <bruno@clisp.org>
71782
71783         * gnulib-tool (func_ln): New function.
71784         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71785
71786 2006-11-12  Bruno Haible  <bruno@clisp.org>
71787
71788         Finish support for source files in subdirectories.
71789         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71790         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71791         AUTOMAKE_OPTIONS.
71792         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71793
71794 2006-11-12  Bruno Haible  <bruno@clisp.org>
71795
71796         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71797         EXTRA_lib_SOURCES augmentation.
71798         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71799
71800 2006-11-12  Jim Meyering  <jim@meyering.net>
71801
71802         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71803         file descriptors.  This also averts a failure on systems with
71804         native openat support when a traversed directory lacks "x" access.
71805         * lib/fts_.h: Include "i-ring.h"
71806         (struct FTS) [fts_fd_ring]: New member.
71807         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71808         (FCHDIR): Add parentheses.
71809         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71810         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71811         When descending, rather than simply closing the previous
71812         fts_cwd_fd value, push that file descriptor onto the ring.
71813         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71814         (fts_open): Initialize the new fd_ring member.
71815         (fts_close): Clear the ring.
71816         (fts_safe_changedir): When possible, use our new fd_ring to skip
71817         the diropen and fstat and dev/ino comparison that would normally
71818         accompany a virtual `chdir ("..")'.
71819
71820         * modules/fts (Depends-on): Add i-ring.
71821         * modules/i-ring: New module.
71822         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71823         * m4/i-ring.m4: New file.
71824
71825 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71826
71827         * gnulib-tool (func_create_testdir): Fix replacement of
71828         `build-aux' in configure.ac.  Run autotools in gltests
71829         subdirectory.
71830         (func_create_testdir, func_create_megatestdir, test): There is
71831         no need for '--force' in most autotool invocations in a new
71832         tree.  Actually fail the whole test if any of the tools, or the
71833         configure or make stages fail.
71834
71835         Sync from Automake.
71836         * build-aux/gnupload: Revert last change.  Add pointer to upload
71837         instructions of the GNU Maintenance Instructions.
71838         Suggestion by Karl Berry.
71839
71840 2006-11-10  Jim Meyering  <jim@meyering.net>
71841
71842         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71843
71844 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71847         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71848         (bind_textdomain_codeset) [! ENABLE_NLS]:
71849         Evaluate all the arguments.  That way, callers get compatible behavior
71850         if the arguments have side effects.  Also, it avoids some GCC
71851         diagnostics in some cases; Joel E. Denny reported problems when Bison
71852         was configured with --enable-gcc-warnigs.
71853
71854 2006-11-10  Jim Meyering  <jim@meyering.net>
71855
71856         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71857         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71858         account.
71859
71860 2006-11-10  Jim Meyering  <jim@meyering.net>
71861
71862         * modules/inline: New file/module.
71863         * modules/xalloc (Files): Remove m4/inline.m4.
71864         (Depends-on): Add inline, instead.
71865         * modules/oset: Likewise.
71866         * modules/list: Likewise.
71867
71868 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71869
71870         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71871         Problem reported by Matthew Woehlke.
71872
71873 2006-11-09  Bruno Haible  <bruno@clisp.org>
71874
71875         * lib/tempname.c (gen_tempname): Remove variant that invokes
71876         __gen_tempname.
71877         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71878         __gen_tempname.
71879
71880 2006-11-08  Bruno Haible  <bruno@clisp.org>
71881
71882         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71883         to 'yes' instead of 'cross-compiling'.
71884
71885 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71886
71887         * lib/quotearg.h (quotearg_free): New decl.
71888         * lib/quotearg.c (quotearg_free): New function.
71889         (slot0, nslots, slotvec0, slotvec):
71890         Now file-scope so that quotearg_free can get at them.
71891
71892 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71893
71894         Sync from Automake.
71895         * build-aux/gnupload: Add missing 'gnu' to example URL.
71896         Report by Karl Berry.
71897
71898 2006-11-08  Bruno Haible  <bruno@clisp.org>
71899
71900         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71901         Suggested by Paul Eggert.
71902
71903 2006-11-08  Jim Meyering  <jim@meyering.net>
71904
71905         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71906         It's already included if !_LIBC.
71907         (fts_safe_changedir): Add a comment.
71908
71909 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71910
71911         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71912         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71913         Matthew Woehlke.
71914
71915         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71916         definitions up, to avoid colliding with change below.
71917         (static_inline) [HAVE_INLINE]: New macro.
71918         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71919         Provide extern decls when !HAVE_INLINE.  Do not define unless
71920         static_inline is defined, either by us or by xmalloc.c.  Use
71921         static_inline rather than static inline.
71922         (XCALLOC): Optimize sizeof(T) = 1 case.
71923         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71924
71925 2006-11-07  Bruno Haible  <bruno@clisp.org>
71926
71927         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71928         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71929         AC_C_INLINE.
71930         * modules/xalloc (Files): Add m4/inline.m4.
71931
71932 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71933
71934         * README: Fix typo.
71935         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71936         (Miscellanous Notes): ...from this.
71937
71938 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71939
71940         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71941         Mention that offsetof should be used instead of sizeof.
71942         From Bruno Haible.
71943
71944 2006-11-07  Bruno Haible  <bruno@clisp.org>
71945
71946         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71947
71948 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71949
71950         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71951         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71952         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71953         (gl_tree_add_before, gl_tree_add_after):
71954         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71955         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71956         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71957         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71958         (gl_linked_add_after, gl_linked_add_at): Likewise.
71959         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71960         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71961         (gl_tree_add_before, gl_tree_add_after): Likewise.
71962         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71963         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71964         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71965
71966 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71967
71968         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71969
71970 2006-11-06  Bruno Haible  <bruno@clisp.org>
71971
71972         * m4/inline.m4: New file.
71973         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71974         * modules/list (Files): Add m4/inline.m4.
71975         * modules/oset (Files): Likewise.
71976
71977 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71978
71979         * lib/idcache.c: Include <stddef.h>, for offsetof.
71980         (struct userid.name): Change from char * to a flexible array member.
71981         All uses changed.
71982         * modules/idcache (Depends-on): Add flexmember.
71983
71984         * MODULES.html.sh (Core language properties): New module flexmember.
71985         * modules/flexmember, m4/flexmember.m4: New files.
71986
71987         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71988         inline functions that are identical with the old xnmalloc_inline,
71989         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71990         that we can avoid some unnecessary integer multiplications and
71991         divisions in the common case where the element size is known at
71992         compile time.
71993         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71994         needed.
71995         (xnboundedmalloc): Remove.
71996         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71997         arguments, for consistency with rest of this header.
71998         (xcharalloc): Rewrite using XNMALLOC.
71999         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72000         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72001         versions have been moved to lib/xalloc.h and renamed to be the
72002         non-*_inline versions.
72003         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72004         and xnrealloc functions, since those functions are now inline and
72005         now call us.
72006         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72007         renaming described above.
72008         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72009         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72010         captures the dependency in AC_C_INLINE.
72011
72012         New module canonicalize-lgpl, proposed by Charles Wilson in
72013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72014         with a few small changes afterwards.
72015         * MODULES.html.sh (File system functions): New module
72016         canonicalize-lgpl.
72017         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72018         and canonicalize_file_name.
72019         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72020         * modules/canonicalize-lgpl: New files.
72021
72022 2006-11-05  Bruno Haible  <bruno@clisp.org>
72023
72024         * gnulib-tool (func_import, func_create_testdir): Create directories
72025         also for files in subdirectories of lib/.
72026
72027 2006-11-05  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72030         ANSI C compliant.
72031
72032 2006-11-03  Bruno Haible  <bruno@clisp.org>
72033
72034         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72035         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72036         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72037         (xnboundedmalloc): New inline function.
72038         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72039         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72040         xmalloc.
72041         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72042         xmalloc.
72043         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72044         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72045         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72046         xmalloc.
72047         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72048         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72049         xmalloc.
72050         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72051         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72052         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72053         xmalloc.
72054         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72055         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72056         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72057         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72058         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72059         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72060         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72061
72062 2006-11-03  Bruno Haible  <bruno@clisp.org>
72063
72064         * lib/c-ctype.h [C++]: Define functions without name mangling.
72065         * lib/fwriteerror.h [C++]: Likewise.
72066         * lib/gcd.h [C++]: Likewise.
72067         * lib/linebreak.h [C++]: Likewise.
72068
72069 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72072         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72073         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72075         Check for functions and headers just once.
72076         Check for declaration of canonicalize_file_name.
72077         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72078
72079 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72080
72081         * gnulib-tool (func_import): Fix typo in actioncmd.
72082
72083 2006-11-02  Bruno Haible  <bruno@clisp.org>
72084
72085         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72086         newline sequence in the Makefile.am snippet as a space, like "make"
72087         does.
72088         Reported by Roger Persson <perrog@gmail.com>.
72089
72090 2006-11-01  Bruno Haible  <bruno@clisp.org>
72091
72092         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72093         already declared in <string.h>.
72094         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72095
72096 2006-11-01  Bruno Haible  <bruno@clisp.org>
72097
72098         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72099         * lib/strcase.h: Include <string.h>.
72100         (strcasecmp): Define to rpl_strcasecmp here.
72101
72102 2006-11-01  Bruno Haible  <bruno@clisp.org>
72103
72104         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72105
72106 2006-11-01  Eric Blake  <ebb9@byu.net>
72107
72108         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72109
72110         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72111
72112 2006-10-29  Bruno Haible  <bruno@clisp.org>
72113
72114         Make it compile in C++ mode.
72115         * lib/full-write.c (full_rw): Add a cast.
72116
72117 2006-11-01  Bruno Haible  <bruno@clisp.org>
72118
72119         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72120         be POSIX compliant.
72121         Reported by Roger Persson <perrog@gmail.com>.
72122
72123 2006-11-01  Eric Blake  <ebb9@byu.net>
72124
72125         * lib/getopt_.h: Fix comments.
72126
72127 2006-10-31  Eric Blake  <ebb9@byu.net>
72128
72129         * modules/tmpdir (Depends-on): Add sys_stat.
72130         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72131         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72132         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72133         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72134         tempname.
72135
72136 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72137
72138         Avoid some C++ diagnostics reported by Bruno Haible.
72139         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72140         xmalloc.
72141         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72142         (struct slotvec): Move to top level.
72143         (quotearg_n_options): Rewrite to avoid xmalloc.
72144         * lib/xalloc.h (xcharalloc): New function.
72145         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72146         [defined __cplusplus]: Add function template that provides result
72147         type propagation.  This part of the change is from Bruno Haible.
72148
72149 2006-10-29  Bruno Haible  <bruno@clisp.org>
72150
72151         Make it compile in C++ mode.
72152         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72153         * lib/strnlen1.c (strnlen1): Cast memchr result.
72154         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72155         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72156         (create_temp_dir): Rename local variable 'template'.
72157         (compile_csharp_using_sscli): Add cast.
72158         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72159         * lib/findprog.c (find_in_path): Likewise.
72160         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72161         * lib/wait-process.c (register_slave_subprocess): Likewise.
72162
72163 2006-10-22  Bruno Haible  <bruno@clisp.org>
72164
72165         * modules/tsearch: New file.
72166         * lib/tsearch.h: New file.
72167         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72168         * m4/tsearch.m4: New file.
72169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72170
72171 2006-10-29  Eric Blake  <ebb9@byu.net>
72172
72173         * lib/arcfour.c: Assume config.h.
72174         * lib/arctwo.c: Likewise.
72175         * lib/base64.c: Likewise.
72176         * lib/check-version.c: Likewise.
72177         * lib/crc.c: Likewise.
72178         * lib/des.c: Likewise.
72179         * lib/gc-gnulib.c: Likewise.
72180         * lib/gc-libgcrypt.c: Likewise.
72181         * lib/gc-pbkdf2-sha1.c: Likewise.
72182         * lib/getaddrinfo.c: Likewise.
72183         * lib/getdelim.c: Likewise.
72184         * lib/getline.c: Likewise.
72185         * lib/hmac-md5.c: Likewise.
72186         * lib/hmac-sha1.c: Likewise.
72187         * lib/iconvme.c: Likewise.
72188         * lib/md2.c: Likewise.
72189         * lib/md4.c: Likewise.
72190         * lib/memxor.c: Likewise.
72191         * lib/read-file.c: Likewise.
72192         * lib/readline.c: Likewise.
72193         * lib/rijndael-alg-fst.c: Likewise.
72194         * lib/rijndael-api-fst.c: Likewise.
72195         * lib/xgetdomainname.c: Likewise.
72196
72197 2006-10-28  Eric Blake  <ebb9@byu.net>
72198
72199         * lib/xstrndup.c: Assume config.h.
72200
72201 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72202
72203         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72204         stat-macros.h is now for our own macros, whereas stat_h is for
72205         macros in the <sys/stat.h> name space.
72206         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72207         (STAT_MACROS_H): Remove.
72208         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72209         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72210         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72211         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72212         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72213         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72214         Move these macros to ...
72215         * lib/stat_.h: here.  Don't include stat-macros.h.
72216         * lib/canonicalize.c: Don't include stat-macros.h.
72217         * lib/chown.c: Likewise.
72218         * lib/euidaccess.c: Likewise.
72219         * lib/file-type.c: Likewise.
72220         * lib/filemode.c: Likewise.
72221         * lib/glob.c: Likewise.
72222         * lib/isapipe.c: Likewise.
72223         * lib/lchown.c: Likewise.
72224         * lib/lstat.c: Likewise.
72225         * lib/mkdir-p.c: Likewise.
72226         * lib/rmdir.c: Likewise.
72227         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72229         unless mkdir isn't declared, to speed up 'configure'.
72230         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72231         would define all the S_* symbols.
72232         * modules/canonicalize (Depends-on):
72233         Depend on sys_stat, not stat-macros.
72234         * modules/chown: Likewise.
72235         * modules/euidaccess: Likewise.
72236         * modules/filemode: Likewise.
72237         * modules/file-type: Likewise.
72238         * modules/glob: Likewise.
72239         * modules/isapipe: Likewise.
72240         * modules/lchown: Likewise.
72241         * modules/lstat: Likewise.
72242         * modules/mkancesdirs: Likewise.
72243         * modules/rmdir: Likewise.
72244         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72245         * modules/modechange: Likewise.
72246         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72247         (configure.ac): Remove gl_STAT_MACROS.
72248         * modules/sys_stat (Depends-on): Remove stat-macros.
72249
72250 2006-10-27  Bruno Haible  <bruno@clisp.org>
72251
72252         * m4/signed.m4: Remove file.
72253         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72254         invocation.
72255         * modules/vasnprintf (Files): Remove m4/signed.m4.
72256
72257 2006-10-27  Bruno Haible  <bruno@clisp.org>
72258
72259         Update to GNU gettext 0.16.
72260         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72261         m4/inttypes-h.m4, m4/signed.m4.
72262         * m4/gettext.m4: Update to GNU gettext 0.16.
72263         * m4/intl.m4: New file, from GNU gettext.
72264         * m4/intldir.m4: New file, from GNU gettext.
72265         * config/srclist.txt: Update
72266
72267 2006-10-27  Eric Blake  <ebb9@byu.net>
72268
72269         * MODULES.html.sh: Document tempname.
72270         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72271         dependencies.
72272         (Files): Move lib/tempname.c...
72273         * modules/tempname: ...to this new module.
72274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72275         (gl_PREREQ_TEMPNAME): Move...
72276         * m4/tempname.m4: ...to this new file.
72277         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72278         * modules/sys_stat (Depends-on): Add stat-macros.
72279         * lib/stat_.h (includes): Pick up stat macros.
72280         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72281         if stat macros are broken.
72282         * lib/tempname.c (includes): No need to include "stat-macros.h".
72283         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72284         (direxists, __path_search) [!_LIBC]: Don't compile these in
72285         gnulib; the tmpdir module covers that.
72286         * lib/tempname.h: New file.
72287
72288 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * COPYING: Explain how gnulib-tool converts licence headers.
72291         Almost all wording by Eric Blake.
72292
72293 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72294
72295         * lib/mbchar.h (is_basic_table): Make read-only.
72296         * lib/mbchar.c (is_basic_table): Likewise.
72297         Reported by John Darrington.
72298
72299 2006-10-25  Bruno Haible  <bruno@clisp.org>
72300
72301         * lib/progname.h (set_program_name): Undefine before defining.
72302
72303 2006-10-25  Bruno Haible  <bruno@clisp.org>
72304
72305         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72306         false for non-gcc C++ compilers.
72307         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72308
72309 2006-10-24  Bruno Haible  <bruno@clisp.org>
72310
72311         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72312         iconv implementations like Irix iconv.
72313
72314 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72315
72316         * modules/vararrays: New file.
72317         * m4/vararrays.m4: New file, taken from diffutils.
72318         * MODULES.html.sh: New module vararrays.
72319
72320 2006-10-24  Karl Berry  <karl@gnu.org>
72321
72322         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72323         Don't call GNU Unix.
72324
72325 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72326
72327         * users.txt: Add Libtool.
72328
72329         Sync from Libtool:
72330
72331         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72332
72333         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72334         to gnulib's policy of including config.h unconditionally.
72335
72336 2006-10-24  Bruno Haible  <bruno@clisp.org>
72337
72338         * modules/wcwidth (Files): Add m4/wint_t.m4.
72339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72340         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72341
72342 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72343
72344         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72345         to pacify GCC with some -W flags enabled.  Problem reported by
72346         Bruno Haible.
72347
72348 2006-10-24  Jim Meyering  <jim@meyering.net>
72349
72350         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72351         Reported by Karl Berry.
72352
72353 2006-10-23  Bruno Haible  <bruno@clisp.org>
72354
72355         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72356
72357 2006-10-24  Bruno Haible  <bruno@clisp.org>
72358
72359         * lib/gl_list.h: Use C comment style, not C++ comment style.
72360
72361 2006-10-23  Eric Blake  <ebb9@byu.net>
72362
72363         * lib/getaddrinfo.c (includes): Add missing include.
72364
72365 2006-10-23  Bruno Haible  <bruno@clisp.org>
72366             Paul Eggert  <eggert@cs.ucla.edu>
72367
72368         Ability to rename obstack_free.
72369         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72370         obstack_free.
72371         (obstack_free): Invoke the __obstack_free macro.
72372         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72373
72374 2006-10-23  Bruno Haible  <bruno@clisp.org>
72375             Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72378         __argc, __argv from the declaration. (They are defined as macros on
72379         mingw.)
72380
72381 2006-10-22  Bruno Haible  <bruno@clisp.org>
72382
72383         * doc/gnulib-intro.texi: New file.
72384         * doc/gnulib.texi: Include it.
72385
72386 2006-10-21  Bruno Haible  <bruno@clisp.org>
72387
72388         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72389         "Introduction", "Miscellanous Notes", "Particular Modules".
72390
72391 2006-10-21  Bruno Haible  <bruno@clisp.org>
72392
72393         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72394         Change mostlyclean-local rule to avoid sh syntax error from bash
72395         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72396
72397 2006-10-23  Jim Meyering  <jim@meyering.net>
72398
72399         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72400         in place of snprintf.
72401
72402         * modules/inttostr (Files): Add lib/uinttostr.c.
72403         * lib/uinttostr.c (inttostr): New file/function.
72404         * lib/inttostr.h (uinttostr): Declare.
72405         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72406         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72407         Add uinttostr.
72408         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72409
72410 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72411
72412         * lib/canonicalize.c (ELOOP): Define if not already defined.
72413         Problem reported by Bruno Haible in
72414         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72415
72416 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72417
72418         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72419         Problem reported by Perry Smith and Ville Laurikari.
72420
72421         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72422         uses.
72423
72424 2006-10-19  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72427         for mingw.
72428
72429 2006-10-19  Bruno Haible  <bruno@clisp.org>
72430
72431         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72432         Needed for mingw.
72433
72434 2006-10-19  Bruno Haible  <bruno@clisp.org>
72435
72436         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72437
72438 2006-10-19  Bruno Haible  <bruno@clisp.org>
72439
72440         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72441         it.
72442
72443 2006-10-19  Bruno Haible  <bruno@clisp.org>
72444
72445         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72446         invocation.
72447
72448 2006-10-19  Bruno Haible  <bruno@clisp.org>
72449
72450         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72451         mountlist by default.
72452
72453 2006-10-16  Bruno Haible  <bruno@clisp.org>
72454
72455         * lib/c-strstr.c: Include c-strstr.h.
72456
72457 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72458
72459         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72460         in a slash.
72461
72462 2006-10-18  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/lock.h [C++]: Wrap definitions in extern "C".
72465
72466 2006-10-18  Bruno Haible  <bruno@clisp.org>
72467
72468         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72469         gl_LIBOBJS list.
72470
72471 2006-10-18  Bruno Haible  <bruno@clisp.org>
72472
72473         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72474
72475 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72476
72477         * lib/xstrtol.h: Include gettext.h.
72478         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72479         Problem reported by Eric Blake.
72480         * modules/xstrtol (Depends-on): Add gettext-h.
72481
72482 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72483
72484         * lib/strftime.c (advance): New macro.
72485         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72486         incomplete type, so you can't add 0 to it.  Problem and patch
72487         reported by Eelco Dolstra for dietlibc.
72488
72489 2006-10-18  Jim Meyering  <jim@meyering.net>
72490
72491         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72492         type for a local, and rename it: s/up/user_proc/.
72493
72494 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72495
72496         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72497         READ_UTMP_USER_PROCESS.
72498         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72499
72500 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72503         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72504
72505 2006-10-17  Eric Blake  <ebb9@byu.net>
72506
72507         * lib/sigprocmask.c (sigprocmask): Fix typo.
72508
72509         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72510
72511         * modules/clean-temp (Makefile.am): Don't add to make output...
72512         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72513         config.h.
72514
72515 2006-10-17  Bruno Haible  <bruno@clisp.org>
72516
72517         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72518         differently if DEFAULT_TEXT_DOMAIN is set.
72519
72520 2006-10-16  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/clean-temp.c: Include fwriteerror.h.
72523
72524 2006-10-16  Bruno Haible  <bruno@clisp.org>
72525
72526         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72527
72528 2006-10-16  Bruno Haible  <bruno@clisp.org>
72529
72530         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72531         * lib/sigprocmask.h: Include <sys/types.h>.
72532         (sigset_t): Use the system's definition if present.
72533
72534 2006-10-17  Eric Blake  <ebb9@byu.net>
72535
72536         * lib/xvasprintf.c (includes): Assume config.h.
72537         * lib/xasprintf.c (includes): Likewise.
72538
72539 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72542         at least as wide as intmax_t.
72543
72544 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72545
72546         (Imported from Automake.)
72547         * build-aux/gnupload: Update to version 1.1 of directive file.
72548
72549 2006-10-16  Eric Blake  <ebb9@byu.net>
72550
72551         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72552         match Automake 1.10a.
72553
72554 2006-10-14  Bruno Haible  <bruno@clisp.org>
72555
72556         * modules/sigprocmask: New file.
72557         * lib/sigprocmask.h: New file.
72558         * lib/sigprocmask.c: New file.
72559         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72560         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72561         request sigprocmask.o.
72562         (gl_PREREQ_SIGPROCMASK): New macro.
72563         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72564         (Depends-on): Add sigprocmask.
72565         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72566         gt_SIGNALBLOCKING. Test for 'raise' only once.
72567         * lib/fatal-signal.c: Include sigprocmask.h.
72568         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72569         unblock_fatal_signals): Define always.
72570         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72571         sigprocmask.
72572
72573 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         Sync from Automake.
72576         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72577         which incorrectly sets the mode of an existing destination
72578         directory.  In some cases the unpatched install-sh could do the
72579         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72580         system.  We hope this is rare in practice, but it's clearly worth
72581         fixing.  Problem reported by Alex Unleashed in
72582         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72583         Also, don't bother to check for -m bugs unless we're using -m;
72584         suggested by Stepan Kasal.
72585
72586 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72587
72588         Sync from Automake.
72589         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72590         `-c' flag, so they appear at the same position as in %FASTDEP%
72591         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72592         which ignores unknown options only after the first non-option.
72593         Bug report against M4 by Nelson H. F. Beebe.
72594
72595 2006-10-13  Jim Meyering  <jim@meyering.net>
72596
72597         Fix a bug in yesterday's change.
72598         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72599         p->fts_statp->st_dev would be used uninitialized.
72600         Ensures that we always call fts_stat on the very first entry.
72601         Miklos Szeredi reported that find -xdev stopped working.
72602
72603 2006-10-12  Bruno Haible  <bruno@clisp.org>
72604
72605         * gnulib-tool (func_get_automake_snippet): Append an automatically
72606         computed EXTRA_DIST augmentation.
72607         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72608         * modules/alloca-opt (Makefile.am): Likewise.
72609         * modules/allocsa (Makefile.am): Likewise.
72610         * modules/arcfour (Makefile.am): Likewise.
72611         * modules/arctwo (Makefile.am): Likewise.
72612         * modules/argmatch (Makefile.am): Likewise.
72613         * modules/argz (Makefile.am): Likewise.
72614         * modules/atexit (Makefile.am): Likewise.
72615         * modules/backupfile (Makefile.am): Likewise.
72616         * modules/byteswap (Makefile.am): Likewise.
72617         * modules/c-strtod (Makefile.am): Likewise.
72618         * modules/c-strtold (Makefile.am): Likewise.
72619         * modules/calloc (Makefile.am): Likewise.
72620         * modules/canon-host (Makefile.am): Likewise.
72621         * modules/canonicalize (Makefile.am): Likewise.
72622         * modules/chdir-long (Makefile.am): Likewise.
72623         * modules/chdir-safer (Makefile.am): Likewise.
72624         * modules/check-version (Makefile.am): Likewise.
72625         * modules/chown (Makefile.am): Likewise.
72626         * modules/cloexec (Makefile.am): Likewise.
72627         * modules/close-stream (Makefile.am): Likewise.
72628         * modules/closeout (Makefile.am): Likewise.
72629         * modules/crc (Makefile.am): Likewise.
72630         * modules/csharpexec (Makefile.am): Likewise.
72631         * modules/cycle-check (Makefile.am): Likewise.
72632         * modules/des (Makefile.am): Likewise.
72633         * modules/dev-ino (Makefile.am): Likewise.
72634         * modules/dirfd (Makefile.am): Likewise.
72635         * modules/dirname (Makefile.am): Likewise.
72636         * modules/dup2 (Makefile.am): Likewise.
72637         * modules/eealloc (Makefile.am): Likewise.
72638         * modules/error (Makefile.am): Likewise.
72639         * modules/euidaccess (Makefile.am): Likewise.
72640         * modules/exclude (Makefile.am): Likewise.
72641         * modules/exitfail (Makefile.am): Likewise.
72642         * modules/fcntl-safer (Makefile.am): Likewise.
72643         * modules/fcntl (Makefile.am): Likewise.
72644         * modules/file-type (Makefile.am): Likewise.
72645         * modules/fileblocks (Makefile.am): Likewise.
72646         * modules/filemode (Makefile.am): Likewise.
72647         * modules/filenamecat (Makefile.am): Likewise.
72648         * modules/fnmatch (Makefile.am): Likewise.
72649         * modules/fopen-safer (Makefile.am): Likewise.
72650         * modules/fpending (Makefile.am): Likewise.
72651         * modules/fprintftime (Makefile.am): Likewise.
72652         * modules/free (Makefile.am): Likewise.
72653         * modules/fsusage (Makefile.am): Likewise.
72654         * modules/ftruncate (Makefile.am): Likewise.
72655         * modules/fts (Makefile.am): Likewise.
72656         * modules/gc-arcfour (Makefile.am): Likewise.
72657         * modules/gc-des (Makefile.am): Likewise.
72658         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72659         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72660         * modules/gc-md4 (Makefile.am): Likewise.
72661         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72662         * modules/gc-sha1 (Makefile.am): Likewise.
72663         * modules/gc (Makefile.am): Likewise.
72664         * modules/getaddrinfo (Makefile.am): Likewise.
72665         * modules/getcwd (Makefile.am): Likewise.
72666         * modules/getdelim (Makefile.am): Likewise.
72667         * modules/getdomainname (Makefile.am): Likewise.
72668         * modules/getgroups (Makefile.am): Likewise.
72669         * modules/gethostname (Makefile.am): Likewise.
72670         * modules/gethrxtime (Makefile.am): Likewise.
72671         * modules/getline (Makefile.am): Likewise.
72672         * modules/getloadavg (Makefile.am): Likewise.
72673         * modules/getlogin_r (Makefile.am): Likewise.
72674         * modules/getndelim2 (Makefile.am): Likewise.
72675         * modules/getopt (Makefile.am): Likewise.
72676         * modules/getpagesize (Makefile.am): Likewise.
72677         * modules/getpass-gnu (Makefile.am): Likewise.
72678         * modules/getpass (Makefile.am): Likewise.
72679         * modules/getsubopt (Makefile.am): Likewise.
72680         * modules/gettime (Makefile.am): Likewise.
72681         * modules/gettimeofday (Makefile.am): Likewise.
72682         * modules/getugroups (Makefile.am): Likewise.
72683         * modules/getusershell (Makefile.am): Likewise.
72684         * modules/glob (Makefile.am): Likewise.
72685         * modules/group-member (Makefile.am): Likewise.
72686         * modules/hard-locale (Makefile.am): Likewise.
72687         * modules/hash (Makefile.am): Likewise.
72688         * modules/hmac-md5 (Makefile.am): Likewise.
72689         * modules/hmac-sha1 (Makefile.am): Likewise.
72690         * modules/human (Makefile.am): Likewise.
72691         * modules/idcache (Makefile.am): Likewise.
72692         * modules/imaxabs (Makefile.am): Likewise.
72693         * modules/imaxdiv (Makefile.am): Likewise.
72694         * modules/inet_ntop (Makefile.am): Likewise.
72695         * modules/inet_pton (Makefile.am): Likewise.
72696         * modules/intprops (Makefile.am): Likewise.
72697         * modules/inttostr (Makefile.am): Likewise.
72698         * modules/inttypes (Makefile.am): Likewise.
72699         * modules/isapipe (Makefile.am): Likewise.
72700         * modules/javaversion (Makefile.am): Likewise.
72701         * modules/lchmod (Makefile.am): Likewise.
72702         * modules/lchown (Makefile.am): Likewise.
72703         * modules/localcharset (Makefile.am): Likewise.
72704         * modules/long-options (Makefile.am): Likewise.
72705         * modules/lstat (Makefile.am): Likewise.
72706         * modules/malloc (Makefile.am): Likewise.
72707         * modules/mathl (Makefile.am): Likewise.
72708         * modules/mbchar (Makefile.am): Likewise.
72709         * modules/md2 (Makefile.am): Likewise.
72710         * modules/md4 (Makefile.am): Likewise.
72711         * modules/md5 (Makefile.am): Likewise.
72712         * modules/memcasecmp (Makefile.am): Likewise.
72713         * modules/memchr (Makefile.am): Likewise.
72714         * modules/memcmp (Makefile.am): Likewise.
72715         * modules/memcoll (Makefile.am): Likewise.
72716         * modules/memcpy (Makefile.am): Likewise.
72717         * modules/memmem (Makefile.am): Likewise.
72718         * modules/memmove (Makefile.am): Likewise.
72719         * modules/mempcpy (Makefile.am): Likewise.
72720         * modules/memrchr (Makefile.am): Likewise.
72721         * modules/memset (Makefile.am): Likewise.
72722         * modules/memxor (Makefile.am): Likewise.
72723         * modules/mkancesdirs (Makefile.am): Likewise.
72724         * modules/mkdir-p (Makefile.am): Likewise.
72725         * modules/mkdir (Makefile.am): Likewise.
72726         * modules/mkdtemp (Makefile.am): Likewise.
72727         * modules/mkstemp (Makefile.am): Likewise.
72728         * modules/mktime (Makefile.am): Likewise.
72729         * modules/modechange (Makefile.am): Likewise.
72730         * modules/mountlist (Makefile.am): Likewise.
72731         * modules/nanosleep (Makefile.am): Likewise.
72732         * modules/obstack (Makefile.am): Likewise.
72733         * modules/openat (Makefile.am): Likewise.
72734         * modules/pagealign_alloc (Makefile.am): Likewise.
72735         * modules/pathmax (Makefile.am): Likewise.
72736         * modules/physmem (Makefile.am): Likewise.
72737         * modules/poll (Makefile.am): Likewise.
72738         * modules/posixtm (Makefile.am): Likewise.
72739         * modules/posixver (Makefile.am): Likewise.
72740         * modules/putenv (Makefile.am): Likewise.
72741         * modules/quote (Makefile.am): Likewise.
72742         * modules/quotearg (Makefile.am): Likewise.
72743         * modules/raise (Makefile.am): Likewise.
72744         * modules/read-file (Makefile.am): Likewise.
72745         * modules/readline (Makefile.am): Likewise.
72746         * modules/readlink (Makefile.am): Likewise.
72747         * modules/readtokens (Makefile.am): Likewise.
72748         * modules/readutmp (Makefile.am): Likewise.
72749         * modules/realloc (Makefile.am): Likewise.
72750         * modules/regex (Makefile.am): Likewise.
72751         * modules/rename-dest-slash (Makefile.am): Likewise.
72752         * modules/rename (Makefile.am): Likewise.
72753         * modules/rijndael (Makefile.am): Likewise.
72754         * modules/rmdir (Makefile.am): Likewise.
72755         * modules/rpmatch (Makefile.am): Likewise.
72756         * modules/safe-read (Makefile.am): Likewise.
72757         * modules/safe-write (Makefile.am): Likewise.
72758         * modules/same-inode (Makefile.am): Likewise.
72759         * modules/same (Makefile.am): Likewise.
72760         * modules/save-cwd (Makefile.am): Likewise.
72761         * modules/savedir (Makefile.am): Likewise.
72762         * modules/setenv (Makefile.am): Likewise.
72763         * modules/settime (Makefile.am): Likewise.
72764         * modules/sha1 (Makefile.am): Likewise.
72765         * modules/sig2str (Makefile.am): Likewise.
72766         * modules/snprintf (Makefile.am): Likewise.
72767         * modules/stat-macros (Makefile.am): Likewise.
72768         * modules/stat-time (Makefile.am): Likewise.
72769         * modules/stdbool (Makefile.am): Likewise.
72770         * modules/stdint (Makefile.am): Likewise.
72771         * modules/stdlib-safer (Makefile.am): Likewise.
72772         * modules/stpcpy (Makefile.am): Likewise.
72773         * modules/stpncpy (Makefile.am): Likewise.
72774         * modules/strcase (Makefile.am): Likewise.
72775         * modules/strcasestr (Makefile.am): Likewise.
72776         * modules/strchrnul (Makefile.am): Likewise.
72777         * modules/strcspn (Makefile.am): Likewise.
72778         * modules/strdup (Makefile.am): Likewise.
72779         * modules/strerror (Makefile.am): Likewise.
72780         * modules/strftime (Makefile.am): Likewise.
72781         * modules/strndup (Makefile.am): Likewise.
72782         * modules/strnlen (Makefile.am): Likewise.
72783         * modules/strpbrk (Makefile.am): Likewise.
72784         * modules/strsep (Makefile.am): Likewise.
72785         * modules/strstr (Makefile.am): Likewise.
72786         * modules/strtod (Makefile.am): Likewise.
72787         * modules/strtoimax (Makefile.am): Likewise.
72788         * modules/strtok_r (Makefile.am): Likewise.
72789         * modules/strtol (Makefile.am): Likewise.
72790         * modules/strtoll (Makefile.am): Likewise.
72791         * modules/strtoul (Makefile.am): Likewise.
72792         * modules/strtoull (Makefile.am): Likewise.
72793         * modules/strtoumax (Makefile.am): Likewise.
72794         * modules/strverscmp (Makefile.am): Likewise.
72795         * modules/sys_socket (Makefile.am): Likewise.
72796         * modules/sys_stat (Makefile.am): Likewise.
72797         * modules/sysexits (Makefile.am): Likewise.
72798         * modules/time_r (Makefile.am): Likewise.
72799         * modules/timegm (Makefile.am): Likewise.
72800         * modules/timespec (Makefile.am): Likewise.
72801         * modules/tmpfile-safer (Makefile.am): Likewise.
72802         * modules/trim (Makefile.am): Likewise.
72803         * modules/unistd-safer (Makefile.am): Likewise.
72804         * modules/unlinkdir (Makefile.am): Likewise.
72805         * modules/unlocked-io (Makefile.am): Likewise.
72806         * modules/userspec (Makefile.am): Likewise.
72807         * modules/utime (Makefile.am): Likewise.
72808         * modules/utimecmp (Makefile.am): Likewise.
72809         * modules/utimens (Makefile.am): Likewise.
72810         * modules/vasnprintf (Makefile.am): Likewise.
72811         * modules/vasprintf (Makefile.am): Likewise.
72812         * modules/vsnprintf (Makefile.am): Likewise.
72813         * modules/xalloc (Makefile.am): Likewise.
72814         * modules/xgetcwd (Makefile.am): Likewise.
72815         * modules/xnanosleep (Makefile.am): Likewise.
72816         * modules/xreadlink (Makefile.am): Likewise.
72817         * modules/xstrtod (Makefile.am): Likewise.
72818         * modules/xstrtol (Makefile.am): Likewise.
72819         * modules/xstrtold (Makefile.am): Likewise.
72820         * modules/yesno (Makefile.am): Likewise.
72821         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72822
72823 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72824
72825         * modules/error (Makefile.am): Distribute files through
72826         EXTRA_DIST, not lib_SOURCES.
72827
72828 2006-10-12  Eric Blake  <ebb9@byu.net>
72829
72830         * modules/error (Makefile.am): Distribute files in /lib.
72831         * modules/obstack (Makefile.am): Likewise.
72832
72833 2006-10-12  Bruno Haible  <bruno@clisp.org>
72834
72835         * modules/acl (Makefile.am): Distribute all files in lib/ through
72836         EXTRA_DIST.
72837         * modules/arcfour (Makefile.am): Likewise.
72838         * modules/arctwo (Makefile.am): Likewise.
72839         * modules/argmatch (Makefile.am): Likewise.
72840         * modules/argz (Makefile.am): Likewise.
72841         * modules/atexit (Makefile.am): Likewise.
72842         * modules/backupfile (Makefile.am): Likewise.
72843         * modules/c-strtod (Makefile.am): Likewise.
72844         * modules/c-strtold (Makefile.am): Likewise.
72845         * modules/calloc (Makefile.am): Likewise.
72846         * modules/canon-host (Makefile.am): Likewise.
72847         * modules/canonicalize (Makefile.am): Likewise.
72848         * modules/chdir-long (Makefile.am): Likewise.
72849         * modules/chdir-safer (Makefile.am): Likewise.
72850         * modules/check-version (Makefile.am): Likewise.
72851         * modules/chown (Makefile.am): Likewise.
72852         * modules/cloexec (Makefile.am): Likewise.
72853         * modules/close-stream (Makefile.am): Likewise.
72854         * modules/closeout (Makefile.am): Likewise.
72855         * modules/crc (Makefile.am): Likewise.
72856         * modules/cycle-check (Makefile.am): Likewise.
72857         * modules/des (Makefile.am): Likewise.
72858         * modules/dirfd (Makefile.am): Likewise.
72859         * modules/dirname (Makefile.am): Likewise.
72860         * modules/dup2 (Makefile.am): Likewise.
72861         * modules/euidaccess (Makefile.am): Likewise.
72862         * modules/exclude (Makefile.am): Likewise.
72863         * modules/exitfail (Makefile.am): Likewise.
72864         * modules/fcntl-safer (Makefile.am): Likewise.
72865         * modules/file-type (Makefile.am): Likewise.
72866         * modules/fileblocks (Makefile.am): Likewise.
72867         * modules/filemode (Makefile.am): Likewise.
72868         * modules/filenamecat (Makefile.am): Likewise.
72869         * modules/fnmatch (Makefile.am): Likewise.
72870         * modules/fopen-safer (Makefile.am): Likewise.
72871         * modules/fpending (Makefile.am): Likewise.
72872         * modules/fprintftime (Makefile.am): Likewise.
72873         * modules/free (Makefile.am): Likewise.
72874         * modules/fsusage (Makefile.am): Likewise.
72875         * modules/ftruncate (Makefile.am): Likewise.
72876         * modules/fts (Makefile.am): Likewise.
72877         * modules/gc (Makefile.am): Likewise.
72878         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72879         * modules/getaddrinfo (Makefile.am): Likewise.
72880         * modules/getcwd (Makefile.am): Likewise.
72881         * modules/getdelim (Makefile.am): Likewise.
72882         * modules/getdomainname (Makefile.am): Likewise.
72883         * modules/getgroups (Makefile.am): Likewise.
72884         * modules/gethostname (Makefile.am): Likewise.
72885         * modules/gethrxtime (Makefile.am): Likewise.
72886         * modules/getline (Makefile.am): Likewise.
72887         * modules/getloadavg (Makefile.am): Likewise.
72888         * modules/getlogin_r (Makefile.am): Likewise.
72889         * modules/getopt (Makefile.am): Likewise.
72890         * modules/getpass (Makefile.am): Likewise.
72891         * modules/getpass-gnu (Makefile.am): Likewise.
72892         * modules/getsubopt (Makefile.am): Likewise.
72893         * modules/gettime (Makefile.am): Likewise.
72894         * modules/gettimeofday (Makefile.am): Likewise.
72895         * modules/getugroups (Makefile.am): Likewise.
72896         * modules/getusershell (Makefile.am): Likewise.
72897         * modules/glob (Makefile.am): Likewise.
72898         * modules/group-member (Makefile.am): Likewise.
72899         * modules/hard-locale (Makefile.am): Likewise.
72900         * modules/hash (Makefile.am): Likewise.
72901         * modules/hmac-md5 (Makefile.am): Likewise.
72902         * modules/hmac-sha1 (Makefile.am): Likewise.
72903         * modules/human (Makefile.am): Likewise.
72904         * modules/idcache (Makefile.am): Likewise.
72905         * modules/imaxabs (Makefile.am): Likewise.
72906         * modules/imaxdiv (Makefile.am): Likewise.
72907         * modules/inet_ntop (Makefile.am): Likewise.
72908         * modules/inet_pton (Makefile.am): Likewise.
72909         * modules/inttostr (Makefile.am): Likewise.
72910         * modules/isapipe (Makefile.am): Likewise.
72911         * modules/lchown (Makefile.am): Likewise.
72912         * modules/long-options (Makefile.am): Likewise.
72913         * modules/lstat (Makefile.am): Likewise.
72914         * modules/malloc (Makefile.am): Likewise.
72915         * modules/mathl (Makefile.am): Likewise.
72916         * modules/mbchar (Makefile.am): Likewise.
72917         * modules/md2 (Makefile.am): Likewise.
72918         * modules/md4 (Makefile.am): Likewise.
72919         * modules/md5 (Makefile.am): Likewise.
72920         * modules/memcasecmp (Makefile.am): Likewise.
72921         * modules/memchr (Makefile.am): Likewise.
72922         * modules/memcmp (Makefile.am): Likewise.
72923         * modules/memcoll (Makefile.am): Likewise.
72924         * modules/memcpy (Makefile.am): Likewise.
72925         * modules/memmem (Makefile.am): Likewise.
72926         * modules/memmove (Makefile.am): Likewise.
72927         * modules/mempcpy (Makefile.am): Likewise.
72928         * modules/memrchr (Makefile.am): Likewise.
72929         * modules/memset (Makefile.am): Likewise.
72930         * modules/memxor (Makefile.am): Likewise.
72931         * modules/mkancesdirs (Makefile.am): Likewise.
72932         * modules/mkdir (Makefile.am): Likewise.
72933         * modules/mkdir-p (Makefile.am): Likewise.
72934         * modules/mkdtemp (Makefile.am): Likewise.
72935         * modules/mkstemp (Makefile.am): Likewise.
72936         * modules/mktime (Makefile.am): Likewise.
72937         * modules/modechange (Makefile.am): Likewise.
72938         * modules/mountlist (Makefile.am): Likewise.
72939         * modules/nanosleep (Makefile.am): Likewise.
72940         * modules/openat (Makefile.am): Likewise.
72941         * modules/pagealign_alloc (Makefile.am): Likewise.
72942         * modules/physmem (Makefile.am): Likewise.
72943         * modules/poll (Makefile.am): Likewise.
72944         * modules/posixtm (Makefile.am): Likewise.
72945         * modules/posixver (Makefile.am): Likewise.
72946         * modules/putenv (Makefile.am): Likewise.
72947         * modules/quote (Makefile.am): Likewise.
72948         * modules/quotearg (Makefile.am): Likewise.
72949         * modules/raise (Makefile.am): Likewise.
72950         * modules/read-file (Makefile.am): Likewise.
72951         * modules/readline (Makefile.am): Likewise.
72952         * modules/readlink (Makefile.am): Likewise.
72953         * modules/readtokens (Makefile.am): Likewise.
72954         * modules/readutmp (Makefile.am): Likewise.
72955         * modules/realloc (Makefile.am): Likewise.
72956         * modules/regex (Makefile.am): Likewise.
72957         * modules/rename (Makefile.am): Likewise.
72958         * modules/rename-dest-slash (Makefile.am): Likewise.
72959         * modules/rijndael (Makefile.am): Likewise.
72960         * modules/rmdir (Makefile.am): Likewise.
72961         * modules/rpmatch (Makefile.am): Likewise.
72962         * modules/safe-read (Makefile.am): Likewise.
72963         * modules/safe-write (Makefile.am): Likewise.
72964         * modules/same (Makefile.am): Likewise.
72965         * modules/save-cwd (Makefile.am): Likewise.
72966         * modules/savedir (Makefile.am): Likewise.
72967         * modules/setenv (Makefile.am): Likewise.
72968         * modules/settime (Makefile.am): Likewise.
72969         * modules/sha1 (Makefile.am): Likewise.
72970         * modules/sig2str (Makefile.am): Likewise.
72971         * modules/snprintf (Makefile.am): Likewise.
72972         * modules/stdlib-safer (Makefile.am): Likewise.
72973         * modules/stpcpy (Makefile.am): Likewise.
72974         * modules/stpncpy (Makefile.am): Likewise.
72975         * modules/strcase (Makefile.am): Likewise.
72976         * modules/strcasestr (Makefile.am): Likewise.
72977         * modules/strchrnul (Makefile.am): Likewise.
72978         * modules/strcspn (Makefile.am): Likewise.
72979         * modules/strdup (Makefile.am): Likewise.
72980         * modules/strerror (Makefile.am): Likewise.
72981         * modules/strftime (Makefile.am): Likewise.
72982         * modules/strndup (Makefile.am): Likewise.
72983         * modules/strnlen (Makefile.am): Likewise.
72984         * modules/strpbrk (Makefile.am): Likewise.
72985         * modules/strsep (Makefile.am): Likewise.
72986         * modules/strstr (Makefile.am): Likewise.
72987         * modules/strtod (Makefile.am): Likewise.
72988         * modules/strtoimax (Makefile.am): Likewise.
72989         * modules/strtok_r (Makefile.am): Likewise.
72990         * modules/strtol (Makefile.am): Likewise.
72991         * modules/strtoll (Makefile.am): Likewise.
72992         * modules/strtoul (Makefile.am): Likewise.
72993         * modules/strtoull (Makefile.am): Likewise.
72994         * modules/strtoumax (Makefile.am): Likewise.
72995         * modules/strverscmp (Makefile.am): Likewise.
72996         * modules/time_r (Makefile.am): Likewise.
72997         * modules/timegm (Makefile.am): Likewise.
72998         * modules/tmpfile-safer (Makefile.am): Likewise.
72999         * modules/unistd-safer (Makefile.am): Likewise.
73000         * modules/unlinkdir (Makefile.am): Likewise.
73001         * modules/userspec (Makefile.am): Likewise.
73002         * modules/utime (Makefile.am): Likewise.
73003         * modules/utimecmp (Makefile.am): Likewise.
73004         * modules/utimens (Makefile.am): Likewise.
73005         * modules/vasnprintf (Makefile.am): Likewise.
73006         * modules/vasprintf (Makefile.am): Likewise.
73007         * modules/vsnprintf (Makefile.am): Likewise.
73008         * modules/xalloc (Makefile.am): Likewise.
73009         * modules/xgetcwd (Makefile.am): Likewise.
73010         * modules/xnanosleep (Makefile.am): Likewise.
73011         * modules/xreadlink (Makefile.am): Likewise.
73012         * modules/xstrtod (Makefile.am): Likewise.
73013         * modules/xstrtol (Makefile.am): Likewise.
73014         * modules/xstrtold (Makefile.am): Likewise.
73015         * modules/yesno (Makefile.am): Likewise.
73016
73017 2006-10-12  Jim Meyering  <jim@meyering.net>
73018
73019         * m4/getloadavg.m4: Revert the change below.
73020
73021         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73022         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73023         fail with a symlink, which is what coreutils' ./bootstrap now
73024         creates by default.
73025
73026 2006-10-12  Bruno Haible  <bruno@clisp.org>
73027
73028         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73029         mingw.
73030         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73031         MSVC and mingw explicitly.
73032
73033 2006-10-11  Simon Josefsson  <jas@extundo.com>
73034             Bruno Haible  <bruno@clisp.org>
73035
73036         Add support for multiple gnulib-tool invocations in the scope of a
73037         single configure.ac file.
73038         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73039         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73040         with the same contents as the _LIBADD variable.
73041         (func_emit_initmacro_start, func_emit_initmacro_end,
73042         func_emit_initmacro_done): New functions.
73043         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73044         gl_LIBOBJS and gl_LTLIBOBJS.
73045
73046 2006-10-11  Bruno Haible  <bruno@clisp.org>
73047
73048         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73049         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73050         autoreconf. Instead, invoke autopoint explicitly but move back the
73051         *.m4 files from gnulib.
73052
73053 2006-10-11  Bruno Haible  <bruno@clisp.org>
73054
73055         * gnulib-tool (func_usage): Make module names after --create-testdir
73056         optional.
73057         (func_create_testdir): If no module was specified, use nearly all
73058         modules.
73059
73060 2006-10-12  Jim Meyering  <jim@meyering.net>
73061
73062         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73063         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73064         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73065         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73066         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73067         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73068         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73069         (fts_set_stat_required): New function.
73070         (fts_open): Defer the calls to fts_stat, if possible or requested.
73071         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73072         into fts_stat itself.
73073         (fts_read): Perform any required (deferred) fts_stat call.
73074         (fts_build): Likewise, for the directory we're about to open and read.
73075         In the readdir loop, carefully decide whether each entry will require
73076         an eventual call to fts_stat, using dirent.d_type info if available.
73077         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73078         a command line argument into this function.  Update all callers.
73079         Map a return value of FTS_DOT to FTS_D for a command line argument.
73080         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73081         Thanks to Miklos Szeredi for his tenacity and for the initial
73082         bug report about "find" failing on a FUSE-based file system.
73083
73084         * lib/fts.c (fts_open): Use consistent indentation.
73085
73086 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73087
73088         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73089         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73090         reported by Jim Meyering.  All uses of cache variables renamed
73091         to match Autoconf's.
73092         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73093         the other one.
73094
73095         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73096         Fix misspelling in diagnostic.
73097
73098 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73099
73100         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73101         defined.  Problem reported by Matthew Woehlke.
73102
73103         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73104         Add support for Tandem NonStop R series.
73105         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73106         Use new macro.
73107
73108         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73109         (has_trailing_slash): Omit size arg; all callers changed.
73110         Omit 'inline', since it doesn't help performance and we'd
73111         need to configure it.
73112         Don't count //, ///, etc. as having a trailing slash.
73113         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73114         (rpl_rename_dest_slash): On failure, use rename's errno rather
73115         than (in some cases) an incorrect or junk errno.
73116         Simplify code by removing need to compute length; this does
73117         cause it to make two passes instead of one over the file name,
73118         but it's worth it.
73119
73120         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73121         change, since Autoconf's version may no longer be appropriate now
73122         that we are using CVS Autoconf's version.  Add support for Tandem.
73123
73124 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73125             Bruno Haible  <bruno@clisp.org>
73126
73127         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73128         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73129         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73130         gl_AC_TYPE_LONG_LONG.
73131
73132         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73133         instead of HAVE_LONG_LONG.
73134         * lib/printf-args.c (printf_fetchargs): Likewise.
73135         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73136         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73137         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73138         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73139         gl_AC_TYPE_LONG_LONG.
73140
73141 2006-10-11  Bruno Haible  <bruno@clisp.org>
73142
73143         * m4/longlong.m4: Add comments.
73144         * m4/ulonglong.m4: Likewise.
73145
73146 2006-10-10  Bruno Haible  <bruno@clisp.org>
73147
73148         Make it possible to #define stpcpy, strdup to aliases.
73149         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73150         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73151
73152 2006-10-10  Bruno Haible  <bruno@clisp.org>
73153
73154         Make it possible to #define gcd to an alias.
73155         * lib/gcd.c: Include config.h.
73156
73157 2006-10-10  Bruno Haible  <bruno@clisp.org>
73158
73159         Make it possible to #define c_isascii to an alias.
73160         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73161         defined. Undefine the macros before defining them, to avoid gcc
73162         warnings.
73163         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73164         define NO_C_CTYPE_MACROS early.
73165
73166 2006-10-10  Bruno Haible  <bruno@clisp.org>
73167
73168         Make it possible to #define set_program_name to an alias.
73169         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73170         ENABLE_RELOCATABLE early.
73171
73172 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73175         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73176         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73177         More generally, don't assume that 64-bit signed int is available
73178         if unsigned int is, and vice versa.
73179         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73180         unsigned symbols, not on their signed counterparts.
73181         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73182         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73183         (UINT64_C, UINTMAX_C):
73184         Likewise.
73185         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73186         unsigned counterparts.
73187         (Have_long_long, Unsigned): New macros.
73188         (Int): Renamed from INT.
73189         (strtoimax): Use the new macros.
73190         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73191         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73192         * modules/inttypes (inttypes.h): Substitute
73193         HAVE_UNSIGNED_LONG_LONG_INT.
73194         * modules/stdint (stdint.h): Likewise.
73195         (Files): Add m4/ulonglong.m4.
73196
73197 2006-10-10  Bruno Haible  <bruno@clisp.org>
73198
73199         Fix a gcc -Wshadow warning.
73200         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73201         to 'bucket'.
73202         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73203         gl_linked_indexof_from_to): Likewise.
73204         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73205         Likewise.
73206         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73207         Likewise.
73208         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73209         Reported by Eric Blake.
73210
73211 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73214         for NetBSD.  Problem reported by Bruno Haible.
73215
73216 2006-10-09  Jim Meyering  <jim@meyering.net>
73217
73218         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73219         Patch from Bruno Haible.
73220
73221 2006-10-09  Jim Meyering  <jim@meyering.net>
73222
73223         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73224         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73225         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73226
73227 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         Don't include <config.h> twice; this doesn't work in some cases,
73230         e.g., when config.h has "#define intmax_t long long int" and
73231         we include <config.h>, <inttypes.h>, <config.h> in that order.
73232         Problem reported by Matthew Woehlke in:
73233         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73234         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73235         * lib/fts-cycle.c: Don't include config.h.
73236         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73237         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73238         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73239         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73240         inttypes.h.
73241         * lib/xstrtoumax.c: Likewise.
73242         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73243         __strtol and the like, so that this module is more like its siblings.
73244         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73245         Remove; no longer needed now that we assume gnulib inttypes.h.
73246
73247 2006-10-08  Bruno Haible  <bruno@clisp.org>
73248
73249         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73250         option.
73251
73252 2006-10-07  Jim Meyering  <jim@meyering.net>
73253
73254         * modules/inttypes (inttypes.h): Revert what seems to have been
73255         an inadvertent part of today's change: use "|", not "/" in the
73256         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73257
73258 2006-10-07  Bruno Haible  <bruno@clisp.org>
73259
73260         * modules/sublist: New file.
73261
73262 2006-10-07  Bruno Haible  <bruno@clisp.org>
73263
73264         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73265         * modules/argz (argz.h): Likewise.
73266         * modules/arpa_inet (arpa/inet.h): Likewise.
73267         * modules/byteswap (byteswap.h): Likewise.
73268         * modules/configmake (configmake.h): Likewise.
73269         * modules/fcntl (fcntl.h): Likewise.
73270         * modules/fnmatch (fnmatch.h): Likewise.
73271         * modules/getopt (getopt.h): Likewise.
73272         * modules/glob (glob.h): Likewise.
73273         * modules/inttypes (inttypes.h): Likewise.
73274         * modules/netinet_in (netinet/in.h): Likewise.
73275         * modules/poll (poll.h): Likewise.
73276         * modules/stdbool (stdbool.h): Likewise.
73277         * modules/stdint (stdint.h): Likewise.
73278         * modules/sys_select (sys/select.h): Likewise.
73279         * modules/sys_socket (sys/socket.h): Likewise.
73280         * modules/sys_stat (sys/stat.h): Likewise.
73281         * modules/sysexits (sysexits.h): Likewise.
73282         * modules/unistd (unistd.h): Likewise.
73283         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73284         Add a "DO NOT EDIT" comment to the generated file.
73285         (func_import): Likewise for gnulib-comp.m4.
73286
73287 2006-10-07  Bruno Haible  <bruno@clisp.org>
73288
73289         * lib/gl_sublist.h: New file.
73290         * lib/gl_sublist.c: New file.
73291
73292 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73295         name (relative to the original working directory) and the file
73296         name component (relative to the temporary working directory).  All
73297         callers changed.
73298         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73299         * lib/mkdir-p.c (make_dir_parents): Likewise.
73300         * lib/mkdir-p.h (make_dir_parents): Likewise.
73301
73302 2006-10-06  Eric Blake  <ebb9@byu.net>
73303
73304         Define several macros for use by the clean-temp module.
73305         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73306         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73307         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73308
73309         * lib/clean-temp.h (close_stream_temp): New declaration.
73310         * lib/clean-temp.c (includes): Pull in headers according to what
73311         other modules are in use.
73312         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73313
73314 2006-10-06  Bruno Haible  <bruno@clisp.org>
73315
73316         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73317         instead of fopen, fwriteerror.
73318
73319 2006-10-06  Bruno Haible  <bruno@clisp.org>
73320
73321         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73322         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73323         int.
73324         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73325         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73326         Return an error indicator.
73327         Suggested by Eric Blake.
73328
73329 2006-10-06  Bruno Haible  <bruno@clisp.org>
73330
73331         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73332         Reported by Eric Blake.
73333
73334 2006-10-06  Bruno Haible  <bruno@clisp.org>
73335
73336         * modules/closeout (Description): Mention stderr too.
73337
73338 2006-10-06  Bruno Haible  <bruno@clisp.org>
73339         and Paul Eggert  <eggert@cs.ucla.edu>
73340
73341         * lib/closeout.c (close_stdout): Also close stderr.
73342         * lib/closeout.h: Update comment.
73343
73344 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73347         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73348         * lib/dirchownmod.c: Include lchown.h.
73349         * lib/lchown.c: Don't include files that lchown.h now includes.
73350         Don't declare chown, since lchown.h now does that.
73351         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73352         (lchown): Define to rpl_chown if lchown is declared but
73353         does not exist.  Declare using a prototype if lchown is not
73354         declared.  Add a copyright notice.
73355         * lib/mkstemp.h: Include <unistd.h>.
73356         * lib/openat.c: Include lchown.h.
73357
73358         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73359         we now test for that separately.
73360         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73361         rather than O_NOFOLLOW, when testing whether it's possible to
73362         avoid a race condition reliably.
73363         * lib/savewd.c (savewd_chdir): Likewise.
73364
73365         Remove macros that are no longer needed now that stdint.h is
73366         reliable.
73367         * lib/fsusage.c (UINTMAX_MAX): Remove.
73368         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73369         * lib/utimecmp.c (SIZE_MAX): Remove.
73370
73371         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73372
73373         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73374         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73375         O_NOATIME works.
73376
73377 2006-10-05  Bruno Haible  <bruno@clisp.org>
73378
73379         * lib/gl_list.h (gl_sortedlist_search_from_to,
73380         gl_sortedlist_indexof_from_to): New declarations.
73381         (gl_list_implementation): New fields sortedlist_search_from_to,
73382         sortedlist_indexof_from_to.
73383         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73384         inline functions.
73385         * lib/gl_list.c (gl_sortedlist_search_from_to,
73386         gl_sortedlist_indexof_from_to): New functions.
73387         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73388         function.
73389         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73390         (gl_array_sortedlist_search_from_to): New function.
73391         (gl_array_list_implementation): Update.
73392         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73393         function.
73394         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73395         (gl_carray_sortedlist_search_from_to): New function.
73396         (gl_carray_list_implementation): Update.
73397         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73398         gl_linked_sortedlist_indexof_from_to): New functions.
73399         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73400         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73401         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73402         gl_tree_sortedlist_indexof_from_to): New functions.
73403         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73404         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73405         Update.
73406         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73407         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73408         Update.
73409
73410 2006-10-05  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73413         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73414         (struct gl_list_implementation): Add fields search_from_to,
73415         indexof_from_to. Remove fields search, indexof.
73416         (gl_list_search): Use the search_from_to method.
73417         (gl_list_search_from, gl_list_search_from_to): New functions.
73418         (gl_list_indexof): Use the indexof_from_to method.
73419         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73420         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73421         (gl_list_search_from, gl_list_search_from_to): New functions.
73422         (gl_list_indexof): Use the indexof_from_to method.
73423         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73424         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73425         gl_array_indexof. Add start_index, end_index arguments.
73426         (gl_array_search_from_to): Renamed from gl_array_search. Add
73427         start_index, end_index arguments.
73428         (gl_array_remove, gl_array_list_implementation): Update.
73429         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73430         gl_carray_indexof. Add start_index, end_index arguments.
73431         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73432         start_index, end_index arguments.
73433         (gl_carray_remove, gl_carray_list_implementation): Update.
73434         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73435         gl_linked_search. Add start_index, end_index arguments.
73436         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73437         start_index, end_index arguments.
73438         (gl_linked_remove): Update.
73439         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73440         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73441         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73442         field to 'size_t'.
73443         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73444         gl_tree_search. Add start_index, end_index arguments.
73445         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73446         start_index, end_index arguments.
73447         (gl_tree_remove): Update.
73448         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73449         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73450         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73451         function.
73452         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73453         gl_tree_search. Add start_index, end_index arguments.
73454         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73455         start_index, end_index arguments.
73456         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73457         Update.
73458         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73459
73460 2006-10-05  Bruno Haible  <bruno@clisp.org>
73461
73462         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73463
73464         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73465         fwriteerror_temp): New declarations.
73466         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73467         (descriptors): New variable.
73468         (cleanup): First, close the descriptors.
73469         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73470         fclose_temp, fwriteerror_temp): New functions.
73471
73472 2006-10-04  Jim Meyering  <jim@meyering.net>
73473
73474         * lib/fts.c (fts_open): Tiny comment change.
73475
73476 2006-10-04  Bruno Haible  <bruno@clisp.org>
73477
73478         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73479         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73480         gl_LOCK_BODY.
73481         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73482         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73483         gl_LOCK_EARLY_BODY.
73484         (gl_LOCK): Require gl_LOCK_BODY.
73485
73486 2006-10-04  Bruno Haible  <bruno@clisp.org>
73487
73488         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73489         (gl_oset_search_atleast): New declaration.
73490         (struct gl_oset_implementation): Add field 'search_atleast'.
73491         (gl_oset_search_atleast): New inline function.
73492         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73493         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73494         (gl_array_oset_implementation): Update.
73495         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73496         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73497         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73498
73499 2006-10-04  Bruno Haible  <bruno@clisp.org>
73500
73501         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73502
73503 2006-10-03  Bruno Haible  <bruno@clisp.org>
73504
73505         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73506         from gl_avltreehash_list_implementation.
73507
73508 2006-10-03  Bruno Haible  <bruno@clisp.org>
73509
73510         * lib/gl_oset.c (gl_oset_add): Fix return type.
73511
73512 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73513
73514         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73515
73516 2006-10-02  Eric Blake  <ebb9@byu.net>
73517
73518         * modules/strnlen (Depends-on): Add extensions.
73519
73520 2006-10-02  Eric Blake  <ebb9@byu.net>
73521
73522         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73523         definition in 2.60+.
73524
73525 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73526
73527         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73528         checks.
73529
73530 2006-10-02  Bruno Haible  <bruno@clisp.org>
73531
73532         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73533         to the AUTOMAKE_OPTIONS.
73534         Reported by Jim Meyering.
73535
73536 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73537
73538         Work around bug in Solaris 10 /proc file system:
73539         /proc/self/fd/NNN/.. isn't the parent directory of
73540         the directory whose file descriptor is NNN.  This needs to
73541         be worked around at run time, not compile time, since a
73542         program might be built on Solaris 8, where things work, and
73543         run on Solaris 10.
73544         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73545         to use the following interface instead:
73546         (OPENAT_BUFFER_SIZE): New macro.
73547         (openat_proc_name): New function.
73548         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73549         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73550         Likewise.
73551         * lib/openat-proc.c: New file.
73552         * modules/openat (Files): Add lib/openat-proc.c.
73553         (Depends-on): Add same-inode, stdbool.
73554         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73555
73556 2006-09-29  Bruno Haible  <bruno@clisp.org>
73557
73558         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73559         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73560         argument. Set stdout_closed before testing for ferror, not after.
73561         (fwriteerror, fwriteerror_no_ebadf): New functions.
73562
73563 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73564
73565         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73566
73567 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73568
73569         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73570         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73571
73572 2006-09-28  Jim Meyering  <jim@meyering.net>
73573
73574         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73575         Include <unistd.h>.
73576
73577 2006-09-28  Bruno Haible  <bruno@clisp.org>
73578
73579         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73580         * modules/linkedhash-list (Depends-on): Likewise.
73581         * modules/rbtreehash-list (Depends-on): Likewise.
73582
73583 2006-09-28  Bruno Haible  <bruno@clisp.org>
73584
73585         * lib/strndup.h: Simplify the redefinition of strndup.
73586         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73587         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73588
73589 2006-09-28  Bruno Haible  <bruno@clisp.org>
73590
73591         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73592         * lib/gl_linkedhash_list.c: Likewise.
73593         * lib/gl_rbtreehash_list.c: Likewise.
73594
73595 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73598         getaddrinfo.
73599
73600         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73601         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73602         it causes <stdio_ext.h> to cause a compile-time error.
73603         Problem reported by Nelson H. F. Beebe.
73604         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73605         of HAVE_DECL___PENDING.
73606
73607         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73608         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73609         declaration.
73610
73611 2006-09-27  Jim Meyering  <jim@meyering.net>
73612
73613         This file could end up with a definition for a function
73614         named __strndup, rather than rpl_strndup on a system with
73615         incomplete weak_alias support.
73616         * lib/strndup.c (strndup): Rename from __strndup.
73617         Remove #defines that used to map __strndup to strndup.
73618         Don't use K&R prototypes.
73619         Remove LIBC-related code, since this file is not sync'd with glibc.
73620         * lib/strndup.h: Revamp, accordingly.
73621         * m4/strndup.m4: Modernize.
73622
73623 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * modules/savewd (Depends-on): Add 'raise'.
73626         * lib/savewd.c: Include <signal.h>, for 'raise'.
73627
73628 2006-09-26  Jim Meyering  <jim@meyering.net>
73629
73630         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73631         when we detect Darwin 8.7.0's acl_get_file bug.
73632         Rearrange to perform the new (below) run-test while $LIBS
73633         contains any acl-related library.  Set USE_ACL at the end.
73634         (gl_ACL_GET_FILE): New function.
73635
73636 2006-09-26  Eric Blake  <ebb9@byu.net>
73637
73638         * lib/verror.c: Include <config.h> unconditionally.
73639
73640 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73641
73642         * modules/clock-time (Maintainer): Add self.
73643         * modules/getlogin_r (Depends-on): Add extensions.
73644
73645 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73646
73647         * modules/clock-time: New module.
73648         * modules/nanosleep (Depends-on): Add clock-time.
73649         * modules/gethrxtime (Depends-on): Likewise.
73650         * modules/gettime (Depends-on): Likewise.
73651         * modules/settime (Depends-on): Likewise.
73652
73653         * modules/fts-lgpl: Depend on openat.
73654         * modules/mkancesdirs: Depend on savewd.
73655         * modules/mkdir-p: Likewise.
73656
73657 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73658
73659         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73660
73661         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73662         `gl_have_arbitrary_file_name_length_limit' to
73663         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73664         actually works between configure runs.
73665
73666 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73667             Bruno Haible  <bruno@clisp.org>
73668
73669         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73670
73671 2006-09-25  Jim Meyering  <jim@meyering.net>
73672
73673         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73674         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73675
73676 2006-09-25  Eric Blake  <ebb9@byu.net>
73677
73678         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73679         exec's in 2006-09-18 patch when shuffling fds.
73680
73681 2006-09-25  Bruno Haible  <bruno@clisp.org>
73682
73683         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73684         Reported by Jim Meyering.
73685
73686 2006-09-24  Jim Meyering  <jim@meyering.net>
73687
73688         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73689         compare a pointer against a literal "0".  That caused failures with
73690         at least HP-UX's hpcc.
73691
73692 2006-09-22  Simon Josefsson  <jas@extundo.com>
73693
73694         * modules/gc-sha1:
73695         * modules/gc-md4:
73696         * modules/gc-hmac-sha1:
73697         * modules/gc-hmac-md5:
73698         * modules/gc-des:
73699         * modules/gc-arcfour: Distribute more files.
73700
73701 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73702
73703         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73704         (gl_linked_iterator_from_to): Initialize struct completely.
73705         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73706         (gl_tree_iterator_from_to): Likewise
73707         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73708         * lib/gl_array_list.c [lint] (gl_array_iterator)
73709         (gl_array_iterator_from_to): Likewise.
73710         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73711         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73712         (gl_carray_iterator_from_to): Likewise.
73713
73714         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73715         * lib/md4.c (md4_process_block): Remove unused variable.
73716         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73717         parentheses for clarity.
73718
73719 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73720
73721         * modules/bison-i18n (Depends-on): Add gettext.
73722
73723 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73724
73725         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73726         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73727         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73728         also add missing comma that caused broken test.
73729         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73730         stdlib.h, for `abort'.
73731         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73732         variables.
73733         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73734         include unistd.h if present, for `rmdir'.
73735         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73736         variables.
73737         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73738         in the process include standard headers for prototypes.
73739         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73740         gets declared on GNU/Linux.
73741         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73742         unistd.h, for `rmdir'.
73743         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73744
73745         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73746         always true.
73747         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73748
73749         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73750
73751 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73752
73753         * gnulib-tool (func_version): Create output all at once.  This
73754         may help avoid triggering unnecessary SIGPIPEs, and at any
73755         rate it doesn't hurt.
73756
73757 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73758             Bruno Haible  <bruno@clisp.org>
73759
73760         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73761         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73762         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73763
73764         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73765         (gl_FUNC_VASPRINTF): Invoke it.
73766
73767 2006-09-22  Bruno Haible  <bruno@clisp.org>
73768
73769         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73770         getloadavg.c as first argument.
73771
73772 2006-09-22  Bruno Haible  <bruno@clisp.org>
73773
73774         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73775         at the beginning of the gl_INIT macro.
73776         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73777         gl_GETLOADAVG.
73778
73779 2006-09-22  Bruno Haible  <bruno@clisp.org>
73780
73781         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73782         module.
73783         Suggested by Ralf Wildenhues.
73784
73785 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         Import this patch from libc:
73788
73789         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73790
73791         * lib/regex_internal.c (re_string_reconstruct): Handle
73792         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73793         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73794         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73795         re_string_context_at.
73796
73797         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73798         now requires it.
73799         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73800         gl_REGEX now does it for us.
73801         (gl_REGEX): Add test taken from
73802         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73803
73804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73805         Check that large offsets work.  Modernize Autoconf usages.
73806         Prefer "yes" to mean a good thing rather than a bad.
73807         Don't put "#define mkstemp" in config.h, as this might interfere
73808         with standard system headers that "#define mkstemp mkstemp64".
73809
73810         * modules/mkstemp (Depends-on): Add extensions, so that
73811         mkstemp is visible on some platforms.
73812         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73813         (Include): Change to "mkstemp.h" from <stdlib.h>.
73814         (Files): Add mkstemp.h.
73815
73816         * lib/mkstemp.h: New file, since some standard headers
73817         #define mkstemp.
73818         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73819         Include "mkstemp.h".
73820         Make the _LIBC code resemble glibc original more,
73821         e.g., use K&R style.
73822         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73823         (mkstemp): Remove, since mkstemp.h does this for us.
73824         * lib/stdlib--.h: Include mkstemp.h.
73825
73826         Import this patch from libc:
73827
73828         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73829
73830         * lib/tempname.c (__gen_tempname): Change attempts_min
73831         into a macro.  Use preprocessor to decide how to initialize
73832         attempts [Coverity CID 67].
73833
73834 2006-09-20  Bruno Haible  <bruno@clisp.org>
73835
73836         * lib/mkdtemp.c: Import from libc.
73837         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73838                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73839                 attempts_min into a macro.  Use preprocessor to decide how to
73840                 initialize attempts [Coverity CID 67].
73841         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73842                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73843                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73844
73845 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73846
73847         * gnulib-tool (func_exit): New function, to allow to pass the
73848         exit status portably through the trap.  Use everywhere.
73849         (--help, --version): Signal a write error.
73850         (trap): catch SIGPIPE, for write errors.
73851         Exit at the end of the trap, with the correct exit status.
73852
73853 2006-09-19  Karl Berry  <karl@gnu.org>
73854
73855         * doc/gnulib.texi: note about the license texinfo files.
73856
73857 2006-09-19  Eric Blake  <ebb9@byu.net>
73858
73859         * gnulib-tool: Avoid space-tab.
73860
73861 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73864         that prevented coreutils 6.1 from building.  Problem reported
73865         by Petter Reinholdtsen.
73866
73867 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * gnulib-tool (avoidlist): Fix typo that broke options like
73870         --avoid=lock that are used by coreutils bootstrap.
73871
73872 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73873
73874         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73875         more systematically.
73876
73877 2006-09-18  Jim Meyering  <jim@meyering.net>
73878
73879         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73880
73881 2006-09-18  Bruno Haible  <bruno@clisp.org>
73882
73883         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73884
73885 2006-09-18  Bruno Haible  <bruno@clisp.org>
73886
73887         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73888         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73889         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73890         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73891         * m4/gettext.m4: Require autoconf >= 2.52.
73892         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73893         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73894         of gl_cv_header_inttypes_h.
73895
73896 2006-09-18  Bruno Haible  <bruno@clisp.org>
73897
73898         * lib/javaversion.c: Include configmake.h.
73899
73900 2006-09-18  Bruno Haible  <bruno@clisp.org>
73901
73902         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73903         avoid that the while loops be executed in a subshell.
73904
73905 2006-09-18  Bruno Haible  <bruno@clisp.org>
73906
73907         * MODULES.html.sh (func_module): Break long lines.
73908         Suggested by Bruce Korb <bkorb@gnu.org>.
73909
73910 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73911
73912         Speed up by a factor of 1.12.
73913         * gnulib-tool (nl): New variable.
73914         (func_import): Rewrite include directive extraction to only read each
73915         directive once.
73916
73917 2006-09-17  Bruno Haible  <bruno@clisp.org>
73918
73919         * modules/javaversion (Makefile.am): Remove DEFS setting.
73920         (Depends-on): Add configmake, for PKGDATADIR definition.
73921
73922 2006-09-17  Bruno Haible  <bruno@clisp.org>
73923
73924         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73925
73926 2006-09-17  Bruno Haible  <bruno@clisp.org>
73927
73928         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73929         (func_modules_transitive_closure, func_modules_add_dummy,
73930         func_modules_to_filelist, func_import, func_create_testdir,
73931         func_create_megatestdir, ...): Use it wherever possible.
73932         Suggested by Ralf Wildenhues.
73933
73934 2006-09-16  Karl Berry  <karl@gnu.org>
73935
73936         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73937         to avoid sectioning errors.
73938         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73939         [ifinfo]: blank line after @center-ed titles.
73940         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73941         Spell FSF address consistently with others.
73942         (These changes approved by rms.)
73943
73944 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73945
73946         Speed up by a factor of 1.61.
73947         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73948         already checked module names again.
73949
73950 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73951
73952         Speed up by a factor of 1.13.
73953         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73954         for new_files, and the input to func_add_or_update.
73955
73956 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73957
73958         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73959         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73960
73961 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73962
73963         * modules/mkancesdirs (Depends-on): Add fcntl.
73964         * modules/savewd: New file.
73965         * MODULES.html.sh (File system functions): Add savewd.
73966
73967         * modules/configmake (Makefile.am): Add support for the
73968         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73969
73970 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73971
73972         * m4/savewd.m4: New file.
73973
73974 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73977         (dirchownmod): New arg FD.  All callers changed.
73978         Use FD rather than opening the directory ourself, as opening is
73979         now the caller's responsibility.
73980         * lib/dirchownmod.h: Likewise.
73981         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73982         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73983         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73984         (test_dir): Remove.
73985         (mkancesdirs): Return length of prefix of FILE that has already
73986         been made, or -2 if there is a child doing the work.  Redo
73987         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73988         ".", and treat ".." specially since it might stray back into
73989         already-created areas.  Use a subprocess if necessary.  New arg
73990         WD; all users changed.  MAKE_DIR function should now return 1
73991         if it creates a directory that is not readable.  Return -2 if
73992         a child process is spun off.
73993         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73994         Adjust signature to match code.
73995         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73996         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73997         all users changed.
73998         * lib/savewd.c, lib/savewd.h: New files.
73999
74000 2006-09-15  Jim Meyering  <jim@meyering.net>
74001
74002         * modules/rename-dest-slash: New module.
74003         * MODULES.html.sh (posix_compat): Add it here.
74004
74005         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74006
74007 2006-09-15  Jim Meyering  <jim@meyering.net>
74008
74009         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74010         file.
74011
74012         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74013
74014 2006-09-15  Jim Meyering  <jim@meyering.net>
74015
74016         * lib/rename-dest-slash.c (has_trailing_slash): Use
74017         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74018         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74019         test before testing whether SRC is a directory.
74020         Suggestions from Bruno Haible.
74021
74022         Avoid a warning about an unused variable.
74023         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74024         into the #ifdef block where it's used.
74025
74026         * lib/rename-dest-slash.c: New file.
74027
74028 2006-09-14  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/allocsa.c: Include <config.h> unconditionally.
74031         * lib/asnprintf.c: Likewise.
74032         * lib/asprintf.c: Likewise.
74033         * lib/c-strcasecmp.c: Likewise.
74034         * lib/c-strcasestr.c: Likewise.
74035         * lib/c-strncasecmp.c: Likewise.
74036         * lib/c-strstr.c: Likewise.
74037         * lib/classpath.c: Likewise.
74038         * lib/clean-temp.c: Likewise.
74039         * lib/concatpath.c: Likewise.
74040         * lib/copy-file.c: Likewise.
74041         * lib/csharpcomp.c: Likewise.
74042         * lib/csharpexec.c: Likewise.
74043         * lib/execute.c: Likewise.
74044         * lib/fatal-signal.c: Likewise.
74045         * lib/findprog.c: Likewise.
74046         * lib/fwriteerror.c: Likewise.
74047         * lib/gl_array_list.c: Likewise.
74048         * lib/gl_array_oset.c: Likewise.
74049         * lib/gl_avltree_list.c: Likewise.
74050         * lib/gl_avltree_oset.c: Likewise.
74051         * lib/gl_avltreehash_list.c: Likewise.
74052         * lib/gl_carray_list.c: Likewise.
74053         * lib/gl_linked_list.c: Likewise.
74054         * lib/gl_linkedhash_list.c: Likewise.
74055         * lib/gl_list.c: Likewise.
74056         * lib/gl_oset.c: Likewise.
74057         * lib/gl_rbtree_list.c: Likewise.
74058         * lib/gl_rbtree_oset.c: Likewise.
74059         * lib/gl_rbtreehash_list.c: Likewise.
74060         * lib/imaxabs.c: Likewise.
74061         * lib/imaxdiv.c: Likewise.
74062         * lib/javacomp.c: Likewise.
74063         * lib/javaexec.c: Likewise.
74064         * lib/javaversion.c: Likewise.
74065         * lib/linebreak.c: Likewise.
74066         * lib/localcharset.c: Likewise.
74067         * lib/lock.c: Likewise.
74068         * lib/mbchar.c: Likewise.
74069         * lib/mbswidth.c: Likewise.
74070         * lib/mkdtemp.c: Likewise.
74071         * lib/pipe.c: Likewise.
74072         * lib/printf-args.c: Likewise.
74073         * lib/printf-parse.c: Likewise.
74074         * lib/progname.c: Likewise.
74075         * lib/progreloc.c: Likewise.
74076         * lib/readlink.c: Likewise.
74077         * lib/sh-quote.c: Likewise.
74078         * lib/stpcpy.c: Likewise.
74079         * lib/stpncpy.c: Likewise.
74080         * lib/strcasecmp.c: Likewise.
74081         * lib/strcasestr.c: Likewise.
74082         * lib/strcspn.c: Likewise.
74083         * lib/striconv.c: Likewise.
74084         * lib/strncasecmp.c: Likewise.
74085         * lib/strnlen1.c: Likewise.
74086         * lib/strstr.c: Likewise.
74087         * lib/strtok_r.c: Likewise.
74088         * lib/tls.c: Likewise.
74089         * lib/tmpdir.c: Likewise.
74090         * lib/unicodeio.c: Likewise.
74091         * lib/unsetenv.c: Likewise.
74092         * lib/vasnprintf.c: Likewise.
74093         * lib/vasprintf.c: Likewise.
74094         * lib/wait-process.c: Likewise.
74095         * lib/xallocsa.c: Likewise.
74096         * lib/xsetenv.c: Likewise.
74097         * lib/xstriconv.c: Likewise.
74098
74099 2006-09-13  Simon Josefsson  <jas@extundo.com>
74100
74101         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74102         that internally, suggested by Ralf Wildenhues
74103         <Ralf.Wildenhues@gmx.de>.
74104
74105 2006-09-13  Simon Josefsson  <jas@extundo.com>
74106
74107         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74108         @LIBOBJS@.
74109         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74110
74111 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74114         longer worry about uses that don't define HAVE_CONFIG_H.
74115         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74116         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74117         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74118         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74119         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74120         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74121         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74122         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74123         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74124         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74125         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74126         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74127         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74128         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74129         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74130         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74131         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74132         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74133         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74134         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74135         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74136         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74137         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74138         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74139         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74140         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74141         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74142         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74143         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74144         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74145         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74146         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74147         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74148         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74149         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74150         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74151         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74152         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74153         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74154         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74155         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74156         Likewise.
74157
74158 2006-09-13  Eric Blake  <ebb9@byu.net>
74159
74160         * lib/getopt.c: Fix typo in last commit.
74161
74162 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74163
74164         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74165         dgettext.
74166
74167 2006-09-12  Jim Meyering  <jim@meyering.net>
74168
74169         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74170         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74171         Reported by Nelson H. F. Beebe.
74172
74173 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74174
74175         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74176         program_invocation_name and program_invocation_short_name are
74177         initialized.
74178         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74179         and program_invocation_short_name to argp.h, so they are visible
74180         to user programs.
74181         * lib/argp.h: Likewise
74182
74183 2006-09-10  Bruno Haible  <bruno@clisp.org>
74184
74185         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74186         m4/inttypes_h.m4, m4/uintmax_t.m4.
74187
74188 2006-09-10  Bruno Haible  <bruno@clisp.org>
74189
74190         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74191         gl_AC_TYPE_UINTMAX_T.
74192
74193 2006-09-10  Bruno Haible  <bruno@clisp.org>
74194
74195         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74196
74197 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74198
74199         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74200         convention.  Text proposed by Bruno Haible.
74201         (struct argp_option): Document the use of N_() wrappers.
74202
74203         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74204         '\v', and translate the two parts separately, instead of feeding
74205         the whole string to gettext.  This allows to exclude
74206         '\v' from the strings visible to the translator by writing doc
74207         strings as N_("..") "\v" N_("..").
74208
74209 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74210
74211         * config/srclist.txt: Undo latest change; the bug was fixed.
74212
74213 2006-09-09  Bruno Haible  <bruno@clisp.org>
74214
74215         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74216         assignments if building a library without libtool.
74217         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74218         in func_emit_lib_Makefile_am.
74219         (func_import): When building a static library libfoo.a, arrange to
74220         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74221         (func_create_testdir): Likewise.
74222         * modules/gc (configure.ac, Makefile.am): If building statically,
74223         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74224         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74225         * modules/striconv (configure.ac, Makefile.am): Likewise.
74226         Based on a suggestion by Ralf Wildenhues.
74227
74228 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74229
74230         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74231         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74232         Also:
74233
74234         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74235         Add year_2050_test to catch glibc bug 2821
74236         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74237
74238         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74239         Prefer #ifdef to #if.
74240
74241         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74242         Return from 'main' instead of calling 'exit'.
74243
74244 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74245
74246         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74247         returned the maximum time_t value rather than (time_t) -1.
74248         Problem originally reported by William Bardwell
74249         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74250
74251         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74252         Moved to here ...
74253         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74254         ... from here.
74255
74256 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74257
74258         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74259         2821 is fixed.
74260
74261 2006-09-08  Jim Meyering  <jim@meyering.net>
74262
74263         Don't make generated files read-only.  That would bother too many
74264         people.  However, do retain the ability to work when targets are
74265         read-only: remove the destination and temporary files before writing
74266         them (when generated via sed or echo), or by using the -f option for
74267         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74268         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74269         * modules/byteswap, modules/configmake, modules/fcntl:
74270         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74271         * modules/localcharset, modules/netinet_in, modules/poll:
74272         * modules/stdbool, modules/stdint, modules/sys_select:
74273         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74274
74275 2006-09-08  Jim Meyering  <jim@meyering.net>
74276
74277         Avoid new build failure on FreeBSD 6.0.
74278         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74279         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74280         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74281
74282 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74283
74284         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74285
74286 2006-09-07  Jim Meyering  <jim@meyering.net>
74287
74288         Fix global typo in last change: use chmod u-w, not chmod u-x.
74289         Spotted by Paul Eggert and Bruce Korb.
74290         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74291         * modules/byteswap, modules/configmake, modules/fcntl:
74292         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74293         * modules/localcharset, modules/netinet_in, modules/poll:
74294         * modules/stdbool, modules/stdint, modules/sys_select:
74295         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74296
74297 2006-09-06  Jim Meyering  <jim@meyering.net>
74298
74299         Make generated files be read-only.
74300         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74301         Ensure that each generated file is now read-only.
74302         * modules/argz: Likewise.
74303         * modules/arpa_inet: Likewise.
74304         * modules/byteswap: Likewise.
74305         * modules/configmake: Likewise.
74306         * modules/fcntl: Likewise.
74307         * modules/fnmatch: Likewise.
74308         * modules/getopt: Likewise.
74309         * modules/glob: Likewise.
74310         * modules/inttypes: Likewise.
74311         * modules/netinet_in: Likewise.
74312         * modules/poll: Likewise.
74313         * modules/stdbool: Likewise.
74314         * modules/stdint: Likewise.
74315         * modules/sys_select: Likewise.
74316         * modules/sys_socket: Likewise.
74317         * modules/sys_stat: Likewise.
74318         * modules/sysexits: Likewise.
74319         * modules/localcharset: Same as above, but continue using temporary
74320         file named "t-$@" (why different?) rather than the "$@-t" used
74321         everywhere else.
74322
74323         * modules/sysexits (Makefile.am): Replace literal occurrences
74324         of "sysexit.h" more readable, and more consistent, "$@".
74325
74326 2006-09-06  Bruno Haible  <bruno@clisp.org>
74327
74328         * modules/striconv: New file.
74329         * modules/xstriconv: New file.
74330         * MODULES.html.sh (Internationalization functions): Add striconv,
74331         xstriconv.
74332
74333 2006-09-06  Bruno Haible  <bruno@clisp.org>
74334
74335         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74336         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74337         not using libtool correctly.
74338
74339 2006-09-06  Bruno Haible  <bruno@clisp.org>
74340
74341         * lib/striconv.h: New file.
74342         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74343         iconvstring.c.
74344         * lib/xstriconv.h: New file.
74345         * lib/xstriconv.c: New file.
74346
74347 2006-09-06  Bruno Haible  <bruno@clisp.org>
74348
74349         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74350         lib_..._LDFLAGS.
74351
74352 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74353
74354         * lib/argz_.h: Sync from Libtool.
74355
74356         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74357                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74358
74359         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74360
74361 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74362
74363         * modules/trim: New file.
74364
74365 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74366
74367         * lib/trim.h: New file.
74368         * lib/trim.c: New file.
74369
74370 2006-09-05  Bruno Haible  <bruno@clisp.org>
74371
74372         * MODULES.html.sh (String handling): Add trim.
74373
74374 2006-09-04  Karl Berry  <karl@gnu.org>
74375
74376         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74377         until next release.
74378
74379 2006-09-03  Bruno Haible  <bruno@clisp.org>
74380
74381         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74382         correctly.
74383
74384 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74385
74386         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74387         not gl_GETLOADAVG.  Omit unneeded semicolons.
74388         Problems reported by Ralf Wildenhues in
74389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74390         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74391         at the end, which is the usual gnulib style.
74392
74393         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74394         of doing all the work ourselves.
74395         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74396         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74397
74398 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74401         Problem reported by Ralf Wildenhues in
74402         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74403
74404         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74405         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74406
74407 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74410         yesterday's patch by changing test -n to test -z.
74411
74412 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74415         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74416         the former is now obsolescent.
74417
74418         * modules/chdir-long (Depends-on): Add fcntl.
74419
74420 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74423         obsolescent, and programs should use gnulib instead.
74424         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74425         but with prefixes changed.
74426
74427 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74428
74429         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74430         or stdbool.h, because they might not exist while configuring.
74431
74432         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74433         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74434         does that for us.
74435         (O_DIRECTORY): Remove.
74436
74437 2006-08-31  Eric Blake  <ebb9@byu.net>
74438
74439         * gnulib-tool: Don't let emacs change spaces to TAB.
74440
74441 2006-08-31  Bruno Haible  <bruno@clisp.org>
74442
74443         * gnulib-tool: When calling func_import more than once, do it in a
74444         subshell.
74445         Reported by Eric Blake <ebb9@byu.net>.
74446
74447 2006-08-31  Bruno Haible  <bruno@clisp.org>
74448
74449         * gnulib-tool (nl): Remove variable.
74450         (sed_transform_lib_file): Use more robust test for config-h module.
74451         (func_import): Fix typo in 2006-08-25 patch.
74452
74453 2006-08-31  Bruno Haible  <bruno@clisp.org>
74454
74455         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74456         specified, augment Makefile.am variables instead of assigning them.
74457
74458 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74459
74460         Work around a bug in both the Linux and SunOS 64-bit kernels:
74461         nanosleep mishandles sleeps for longer than 2**31 seconds.
74462         Problem reported by Frank v Waveren in
74463         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74465         Check for nanosleep bug.
74466         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74467
74468 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         Work around a bug in both the Linux and SunOS 64-bit kernels:
74471         nanosleep mishandles sleeps for longer than 2**31 seconds.
74472         Problem reported by Frank v Waveren in
74473         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74474         * lib/nanosleep.c (BILLION): New constant.
74475         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74476         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74477         implementation.
74478
74479 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74480
74481         * modules/nanosleep (Depends-on): Add gettime.
74482
74483 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74484         and Simon Josefsson  <jas@extundo.com>
74485         and Oskar Liljeblad  <oskar@osk.mine.nu>
74486
74487         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74488         * gnulib-tool (func_import): New license type 'unmodifiable license
74489         text'.
74490         * modules/fdl: Use it.  Longer description.
74491         * module/gpl, module/lgpl: New files.
74492
74493 2006-08-30  Jim Meyering  <jim@meyering.net>
74494
74495         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74496         shadowing the parameter.
74497
74498 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74499
74500         Sync from Libtool:
74501
74502         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74503
74504         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74505         sharing with gnulib.  Report by Eric Blake.
74506
74507 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * modules/isapipe: New file.
74510         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74511
74512 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74513
74514         * modules/configmake (Makefile.am): Add a comment, and omit
74515         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74516         by Bruno Haible.
74517
74518 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74519
74520         * m4/isapipe.m4: New file.
74521
74522 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74523
74524         * lib/isapipe.c, lib/isapipe.h: New files.
74525
74526 2006-08-29  Jim Meyering  <jim@meyering.net>
74527
74528         * modules/configmake (Makefile.am): Make configmake.h depend on
74529         Makefile.  Otherwise, a stale configmake.h could hang around.
74530
74531 2006-08-29  Eric Blake  <ebb9@byu.net>
74532
74533         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74534         resolution of upstream bug 3044.
74535
74536 2006-08-29  Bruno Haible  <bruno@clisp.org>
74537
74538         * modules/localcharset (Depends-on): Add configmake.
74539         (Makefile.am): Remove setting of LIBDIR through DEFS.
74540
74541 2006-08-29  Bruno Haible  <bruno@clisp.org>
74542
74543         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74544         defined.
74545
74546 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * modules/fcntl: New file.
74549         * modules/chdir-safer (Depends-on): Add fcntl.
74550         * modules/fts: Likewise.
74551         * modules/mkdir-p: Likewise.
74552
74553         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74554         This undoes the most recent change, since we're now addressing the
74555         problem in a different way.
74556
74557         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74558         into output, since the output might be called Makefile.am even
74559         if $makefile_name is something different.
74560         (func_import): Use $makefile_am rather than
74561         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74562         empty.
74563
74564         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74565
74566 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74569         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74570         recent change to stdint.m4, since we're now addressing the problem in a
74571         different way.
74572
74573 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * m4/fcntl_h.m4: New file.
74576
74577 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74578
74579         * lib/fcntl_.h: New file.
74580         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74581         the fcntl module.
74582         * lib/dirchownmod.c: Likewise.
74583         * lib/fts.c: Likewise.
74584
74585         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74586         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74587         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74588         just before including <inttypes.h>, to avoid circular inclusion.
74589
74590 2006-08-28  Jim Meyering  <jim@meyering.net>
74591
74592         * doc/visibility.texi: Actually read and correct the grammar of the
74593         sentence affected by yesterday's change.
74594
74595 2006-08-28  Eric Blake  <ebb9@byu.net>
74596
74597         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74598         needs wrapper.
74599
74600 2006-08-28  Eric Blake  <ebb9@byu.net>
74601
74602         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74603
74604 2006-08-28  Eric Blake  <ebb9@byu.net>
74605
74606         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74607
74608 2006-08-28  Bruno Haible  <bruno@clisp.org>
74609
74610         * modules/c-strstr: New file, from GNU gettext.
74611         * MODULES.html.sh (String handling): Add c-strstr.
74612
74613 2006-08-28  Bruno Haible  <bruno@clisp.org>
74614
74615         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74616         macros.
74617         Reported by Eric Blake.
74618
74619 2006-08-28  Bruno Haible  <bruno@clisp.org>
74620
74621         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74622         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74623         * lib/vasprintf.c: Include errno.h, limits.h.
74624         (EOVERFLOW): New fallback definition.
74625         (vasprintf): Test here whether the string length is > INT_MAX.
74626         * lib/vsnprintf.c: Include errno.h, limits.h.
74627         (EOVERFLOW): New fallback definition.
74628         (vsnprintf): Fix bug when generated string was too long for the buffer.
74629         Test here whether the string length is > INT_MAX.
74630
74631 2006-08-28  Bruno Haible  <bruno@clisp.org>
74632
74633         * lib/inttypes_.h (SCNX*): Remove definitions.
74634         Reported by Eric Blake.
74635
74636 2006-08-28  Bruno Haible  <bruno@clisp.org>
74637
74638         * lib/c-strstr.h: New file, from GNU gettext.
74639         * lib/c-strstr.c: New file, from GNU gettext.
74640
74641 2006-08-28  Bruno Haible  <bruno@clisp.org>
74642
74643         * gnulib-tool: Reorder some statements.
74644
74645 2006-08-28  Bruno Haible  <bruno@clisp.org>
74646
74647         * gnulib-tool: New option --makefile-name.
74648         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74649         $makefile_name.
74650         (func_import): Write $makefile_name to the cache file, and read it from
74651         there unless explicitly specified. Use $makefile_name as file name
74652         instead of Makefile.am. Adjust the recommendations accordingly.
74653
74654 2006-08-28  Bruno Haible  <bruno@clisp.org>
74655
74656         * gnulib-tool (func_verify_module): Check against misapplying patch.
74657
74658 2006-08-28  Bruno Haible  <bruno@clisp.org>
74659
74660         * gnulib-tool (func_relativize, func_relconcat): New functions.
74661         Give an error if --local-dir is given with --update.
74662         Remove trailing slashes from $local_gnulib_dir.
74663         (func_import): Store the relativized $local_gnulib_dir in
74664         gnulib-cache.m4, and read it from there if not specified explicitly.
74665
74666 2006-08-28  Bruno Haible  <bruno@clisp.org>
74667
74668         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74669         is the current directory. Respect also $local_gnulib_dir.
74670
74671 2006-08-28  Bruno Haible  <bruno@clisp.org>
74672             Simon Josefsson  <jas@extundo.com>
74673
74674         BeOS portability.
74675         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74676
74677 2006-08-27  Jim Meyering  <jim@meyering.net>
74678
74679         * doc/visibility.texi: Remove duplicate word: "pointer".
74680
74681 2006-08-26  Bruno Haible  <bruno@clisp.org>
74682
74683         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74684         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74685         (Makefile.am): Create inttypes.h from inttypes_.h.
74686         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74687
74688         * modules/imaxabs: New file.
74689
74690         * modules/imaxdiv: New file.
74691
74692 2006-08-26  Bruno Haible  <bruno@clisp.org>
74693
74694         * m4/inttypes.m4: New file.
74695         * m4/_inttypes_h.m4: Remove file.
74696         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74697         PRI_MACROS_BROKEN.
74698         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74699
74700         * m4/imaxabs.m4: New file.
74701
74702         * m4/imaxdiv.m4: New file.
74703
74704 2006-08-26  Bruno Haible  <bruno@clisp.org>
74705
74706         * lib/inttypes_.h: New file.
74707         * lib/inttypes.h: Remove file.
74708         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74709
74710         * lib/imaxabs.c: New file.
74711
74712         * lib/imaxdiv.c: New file.
74713
74714 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74715
74716         New config-h module, so that "make" output needn't be cluttered
74717         by -DHAVE_CONFIG_H.
74718         * MODULES.html.sh (Support for building libraries and executables):
74719         Add config-h.
74720         * modules/config-h: New file.
74721         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74722         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74723         the config-h module is used.
74724
74725         New configmake module, so that "make" output needn't be cluttered
74726         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74727         * MODULES.html.sh (Support for building libraries and executables):
74728         Add configmake.
74729         * modules/configmake: New file.
74730
74731 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * m4/config-h.m4: New file.
74734
74735 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74736
74737         * config/srclist.txt: Add elisp-comp.
74738
74739 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * MODULES.html.sh (Support for building libraries and executables):
74742         Add elisp-comp.
74743         * build-aux/elisp-comp: New file.
74744         * modules/elisp-comp: New file.
74745
74746 2006-08-24  Bruno Haible  <bruno@clisp.org>
74747
74748         * gnulib-tool (func_create_testdir): Use non-default values of
74749         sourcebase and m4base.
74750
74751 2006-08-24  Bruno Haible  <bruno@clisp.org>
74752
74753         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74754         HTML structure.
74755
74756 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * modules/openat (Depends-on): Add lchown.
74759
74760 2006-08-23  Bruno Haible  <bruno@clisp.org>
74761
74762         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74763         of gl_LOCK_EARLY instead of gl_LOCK.
74764
74765 2006-08-23  Bruno Haible  <bruno@clisp.org>
74766
74767         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74768         on OSF/1 to no.
74769         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74770
74771 2006-08-23  Bruno Haible  <bruno@clisp.org>
74772
74773         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74774         as unusable.
74775
74776         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74777         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74778         (gl_LOCK): New macro.
74779
74780 2006-08-22  Simon Josefsson  <jas@extundo.com>
74781
74782         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74783         to md5 module.
74784
74785 2006-08-22  Simon Josefsson  <jas@extundo.com>
74786
74787         * MODULES.html.sh: Add "Support for maintaining and release
74788         projects".
74789
74790         * build-aux/gnupload: New file, from coreutils.
74791
74792 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74793
74794         Avoid the need for AC_LIBSOURCES in m4 macros.
74795         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74796         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74797         * modules/check-version (EXTRA_DIST): Add check-version.h.
74798         * modules/crc (EXTRA_DIST): Add crc.h.
74799         * modules/des (EXTRA_DIST): Add des.h.
74800         * modules/gc (EXTRA_DIST): Add gc.h.
74801         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74802         * modules/getline (EXTRA_DIST): Add getline.h.
74803         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74804         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74805         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74806         * modules/md2 (EXTRA_DIST): Add md2.h.
74807         * modules/md4 (EXTRA_DIST): Add md4.h.
74808         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74809         * modules/read-file (EXTRA_DIST): Add read-file.h.
74810         * modules/readline (EXTRA_DIST): Add readline.h.
74811         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74812         rijndael-api-fst.h.
74813
74814 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74815
74816         * m4/rijndael.m4 (gl_ARCFOUR):
74817         * m4/arctwo.m4 (gl_ARCTWO):
74818         * m4/check-version.m4 (gl_CHECK_VERSION):
74819         * m4/crc.m4 (gl_CRC):
74820         * m4/des.m4 (gl_DES):
74821         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74822         * m4/gc.m4 (gl_GC):
74823         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74824         * m4/getline.m4 (gl_FUNC_GETLINE):
74825         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74826         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74827         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74828         * m4/md2.m4 (gl_MD2):
74829         * m4/md4.m4 (gl_MD4):
74830         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74831         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74832         * m4/readline.m4 (gl_FUNC_READLINE):
74833         * m4/rijndael.m4 (gl_RIJNDAEL):
74834         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74835         to get the necessary .h files and whatnot.
74836
74837 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74838
74839         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74840         gnulib rather than the other way around.
74841         * config/srclistvars.sh (COREUTILS): Remove.
74842
74843 2006-08-22  Jim Meyering  <jim@meyering.net>
74844
74845         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74846
74847         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74848
74849 2006-08-22  Eric Blake  <ebb9@byu.net>
74850
74851         * modules/regexprops-generic: New file.
74852         * MODULES.html.sh (Support for building documentation): List it.
74853
74854 2006-08-22  Eric Blake  <ebb9@byu.net>
74855
74856         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74857         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74858         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74859         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74860
74861 2006-08-22  Bruno Haible  <bruno@clisp.org>
74862
74863         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74864         and lib_LTLIBRARIES like the other lib_* variables.
74865
74866 2006-08-22  Bruno Haible  <bruno@clisp.org>
74867
74868         * build-aux/x-to-1.in: New file, from GNU gettext.
74869
74870 2006-08-22  Bruno Haible  <bruno@clisp.org>
74871
74872         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74873         <utmpx.h> exists.
74874
74875 2006-08-22  Bruno Haible  <bruno@clisp.org>
74876
74877         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74878         <utmpx.h> exists.
74879
74880 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74881
74882         BeOS portability.
74883         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74884         exist.
74885         Problem reported by Bruno Haible.
74886
74887 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         Avoid the need for AC_LIBSOURCES in m4 macros.
74890         * modules/acl (EXTRA_DIST): Add acl.h.
74891         * modules/argmatch (Files): Add m4/argmatch.m4.
74892         (configure.ac): Add gl_ARGMATCH.
74893         (EXTRA_DIST): Renamed from lib_SOURCES, for
74894         consistency with the other modules.  Remove argmatch.c.
74895         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74896         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74897         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74898         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74899         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74900         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74901         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74902         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74903         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74904         * modules/closeout (EXTRA_DIST): Add closeout.h.
74905         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74906         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74907         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74908         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74909         dirname.h; remove basename.c and stripslash.c.
74910         * modules/exclude (EXTRA_DIST): Add exclude.h.
74911         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74912         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74913         * modules/file-type (EXTRA_DIST): Add file-type.h.
74914         * modules/filemode (EXTRA_DIST): Add filemode.h.
74915         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74916         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74917         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74918         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74919         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74920         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74921         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74922         * modules/getdate (EXTRA_DIST): Add getdate.c.
74923         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74924         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74925         * modules/getpass (EXTRA_DIST): Add getpass.h.
74926         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74927         * modules/group-member (EXTRA_DIST): Add group-member.h.
74928         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74929         * modules/hash (EXTRA_DIST): Add hash.h.
74930         * modules/human (EXTRA_DIST): Add human.h.
74931         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74932         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74933         * modules/lchown (EXTRA_DIST): Add lchown.h.
74934         * modules/long-options (EXTRA_DIST): Add long-options.h.
74935         * modules/lstat (EXTRA_DIST): Add lstat.h.
74936         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74937         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74938         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74939         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74940         * modules/memxor (EXTRA_DIST): Add memxor.h.
74941         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74942         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74943         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74944         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74945         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74946         * modules/physmem (EXTRA_DIST): Add physmem.h.
74947         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74948         * modules/posixver (EXTRA_DIST): Add posixver.h.
74949         * modules/quote (EXTRA_DIST): Add quote.h.
74950         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74951         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74952         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74953         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74954         regex_internal.h regexec.c.
74955         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74956         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74957         * modules/same (EXTRA_DIST): Add same.h.
74958         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74959         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74960         * modules/savedir (EXTRA_DIST): Add savedir.h.
74961         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74962         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74963         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74964         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74965         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74966         * modules/strdup (EXTRA_DIST): Add strdup.h.
74967         * modules/strftime (EXTRA_DIST): Add strftime.h.
74968         * modules/strndup (EXTRA_DIST): Add strndup.h.
74969         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74970         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74971         * modules/time_r (EXTRA_DIST): Add time_r.h.
74972         * modules/timespec (EXTRA_DIST): Add timespec.h.
74973         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74974         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74975         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74976         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74977         * modules/userspec (EXTRA_DIST): Add userspec.h.
74978         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74979         * modules/utimens (EXTRA_DIST): Add utimens.h.
74980         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74981         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74982         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74983         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74984         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74985         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74986         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74987         * modules/yesno (EXTRA_DIST): Add yesno.h.
74988
74989 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74992
74993         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74994         * m4/dev-ino.m4, same-inode.m4: Remove.
74995
74996         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74997         * m4/acl.m4 (AC_FUNC_ACL):
74998         * m4/backupfile.m4 (gl_BACKUPFILE):
74999         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75000         * m4/canon-host.m4 (gl_CANON_HOST):
75001         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75002         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75003         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75004         * m4/cloexec.m4 (gl_CLOEXEC):
75005         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75006         * m4/closeout.m4 (gl_CLOSEOUT):
75007         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75008         * m4/dirname.m4 (gl_DIRNAME):
75009         * m4/exclude.m4 (gl_EXCLUDE):
75010         * m4/exitfail.m4 (gl_EXITFAIL):
75011         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75012         * m4/file-type.m4 (gl_FILE_TYPE):
75013         * m4/filemode.m4 (gl_FILEMODE):
75014         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75015         * m4/fpending.m4 (gl_FUNC_FPENDING):
75016         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75017         * m4/fts.m4 (gl_FUNC_FTS):
75018         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75019         * m4/getdate.m4 (gl_GETDATE):
75020         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75021         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75022         * m4/getpass.m4 (gl_FUNC_GETPASS):
75023         * m4/gettime.m4 (gl_GETTIME):
75024         * m4/getugroups.m4 (gl_GETUGROUPS):
75025         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75026         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75027         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75028         * m4/hash.m4 (gl_HASH):
75029         * m4/idcache.m4 (gl_IDCACHE):
75030         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75031         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75032         * m4/long-options.m4 (gl_LONG_OPTIONS):
75033         * m4/lstat.m4 (gl_FUNC_LSTAT):
75034         * m4/md5.m4 (gl_MD5):
75035         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75036         * m4/memcoll.m4 (gl_MEMCOLL):
75037         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75038         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75039         * m4/memxor.m4 (gl_MEMXOR):
75040         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75041         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75042         * m4/modechange.m4 (gl_MODECHANGE):
75043         * m4/mountlist.m4 (gl_MOUNTLIST):
75044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75045         * m4/openat.m4 (gl_FUNC_OPENAT):
75046         * m4/pathmax.m4 (gl_PATHMAX):
75047         * m4/physmem.m4 (gl_PHYSMEM):
75048         * m4/posixtm.m4 (gl_POSIXTM):
75049         * m4/posixver.m4 (gl_POSIXVER):
75050         * m4/quote.m4 (gl_QUOTE):
75051         * m4/quotearg.m4 (gl_QUOTEARG):
75052         * m4/readtokens.m4 (gl_READTOKENS):
75053         * m4/readutmp.m4 (gl_READUTMP):
75054         * m4/regex.m4 (gl_REGEX):
75055         * m4/safe-read.m4 (gl_SAFE_READ):
75056         * m4/safe-write.m4 (gl_SAFE_WRITE):
75057         * m4/same.m4 (gl_SAME):
75058         * m4/save-cwd.m4 (gl_SAVE_CWD):
75059         * m4/savedir.m4 (gl_SAVEDIR):
75060         * m4/settime.m4 (gl_SETTIME):
75061         * m4/sha1.m4 (gl_SHA1):
75062         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75063         * m4/stat-macros.m4 (gl_STAT_MACROS):
75064         * m4/stat-time.m4 (gl_STAT_TIME):
75065         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75066         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75067         * m4/strdup.m4 (gl_FUNC_STRDUP):
75068         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75069         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75070         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75071         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75072         * m4/time_r.m4 (gl_TIME_R):
75073         * m4/timespec.m4 (gl_TIMESPEC):
75074         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75075         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75076         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75077         * m4/userspec.m4 (gl_USERSPEC):
75078         * m4/utimecmp.m4 (gl_UTIMECMP):
75079         * m4/utimens.m4 (gl_UTIMENS):
75080         * m4/xalloc.m4 (gl_XALLOC):
75081         * m4/xgetcwd.m4 (gl_XGETCWD):
75082         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75083         * m4/xreadlink.m4 (gl_XREADLINK):
75084         * m4/xstrtod.m4 (gl_XSTRTOD):
75085         * m4/yesno.m4 (gl_YESNO):
75086         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75087         to get the necessary .h files and whatnot.
75088
75089 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75090             Bruno Haible  <bruno@clisp.org>
75091
75092         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75093         /bin/sh understanding of '!' conditional negation.
75094
75095 2006-08-21  Jim Meyering  <jim@meyering.net>
75096
75097         * modules/openat (Depends-on): Really alphabetize.
75098
75099         * modules/acl (Depends-on): Add error and quote.
75100
75101         * check-module (find_included_lib_files): Add at-func.c to the
75102         ok-to-include-more-than-once white list.
75103
75104         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75105
75106 2006-08-21  Bruno Haible  <bruno@clisp.org>
75107
75108         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75109         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75110         Reported by Martin Lambers <marlam@marlam.de>.
75111
75112 2006-08-21  Bruno Haible  <bruno@clisp.org>
75113
75114         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75115         specify an installation location, don't emit a noinst_LIBRARIES or
75116         noinst_LTLIBRARIES assignment.
75117
75118 2006-08-21  Bruno Haible  <bruno@clisp.org>
75119
75120         BeOS portability.
75121         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75122         BeOS has mbrtowc() but no <wctype.h>.
75123
75124 2006-08-21  Bruno Haible  <bruno@clisp.org>
75125
75126         BeOS portability.
75127         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75128         exist.
75129
75130 2006-08-21  Bruno Haible  <bruno@clisp.org>
75131
75132         BeOS portability.
75133         * lib/mbchar.h: Include <wctype.h> only if it exists.
75134
75135 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         Remove files that are no longer needed by their respective modules.
75138         * m4/obstack.m4: Remove.
75139         * m4/strerror_r.m4: Remove.
75140         * m4/uint32_t.m4: Remove.
75141         * m4/uintptr_t.m4: Remove.
75142         * m4/ullong_max.m4: Remove.
75143         * m4/xstrtoimax.m4: Remove.
75144         * m4/xstrtoumax.m4: Remove.
75145
75146         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75147         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75148         dependencies now capture this.
75149
75150         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75151         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75152         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75153         * m4/human.m4 (gl_HUMAN): Likewise.
75154         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75155         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75156
75157         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75158
75159         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75160         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75161         stdint.
75162         * m4/human.m4 (gl_HUMAN): Likewise.
75163         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75164         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75165         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75166         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75167         * m4/xstrtol (gl_XSTRTOL): Likewise.
75168
75169         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75170         AC_TYPE_LONG_LONG_INT.
75171         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75172         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75173         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75174         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75175
75176         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75177         on stdbool.
75178
75179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75180         (gl_PREREQ_XSTRTOUL): Remove.
75181
75182         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75183
75184         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75185         mode.
75186
75187 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75188
75189         Add and change modules to make it easier for coreutils to use
75190         gnulib-tool.
75191         * modules/backupfile (Files): Remove m4/d-ino.m4.
75192         (Depends-on): Add d-ino.
75193         * modules/cycle-check (Depends-on): Add stdint.
75194         (lib_SOURCES): Add cycle-check.h.
75195         * modules/d-ino: New module.
75196         * modules/d-type: New module.
75197         * modules/error (Files): Remove m4/strerror_r.m4.
75198         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75199         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75200         m4/inttypes_h.m4, m4/uintmax_t.m4.
75201         (Depends-on): Add stdint.
75202         (lib_SOURCES): Add fsusage.h.
75203         * modules/getcwd (Files): Remove d-ino.m4.
75204         (Depends-on): Add d-ino.
75205         * modules/getndelim2 (Depends-on): Add stdint.
75206         * modules/glob (Files): Remove m4/d-type.m4.
75207         (Depends-on): Add d-type.
75208         * modules/host-os: New module.
75209         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75210         m4/inttypes_h.m4, m4/uintmax_t.m4.
75211         * Depends-on: Add stdint.
75212         (lib_SOURCES): Add human.h.
75213         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75214         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75215         m4/uintmax_t.m4, m4/ulonglong.m4.
75216         (Depends-on): Add stdint.
75217         (EXTRA_DIST): Add inttostr.h.
75218         * modules/lchmod: New module.
75219         * modules/link-follow: New module.
75220         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75221         (Depends-on): Add lchmod.
75222         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75223         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75224         (Depends-on): Add stdint.
75225         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75226         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75227         (Depends-on): Add stdint.
75228         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75229         * modules/perl: New module.
75230         * modules/regex (Depends-on): Add stdint.
75231         * modules/rmdir-errno: New module.
75232         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75233         m4/intmax_t.m4.
75234         (Depends-on): Add stdint.
75235         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75236         m4/uintmax_t.m4.
75237         (Depends-on): Add stdint.
75238         * modules/unlink-busy: New module.
75239         * modules/utimecmp (Depends-on): Add stdint.
75240         * modules/uptime: New module.
75241         * modules/winsz-ioctl: New module.
75242         * modules/winsz-termios: New module.
75243         * modules/xnanosleep (Depends-on): Add nanosleep.
75244         * modules/ullong_max: Remove.
75245         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75246         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75247         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75248         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75249         (Depends-on): Add inttypes.
75250         (lib_SOURCES): Add xstrtol.h.
75251         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75252         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75253         * MODULES.html.sh: Move 'assert' into the assert section.
75254         Move 'dummy' into the linking section.
75255         Remove ullong_max.
75256         Add section for compatibility checks for POSIX:2001 functions,
75257         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75258         winsz-ioctl, and winsz-termios into it.
75259         Add lchmod.
75260         Add top-level Misc section and put host-os, perl, and uptime
75261         into it.
75262
75263 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75264
75265         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75266         now assume the stdint module.  Do not include inttypes.h.
75267         * lib/fsusage.h: Likewise.
75268         * lib/getndelim2.c: Likewise.
75269         * lib/human.h: Likewise.
75270         * lib/inttostr.h: Likewise.
75271         * lib/obstack.c: Likewise.
75272         * lib/regex_internal.h: Likewise.
75273         * lib/tempname.c: Likewise.
75274         * lib/utimecmp.c: Likewise.
75275         * lib/xstrtol.h: Likewise.
75276
75277         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75278
75279         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75280         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75281         * lib/xtime.h: Likewise.
75282
75283 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75284
75285         * modules/openat (Files): Add lib/fchmodat.c.
75286         Fixes problem reported by Jay Youngman.
75287
75288 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75289
75290         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75291         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75292
75293 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75294             Bruno Haible  <bruno@clisp.org>
75295
75296         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75297         and is a script that invokes bison. Tighten the code. Add comments.
75298
75299 2006-08-18  Jim Meyering  <jim@meyering.net>
75300
75301         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75302         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75303         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75304         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75305
75306 2006-08-18  Bruno Haible  <bruno@clisp.org>
75307
75308         * modules/bison-i18n: New file.
75309         * MODULES.html.sh (Internationalization functions): Add it.
75310
75311 2006-08-18  Bruno Haible  <bruno@clisp.org>
75312
75313         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75314         sys/statvfs.h. When getmntinfo was found, check its declaration and
75315         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75316
75317 2006-08-18  Bruno Haible  <bruno@clisp.org>
75318
75319         * m4/bison-i18n.m4: New file, from bison.
75320
75321 2006-08-18  Bruno Haible  <bruno@clisp.org>
75322
75323         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75324         (ME_DUMMY): Treat "kernfs" as a dummy.
75325         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75326
75327 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75328
75329         Update from coreutils.
75330
75331         2006-08-15  Jim Meyering  <jim@meyering.net>
75332
75333         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75334
75335         2006-01-17  Jim Meyering  <jim@meyering.net>
75336
75337         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75338
75339         2006-01-11  Jim Meyering  <jim@meyering.net>
75340
75341         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75342         Check for the lchmod function.
75343
75344 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         Update from coreutils.
75347
75348         * lib/__fpending.h: Add copyright notice.
75349         * lib/fprintftime.h: Likewise.
75350         * lib/savedir.c: Use (C) in copyright notice.
75351         * lib/savedir.h: Likewise.
75352
75353         2006-08-15  Jim Meyering  <jim@meyering.net>
75354
75355         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75356         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75357         in support of the EXPECTED_ERRNO macro.
75358         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75359         definitions.  Instead, define the appropriate symbols and include
75360         "at-func.c".
75361         * lib/mkdirat.c (mkdirat): Likewise.
75362         * lib/fchmodat.c (fchmodat): Likewise.
75363         (ENOSYS): Remove definition.
75364         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75365         it.  Don't include "unistd--.h" -- it wasn't ever used.
75366
75367         2006-01-17  Jim Meyering  <jim@meyering.net>
75368
75369         Rewrite fts.c not to change the current working directory,
75370         by using openat, fstatat, fdopendir, etc..
75371
75372         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75373         (HAVE_OPENAT_SUPPORT): Define.
75374         [_LIBC] (fchdir): Don't undef or define; no longer used.
75375         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75376         Now, this `function' always succeeds, and consumes its file descriptor
75377         parameter -- so callers must not close such FDs.  Update callers.
75378         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75379         (diropen): Add parameter, SP.  Adjust all callers.
75380         Implement using diropen_fd, rather than open.
75381         (fts_open): Initialize new member, fts_cwd_fd.
75382         Remove fts_rft-setting code.
75383         (fts_close): Close fts_cwd_fd, if necessary.
75384         (__opendir2): Define in terms of opendir or opendirat,
75385         depending on whether the FST_NOCHDIR flag is set.
75386         (fts_build): Since fts_safe_changedir consumes its FD, and since
75387         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75388         and close the dup'd file descriptor upon failure.
75389         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75390         (fts_safe_changedir): Tweak semantics to reflect that this function
75391         now calls cwd_advance_fd and hence consumes its FD argument.
75392         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75393         [struct FTS] (fts_rft): Remove now-unused member.
75394         [struct FTS] (fts_cycle.state): Improve comment.
75395
75396         * lib/openat.c (openat_needs_fchdir): New function.
75397         * lib/openat.h (openat_needs_fchdir): Declare it.
75398
75399 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75402         Problem and fix reported by Pádraig Brady in
75403         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75404
75405 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75408
75409 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75410
75411         * lib/memcoll.c (memcoll): Optimize for the common case where the
75412         arguments are bytewise equal.
75413
75414 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75415
75416         * doc/regexprops-generic.texi: Add a copyright notice.
75417
75418 2006-08-15  Bruno Haible  <bruno@clisp.org>
75419
75420         * modules/tmpdir (License): Change to LGPL.
75421
75422 2006-08-15  Bruno Haible  <bruno@clisp.org>
75423
75424         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75425         module.
75426
75427 2006-08-14  Simon Josefsson  <jas@extundo.com>
75428
75429         * config/srclist.txt: Add gnupload.
75430
75431 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         Change copyright notice from LGPL 2 to GPL 2, since that's the
75434         standard form used in the gnulib repository.
75435         * tests/test-lock.c: Likewise.
75436         * tests/test-stdint.c: Likewise.
75437         * tests/test-tls.c: Likewise.
75438
75439         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75440         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75441         Add copyright notice.
75442
75443         * check-module: Add copyright notice.  Output a copyright
75444         notice if "--version" is specified.
75445         * modules/COPYING: New file.
75446         * tests/test-getaddrinfo.c: Add copyright notice.
75447         * tests/test-verify.c: Likewise.
75448
75449 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         Change copyright notice from LGPL 2 to GPL 2, since that's the
75452         standard form used in the gnulib repository.
75453         * lib/lock.c: LGPL -> GPL.
75454         * lib/lock.h: Likewise.
75455         * lib/strnlen1.c: Likewise.
75456         * lib/strnlen1.h: Likewise.
75457         * lib/tls.c: Likewise.
75458         * lib/tls.h: Likewise.
75459         * lib/tmpdir.c: Likewise.
75460
75461         * lib/TODO: Remove; this belongs only in coreutils.
75462
75463 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75464
75465         Add copyright notices to long-enough files that lack them, since
75466         otherwise the files aren't clearly free.  Use the same notice that
75467         getdate.texi already uses.
75468         * doc/alloca-opt.texi: Add copyright notice.
75469         * doc/alloca.texi: Likewise.
75470         * doc/ctime.texi: Likewise.
75471         * doc/functions.texi: Likewise.
75472         * doc/gcd.texi: Likewise.
75473         * doc/gnulib-tool.texi: Likewise.
75474         * doc/inet_ntoa.texi: Likewise.
75475         * doc/visibility.texi: Likewise.
75476
75477         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75478         * doc/quote.texi: Add copyright notice.
75479
75480         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75481         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75482         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75483         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75484         is now obsolete, and give a pointer to the Sun list.
75485         Add copyright notice.
75486
75487 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75488
75489         * config/srclistvars.sh: Add copyright notice.
75490
75491 2006-08-14  Eric Blake  <ebb9@byu.net>
75492
75493         Import the following change from libc:
75494
75495         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75496
75497         Upstream bug 2997.
75498         * lib/misc/error.c: Add space between program name and message if file
75499         name is missing.
75500
75501 2006-08-12  Karl Berry  <karl@gnu.org>
75502
75503         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75504         remove, these originate in gnulib now.
75505
75506 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75507
75508         * doc/Makefile (standards.info standards.html standards.dvi):
75509         Also depend on make-stds.texi.
75510
75511 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75512
75513         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75514         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75515
75516         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75517         in wchar_t.  Problem reported by Eric Blake.
75518
75519         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75520         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75521         Also, help the compiler to keep LEN in a register.
75522
75523 2006-08-11  Eric Blake  <ebb9@byu.net>
75524
75525         * users.txt: Sort.  Add tar.
75526
75527 2006-08-11  Bruno Haible  <bruno@clisp.org>
75528
75529         * users.txt: New file.
75530
75531 2006-08-11  Bruno Haible  <bruno@clisp.org>
75532
75533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75534         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75535
75536 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * modules/snprintf (Depends-on): Remove minmax.
75539         (Maintainer): Add self and Bruno.
75540
75541 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75542
75543         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75544         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75545         (EOVERFLOW): Define if the system does not.
75546         Do not include "minmax.h"; it wasn't used.
75547         (snprintf): Don't assume size_t promotes to an unsigned type.
75548         Fix bug when generated string was too long for the buffer: the
75549         buffer's contents are supposed to be the initial prefix of the
75550         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75551         exceeds INT_MAX; do the check ourselves.
75552
75553         Import the following changes from libc:
75554
75555         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75556
75557         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75558         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75559         set wc to the byte which couldn't be converted.
75560         (re_string_reconstruct): Don't clear valid_raw_len before calling
75561         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75562         tip_context using re_string_context_at.
75563
75564         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75565
75566         * lib/posix/regex.h: g++ still cannot handled [restrict].
75567
75568         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75569
75570         * lib/posix/regex.h: Remove special handling for VMS.
75571
75572 2006-08-10  Jim Meyering  <jim@meyering.net>
75573
75574         * modules/same-inode: New module.
75575         * modules/dev-ino: New module.
75576         * modules/cycle-check: Depend on these modules, rather than simply
75577         including their .h files.
75578         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75579         required via m4/cycle-check.m4.
75580         * modules/same: Depend on new same-inode module, rather than
75581         including same-inode.h.
75582         * modules/chdir-safer: New file.
75583
75584         * modules/chown (Depends-on): Add stat-macros.
75585
75586 2006-08-10  Jim Meyering  <jim@meyering.net>
75587
75588         * m4/cycle-check.m4: New file.
75589         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75590         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75591
75592 2006-08-10  Eric Blake  <ebb9@byu.net>
75593
75594         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75595         in from original proposal.
75596
75597 2006-08-10  Eric Blake  <ebb9@byu.net>
75598         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75599
75600         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75601         namespace.
75602
75603 2006-08-10  Bruno Haible  <bruno@clisp.org>
75604
75605         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75606         as well.
75607
75608 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75609
75610         Sync from coreutils.
75611
75612         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75613
75614         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75615         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75616
75617 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75618
75619         * modules/restrict: Remove; no longer needed now that we assume
75620         Autoconf 2.59 or later.
75621         * MODULES.html.sh: Remove 'restrict'.
75622         * modules/argp (Depends-on): Remove 'restrict'.
75623         * modules/base64 (Depends-on): Likewise.
75624         * modules/gc (Depends-on): Likewise.
75625         * modules/getaddrinfo (Depends-on): Likewise.
75626         * modules/glob (Depends-on): Likewise.
75627         * modules/inet_ntop (Depends-on): Likewise.
75628         * modules/inet_pton (Depends-on): Likewise.
75629         * modules/memxor (Depends-on): Likewise.
75630         * modules/regex (Depends-on): Likewise.
75631         * modules/strtok_r (Depends-on): Likewise.
75632         * modules/time_r (Depends-on): Likewise.
75633
75634 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75637         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75638         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75639         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75640         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75641         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75642         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75643         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75644
75645         Merge from coreutils.
75646         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75647         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75648         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75649         * m4/time_r.m4 (gl_TIME_R): Likewise.
75650
75651 2006-08-09  Karl Berry  <karl@gnu.org>
75652
75653         * config/srclist.txt: no more gettext-tools, per Bruno.
75654
75655 2006-08-08  Eric Blake  <ebb9@byu.net>
75656
75657         * modules/verror: New module.
75658         * MODULES.html.sh: Document it.
75659
75660 2006-08-08  Eric Blake  <ebb9@byu.net>
75661
75662         * lib/verror.h, lib/verror.c: New files.
75663
75664 2006-08-08  Eric Blake  <ebb9@byu.net>
75665
75666         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75667         verror_at_line output complies with GNU Coding Standards even when
75668         file is NULL.
75669
75670 2006-08-07  Bruno Haible  <bruno@clisp.org>
75671
75672         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75673         versions of AIX.
75674         Reported by Ralf Wildenhues.
75675
75676 2006-08-07  Bruno Haible  <bruno@clisp.org>
75677
75678         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75679         in an AC_DEFUN. Needed so that the autoconf snippets can use
75680         AC_REQUIRE.
75681
75682 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75683
75684         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75685         Initialize pkgdata_DATA.
75686         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75687         overriding it.
75688
75689 2006-08-06  Eric Blake  <ebb9@byu.net>
75690
75691         * lib/error.h: Fold in some upstream changes from glibc.
75692         * lib/error.c: Likewise.
75693
75694 2006-08-04  Bruno Haible  <bruno@clisp.org>
75695
75696         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75697         Make the mostlyclean-local rule depend on mostlyclean-generic.
75698         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75699
75700 2006-07-31  Bruno Haible  <bruno@clisp.org>
75701
75702         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75703         <stdlib.h>, <string.h>.
75704
75705 2006-07-30  Bruno Haible  <bruno@clisp.org>
75706
75707         * modules/readlink (License): Change to LGPL.
75708
75709 2006-07-30  Bruno Haible  <bruno@clisp.org>
75710
75711         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75712         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75713         set PKGDATADIR to point to it.
75714
75715 2006-07-30  Bruno Haible  <bruno@clisp.org>
75716
75717         * modules/csharpexec (configure.ac): Comment out macro invocation.
75718         * modules/javaexec (configure.ac): Likewise.
75719         * modules/javacomp-script (configure.ac): Likewise.
75720
75721         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75722
75723 2006-07-30  Bruno Haible  <bruno@clisp.org>
75724
75725         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75726         linked-list.
75727
75728 2006-07-30  Bruno Haible  <bruno@clisp.org>
75729
75730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75731
75732 2006-07-30  Bruno Haible  <bruno@clisp.org>
75733
75734         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75735         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75736         get removed.
75737
75738 2006-07-29  Bruno Haible  <bruno@clisp.org>
75739
75740         Make it possible for gnulib-tool to work with locally modified or
75741         augmented gnulib repositories.
75742         * gnulib-tool (func_usage): Document --local-dir option.
75743         (local_gnulib_dir): New variable.
75744         Handle --local-dir option.
75745         (func_lookup_file): New function.
75746         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75747         (func_get_description, func_get_filelist, func_get_description,
75748         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75749         func_get_automake_snippet, func_get_include_directive,
75750         func_get_license, func_get_maintainer): Use func_lookup_file.
75751         (func_import, func_create_testdir): Use func_lookup_file.
75752
75753 2006-07-29  Bruno Haible  <bruno@clisp.org>
75754
75755         * modules/setenv (Depends-on): Add unistd.
75756
75757 2006-07-29  Bruno Haible  <bruno@clisp.org>
75758
75759         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75760
75761 2006-07-29  Bruno Haible  <bruno@clisp.org>
75762
75763         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75764
75765 2006-07-29  Bruno Haible  <bruno@clisp.org>
75766
75767         * gnulib-tool (import, update): If there is no Makefile.am, look at
75768         aclocal.m4, instead of bailing out.
75769
75770 2006-07-29  Bruno Haible  <bruno@clisp.org>
75771
75772         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75773         Categorize the options by when they are useful.
75774
75775 2006-07-29  Bruno Haible  <bruno@clisp.org>
75776
75777         * gnulib-tool (func_usage): Document option --no-libtool.
75778         Handle option --no-libtool.
75779         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75780         for changed semantics of $libtool variable.
75781         (func_import): Likewise. If libtool is not used, show this through
75782         an option --no-libtool.
75783         (func_create_testdir): Update.
75784
75785 2006-07-29  Bruno Haible  <bruno@clisp.org>
75786
75787         * gnulib-tool (func_import): Extend error message about missing
75788         --doc-base.
75789
75790 2006-07-29  Bruno Haible  <bruno@clisp.org>
75791
75792         * gnulib-tool (func_import): Don't create the $docbase directory if
75793         there is no file to store there.
75794
75795 2006-07-29  Bruno Haible  <bruno@clisp.org>
75796
75797         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75798         relevant, look for configure.ac there, not in the current directory.
75799         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75800
75801 2006-07-29  Bruno Haible  <bruno@clisp.org>
75802
75803         * gnulib-tool (SORT): New variable.
75804         (func_usage): Undocument --assume-autoconf option.
75805         Remove --assume-autoconf option handling.
75806         (autoconf_minversion): Determine from the contents of configure.ac.
75807         (func_import): Remove autoconf_minversion handling.
75808         Suggested by Eric Blake.
75809
75810 2006-07-29  Bruno Haible  <bruno@clisp.org>
75811
75812         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75813
75814 2006-07-29  Bruno Haible  <bruno@clisp.org>
75815
75816         * config/srclist.txt (*setenv.[ch]): Remove rules.
75817
75818 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75819
75820         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75821
75822 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75823
75824         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75825         arpa/inet.h.
75826
75827 2006-07-28  Simon Josefsson  <jas@extundo.com>
75828
75829         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75830         * modules/inet_pton (Depends-on): Likewise.
75831
75832 2006-07-28  Simon Josefsson  <jas@extundo.com>
75833
75834         * m4/netinet_in_h.m4: New file.
75835
75836 2006-07-28  Simon Josefsson  <jas@extundo.com>
75837
75838         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75839         #include's.
75840
75841 2006-07-28  Simon Josefsson  <jas@extundo.com>
75842
75843         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75844         #include's.
75845
75846 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75849         setgid on directories only if they set these bits.
75850         * lib/modechange.h: Remove obsolete comment about masks.
75851
75852 2006-07-28  Eric Blake  <ebb9@byu.net>
75853
75854         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75855         macro expansion.
75856
75857 2006-07-28  Bruno Haible  <bruno@clisp.org>
75858
75859         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75860
75861 2006-07-28  Bruno Haible  <bruno@clisp.org>
75862
75863         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75864
75865 2006-07-28  Bruno Haible  <bruno@clisp.org>
75866
75867         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75868         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75869         Define fallbacks.
75870         Avoids link error on FreeBSD 4.x.
75871         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75872
75873         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75874         encoding.
75875         * lib/mbswidth.c (iswcntrl): Likewise.
75876
75877 2006-07-27  Bruno Haible  <bruno@clisp.org>
75878
75879         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75880         test.
75881
75882 2006-07-27  Bruno Haible  <bruno@clisp.org>
75883
75884         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75885         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75886         defined.
75887
75888 2006-07-26  Eric Blake  <ebb9@byu.net>
75889
75890         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75891
75892 2006-07-26  Eric Blake  <ebb9@byu.net>
75893
75894         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75895         like mingw that lack mkstemp.
75896         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75897         avoid compilation warning on mingw.
75898
75899 2006-07-26  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75902         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75903         INT_FAST*_MIN, INTPTR_MIN.
75904
75905 2006-07-25  Bruno Haible  <bruno@clisp.org>
75906
75907         * modules/version-etc (Depends-on): Add stdarg.
75908
75909 2006-07-25  Bruno Haible  <bruno@clisp.org>
75910
75911         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75912         complex commands.
75913
75914 2006-07-25  Bruno Haible  <bruno@clisp.org>
75915
75916         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75917         defined in <stdarg.h> or config.h.
75918
75919 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75920
75921         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75922         (gl_STDIO_SAFER): Remove.
75923
75924 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * MODULES.html.sh (File stream based Input/Output):
75927         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75928         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75929         * modules/fopen-safer, modules/tmpfile-safer: New files.
75930         * modules/stdio-safer: Remove.
75931
75932 2006-07-24  Bruno Haible  <bruno@clisp.org>
75933
75934         * modules/tmpdir: New file.
75935         * MODULES.html.sh (File system functions): Add it.
75936
75937 2006-07-24  Bruno Haible  <bruno@clisp.org>
75938
75939         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75940         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75941
75942 2006-07-24  Bruno Haible  <bruno@clisp.org>
75943
75944         * modules/clean-temp: New file.
75945
75946 2006-07-24  Bruno Haible  <bruno@clisp.org>
75947
75948         * m4/tmpdir.m4: New file, from GNU gettext.
75949
75950 2006-07-24  Bruno Haible  <bruno@clisp.org>
75951
75952         * lib/tmpdir.h: New file, from GNU gettext.
75953         * lib/tmpdir.c: New file, from GNU gettext.
75954
75955 2006-07-24  Bruno Haible  <bruno@clisp.org>
75956
75957         * lib/clean-temp.h: New file, from GNU gettext.
75958         * lib/clean-temp.c: New file, from GNU gettext.
75959
75960 2006-07-23  Eric Blake  <ebb9@byu.net>
75961
75962         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75963         (Depends-on): Add binary-io.
75964
75965 2006-07-23  Eric Blake  <ebb9@byu.net>
75966
75967         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75968
75969 2006-07-23  Eric Blake  <ebb9@byu.net>
75970
75971         * lib/tmpfile-safer.c: New file.
75972         * lib/stdio-safer.h (fopen_safer): Add prototype.
75973         * lib/stdio--.h (tmpfile): Make safer.
75974
75975 2006-07-23  Bruno Haible  <bruno@clisp.org>
75976
75977         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75978         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75979         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75980         gl_linked_remove_at): Use it.
75981
75982 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75983         and Simon Josefsson <jas@extundo.com>
75984
75985         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75986
75987         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75988
75989 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * modules/close-stream: New file.
75992         * modules/closeout (Description): Make it clear that it exits
75993         with a diagnostic on error.
75994         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75995         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75996
75997 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         * m4/close-stream.m4: New file.
76000
76001 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76002
76003         * lib/close-stream.c, lib/close-stream.h: New files.
76004
76005 2006-07-22  Bruno Haible  <bruno@clisp.org>
76006
76007         Merge from GNU gettext 0.15.
76008
76009         2006-05-01  Bruno Haible  <bruno@clisp.org>
76010
76011                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76012
76013         2006-07-22  Bruno Haible  <bruno@clisp.org>
76014
76015                 * modules/javaversion: New file.
76016                 * MODULES.html.sh (Java): Add javaversion.
76017
76018         2006-03-12  Bruno Haible  <bruno@clisp.org>
76019
76020                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76021
76022         2005-12-04  Bruno Haible  <bruno@clisp.org>
76023
76024                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76025                 (untested).
76026
76027         2006-06-21  Bruno Haible  <bruno@clisp.org>
76028
76029                 Avoid warnings from recent versions of mcs.
76030                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76031                 -o, -L, -r any more. Use options documented since mcs-1.0
76032                 instead. Similarly for -g.
76033
76034         2005-12-04  Bruno Haible  <bruno@clisp.org>
76035
76036                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76037                 .resources, not .resource.
76038
76039         2005-07-09  Bruno Haible  <bruno@clisp.org>
76040
76041                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76042                 add a .dll suffix.
76043                 Reported by Mark Junker <mjscod@gmx.de>.
76044
76045         2006-07-22  Bruno Haible  <bruno@clisp.org>
76046
76047                 * modules/gettext: Upgrade to gettext-0.15.
76048                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76049                 m4/visibility.m4.
76050                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76051
76052 2006-07-22  Bruno Haible  <bruno@clisp.org>
76053
76054         Merge from GNU gettext 0.15.
76055
76056         2006-03-25  Bruno Haible  <bruno@clisp.org>
76057
76058                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76059
76060         2006-07-21  Bruno Haible  <bruno@clisp.org>
76061
76062                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76063                 "1.1".
76064
76065         2006-05-09  Bruno Haible  <bruno@clisp.org>
76066
76067                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76068                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76069                 for the conftestver execution.
76070
76071         2006-05-01  Bruno Haible  <bruno@clisp.org>
76072
76073                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76074                 optional target-version argument. Verify that the compiler
76075                 groks source of the specified source-version, or add -source
76076                 option as necessary. Verify that the compiler produces
76077                 bytecode in the specified target-version, or add -target and
76078                 -source options as necessary. Make the result of the test
76079                 available as variable CONF_JAVAC. Also log error output in
76080                 config.log.
76081
76082         2006-03-11  Bruno Haible  <bruno@clisp.org>
76083
76084                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76085
76086         2006-05-09  Bruno Haible  <bruno@clisp.org>
76087
76088                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76089                 CLASSPATH_SEPARATOR to a semicolon.
76090
76091         2006-03-12  Bruno Haible  <bruno@clisp.org>
76092
76093                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76094                 available as variable CONF_JAVA, for subsequent autoconf
76095                 tests. Also log error output in config.log.
76096
76097         2006-07-19  Bruno Haible  <bruno@clisp.org>
76098
76099                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76100                 that getline works on glibc2 systems. Needed to avoid trouble
76101                 in relocatable.c.
76102                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76103
76104         2005-12-04  Bruno Haible  <bruno@clisp.org>
76105
76106                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76107                 launcher (untested).
76108
76109         2005-12-04  Bruno Haible  <bruno@clisp.org>
76110
76111                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76112
76113         2006-07-22  Bruno Haible  <bruno@clisp.org>
76114
76115                 * gettext.m4: Update from GNU gettext-0.15.
76116                 * nls.m4: Likewise.
76117                 * po.m4: Likewise.
76118                 * inttypes-pri.m4: Likewise.
76119                 * inttypes-h.m4: Renamed from inttypes.m4.
76120                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76121
76122 2006-07-22  Bruno Haible  <bruno@clisp.org>
76123
76124         Merge from GNU gettext 0.15.
76125
76126         2005-07-05  Bruno Haible  <bruno@clisp.org>
76127
76128                 * printf-args.c (printf_fetchargs): Work around broken
76129                 definition of wint_t on mingw.
76130
76131         2005-02-12  Bruno Haible  <bruno@clisp.org>
76132
76133                 * xallocsa.h: Add extern "C" for C++.
76134
76135         2006-05-17  Bruno Haible  <bruno@clisp.org>
76136
76137                 Cygwin portability.
76138                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76139
76140         2006-04-30  Bruno Haible  <bruno@clisp.org>
76141
76142                 * progreloc.c: Include <mach-o/dyld.h> if available.
76143                 (find_executable): Use _NSGetExecutablePath when possible.
76144
76145         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76146
76147                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76148                 function.
76149
76150         2005-12-29  Bruno Haible  <bruno@clisp.org>
76151
76152                 * progreloc.c (set_program_name_and_installdir): Fix
76153                 compilation error.
76154
76155         2005-12-04  Bruno Haible  <bruno@clisp.org>
76156
76157                 Cygwin portability.
76158                 * progreloc.c: Include <windows.h> also on Cygwin.
76159                 (find_executable): Add support for Cygwin.
76160                 (set_program_name_and_installdir): Handle also platforms with
76161                 nonempty EXEEXT.
76162
76163         2006-07-11  Bruno Haible  <bruno@clisp.org>
76164
76165                 * javacomp.c: Fix a comment.
76166                 Reported by Jim Meyering.
76167
76168         2006-04-30  Bruno Haible  <bruno@clisp.org>
76169
76170                 * javacomp.h (compile_java_class): Add source_version,
76171                 target_version arguments.
76172                 * javacomp.c: Rewritten to choose only a compiler that
76173                 respects the specified source_version and target_version.
76174
76175         2006-06-27  Bruno Haible  <bruno@clisp.org>
76176
76177                 Assume correct S_ISDIR macro.
76178                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76179
76180         2006-07-22  Bruno Haible  <bruno@clisp.org>
76181
76182                 * javaversion.h: New file, from GNU gettext.
76183                 * javaversion.c: New file, from GNU gettext.
76184                 * javaversion.java: New file, from GNU gettext.
76185                 * javaversion.class: New file, from GNU gettext.
76186
76187         2006-05-17  Bruno Haible  <bruno@clisp.org>
76188
76189                 Cygwin portability.
76190                 * javaexec.c (execute_java_class): Test for jview program
76191                 also on Cygwin.
76192
76193         2006-04-09  Bruno Haible  <bruno@clisp.org>
76194
76195                 * fatal-signal.c: Don't include string.h.
76196                 (at_fatal_signal): Use a copying loop instead of memcpy.
76197
76198         2005-12-04  Bruno Haible  <bruno@clisp.org>
76199
76200                 * csharpexec.c: Add support for 'clix' launcher (untested).
76201                 (execute_csharp_using_sscli): New function.
76202                 (execute_csharp_program): Call it.
76203
76204         2006-06-21  Bruno Haible  <bruno@clisp.org>
76205
76206                 Avoid warnings from recent versions of mcs.
76207                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76208                 -o, -L, -r any more. Use options documented since mcs-1.0
76209                 instead. Similarly for -g.
76210
76211         2005-07-09  Bruno Haible  <bruno@clisp.org>
76212
76213                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76214                 add a .dll suffix.
76215                 Reported by Mark Junker <mjscod@gmx.de>.
76216
76217         2006-06-17  Bruno Haible  <bruno@clisp.org>
76218
76219                 * config.charset: Update for NetBSD 3.0.
76220
76221         2006-05-17  Bruno Haible  <bruno@clisp.org>
76222
76223                 Cygwin portability.
76224                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76225
76226         2006-05-16  Bruno Haible  <bruno@clisp.org>
76227
76228                 * localcharset.c [CYGWIN]: Include <windows.h>.
76229                 (get_charset_aliases): For Cygwin, return the same CPxxx
76230                 aliases list as under WIN32.
76231                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76232                 the environment variables. Fall back to GetACP().
76233
76234         2006-04-05  Bruno Haible  <bruno@clisp.org>
76235
76236                 * config.charset: Update Juan Manuel Guerrero's address.
76237
76238         2005-02-12  Bruno Haible  <bruno@clisp.org>
76239
76240                 * allocsa.h: Add extern "C" for C++.
76241
76242         2005-02-10  Bruno Haible  <bruno@clisp.org>
76243
76244                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76245                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76246
76247         2006-07-22  Bruno Haible  <bruno@clisp.org>
76248
76249                 * gettext.h: Update to GNU gettext-0.15.
76250
76251 2006-07-22  Bruno Haible  <bruno@clisp.org>
76252
76253         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76254         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76255         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76256
76257 2006-07-21  Eric Blake  <ebb9@byu.net>
76258
76259         * modules/stdlib-safer: New file.
76260         * MODULES.html.sh (File stream based Input/Output): Add
76261         stdlib-safer.
76262
76263 2006-07-21  Eric Blake  <ebb9@byu.net>
76264
76265         * lib/stdlib-safer.h: New file from coreutils, required by
76266         stdlib--.h.
76267
76268 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76271
76272 2006-07-20  Bruno Haible  <bruno@clisp.org>
76273
76274         * gnulib-tool: Recognize new option --assume-autoconf.
76275         (autoconf_minversion): New variable.
76276         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76277
76278 2006-07-20  Bruno Haible  <bruno@clisp.org>
76279
76280         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76281
76282 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76283
76284         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76285         Reindent and repaginate.
76286
76287 2006-07-19  Derek Price  <derek@ximbiot.com>
76288
76289         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76290         Correct grammar.
76291
76292 2006-07-17  Bruno Haible  <bruno@clisp.org>
76293
76294         * modules/list: New file.
76295         * modules/array-list: New file.
76296         * modules/carray-list, modules/carray-list-tests: New files.
76297         * modules/linked-list, modules/linked-list-tests: New files.
76298         * modules/avltree-list, modules/avltree-list-tests: New files.
76299         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76300         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76301         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76302         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76303         * modules/oset: New file.
76304         * modules/array-oset: New file.
76305         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76306         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76307         * tests/test-carray_list.c: New file.
76308         * tests/test-linked_list.c: New file.
76309         * tests/test-avltree_list.c: New file.
76310         * tests/test-rbtree_list.c: New file.
76311         * tests/test-linkedhash_list.c: New file.
76312         * tests/test-avltreehash_list.c: New file.
76313         * tests/test-rbtreehash_list.c: New file.
76314         * tests/test-avltree_oset.c: New file.
76315         * tests/test-rbtree_oset.c: New file.
76316         * MODULES.html.sh (Container data structures): New section.
76317
76318 2006-07-17  Bruno Haible  <bruno@clisp.org>
76319
76320         * m4/gl_list.m4: New file.
76321
76322 2006-07-17  Bruno Haible  <bruno@clisp.org>
76323
76324         * lib/gl_list.h: New file.
76325         * lib/gl_list.c: New file.
76326         * lib/gl_array_list.h: New file.
76327         * lib/gl_array_list.c: New file.
76328         * lib/gl_carray_list.h: New file.
76329         * lib/gl_carray_list.c: New file.
76330         * lib/gl_linked_list.h: New file.
76331         * lib/gl_linked_list.c: New file.
76332         * lib/gl_anylinked_list1.h: New file.
76333         * lib/gl_anylinked_list2.h: New file.
76334         * lib/gl_avltree_list.h: New file.
76335         * lib/gl_avltree_list.c: New file.
76336         * lib/gl_anyavltree_list1.h: New file.
76337         * lib/gl_anyavltree_list2.h: New file.
76338         * lib/gl_rbtree_list.h: New file.
76339         * lib/gl_rbtree_list.c: New file.
76340         * lib/gl_anyrbtree_list1.h: New file.
76341         * lib/gl_anyrbtree_list2.h: New file.
76342         * lib/gl_anytree_list1.h: New file.
76343         * lib/gl_anytree_list2.h: New file.
76344         * lib/gl_linkedhash_list.h: New file.
76345         * lib/gl_linkedhash_list.c: New file.
76346         * lib/gl_anyhash_list1.h: New file.
76347         * lib/gl_anyhash_list2.h: New file.
76348         * lib/gl_avltreehash_list.h: New file.
76349         * lib/gl_avltreehash_list.c: New file.
76350         * lib/gl_rbtreehash_list.h: New file.
76351         * lib/gl_rbtreehash_list.c: New file.
76352         * lib/gl_anytreehash_list1.h: New file.
76353         * lib/gl_anytreehash_list2.h: New file.
76354
76355         * lib/gl_oset.h: New file.
76356         * lib/gl_oset.c: New file.
76357         * lib/gl_array_oset.h: New file.
76358         * lib/gl_array_oset.c: New file.
76359         * lib/gl_avltree_oset.h: New file.
76360         * lib/gl_avltree_oset.c: New file.
76361         * lib/gl_rbtree_oset.h: New file.
76362         * lib/gl_rbtree_oset.c: New file.
76363         * lib/gl_anytree_oset.h: New file.
76364
76365 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76366
76367         * m4/mkancesdirs.m4: New file.
76368         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76369         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76370         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76371         it.
76372
76373 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76374
76375         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76376         * lib/mkancesdirs.h: New files.
76377         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76378         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76379         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76380         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76381         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76382         callers changed.  Revamp internals significantly, by not
76383         attempting to create directories that are temporarily more
76384         permissive than the final results.  Do not attempt to use
76385         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76386         This removes some race conditions, fixes some bugs, and simplifies
76387         things.  Use new dirchownmod function to do owner and mode changes.
76388         * lib/mkdir-p.h: Likewise.
76389         * lib/modechange.c (octal_to_mode): New function.
76390         (struct mode_change): New member mentioned.
76391         (make_node_op_equals): New arg mentioned.  All callers changed.
76392         (mode_compile): Keep track of which mode bits the user has explicitly
76393         mentioned.
76394         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76395         New arg PMODE_BITS, to keep track of which mode bits the user
76396         mentioned; it treats S_ISUID and S_ISGID speciall.
76397         All callers changed.
76398         * lib/modechange.h: Likewise.
76399
76400 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76401
76402         * MODULES.html.sh: Add mkancestors.
76403         * modules/mkancesdirs: New module.
76404         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76405         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76406         The chdir-safer and afs files are now orphans; I'll remove them
76407         unless someone speaks up.
76408         Add lib/dirchownmod.c, lib/dirchownmod.h.
76409         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76410         Add lchown, mkancesdirs.
76411         (Maintainer): Add self.
76412
76413 2006-07-15  Karl Berry  <karl@gnu.org>
76414
76415         * gnulib-tool: help message wording/arrangement.
76416
76417 2006-07-14  Simon Josefsson  <jas@extundo.com>
76418
76419         * doc/gnulib.texi (Libtool and Windows): New section.
76420
76421 2006-07-12  Simon Josefsson  <jas@extundo.com>
76422
76423         * modules/gendocs (License): Fix license, approved by Karl.
76424
76425 2006-07-12  Eric Blake  <ebb9@byu.net>
76426
76427         * MODULES.html.sh: Add gendocs.
76428
76429 2006-07-11  Eric Blake  <ebb9@byu.net>
76430
76431         * modules/fdl: New module, to install doc/fdl.texi.
76432         * MODULES.html.sh: Add new section for documentation modules.
76433         * gnulib-tool: Avoid space-tab.
76434         (--doc-base): New option, to manage files from doc.
76435
76436 2006-07-11  Eric Blake  <ebb9@byu.net>
76437
76438         * m4/absolute-header.m4: Fix comments to match recent change.
76439
76440 2006-07-11  Eric Blake  <ebb9@byu.net>
76441
76442         * gnulib-tool: List --doc-base before --tests-base.
76443
76444 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76445
76446         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76447
76448 2006-07-11  Bruno Haible  <bruno@clisp.org>
76449
76450         * README: Mention where to put documentation.
76451
76452 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76453
76454         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76455
76456 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76457
76458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76459         to stdint.m4.
76460
76461 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76464         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76465         "no/such/file/stdint.h" when there is no such file, so that
76466         the resulting C code can be parsed by dodgy compilers.
76467         Problems reported by Bob Proulx.
76468
76469 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76470
76471         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76472         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76473         macros into the GNU _D_EXACT_NAMLEN.
76474         * lib/savedir.c:  Likewise.
76475         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76476
76477 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76478         and Paul Eggert  <eggert@cs.ucla.edu>
76479
76480         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76481         * m4/savedir.m4:
76482         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76483         macros into the GNU _D_EXACT_NAMLEN.
76484
76485 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76488         around the absolute name, to work around a problem with the HP-UX
76489         11.23 native C compiler, reported by Bob Proulx.
76490
76491 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * doc/maintain.texi, make-stds.texi: Sync from
76494         <http://savannah.gnu.org/projects/gnustandards>.
76495
76496 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76497
76498         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76499
76500 2006-07-09  Jim Meyering  <jim@meyering.net>
76501
76502         * m4/glob.m4: Remove a doubled word in a comment.
76503
76504 2006-07-09  Jim Meyering  <jim@meyering.net>
76505
76506         * lib/argp-pv.c: Remove a doubled word in a comment.
76507         * lib/check-version.c (check_version): Likewise.
76508         * lib/javacomp.c (compile_java_class): Likewise.
76509
76510 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76513         for the benefit of people using Autoconf 2.60.  If you want to
76514         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76515         (or m4/onceonly.m4, if pre-2.57) manually.
76516
76517 2006-07-08  Jim Meyering  <jim@meyering.net>
76518
76519         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76520         comment.
76521         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76522         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76523         comment.
76524
76525 2006-07-08  Jim Meyering  <jim@meyering.net>
76526
76527         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76528
76529 2006-07-07  Simon Josefsson  <jas@extundo.com>
76530
76531         * tests/test-crc.c: Change expected crc value, the test vector
76532         were probably computed using the old broken crc.c?
76533
76534 2006-07-06  Simon Josefsson  <jas@extundo.com>
76535
76536         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76537         now the canonical place for the M4 file).
76538
76539         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76540         from the sys_socket dependency now.
76541
76542         * modules/inet_pton (Files): Ditto.
76543
76544         * modules/inet_ntop (Files): Ditto.
76545
76546 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76547
76548         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76549         not gl_PREREQ_GETUSERSHELL.
76550
76551 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76552
76553         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76554         with only one argument, for Autoconf 2.60.
76555         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76556         expand to nothing, so add a shell command to avoid syntax error.
76557         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76558
76559 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76560
76561         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76562
76563 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76564
76565         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76566         no longer needed.  Check for isblank decl.
76567         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76568         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76569         of existence.
76570
76571 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * lib/getloadavg.c: Use __VMS, not VMS.
76574         * lib/getopt.c: Likewise.
76575         * lib/getpagesize.h: Likewise.
76576         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76577         and probably does not work.
76578
76579 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * lib/.cppi-disable: Add wcwidth.
76582         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76583         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76584         (ISGRAPH): Remove.  All uses changed to isgraph.
76585         (FOLD) [!defined _LIBC]: Remove special case.
76586         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76587         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76588         HAVE_ISBLANK.
76589         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76590         case.
76591
76592 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76593
76594         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76595         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76596         brackets.  Other minor changes to suppress some compiler
76597         warnings.
76598
76599 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76600         and Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76603         of invoking obsolescent AC_HEADER_DIRENT macro.
76604         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76605         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76607         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76608         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76609         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76610         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76611         * m4/readdir.m4: Remove; no longer needed.
76612
76613 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76614         and Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76617         Don't worry about this obsolete case any more.
76618         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76619         directories.
76620         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76621         worry about this obsolete case any more.
76622         * lib/fts.c: Likewise.
76623         * lib/getcwd.c: Likewise.
76624         * lib/glob.h: Likewise.
76625         * lib/savedir.c: Likewise.
76626
76627 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76628
76629         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76630         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76631         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76632         needed.
76633         All uses removed.
76634         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76635         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76636         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76637         needed.
76638         * m4/getdate.m4 (gl_GETDATE): Likewise.
76639         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76640         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76641         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76642         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76643         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76644         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76645         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76646         needed.
76647
76648 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         * lib/memcasecmp.c: Include <limits.h>.
76651         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76652         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76653         Don't assume isdigit succeeds only on '0' through '9'.
76654
76655 2006-07-05  Eric Blake  <ebb9@byu.net>
76656
76657         * modules/getaddrinfo (Depends-on): Add snprintf.
76658
76659 2006-07-05  Eric Blake  <ebb9@byu.net>
76660
76661         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76662         to avoid 'header present but could not be compiled' on cygwin.
76663
76664 2006-07-05  Eric Blake  <ebb9@byu.net>
76665
76666         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76667         missing from netdb.h.
76668         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76669
76670 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76671
76672         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76673         no longer needed.
76674         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76675         * m4/getdate.m4 (gl_GETDATE): Likewise.
76676         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76677         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76678         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76679         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76680         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76681
76682 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76683
76684         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76685         All uses of is_space replaced by isspace.
76686         * lib/exit.h: Don't talk about STDC_HEADERS.
76687         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76688         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76689         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76690         replaced by isprint etc.
76691         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76692         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76693         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76694         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76695         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76696         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76697
76698 2006-07-05  Bruno Haible  <bruno@clisp.org>
76699
76700         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76701         the function exists, before testing against AIX.
76702         Reported by Martin Lambers <marlam@marlam.de>.
76703
76704 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76707         From Mark D. Baushke.
76708
76709 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76710
76711         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76712         to the absolute name, not just one, to bypass Sun C 5.8's
76713         "warning: #include of /usr/include/... may be non-portable".
76714
76715 2006-07-04  Eric Blake  <ebb9@byu.net>
76716
76717         * modules/dirname-tests: New test module.
76718         * tests/test-dirname.c: New file, replacing dirname.c
76719         TEST_DIRNAME section that was recently deleted.
76720
76721 2006-07-04  Bruno Haible  <bruno@clisp.org>
76722
76723         Assume ANSI C header files and <ctype.h> functions.
76724         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76725         (mbsnwidth): Use isprint, iscntrl instead.
76726
76727 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76728
76729         Merge from coreutils.
76730         * MODULES.html.sh: Add xstrtold.
76731         * modules/xstrtold: New file.
76732         * modules/cycle-check (Files): Add lib/same-inode.h.
76733         * modules/dirname (Files): Add m4/double-slash-root.m4.
76734         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76735         * modules/mkdir-p (Files): Add lib/same-inode.h.
76736         * modules/same (Files): Add lib/same-inode.h.
76737
76738 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76739
76740         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76741         This is to keep the terminology clean; POSIX talks about
76742         "absolute pathnames", not "full pathnames", but the GNU
76743         Coding Standards say to use "path" for something else;
76744         so use "absolute" to keep both sides happy.
76745         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76746         Set gl_absolute_header, not gl_full_header_path.
76747         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76748         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76749         All uses changed.
76750
76751         Merge from coreutils.
76752
76753         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76754
76755         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76756         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76757         want to require the building of c-strtod.o.
76758         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76759         needs -lm directly.
76760         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76761
76762         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76763
76764         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76765         --as-needed option if available.  Problem reported by Albert Chin in
76766         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76767         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76768         cc merely issues a bunch of annoying warnings for --as-needed
76769         (this problem was reported by Bob Proulx).  Also, try linking with
76770         -lm to detect a bug in binutils 2.16 (this problem was reported
76771         by Ralf Wildenhues).
76772
76773         2006-06-18  Jim Meyering  <jim@meyering.net>
76774
76775         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76776         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76777         macro.
76778         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76779         also check for glibc-2.4's abort-inducing bug.
76780
76781         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76782         Low-probability clean-up should be to use rmdir to get rid of
76783         the just-created directory, not unlink.
76784
76785         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76786         configure fail, and request a bug report to inform us about it.
76787         Add a comment that, barring reports to the contrary, in 2007 we'll
76788         assume ftruncate is universally available.
76789
76790         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76791
76792         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76793
76794         2006-03-12  Jim Meyering  <jim@meyering.net>
76795
76796         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76797         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76798         * m4/same.m4 (gl_SAME): Likewise.
76799         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76800
76801         2006-03-11  Eric Blake  <ebb9@byu.net>
76802
76803         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76804         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76805         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76806         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76807
76808 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76811         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76812         reported by Mark D. Baushke, one in
76813         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76814
76815         Merge from coreutils.
76816
76817         * lib/.cppi-disable: Add stdint_.h.
76818         * lib/.cvsignore: Add stdint.h.
76819
76820         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76821
76822         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76823         both double and long double versions.
76824         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76825         * lib/xstrtold.c: New file.
76826         * lib/xstrtod.h (xstrtold): New decl.
76827
76828         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76829
76830         * lib/filemode.c (setst): Remove.
76831         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76832         (arguably) clearer, and the generated code is a bit smaller on my
76833         Debian GNU/Linux stable x86 host.
76834
76835         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76836
76837         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76838         Assume that filemode.h includes sys/types.h and sys/stat.h.
76839         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76840         (ftypelet): Reorder to put common cases first, for efficiency.
76841         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76842         to do 'M'.
76843         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76844         of 10, for compatibility with FreeBSD.  All callers changed.
76845         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76846         types that can't be deduced solely from st_mode.  First arg is now a
76847         const pointer.
76848         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76849         (strmode): Renamed from mode_string.
76850         (filemodestring): New decl.
76851         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76852         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76853         needed.
76854         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76855
76856         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76859         fsusage.h now does that.  Include fsusage.h first, to test interface.
76860         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76861         at most one method (the old code could have generated decls that
76862         didn't conform to C89, not that this was ever exercised).
76863         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76864
76865         2006-03-19  Jim Meyering  <jim@meyering.net>
76866
76867         Work even in a chroot where d_ino values for entries in "/"
76868         don't match the stat.st_ino values for the same names.
76869         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76870         number, iterate through all entries again, using lstat instead.
76871         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76872         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76873
76874         * lib/getcwd.c (__getcwd): Clarify a comment.
76875         Use memcpy in place of a call to strcpy.
76876
76877         2006-03-12  Jim Meyering  <jim@meyering.net>
76878
76879         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76880         matches that of the current directory (which we're about to chdir ".."
76881         out of), then save the dev-ino of the parent, instead.
76882
76883         * lib/same-inode.h (SAME_INODE): New file/macro.
76884         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76885         Include "same-inode.h", instead.
76886         * lib/same.c: Likewise.
76887         * lib/cycle-check.h: Include "same-inode.h".
76888         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76889         * lib/cycle-check.c (SAME_INODE): Remove definition.
76890         * lib/root-dev-ino.h: Include "same-inode.h".
76891
76892         2006-03-11  Eric Blake  <ebb9@byu.net>
76893
76894         * lib/same.c (same_name): s/base_name/last_component/
76895         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76896         * lib/filenamecat.c (file_name_concat): Likewise.
76897
76898         2006-03-11  Eric Blake  <ebb9@byu.net>,
76899                     Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76902         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76903         drive prefix.
76904         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76905         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76906         (last_component): New method.
76907         * lib/dirname.c (dir_len): Determine when drive letters need a
76908         subsequent slash.  Preserve // when it is special.
76909         (dir_name): Don't append dot when drive letter is absolute.
76910         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76911         * lib/basename.c (base_name): New semantics - malloc the result.
76912         Preserve // when it is special.  Preserve relative files that look
76913         like drive letters.
76914         (base_len): Preserve // when it is special.
76915         (last_component): New method, similar to old base_name semantics.
76916         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76917         base_name.  Strip redundant slashes from ///.
76918
76919 2006-07-03  Jim Meyering  <jim@meyering.net>
76920
76921         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76922         macro is used before the first cycle_check call.
76923
76924 2006-07-03  Eric Blake  <ebb9@byu.net>
76925
76926         * modules/dirname (Depends-on): Add xstrndup.
76927
76928 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76931         test cases, so that config.log is a bit easier to follow.
76932
76933 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76936         both are 64 bits, since this seems to be the tradition, and this
76937         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76938         we ever run into a host that prefers long long to long in this
76939         case, we'll need another configure-time test.  Problem reported by
76940         Jim Meyering.
76941
76942 2006-07-02  Eric Blake  <ebb9@byu.net>
76943
76944         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76945
76946 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76947
76948         * modules/inttypes (Depends-on): No longer depends on stdint.
76949         * modules/stdint (Description): Say more about assumptions.
76950         Say that the fast types might differ.  Say macros are used.
76951         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76952         (Makefile.am): Revise list of substituted symbols to match
76953         new stdint.m4.
76954         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76955         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76956         * tests/test-stdint.c (verify_same_types)
76957         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76958         the code conforms to C99/C89.
76959         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76960         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76961
76962 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76965         but fix a bug, by requiring at least 64 bits.
76966         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76967         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76968         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76969         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76970
76971         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76972         changes.  Make 2.59 a prerequisite.  Check and substitute for
76973         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76974         inttypes.h.  Do not use special include files; just use the
76975         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76976         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76977         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76978         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76979         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76980         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76981         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76982         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76983         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76984         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76985         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76986         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76987         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76988         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76989         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76990         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76991         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76992         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76993         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76994         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76995         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76996         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76997         not check for things that C99 does not require, e.g., int8_t.  If
76998         a test isn't needed unless <stdint.h> isn't working, and is
76999         unlikely to be needed for any other reason, then don't do it
77000         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77001         size_t, since we assume C89 freestanding at least.  Do not check
77002         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77003         the right thing even if the types are not defined.  Instead use:
77004         (gl_STDINT_TYPE_PROPERTIES): New macro.
77005         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77006         testing whether <sys/types.h> clashes, as Autoconf does this for
77007         us now.  All uses removed.
77008         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77009         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77010         (gl_CHECK_TYPE_SAME):
77011         Remove; no longer needed.
77012         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77013         exists, since we'll return 0 anyway in that case.
77014         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77015
77016 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77019         possible collision with system files.
77020         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77021         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77022         WCHAR_MIN and WCHAR_MAX in this case.
77023         (<stddef.h>): Do not include; no longer needed.
77024         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77025         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77026         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77027         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77028         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77029         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77030         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77031         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77032         !defined(__c99))]: Include in this case too, since it's harmless
77033         now.
77034         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77035         dangerous to do so.
77036         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77037         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77038         (_STDINT_MIN, _STDINT_MAX): New macros.
77039         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77040         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77041         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77042         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77043         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77044         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77045         macros, not typedefs; this simplifies things quite a bit.
77046         Use long int for all types narrower than int64_t.
77047         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77048         Define in terms of long long int or int64_t or long int,
77049         not int64_t or int32_t.  This saves some compile-time testing.
77050         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77051         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77052         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77053         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77054         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77055         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77056         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77057         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77058         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77059         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77060         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77061         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77062         undef any previous version and define our own version, for
77063         simplicity and consistency with the new macros for types.
77064         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77065         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77066         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77067         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77068         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77069         @WINT_T_SUFFIX@ to keep things simple here.
77070         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77071         Simplify by assuming typical 8/16/32/64 host, since we're
77072         already doing that elsewhere anyway.
77073         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77074         and assume long long int is 64 bits if available.  This
77075         speeds up 'configure'.
77076
77077 2006-07-01  Eric Blake  <ebb9@byu.net>
77078
77079         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77080         Reported by Andreas Buening.
77081
77082 2006-07-01  Eric Blake  <ebb9@byu.net>
77083
77084         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77085
77086 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77087
77088         * lib/getaddrinfo.c: fixed typo
77089
77090 2006-06-29  Jim Meyering  <jim@meyering.net>
77091
77092         * modules/strftime (Maintainer): Add my name, since with the
77093         FPRINTFTIME changes strftime.c has forked from glibc.
77094
77095 2006-06-29  Eric Blake  <ebb9@byu.net>
77096
77097         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77098
77099 2006-06-29  Eric Blake  <ebb9@byu.net>
77100
77101         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77102
77103 2006-06-29  Eric Blake  <ebb9@byu.net>
77104
77105         * lib/stat_.h: New file.
77106
77107 2006-06-29  Eric Blake  <ebb9@byu.net>
77108
77109         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77110         unused static function.
77111
77112 2006-06-29  Eric Blake  <ebb9@byu.net>
77113
77114         * doc/functions.texi (Function Portability): Document missing lstat
77115         on mingw.
77116
77117 2006-06-29  Eric Blake  <ebb9@byu.net>
77118
77119         * MODULES.html.sh: Add sys_stat.
77120         * modules/sys_stat: New module.
77121         * modules/mkstemp (Depends-on): Add sys_stat.
77122
77123 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77124
77125         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77126
77127 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77128
77129         * m4/c-bs-a.m4: Removed.
77130
77131 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77132
77133         * lib/strftime.c: Assume strftime() exists.
77134
77135 2006-06-29  Derek Price  <derek@ximbiot.com>
77136
77137         * modules/c-bs-a: Removed - \a is C89.
77138         * MODULES.html.sh: Remove c-bs-a.
77139
77140 2006-06-29  Bruno Haible  <bruno@clisp.org>
77141
77142         * modules/wcwidth (License): Change to LGPL.
77143
77144 2006-06-28  Simon Josefsson  <jas@extundo.com>
77145
77146         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77147         on _WIN32.
77148
77149         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77150         getnameinfo.
77151
77152 2006-06-28  Simon Josefsson  <jas@extundo.com>
77153
77154         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77155
77156 2006-06-28  Simon Josefsson  <jas@extundo.com>
77157
77158         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77159         functions there.  It will succeed on Windows XP, but on Windows
77160         2000 and (presumably) earlier, it will fail, and use the internal
77161         re-implementation.
77162         (use_win32_p): New function.
77163         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77164         Support AI_NUMERICSERV to disable getservbyname.
77165         (getnameinfo): New function, only supports
77166         NI_NUMERICHOST|NI_NUMERICSERV for now.
77167
77168         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77169         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77170         getnameinfo.
77171
77172 2006-06-28  Eric Blake  <ebb9@byu.net>
77173
77174         * modules/wcwidth: New file.
77175         * modules/mbchar (Depends-on): Add wcwidth.
77176         * modules/mbswidth (Depends-on): Add wcwidth.
77177         * MODULES.html.sh: Add wcwidth.
77178
77179 2006-06-28  Eric Blake  <ebb9@byu.net>
77180
77181         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77183
77184 2006-06-28  Eric Blake  <ebb9@byu.net>
77185
77186         * lib/xvasprintf.h: Fix comments.
77187
77188 2006-06-28  Eric Blake  <ebb9@byu.net>
77189
77190         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77191         * lib/mbswidth.c (wcwidth): Move from here...
77192         * lib/wcwidth.h: ...to this new file.
77193
77194 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77195
77196         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77197
77198         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77199         it's obsolete.
77200         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77201
77202 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77203
77204         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77205         Autoconf 2.60 says this stuff was obsolete.
77206
77207 2006-06-28  Bruno Haible  <bruno@clisp.org>
77208
77209         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77210
77211 2006-06-28  Bruno Haible  <bruno@clisp.org>
77212
77213         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77214         gt_TYPE_WCHAR_T.
77215
77216 2006-06-28  Bruno Haible  <bruno@clisp.org>
77217
77218         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77219         declaration for wcwidth.
77220         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77221
77222 2006-06-28  Bruno Haible  <bruno@clisp.org>
77223
77224         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77225         (mkdir): Define using _mkdir.
77226
77227 2006-06-28  Bruno Haible  <bruno@clisp.org>
77228
77229         * lib/getaddrinfo.h: Fix POSIX URL.
77230         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77231         _WIN32.
77232         (use_win32_p): Make static.
77233         (getaddrinfo): Reject service name if it is empty or does not consist
77234         solely of decimal digits, or if its value is > 65535.
77235         (getnameinfo): Remove useless casts.
77236
77237 2006-06-27  Simon Josefsson  <jas@extundo.com>
77238
77239         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77240         Eggert and Martin Lambers.
77241
77242 2006-06-27  Simon Josefsson  <jas@extundo.com>
77243
77244         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77245         Eggert and Martin Lambers.
77246
77247 2006-06-27  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77250         result to 0, not to empty.
77251         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77252
77253 2006-06-27  Bruno Haible  <bruno@clisp.org>
77254
77255         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77256
77257 2006-06-26  Simon Josefsson  <jas@extundo.com>
77258
77259         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77260         present.
77261
77262 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77263
77264         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77265         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77267
77268 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77269
77270         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77271
77272 2006-06-26  Bruno Haible  <bruno@clisp.org>
77273
77274         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77275
77276 2006-06-26  Bruno Haible  <bruno@clisp.org>
77277
77278         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77279
77280 2006-06-26  Bruno Haible  <bruno@clisp.org>
77281
77282         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77283         SGI C compiler in pre-C99 mode.
77284         Suggested by Mark D. Baushke and Larry Jones.
77285
77286 2006-06-26  Bruno Haible  <bruno@clisp.org>
77287
77288         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77289         WCHAR_MAX.
77290         Reported by Mark D. Baushke and Larry Jones.
77291
77292 2006-06-26  Bruno Haible  <bruno@clisp.org>
77293
77294         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77295         in pre-C99 mode.
77296         Suggested by Mark D. Baushke and Larry Jones.
77297
77298 2006-06-23  Simon Josefsson  <jas@extundo.com>
77299             Bruno Haible  <bruno@clisp.org>
77300
77301         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77302         Emit mostlyclean-local rule.
77303         (func_emit_tests_Makefile_am): Likewise.
77304         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77305
77306 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77307
77308         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77309
77310 2006-06-23  Bruno Haible  <bruno@clisp.org>
77311
77312         * tests/test-stdint.c: Update to match ISO C 99 Technical
77313         Corrigendum 1.
77314
77315 2006-06-23  Bruno Haible  <bruno@clisp.org>
77316
77317         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77318
77319 2006-06-23  Bruno Haible  <bruno@clisp.org>
77320
77321         * lib/stdint_.h: Treat IRIX like OpenBSD.
77322
77323 2006-06-23  Bruno Haible  <bruno@clisp.org>
77324
77325         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77326         ISO C 99 Technical Corrigendum 1.
77327
77328 2006-06-22  Simon Josefsson  <jas@extundo.com>
77329
77330         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77331         MinGW.
77332
77333 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77336         needed.  Some compiler complained about some of them.  Problem reported
77337         by Larry Jones in
77338         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77339
77340 2006-06-21  Simon Josefsson  <jas@extundo.com>
77341
77342         * tests/test-getaddrinfo.c: New file.
77343
77344         * modules/getaddrinfo-tests: New file.
77345
77346         * MODULES.html.sh: Add inet_pton.
77347
77348         * modules/inet_pton: New file.
77349
77350 2006-06-21  Simon Josefsson  <jas@extundo.com>
77351
77352         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77353         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77354         of using the (limited) gnulib implementation on Windows XP.
77355
77356         * m4/inet_pton.m4: New file.
77357
77358 2006-06-21  Simon Josefsson  <jas@extundo.com>
77359
77360         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77361         variable.
77362
77363         * lib/socket_.h: Don't define WINVER.
77364
77365         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77366         slightly modified to work in gnulib.
77367
77368 2006-06-21  Simon Josefsson  <jas@extundo.com>
77369
77370         * doc/gnulib.texi (Windows sockets): Add.
77371
77372 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * lib/read-file.c (fread_file): Start with buffer allocation of
77375         0 bytes rather than 1 byte; this simplifies the code.
77376         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77377         code to free buffer and save/restore errno.
77378         (internal_read_file): Remove unused local.
77379
77380 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77383         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77384         Problem reported by Denis Excoffier in
77385         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77386
77387 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77388
77389         * modules/sys_socket, modules/socklen: Include sys/types since
77390         FreeBSD 4.x's sys/socket.h needs it.
77391
77392 2006-06-19  Simon Josefsson  <jas@extundo.com>
77393
77394         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77395
77396 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77397
77398         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77399
77400 2006-06-19  Bruno Haible  <bruno@clisp.org>
77401
77402         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77403         and FULL_PATH_INTTYPES_H in angle brackets.
77404         Reported by Mark D. Baushke <mdb@gnu.org>.
77405
77406 2006-06-17  Eric Blake  <ebb9@byu.net>
77407
77408         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77409         errno.
77410
77411 2006-06-17  Bruno Haible  <bruno@clisp.org>
77412
77413         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77414         <sys/inttypes.h>.
77415
77416 2006-06-17  Bruno Haible  <bruno@clisp.org>
77417
77418         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77419         whether errno is declared. Assume <errno.h> declares errno.
77420
77421 2006-06-17  Bruno Haible  <bruno@clisp.org>
77422
77423         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77424
77425 2006-06-17  Bruno Haible  <bruno@clisp.org>
77426
77427         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77428         problem on Solaris 2.5.1.
77429
77430 2006-06-16  Eric Blake  <ebb9@byu.net>
77431
77432         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77433         * lib/unicodeio.c [!defined errno]: Likewise.
77434         * lib/strtol.c [!defined errno]: Likewise.
77435         * lib/strtod.c [!defined errno]: Likewise.
77436
77437 2006-06-15  Eric Blake  <ebb9@byu.net>
77438
77439         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77440
77441 2006-06-15  Eric Blake  <ebb9@byu.net>
77442
77443         * config/srclist.txt (ssize_t.m4): Lose sync.
77444
77445 2006-06-15  Bruno Haible  <bruno@clisp.org>
77446
77447         * modules/stdint (Files): Include m4/full-header-path.m4,
77448         m4/size_max.m4, m4/wchar_t.m4.
77449         (Makefile.am): Many more substitutions.
77450         * modules/stdint-tests: New file.
77451         * tests/test-stdint.c: New file.
77452
77453 2006-06-15  Bruno Haible  <bruno@clisp.org>
77454
77455         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77456         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77457         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77458         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77459         gl_CHECK_TYPE_SAME): New macros.
77460
77461 2006-06-15  Bruno Haible  <bruno@clisp.org>
77462
77463         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77464
77465 2006-06-15  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/stdint_.h: Rewritten to be fully auto-configured.
77468         Fixes bug on HP-UX/IA64.
77469
77470 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         * lib/getdate.y (__attribute__): Don't define if already defined.
77473         Problem reported by Larry Jones.
77474         * lib/utimens.c (__attribute__): Likewise.
77475
77476 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77479         reported by Andreas Schwab.
77480
77481 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77482             Bruno Haible  <bruno@clisp.org>
77483
77484         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77485         check for the declaration of strnlen and a run test that exposes the
77486         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77487         rpl_strndup.
77488
77489 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77490             Bruno Haible  <bruno@clisp.org>
77491
77492         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77493
77494 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77495
77496         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77497         compile test, for Tru64 4.0D.
77498
77499 2006-05-28  Karl Berry  <karl@gnu.org>
77500
77501         * config/srclist.txt (printf-args.c): lose sync.
77502
77503 2006-05-26  Martin Lambers  <marlam@marlam.de>
77504
77505         * lib/getpass.c: Updates the test for the native W32 API, and adds
77506         missing includes, thus fixing compilation warnings.
77507
77508 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77509
77510         * lib/exclude.c (exclude_fnmatch): New function.
77511         (excluded_file_name): Call exclude_fnmatch.
77512         * lib/exclude.h (excluded_file_name): New prototype
77513
77514 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77515
77516         * lib/tempname.c (small_open, large_open): New macros.
77517         (__open, __open64) [!_LIBC]: Remove.
77518         (__gen_tempname): Use small_open and large_open instead of __open
77519         and __open64.  This fixes a portability bug on HP-UX 11.11i
77520         reported by Simon Wing-Tang in
77521         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77522
77523 2006-05-24  Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77526         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77527         Reported by Thorsten Maerz <torte@netztorte.de> via
77528         Aaron Stone <aaron@serendipity.cx>.
77529
77530 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77533         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77534         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77535         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77536         not really conditional on the cache.
77537         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77538
77539 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77540
77541         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77542         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77543         (my_usleep): Don't mishandle maximum value.
77544
77545 2006-05-19  Jim Meyering  <jim@meyering.net>
77546
77547         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77548
77549 2006-05-17  Bruno Haible  <bruno@clisp.org>
77550
77551         Cygwin portability.
77552         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77553
77554 2006-05-17  Bruno Haible  <bruno@clisp.org>
77555
77556         * lib/stdint_.h: Fix recognition of Cygwin.
77557
77558 2006-05-15  Bruno Haible  <bruno@clisp.org>
77559
77560         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77561         on libtool patch by Ralf Wildenhues.
77562
77563 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77566         test for C99 conformance; (bool) 0.5 is an integer constant
77567         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77568         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77569
77570 2006-05-11  Simon Josefsson  <jas@extundo.com>
77571
77572         * m4/xvasprintf.m4: Fix obvious typo.
77573
77574 2006-05-11  Jim Meyering  <jim@meyering.net>
77575
77576         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77577         James Lemley.
77578
77579 2006-05-10  Simon Josefsson  <jas@extundo.com>
77580
77581         * lib/md4.c: Typo fix, update copyright years.
77582         (K1, K2): Don't use L because it turn computations into 64-bit on
77583         64-bit platforms.
77584
77585 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77586
77587         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77588         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77589         unwanted sign propagation, e.g., on hosts with 64-bit int.
77590         There still are some problems with reeelly weird theoretical hosts
77591         (e.g., 33-bit int) but it's not worth worrying about now.
77592         * lib/sha1.c (rol): Likewise.
77593         (K1, K2, K3, K4): Remove unnecessary L suffix.
77594
77595 2006-05-10  Bruno Haible  <bruno@clisp.org>
77596
77597         * lib/des.c: Cast to avoid warnings.
77598
77599 2006-05-09  Bruno Haible  <bruno@clisp.org>
77600
77601         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77602         (Depends-on): Depend also on xsize, stdarg.
77603         (configure.ac): Add gl_XVASPRINTF.
77604
77605 2006-05-09  Bruno Haible  <bruno@clisp.org>
77606
77607         * m4/xvasprintf.m4: New file.
77608
77609 2006-05-09  Bruno Haible  <bruno@clisp.org>
77610
77611         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77612         (EOVERFLOW): Define fallback value.
77613         (xstrcat): New function.
77614         (xvasprintf): Recognize the special case of a string concatenation.
77615
77616 2006-05-08  Eric Blake  <ebb9@byu.net>
77617
77618         * gnulib-tool (func_version): Base copyright year on CVS date.
77619         (func_emit_copyright_notice): New function.
77620         (func_emit_lib_Makefile_am): Use it.
77621         (func_emit_tests_Makefile_am): Likewise.
77622         (func_import): Likewise.
77623
77624 2006-05-08  Bruno Haible  <bruno@clisp.org>
77625
77626         * modules/stdarg: New file.
77627         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77628
77629 2006-05-08  Bruno Haible  <bruno@clisp.org>
77630
77631         * m4/stdarg.m4: New file, from GNU gettext.
77632
77633 2006-05-08  Bruno Haible  <bruno@clisp.org>
77634
77635         * config/srclist.txt (build-aux/config.rpath): different from latest
77636         release.
77637
77638 2006-05-08  Bruno Haible  <bruno@clisp.org>
77639
77640         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77641
77642 2006-05-05  Jim Meyering  <jim@meyering.net>
77643
77644         * m4/warning.m4: New file, derived from bison's file by the same name.
77645
77646 2006-05-03  Bruno Haible  <bruno@clisp.org>
77647
77648         * lib/stdint_.h: Shorter URL.
77649         * lib/inttypes.h: Likewise.
77650
77651 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77652
77653         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77654
77655 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * lib/verify.h: Document the internals better.  Most of this change
77658         was written by Bruno Haible.
77659
77660 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77661
77662         * doc/verify.texi: New file, partly based on a proposal by
77663         Bruno Haible.
77664
77665 2006-05-02  Bruno Haible  <bruno@clisp.org>
77666
77667         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77668         test from here...
77669         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77670
77671 2006-04-29  Bruno Haible  <bruno@clisp.org>
77672
77673         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77674         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77675
77676 2006-04-29  Bruno Haible  <bruno@clisp.org>
77677
77678         * gnulib-tool: Make --update option actually work.
77679
77680 2006-04-29  Bruno Haible  <bruno@clisp.org>
77681
77682         * doc/gcd.texi: New file.
77683         * doc/gnulib.texi: Include it.
77684
77685 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77686
77687         * lib/getdate.y (get_date): When adding relative date, start with the
77688         initial time, not with the result of the first mktime call.
77689
77690 2006-04-25  Bruno Haible  <bruno@clisp.org>
77691
77692         * gnulib-tool (func_import): Output the include directives in three
77693         blocks, sorted separately.
77694         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77695
77696 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77699         to define main with arguments, for C++.  Reported by Eric Blake.
77700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77701         Prefer 'int main ()' to 'int main (void)', for C++.
77702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77704         for 'main', for C99 and C++.
77705
77706 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77709         Don't assume that exit status -1 is valid.
77710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77711         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77712         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77713         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77714         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77715         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77716         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77717         functions can be used without declaring them, or that you can
77718         exit with status -1.
77719         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77720
77721 2006-04-24  Karl Berry  <karl@gnu.org>
77722
77723         * config/srclist.txt (longdouble.m4): sync lost.
77724
77725 2006-04-24  Eric Blake  <ebb9@byu.net>
77726
77727         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77728
77729 2006-04-24  Bruno Haible  <bruno@clisp.org>
77730
77731         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77732         poll() implementation in AIX.
77733         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77734
77735 2006-04-24  Bruno Haible  <bruno@clisp.org>
77736
77737         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77738         assigned exactly once.
77739
77740 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77741             Bruno Haible  <bruno@clisp.org>
77742
77743         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77744         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77745         for AM_CPPFLAGS.
77746
77747 2006-04-23  Bruno Haible  <bruno@clisp.org>
77748
77749         * modules/copy-file: Depend on unistd.
77750         * modules/execute: Likewise.
77751         * modules/fatal-signal: Likewise.
77752         * modules/findprog: Likewise.
77753         * modules/mkdtemp : Likewise.
77754         * modules/pipe: Likewise.
77755         * modules/wait-process: Likewise.
77756
77757 2006-04-23  Bruno Haible  <bruno@clisp.org>
77758
77759         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77760         condition was already detected.
77761         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77762
77763 2006-04-23  Bruno Haible  <bruno@clisp.org>
77764
77765         * lib/copy-file.c: Include <unistd.h> unconditionally.
77766         * lib/execute.c: Likewise.
77767         * lib/fatal-signal.c: Likewise.
77768         * lib/findprog.c: Likewise.
77769         * lib/mkdtemp.c: Likewise.
77770         * lib/pipe.h: Likewise.
77771         * lib/pipe.c: Likewise.
77772         * lib/wait-process.h: Likewise.
77773
77774 2006-04-23  Bruno Haible  <bruno@clisp.org>
77775
77776         * gnulib-tool (func_usage): Fix --import description. Document
77777         --update.
77778         (func_import): Create temporary file in a temporary directory, if
77779         --dry-run is specified. Silence errors from 'grep' when there are no
77780         m4 files in $m4dir.
77781         (func_create_testdir): Silence errors from 'grep' when there are no
77782         m4 files in $m4dir.
77783         Reported by Karl Berry <karl@freefriends.org>.
77784
77785 2006-04-20  Bruno Haible  <bruno@clisp.org>
77786
77787         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77788         one argument, so that the code will be portable to Autoconf 2.60.
77789         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77790         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77791         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77792
77793 2006-04-19  Derek Price  <derek@ximbiot.com>
77794             Eric Blake  <ebb9@byu.net>
77795
77796         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77797         rather than "/full/path.h".  Update comment to match.  Shorten &
77798         generalize m4_translit call via AS_TR_CPP.
77799
77800 2006-04-19  Derek Price  <derek@ximbiot.com>
77801             Eric Blake  <ebb9@byu.net>
77802
77803         * lib/inttypes.h: Correct grammar in comment.
77804
77805 2006-04-18  Derek Price  <derek@ximbiot.com>
77806             Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * modules/inttypes: New file.
77809         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77810
77811 2006-04-18  Derek Price  <derek@ximbiot.com>
77812             Paul Eggert  <eggert@cs.ucla.edu>
77813
77814         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77815         New files.
77816
77817 2006-04-18  Derek Price  <derek@ximbiot.com>
77818             Paul Eggert  <eggert@cs.ucla.edu>
77819
77820         * lib/inttypes.h: New file.
77821         * lib/strtoimax.c: Assume <inttypes.h>.
77822
77823 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77826         isn't mounted.  Problem reported by Kir Kolyshkin.
77827
77828 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77831         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77832         Derek R. Price.
77833         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77834         implementation.
77835
77836 2006-04-12  Eric Blake  <ebb9@byu.net>
77837
77838         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77839         is now done automatically by the corresponding Autoconf macro.
77840
77841 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77842
77843         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77844         time_r.h.
77845
77846 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         Merge regex changes from libc, removing some of our
77849         POSIX-conformance changes that were rejected and redoing them in a
77850         less-intrusive way.
77851
77852         * lib/regcomp.c (re_compile_internal, init_dfa):
77853         Length arg is now size_t, not Idx.  All uses changed.
77854         (peek_token): Forward decl now says internal_function.
77855         (__re_error_msgid, __re_error_msgid_idx):
77856         Now static rather than extern with attribute_hidden.
77857         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77858         For some reason libc prefers K&R style defns for external functions.
77859         (regerror) [!defined _LIBC]: Likewise.
77860         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77861         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77862         (build_range_exp, build_collating_symbol):
77863         Use K&R-style defn.
77864         (re_compile_fastmap): Use '\0' to memset, not 0.
77865         (utf8_sb_map): Make the calculations more obvious.
77866         (init_dfa, parse_bracket_exp, build_charclass_op):
77867         Call calloc and cast result, as glibc does.
77868         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77869         (build_range_exp, build_collating_symbol):
77870         Now internal functions.
77871
77872         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77873
77874         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77875         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77876         Don't depend on VMS; depend on __VMS instead, for POSIX
77877         namespace cleanness.
77878         (regoff_t): Define to ssize_t, not long int.
77879
77880         Remove the REG_ macros named below.  Instead, make the old names
77881         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77882         __USE_GNU_REGEX.
77883         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77884         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77885         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77886         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77887         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77888         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77889         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77890         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77891         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77892         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77893         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77894         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77895         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77896         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77897         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77898         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77899         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77900         (REG_NREGS):
77901         Remove.  All uses replaced by the old RE_* names.
77902         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77903         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77904         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77905         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77906         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77907         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77908         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77909         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77910         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77911         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77912         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77913         Don't bother having these macros be independent of each others'
77914         values, since they no longer exist in the POSIX name space.
77915
77916         Rename the following member names back to their old names,
77917         unless !__USE_GNU_REGEX.  All uses changed back.
77918         (buffer): Renamed from re_buffer.
77919         (allocated): Renamed from re_allocated.
77920         (used): Renamed from re_used.
77921         (syntax): Renamed from re_syntax.
77922         (fastmap): Renamed from re_fastmap.
77923         (translate): Renamed from re_translate.
77924         (can_be_null): Renamed from re_can_be_null.
77925         (regs_allocated): Renamed from re_regs_allocated.
77926         (fastmap_accurate): Renamed from re_fastmap_accurate.
77927         (no_sub): Renamed from re_no_sub.
77928         (not_bol): Renamed from re_not_bol.
77929         (not_eol): Renamed from re_not_eol.
77930         (newline_anchor): Renamed from re_newline_anchor.
77931         (num_regs): Renamed from rm_num_regs.
77932         (start): Renamed from rm_start.
77933         (end): Renamed from rm_end.
77934
77935         (free_state): Move up a bit.
77936
77937         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77938         #define to be empty.
77939         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77940         when that is what is intended.
77941         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77942         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77943         (MAX): New macro.
77944         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77945         All uses changed back to re_malloc, etc.  It's now the caller's
77946         responsibility to check for overflow; all callers changed.
77947         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77948         (re_x2nrealloc): Remove.
77949         (free_state): Remove decl.
77950
77951         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77952         (re_set_registers, re_exec):
77953         Use K&R-style defn.
77954
77955         2006-01-31  Roland McGrath  <roland@redhat.com>
77956
77957         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77958         Reported by Mike Frysinger <vapier@gentoo.org>.
77959
77960         2006-01-15  Andreas Jaeger  <aj@suse.de>
77961
77962         [BZ #1950]
77963         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77964         build_wcs_upper_buffer change.
77965         (build_wcs_upper_buffer): Change return type.
77966
77967         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77968
77969         * lib/regex_internal.h: Include <stdint.h> if available.
77970
77971         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77972
77973         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77974
77975         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77976
77977         * lib/regcomp.c: Adjust for changed secondary hash function.
77978
77979         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77980
77981         * lib/regex.h: Pretty printing.
77982         Clean up namespace a bit.
77983
77984         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77985
77986         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77987         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77988
77989         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77990                     Ulrich Drepper  <drepper@redhat.com>
77991
77992         [BZ #1302]
77993         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77994         changed.
77995         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77996
77997         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77998
77999         [BZ #281]
78000         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78001         * lib/regcomp.c: Remove unnecessary uses of
78002         unsigned RE_TRANSLATE_TYPE.
78003         * lib/regex_internal.h: Likewise.
78004         * lib/regex_internal.c: Likewise.
78005         * lib/regexec.c: Likewise.
78006         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78007
78008         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78009
78010         * lib/regexec.c (find_recover_state): Remove unnecessary
78011         initialization.
78012         (transit_state_bkref): Make DFA a const pointer.
78013         (get_subexp): Likewise.
78014         (check_arrival): Likewise.
78015         (update_cur_sifted_state): Likewise.
78016         (re_search_internal): Likewise.
78017         (prune_impossible_nodes): Likewise.
78018         (acquire_init_state_context): Likewise.
78019         (proceed_next_node): Likewise.
78020         (set_regs): Likewise.
78021         (free_fail_stack_return): Likewise.
78022         (check_arrival_expand_ecl): Mark DFA parameter as const.
78023         (check_arrival_expand_ecl_sub): Likewise.
78024         (check_subexp_limits): Likewise.
78025         (sub_epsilon_src_nodes):  Likewise.
78026         (add_epsilon_src_nodes):  Likewise.
78027         (merge_state_array): Likewise.
78028         (update_regs): Likewise.
78029         (build_trtable): Likewise.
78030         (sift_states_backward): Mark MCTX parameter as const.
78031         (build_sifted_states): Likewise.
78032         (update_cur_sifted_state): Likewise.
78033         (sift_states_mkref): Likewise.
78034         (check_arrival_expand_ecl): Mark eclosure as const.
78035         (check_dst_limits_calc_pos_1): Likewise.
78036         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78037         pointer.
78038
78039         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78040
78041         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78042         (transit_state_sb): Likewise.
78043         (transit_state_mb): Likewise.
78044         (sift_states_iter_mb): Likewise.
78045         (check_arrival_add_next_nodes): Likewise.
78046         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78047         [_LIBC] (re_search_2_stub): Use mempcpy.
78048
78049         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78050         mbrtowc for very simple UTF-8 case.
78051
78052         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78053         a pointer-to-const.
78054         (re_acquire_state_context): Likewise.
78055         * lib/regex_internal.h: Adjust prototypes.
78056
78057         * lib/regex.c: Prevent using C++ compilers.
78058
78059         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78060         (re_acquire_state_context): Likewise.
78061
78062 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         * modules/regex (Depends-on): Add ssize_t.
78065
78066 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78069         translation table.
78070
78071 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78072
78073         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78074
78075 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78076             Bruno Haible  <bruno@clisp.org>
78077
78078         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78079         <sys/types.h> and <inttypes.h>.
78080
78081 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78082
78083         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78084         `__error_t_defined', so argp.h will not typedef the former.
78085
78086 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78087
78088         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78089         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78090         glibc names.  Even if glibc is changed to conform to POSIX, the
78091         traditional names will be available anyway, since regex depends on
78092         the extensions module.  Also, fix a longstanding typo in the
78093         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78094         reported by Emanuele Giaquinta.  Also, change sense of cached
78095         variable, so that the message makes sense.
78096
78097 2006-03-24  Simon Josefsson  <jas@extundo.com>
78098
78099         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78100         including some doc fixes.
78101         (base64_encode_alloc): Fix +1 bug on allocation failures.
78102
78103 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78104
78105         * lib/base64.c (base64_encode): Do not read past end of array with
78106         unsanitized input on systems with CHAR_BIT > 8.
78107
78108 2006-03-24  Eric Blake  <ebb9@byu.net>
78109
78110         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78111
78112 2006-03-22  Karl Berry  <karl@gnu.org>
78113
78114         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78115         * config/srclistvars.sh (COREUTILS): new var.
78116
78117 2006-03-17  Jim Meyering  <jim@meyering.net>
78118
78119         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78120         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78121
78122 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78125         no longer needs it.  Instead, check that regoff_t is as least
78126         as wide as ptrdiff_t.
78127
78128         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78129         so that our regex.h stays compatible with the installed regex.
78130         This is helpful for installers who configure --without-included-regex.
78131         Problem reported by Emanuele Giaquinta.
78132
78133 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78136         Typedef to long int, not to off_, as POSIX will likely change
78137         in that direction.
78138
78139 2006-03-15  Eric Blake  <ebb9@byu.net>
78140
78141         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78142
78143 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78144
78145         * lib/argp-help.c (validate_uparams): Fix typo
78146         * lib/argp-parse.c (argp_default_options): Consistently begin help
78147         messages with a lowercase letter.
78148
78149 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78150
78151         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78152         overrun buffers and shouldn't be used (much as gets shouldn't be
78153         used).
78154         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78155
78156 2006-03-08  Simon Josefsson  <jas@extundo.com>
78157
78158         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78159         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78160
78161 2006-03-08  Simon Josefsson  <jas@extundo.com>
78162
78163         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78164         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78165
78166 2006-03-08  Simon Josefsson  <jas@extundo.com>
78167
78168         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78169         signal that configure disabled the device.
78170
78171 2006-03-08  Simon Josefsson  <jas@extundo.com>
78172
78173         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78174         languages.
78175
78176 2006-03-07  Simon Josefsson  <jas@extundo.com>
78177
78178         * modules/getopt (Depends-on): Add unistd.
78179
78180         * modules/unistd: New file.
78181
78182 2006-03-07  Simon Josefsson  <jas@extundo.com>
78183
78184         * modules/gc-random: New file.
78185
78186 2006-03-07  Simon Josefsson  <jas@extundo.com>
78187
78188         * m4/unistd_h.m4: New file.
78189
78190 2006-03-07  Simon Josefsson  <jas@extundo.com>
78191
78192         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78193         test to be side-effect free by storing the result in the cache
78194         variable gl_cv_lib_readline, and moving the assignment of
78195         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78196         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78197
78198 2006-03-07  Simon Josefsson  <jas@extundo.com>
78199
78200         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78201         error on missing devices (the functions will return an error).
78202
78203         * m4/gc.m4: Move random stuff to gc-random.m4
78204
78205 2006-03-07  Simon Josefsson  <jas@extundo.com>
78206
78207         * lib/unistd_.h: New file.
78208
78209 2006-03-07  Simon Josefsson  <jas@extundo.com>
78210
78211         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78212
78213 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78214
78215         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78216         Problem reported by Juan Manuel Guerrero.
78217
78218 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78221         the unistd module.
78222         * lib/getlogin_r.c: Likewise.
78223         * lib/getlogin_r.h: Likewise.
78224         * lib/glob.c: Likewise.
78225         * lib/pagealign_alloc.c: Likewise.
78226         * lib/unistd_.h: Remove; no longer needed.
78227
78228 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78231         Add unistd.
78232         * modules/c-stack (Depends-on): Add unistd.
78233         * modules/getlogin_r: Likewise.
78234         * modules/glob: Likewise.
78235         * modules/pagealign_alloc: Likewise.
78236         * modules/unistd (Files): Remove lib/unistd_.h.
78237         (EXTRA_DIST): Remove.
78238         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78239         need unistd_.h.
78240         (MOSTLYCLEANFILES): Remove unistd.h-t.
78241
78242 2006-03-03  Simon Josefsson  <jas@extundo.com>
78243
78244         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78245
78246 2006-03-03  Simon Josefsson  <jas@extundo.com>
78247
78248         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78249         libidn and bison.
78250
78251 2006-03-03  Simon Josefsson  <jas@extundo.com>
78252
78253         * build-aux/maint.mk: Add indent target.
78254
78255 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78256
78257         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78258         our replacement poll.h in any case, to avoid a differing
78259         declaration from a system header.  Seen on AIX.
78260
78261 2006-03-01  Simon Josefsson  <jas@extundo.com>
78262
78263         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78264         <kasal@ucw.cz>.
78265
78266 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78267
78268         * modules/gettime (Depends-on): Add extensions module.
78269         * modules/nanosleep (Depends-on): Likewise.
78270         * modules/settime (Depends-on): Likewise.
78271
78272 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78275         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78276         pedantically.
78277         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78278         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78279
78280         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78281         not "==".  Reported by Ralf Wildenhues.
78282
78283 2006-03-01  Karl Berry  <karl@gnu.org>
78284
78285         * doc/Copyright/request-*: new files, synced from gnuorg.
78286
78287 2006-03-01  Karl Berry  <karl@gnu.org>
78288
78289         * config/srclist.txt (Copyright/*): new entries.
78290
78291 2006-02-28  Simon Josefsson  <jas@extundo.com>
78292
78293         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78294
78295 2006-02-27  Simon Josefsson  <jas@extundo.com>
78296
78297         * lib/base64.h: Indent #define's.  From Jim Meyering
78298         <jim@meyering.net>.
78299
78300 2006-02-27  Jim Meyering  <jim@meyering.net>
78301
78302         Revert the change of 2006-02-24, so these files can continue
78303         to be sync'd from gettext.
78304         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78305         of `config.h'.
78306
78307 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78308
78309         * modules/intprops: New file.
78310         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78311         Add intprops.
78312         * modules/getloadavg (Files): Remove lib/intprops.h.
78313         (Depends-on): Add intprops.
78314         * modules/human: Likewise.
78315         * modules/inttostr: Likewise.
78316         * modules/openat: Likewise.
78317         * modules/sig2str: Likewise.
78318         * modules/userspec: Likewise.
78319         * modules/utimecmp: Likewise.
78320         * modules/xnanosleep: Likewise.
78321         * modules/xstrtol: Likewise.
78322
78323 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78324
78325         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78326         * modules/lock-tests (TESTS): Use $(EXEEXT).
78327         * modules/tls-tests: Likewise.
78328         * modules/argp-tests: Likewise.
78329         (check_PROGRAMS): New var, replacing...
78330         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78331
78332 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78333
78334         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78335         `config.h'.
78336
78337 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78338
78339         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78340
78341 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78342
78343         Sync from coreutils.
78344         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78345         gl_CHDIR_SAFER.
78346
78347 2006-02-22  Jim Meyering  <jim@meyering.net>
78348
78349         Sync from coreutils.
78350         * m4/chdir-safer.m4: New file.
78351
78352 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78353
78354         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78355         AT_FDCWD exceeds INT_MAX.
78356         * lib/openat.h (AT_FDCWD): Likewise.
78357
78358 2006-02-17  Eric Blake  <address@hidden>
78359
78360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78361
78362 2006-02-16  Simon Josefsson  <jas@extundo.com>
78363
78364         * modules/getaddrinfo (Depends-on): Add sys_socket.
78365
78366 2006-02-15  Simon Josefsson  <jas@extundo.com>
78367
78368         * build-aux/maint.mk: Add dsyntax-check rule.
78369
78370 2006-02-15  Eric Blake  <ebb9@byu.net>
78371
78372         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78373         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78374         'present but cannot compile' warnings on cygwin.
78375         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78376         use ws2tcpip.h if sys/socket.h works.
78377         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78378         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78379
78380 2006-02-14  Simon Josefsson  <jas@extundo.com>
78381
78382         * modules/maintainer-makefile (Files): Rename.
78383
78384         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78385         and (the local) Makefile.cfg to maint-cfg.mk.
78386
78387         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78388         to the latter.
78389
78390         * modules/maintainer-makefile: New module.
78391
78392         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78393         severaly stripped to make it possible to build it up from scratch
78394         with reliable tests.
78395
78396         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78397         fixes to permit overriding the default actions when configure and
78398         makefile are not available.
78399
78400 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78401
78402         Sync from coreutils.
78403         * modules/lstat (Depends-on): Don't depend on xalloc.
78404         (License): Change from GPL to LGPL, since this is now simply a
78405         replacement for a libc function.
78406
78407 2006-02-14  Jim Meyering  <jim@meyering.net>
78408
78409         Sync from coreutils.
78410
78411         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78412         failure on deficient systems, and simplify gnulib lgpl dependencies.
78413         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78414         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78415
78416         * lib/xalloc-die.c: Remove unused definition of N_.
78417
78418 2006-02-14  Jim Meyering  <jim@meyering.net>
78419
78420         Sync from coreutils.
78421         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78422         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78423         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78424         double-quote uses of that variable, to accommodate the rare case in
78425         which getmntent is available in none of the libraries checked.  This
78426         happens at least on FreeBSD 5.0.
78427
78428 2006-02-13  Simon Josefsson  <jas@extundo.com>
78429
78430         * gnulib-tool (Usage): Fix --import, from
78431         karl@freefriends.org (Karl Berry).
78432
78433 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78434
78435         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78436
78437 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78438
78439         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78440         "autoupdate" on 2005-12-12.
78441
78442 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78443
78444         * modules/closeout (Depends-on): Remove atexit.
78445
78446 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78447
78448         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78449         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78450
78451 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78452
78453         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78454         __EXTENSIONS__ if this causes compilation to fail.  Problem
78455         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78456         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78457
78458 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78459
78460         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78461         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78463         All uses changed.
78464
78465 2006-01-26  Simon Josefsson  <jas@extundo.com>
78466
78467         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78468         prototype is visible on mingw32.
78469
78470         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78471         for mingw32.
78472
78473         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78474         mingw32).
78475
78476 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78477
78478         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78479         attempt to open for write; this always fails, at least on POSIX
78480         hosts.  This reinstates the 2006-01-09 change, which was
78481         inadvertently removed.
78482
78483 2006-01-26  Bruno Haible  <bruno@clisp.org>
78484
78485         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78486         Reported by Paul Eggert.
78487
78488 2006-01-26  Bruno Haible  <bruno@clisp.org>
78489             Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * lib/stdbool_.h (_Bool)
78492         [(! (defined __cplusplus || defined __BEOS__)
78493           && !defined __GNUC__
78494           && !(defined __HP_cc || defined __xlc__
78495                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78496                || defined __sgi))]:
78497         #define to signed char in these cases too; this simplifies
78498         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78499         etc., separately) and makes it more conservative.
78500
78501 2006-01-25  Simon Josefsson  <jas@extundo.com>
78502
78503         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78504         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78505         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78506
78507 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78508
78509         * lib/argp-namefrob.h: Bugfix. Remove stray #
78510
78511 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78512
78513         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78514         so that we test the test.
78515         Check for yet another HP-UX cc bug involving *bool |= bool.
78516
78517 2006-01-25  Karl Berry  <karl@gnu.org>
78518
78519         * config/srclist.txt (vasnprintf.c): sync lost.
78520
78521 2006-01-25  Jim Meyering  <jim@meyering.net>
78522
78523         Sync from the stable (b5) branch of coreutils:
78524
78525         * lib/fts.c (fts_children): Don't let close() clobber errno from
78526         failed fchdir().
78527
78528         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78529         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78530         a dangling symlink.  That can also happen at least for ELOOP.
78531         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78532         FYI, this bug predates the inclusion of fts.c in coreutils.
78533
78534         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78535         in their own block, so pre-c99 compilers don't object.
78536
78537         Avoid the double-free (first in fts_read, second in fts_close) that
78538         would occur when an `active' directory is made inaccessible (e.g.,
78539         via chmod a-x) during a traversal.
78540         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78541         before returning.  Reproduce this failure by
78542         mkdir -p a/b; cd a; chmod a-x . b
78543         Reported by Stavros Passas.
78544
78545 2006-01-25  Jim Meyering  <jim@meyering.net>
78546
78547         * lib/fileblocks.c: Remove more useless parentheses.
78548         * lib/readutmp.h: Likewise.
78549
78550 2006-01-25  Bruno Haible  <bruno@clisp.org>
78551
78552         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78553         warnings.
78554         Reported by Paul Eggert.
78555
78556 2006-01-25  Bruno Haible  <bruno@clisp.org>
78557
78558         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78559         rid of a trap command. For Solaris sh.
78560         Reported by Mark D. Baushke <mdb@gnu.org>.
78561
78562 2006-01-24  Simon Josefsson  <jas@extundo.com>
78563
78564         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78565         Bruno.
78566
78567 2006-01-24  Karl Berry  <karl@gnu.org>
78568
78569         * config/srclist.txt (argp-namefrob.h): sync lost.
78570
78571 2006-01-24  Jim Meyering  <jim@meyering.net>
78572
78573         * modules/openat (Files): Add lib/intprops.h.
78574         From Mark D. Baushke.
78575
78576 2006-01-24  Jim Meyering  <jim@meyering.net>
78577
78578         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78579         Reported by Mark D. Baushke.
78580
78581 2006-01-24  Jim Meyering  <jim@meyering.net>
78582
78583         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78584
78585 2006-01-24  Bruno Haible  <bruno@clisp.org>
78586
78587         * modules/strnlen (Maintainer): Change from glibc to all.
78588
78589 2006-01-24  Bruno Haible  <bruno@clisp.org>
78590
78591         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78592         Patch by Paul Eggert.
78593
78594 2006-01-24  Bruno Haible  <bruno@clisp.org>
78595
78596         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78597         already has it.
78598         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78599         2005-11-26.
78600
78601         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78602         'signed char' to avoid problems with the built-in _Bool type.
78603         Reported by Paul Eggert on 2005-11-26.
78604
78605 2006-01-24  Bruno Haible  <bruno@clisp.org>
78606
78607         * gnulib-tool (func_import): Avoid constructing complicated sed
78608         expressions inside backquote.
78609         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78610
78611 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78612
78613         These changes imported from libc.
78614         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78615         test and two separate function calls.
78616         * lib/strndup.c (__strndup): Add libc_hidden_def.
78617
78618 2006-01-23  Simon Josefsson  <jas@extundo.com>
78619
78620         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78621         Remove the test_*_SOURCES variable: automake infers it by default.
78622         * modules/tls-tests: Likewise.
78623
78624 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78625
78626         Work around porting bugs reported by Dieter in
78627         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78628         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78629         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78630         Include "getopt.h" first, to check interface.
78631         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78632         !HAVE_DECL_GETENV.
78633         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78634         (__strndup): Revert to K&R-style function dfns, the glibc style.
78635         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78636         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78637         Include strnlen.h first, to get prototype properly.
78638         (strnlen): Renamed from __strnlen.
78639         Remove weak alias.
78640
78641 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78644
78645 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78646
78647         * config/srclist.txt: Adjust to reflect glibc reorganization.
78648         This affects only comments.
78649
78650 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78651
78652          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78653          Reported by Bruce Korb <bkorb@gnu.org>.
78654
78655 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78658         to pacify gcc -Wswitch-default.
78659
78660 2006-01-22  Bruno Haible  <bruno@clisp.org>
78661
78662         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78663         temporary buffer for sprintf, take into account the precision also
78664         for 'd', 'i', 'u', 'o', 'x', 'X'.
78665
78666 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78667
78668         * modules/argp-tests: New module
78669         * tests/test-argp.c: New file
78670         * tests/test-argp-2.sh: New file
78671
78672 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78673
78674         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78675         (__argp_base_name): Removed
78676         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78677         typo.
78678         (__argp_base_name): Provide macro definition or extern declaration
78679         depending on the configuration
78680
78681 2006-01-20  Simon Josefsson  <jas@extundo.com>
78682
78683         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78684
78685 2006-01-20  Simon Josefsson  <jas@extundo.com>
78686
78687         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78688
78689 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78692         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78693         Suggested by Bruno Haible.
78694
78695 2006-01-20  Karl Berry  <karl@gnu.org>
78696
78697         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78698         until changes propagate, I guess.
78699
78700 2006-01-19  Simon Josefsson  <jas@extundo.com>
78701
78702         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78703
78704 2006-01-19  Simon Josefsson  <jas@extundo.com>
78705
78706         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78707
78708 2006-01-19  Simon Josefsson  <jas@extundo.com>
78709
78710         * gnulib-tool: Set check_PROGRAMS.
78711
78712         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78713         modules/des-tests, modules/gc-arcfour-tests,
78714         modules/gc-arctwo-tests, modules/gc-des-tests,
78715         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78716         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78717         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78718         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78719         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78720         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78721         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78722         test_*_SOURCES.
78723
78724 2006-01-18  Simon Josefsson  <jas@extundo.com>
78725
78726         * modules/socklen (Depends-on): Depend on sys_socket.
78727
78728 2006-01-18  Simon Josefsson  <jas@extundo.com>
78729
78730         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78731         modules/des-tests, modules/gc-arcfour-tests,
78732         modules/gc-arctwo-tests, modules/gc-des-tests,
78733         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78734         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78735         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78736         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78737         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78738         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78739         $(EXEEXT) to automake TESTS variable, for mingw32.
78740
78741 2006-01-17  Simon Josefsson  <jas@extundo.com>
78742
78743         * modules/socklen (Include): Need sys/socket.h.
78744
78745 2006-01-17  Bruno Haible  <bruno@clisp.org>
78746
78747         * modules/ssize_t (Include): Add <sys/types.h>.
78748
78749 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78750
78751         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78752         it's not portable and it doesn't work with cross-compiles.
78753         Problem reported by Bruno Haible.  Fix missing-$ typo in
78754         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78755         -zignore from being used with Sun's C compiler.
78756
78757 2006-01-12  Simon Josefsson  <jas@extundo.com>
78758
78759         * lib/base64.c: Fix warning, reported by Bruno Haible
78760         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78761
78762 2006-01-12  Bruno Haible  <bruno@clisp.org>
78763
78764         * modules/ldd: New file.
78765         * build-aux/ldd.sh.in: New file.
78766         * MODULES.html.sh (Support for building libraries and executables): Add
78767         ldd.
78768
78769 2006-01-12  Bruno Haible  <bruno@clisp.org>
78770
78771         * m4/ldd.m4: New file.
78772
78773 2006-01-12  Bruno Haible  <bruno@clisp.org>
78774
78775         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78776         endless loop while replacing $auxdir with build-aux.
78777
78778 2006-01-11  Simon Josefsson  <jas@extundo.com>
78779
78780         * lib/stdint_.h (SIZE_MAX): Add missing (.
78781
78782 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78783
78784         Sync from coreutils.
78785         * lib/md5.c: Fix commentary typos.
78786         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78787         * lib/md5.h (__attribute__): Remove; unused.
78788         * lib/sha1.c: Fix commentary to match md5 better.
78789         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78790         so that we don't need to worry about alignment.  All uses changed.
78791         This merges the 2005-10-28 md5 change into sha1.
78792
78793 2006-01-11  Jim Meyering  <jim@meyering.net>
78794
78795         Sync from coreutils.
78796         * lib/md5.c (OP): Fix spacing.
78797
78798 2006-01-11  Bruno Haible  <bruno@clisp.org>
78799
78800         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78801         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78802         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78803
78804 2006-01-11  Bruno Haible  <bruno@clisp.org>
78805
78806         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78807         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78808         the "early" section as well.
78809
78810 2006-01-11  Bruno Haible  <bruno@clisp.org>
78811
78812         Avoid "ar: no archive members specified" error on MacOS X.
78813         * gnulib-tool (func_modules_add_dummy): New function.
78814         (func_import, func_create_testdir): Invoke it.
78815
78816 2006-01-11  Bruno Haible  <bruno@clisp.org>
78817
78818         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78819         with $auxdir in AC_CONFIG_FILES statements.
78820
78821 2006-01-11  Bruno Haible  <bruno@clisp.org>
78822
78823         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78824         Initialize also noinst_HEADERS to empty.
78825
78826 2006-01-11  Bruno Haible  <bruno@clisp.org>
78827
78828         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78829         variables.
78830         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78831         autoreconf.
78832
78833 2006-01-11  Bruno Haible  <bruno@clisp.org>
78834
78835         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78836         overridable by the user.
78837         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78838
78839 2006-01-10  Simon Josefsson  <jas@extundo.com>
78840
78841         * modules/sys_socket: New file.
78842
78843 2006-01-10  Simon Josefsson  <jas@extundo.com>
78844
78845         * m4/sys_socket_h.m4: New file.
78846
78847 2006-01-10  Simon Josefsson  <jas@extundo.com>
78848
78849         * lib/socket_.h: New file.
78850
78851 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78852
78853         * modules/readutmp (Maintainer): Add myself.
78854
78855 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78856
78857         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78858         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78859         People who are still concerned with buggy memcmp implementations
78860         can invoke gl_FUNC_MEMCMP themselves.
78861
78862 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * lib/regex_internal.h (BITSET_WORD_BITS):
78865         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78866         preprocessor mishandles large unsigned values as if they were signed.
78867         Problem reported by Claudio Fontana in
78868         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78869
78870 2006-01-10  Jim Meyering  <jim@meyering.net>
78871
78872         Avoid the double-free (first in fts_read, second in fts_close) that
78873         would occur when an `active' directory is made inaccessible (e.g.,
78874         via chmod a-x) during a traversal.
78875         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78876         before returning.  Reproduce this failure by
78877         mkdir -p a/b; cd a; chmod a-x . b
78878         Reported by Stavros Passas.
78879
78880         Sync from coreutils.
78881         * lib/sha1.c: Tweak grammar in a comment.
78882
78883 2006-01-10  Jim Meyering  <jim@meyering.net>
78884
78885         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78886         Patch by Joerg Sonnenberger.
78887
78888 2006-01-10  Bruno Haible  <bruno@clisp.org>
78889
78890         * modules/readutmp: Depend on module free.
78891         * modules/strtok_r: Depend on module restrict.
78892
78893 2006-01-10  Bruno Haible  <bruno@clisp.org>
78894
78895         * modules/gettext (configure.ac): Add an invocation of
78896         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78897
78898 2006-01-10  Bruno Haible  <bruno@clisp.org>
78899
78900         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78901         Reported by Werner Lemberg <wl@gnu.org>.
78902
78903 2006-01-10  Bruno Haible  <bruno@clisp.org>
78904
78905         * lib/localcharset.c: Update from GNU gettext.
78906
78907 2006-01-10  Bruno Haible  <bruno@clisp.org>
78908
78909         * lib/argp.h (__const): Remove macro. Use const instead.
78910         * lib/argp-fmtstream.h (__const): Likewise.
78911         * lib/glob_.h (__const): Remove macro.
78912         * lib/glob-libc.h: Use const instead of __const.
78913
78914 2006-01-10  Bruno Haible  <bruno@clisp.org>
78915
78916         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78917         variable.
78918         Needed to avoid an automake error regarding the 'gettext' module.
78919
78920 2006-01-09  Simon Josefsson  <jas@extundo.com>
78921
78922         * modules/inet_ntop (Depends-on): Add restrict.
78923
78924 2006-01-09  Simon Josefsson  <jas@extundo.com>
78925
78926         * modules/gc-rijndael-tests (License): Put under LGPL.
78927
78928         * modules/gc-des-tests (License): Likewise.
78929
78930         * modules/gc-arcfour-tests (License): Likewise.
78931
78932         * modules/gc-arctwo-tests (License): Likewise.
78933
78934         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78935
78936         * modules/gc-hmac-sha1-tests (Files): Likewise.
78937
78938         * modules/gc-hmac-md5-tests (License): Likewise.
78939
78940         * modules/gc-sha1-tests (License): Likewise.
78941
78942         * modules/gc-md5-tests (License): Likewise.
78943
78944         * modules/gc-md4-tests (License): Likewise.
78945
78946         * modules/gc-md2-tests (License): Likewise.
78947
78948         * modules/gc-tests (License): Likewise.
78949
78950         * modules/des-tests (License): Likewise.
78951
78952         * modules/md4-tests (License): Likewise.
78953
78954         * modules/md2-tests (License): Likewise.
78955
78956 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78957
78958         Sync from coreutils:
78959
78960         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78961         * modules/lib-ignore: New file.
78962         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78963         chdir-safer.m4, lchmod.m4.
78964         * modules/openat: Add mkdirat.c, openat-priv.h.
78965
78966 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78967
78968         Sync from coreutils.
78969         * m4/lib-ignore.m4: New file.
78970         * m4/lchmod.m4: New file.
78971
78972 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78973
78974         Sync from coreutils.
78975         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78976         for write access: POSIX says that must fail.
78977         * lib/fts.c (diropen): Likewise.
78978         * lib/save-cwd.c (save_cwd): Likewise.
78979         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78980         well, for minor improvements on hosts that lack O_DIRECTORY.
78981         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78982         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78983         Fall back on chown if open failed with EACCES.
78984
78985         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78986         Report an error at compile-time if only a 1-second nominal clock
78987         resolution is found.
78988
78989         * lib/lchmod.h: New file.
78990         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78991         (make_dir_parents): Use lchown rather than chown, and
78992         lchmod rather than chmod.
78993
78994         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78995         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78996         "proc" reported by n0dalus.
78997
78998         * lib/mountlist.c: Include <limits.h>.
78999         (dev_from_mount_options)
79000         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79001         New function.  It no longer assumes "dev=" has the System V meaning
79002         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79003         (read_file_system_list)
79004         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79005         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79006         dev= in that case.
79007
79008         * lib/posixtm.h (PDS_PRE_2000): New macro.
79009         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79010         allow_century.  All usages changed.  Reject dates outside the range
79011         1969-1999 if PDS_PRE_2000 is used.
79012
79013 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79014
79015         Sync from coreutils.
79016         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79017         (Time of day items): Mention the possibility of leap seconds.
79018         Problem reported by Dr. David Alan Gilbert.
79019
79020 2006-01-09  Jim Meyering  <jim@meyering.net>
79021
79022         Sync from coreutils.
79023
79024         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79025
79026         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79027
79028         * lib/modechange.c (mode_compile): Reject an invalid mode string
79029         that starts with an octal digit.  From Andreas Gruenbacher.
79030
79031         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79032         and dup to open_safer and dup_safer, respectively.
79033         (openat_permissive): Fix typo in comment.
79034
79035         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79036         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79037         (_): Remove; no longer needed.
79038         (openat): Renamed from rpl_openat; no need for rpl_openat
79039         since openat.h renames openat for us.
79040         Replace most of the body with a call to openat_permissive,
79041         to avoid duplicate code.
79042         Port to (probably hypothetical) environments were mode_t is
79043         wider than int.
79044         (openat_permissive): Require mode arg, so that we can check
79045         types better.  Put it just after flags.  Change cwd failure
79046         indicator from pointer-to-bool to pointer-to-errno-value.
79047         All callers changed.
79048         Invoke openat_save_fail and/or openat_restore_fail if
79049         cwd_errno is null, so that openat can call us.
79050         (openat_permissive, fdopendir, fstatat, unlinkat):
79051         Simplify errno handling to avoid some duplicate code,
79052         as it's OK to set errno on success.
79053         * lib/openat.h: Revamp code so that function macros depend on
79054         __OPENAT_PREFIX only, not also on AT_FDCWD.
79055         (openat_ro): Remove.  Caller changed to use openat_permissive.
79056         (openat_permissive): Now a macro, if not a function.
79057         (openat_restore_fail, openat_save_fail): Now always functions,
79058         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79059
79060         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79061         and openat.c.
79062         * lib/mkdirat.c: Include openat-priv.h.
79063         Remove definitions of macros defined therein.
79064         * lib/openat.c: Likewise.
79065
79066         * lib/mkdirat.c (mkdirat): New file and function.
79067         * lib/openat.h (mkdirat): Declare.
79068
79069         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79070
79071         * lib/openat.h (openat_permissive): Declare.
79072         (openat_ro): Define.
79073
79074         * lib/openat.c (EXPECTED_ERRNO): New macro.
79075         (openat_permissive): New function -- used in remove.c rewrite.
79076         (all functions): Set errno just before returning, only if there
79077         was an actual failure.
79078         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79079
79080         Emulate openat-family functions using Linux's procfs, if possible.
79081         Idea and some code based on Ulrich Drepper's glibc changes.
79082
79083         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79084         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79085         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79086         before falling back on save_cwd and restore_cwd.
79087         (fdopendir, fstatat, unlinkat): Likewise.
79088
79089         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79090         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79091
79092         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79093         as second argument to va_arg.  Otherwise, some versions of gcc
79094         warn that `if this code is reached, the program will abort'.
79095
79096 2006-01-09  Jim Meyering  <jim@meyering.net>
79097
79098         Sync from coreutils.
79099         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79100         Require openat-priv.h.
79101
79102 2006-01-09  Bruno Haible  <bruno@clisp.org>
79103
79104         * modules/strnlen (Include): Use strnlen.h.
79105
79106 2006-01-09  Bruno Haible  <bruno@clisp.org>
79107
79108         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79109
79110 2006-01-09  Bruno Haible  <bruno@clisp.org>
79111
79112         * lib/sysexit_.h (EX_OK): New macro.
79113         Suggested by Martin Lambers <marlam@marlam.de>.
79114
79115 2006-01-09  Bruno Haible  <bruno@clisp.org>
79116
79117         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79118         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79119
79120 2006-01-09  Bruno Haible  <bruno@clisp.org>
79121
79122         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79123         numbers.
79124
79125 2006-01-09  Bruno Haible  <bruno@clisp.org>
79126
79127         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79128         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79129         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79130         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79131
79132 2006-01-09  Bruno Haible  <bruno@clisp.org>
79133
79134         * build-aux/javacomp.sh.in: New file, moved from lib/.
79135         * modules/javacomp-script (Files): Update.
79136         (configure.ac): Add AC_CONFIG_FILES invocation.
79137         (EXTRA_DIST): Remove variable.
79138
79139         * build-aux/javaexec.sh.in: New file, moved from lib/.
79140         * modules/javaexec (Files): Update.
79141         (configure.ac): Add AC_CONFIG_FILES invocation.
79142         (EXTRA_DIST): Remove javaexec.sh.in.
79143
79144         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79145         * modules/csharpcomp-script (Files): Update.
79146         (configure.ac): Add AC_CONFIG_FILES invocation.
79147         (EXTRA_DIST): Remove variable.
79148
79149         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79150         * modules/csharpexec (Files): Update.
79151         (configure.ac): Add AC_CONFIG_FILES invocation.
79152         (EXTRA_DIST): Remove csharpexec.sh.in.
79153
79154 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79155
79156         Sync from coreutils.
79157
79158         Add POSIX ACL support
79159         * lib/acl.h (copy_acl, set_acl): Add declarations.
79160         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79161         systems other than Linux.
79162         (chmod_or_fchmod): New function: use fchmod when possible,
79163         and chmod otherwise.
79164         (file_has_acl): Add a POSIX ACL implementation, with a
79165         Linux-specific subcase.
79166         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79167         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79168         acls are unsupported.
79169         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79170         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79171         are unsupported.
79172
79173 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79174
79175         Sync from coreutils.
79176         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79177
79178 2006-01-07  Bruno Haible  <bruno@clisp.org>
79179
79180         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79181         gl_EARLY.
79182
79183 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79186         Problem reported for Mingw by Mark Junker.
79187
79188 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79189
79190         * README: Gnulib normally doesn't generate a tarball.
79191
79192 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79193
79194         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79195         long int, not int, for nanosecond counts, so that people who are
79196         used to POSIX struct timespec won't be surprised.  Reported by Jim
79197         Meyering.
79198
79199 2005-12-28  Bruno Haible  <bruno@clisp.org>
79200
79201         * build-aux/config.rpath: Update from GNU gettext.
79202
79203 2005-12-16  Jim Meyering  <jim@meyering.net>
79204
79205         * modules/fprintftime: New module.
79206         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79207
79208 2005-12-16  Jim Meyering  <jim@meyering.net>
79209
79210         * m4/fprintftime.m4: New file.
79211
79212 2005-12-16  Jim Meyering  <jim@meyering.net>
79213
79214         * lib/fprintftime.c, lib/fprintftime.h: New files.
79215
79216 2005-12-15  Simon Josefsson  <jas@extundo.com>
79217
79218         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79219         new m4/socklen.m4.
79220
79221 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79222
79223         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79224         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79225
79226 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79227
79228         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79229         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79230         struct uparams is valid. Fall back to the default values if it is
79231         not.
79232
79233 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79234
79235         * modules/argp (Files): Add argp-pin.c
79236         (Depends-on): dirname
79237         (lib_SOURCES): Add argp-pin.c
79238
79239 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79240
79241         * m4/argp.m4:  Check if program_invocation_name and
79242         program_invocation_short_name are declared and define appropriate
79243         macros if they are not.
79244
79245 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79246
79247         * lib/argp-help.c (__argp_base_name): New function
79248         (__argp_short_program_name): Rewrite using __argp_base_name
79249         * lib/argp-namefrob.h: Define program_invocation_name and
79250         program_invocation_short_name if requested
79251         (__argp_base_name): Add prototype
79252         * lib/argp-parse.c (argp_def): Use gettext wrappers
79253         (argp_default_parser): Use __argp_base_name
79254         * lib/argp-pin.c: New file. Defines program_invocation_name and
79255         program_invocation_short_name on systems that lack them.
79256
79257 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79258
79259         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79260         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79261         porting problem reported by Georg Schwarz in
79262         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79263
79264 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79267         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79268         porting problem reported by Georg Schwarz in
79269         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79270
79271 2005-12-05  Bruno Haible  <bruno@clisp.org>
79272
79273         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79274         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79275         Reported by Mark Junker <mjscod@gmx.de>.
79276
79277 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79280         Use implementation from Albert Chin, with some
79281         comments/corrections by Stepan Kasal and myself.
79282
79283 2005-12-02  Bruno Haible  <bruno@clisp.org>
79284
79285         * gnulib-tool (func_import): Accept GPLed build tool modules when
79286         --lgpl is given.
79287         * modules/csharpcomp-script: New file.
79288         * modules/csharpcomp: Depend on it.
79289         * modules/javacomp-script: New file.
79290         * modules/javacomp: Depend on it.
79291         Suggested by Simon Josefsson.
79292
79293 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79296         statement, to work around an HP-UX 10.20 compiler bug reported by
79297         Peter O'Gorman.
79298
79299 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * modules/savedir (Depends-on): Add openat.
79302
79303 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79304
79305         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79306         (uintmax_t) [defined uintmax_t]: Do not declare.
79307         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79308         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79309         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79310         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79311         sake of portability to weird hosts that C allows (though we don't
79312         know of any practical examples).
79313
79314         * lib/savedir.h (fdsavedir): New decl.
79315         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79316         contains most of the former guts of savedir.
79317         (savedir): Use savedirstream.
79318         Include "openat.h".
79319
79320 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * modules/obstack (Files): Add m4/ulonglong.m4.
79323         Problem reported by Davide Angelocola.
79324
79325 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79328         coreutils no longer futzes with rounding modes.
79329
79330 2005-11-14  Jim Meyering  <jim@meyering.net>
79331
79332         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79333         replacement of mkstemp.
79334
79335 2005-11-10  Simon Josefsson  <jas@extundo.com>
79336
79337         * lib/readline.c: Remove EOL.
79338
79339 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * modules/gethrxtime (Depends-on): Add gettime.
79342
79343 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79344
79345         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79346         or gettimeofday; no longer needed.
79347
79348 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79349
79350         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79351         time business.
79352         (gethrxtime) [! (HAVE_NANOUPTIME
79353         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79354         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79355         our own approximation.
79356
79357 2005-11-08  Eric Blake  <ebb9@byu.net>
79358
79359         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79360
79361 2005-11-08  Eric Blake  <ebb9@byu.net>
79362
79363         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79364
79365 2005-11-04  Bruno Haible  <bruno@clisp.org>
79366
79367         * gnulib-tool: Implement --update mode.
79368
79369 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         Fix porting problem reported by Theodoros V. Kalamatianos.
79372         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79373         Don't assume that futimes failing means we must fail.
79374
79375 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79376
79377         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79378         variables to suggest the intended function of the PATH_MAX check.
79379
79380 2005-10-30  Kean Johnston  <jkj@sco.com>
79381
79382         Trivial changes to support SCO systems.
79383         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79384         as PATH_MAX.
79385         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79386         where __ptr is null when no I/O is pending.
79387
79388 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79389
79390         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79391         leave errno alone.  Problem reported by Dmitry V. Levin.
79392
79393 2005-10-28  Simon Josefsson  <jas@extundo.com>
79394
79395         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79396         Test more.
79397
79398         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79399
79400         * modules/md2, modules/md2-tests: New files.
79401
79402 2005-10-28  Simon Josefsson  <jas@extundo.com>
79403
79404         * m4/inet_ntop.m4: More tests.
79405
79406         * m4/gc-md2.m4, md2.m4: New file.
79407
79408 2005-10-28  Simon Josefsson  <jas@extundo.com>
79409
79410         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79411         "restrict" keywords, as per POSIX.  Protect the function
79412         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79413         Don't use K&R prototypes.  Check the sprintf return values.
79414         Re-define EAFNOSUPPORT if not present.  Indent.
79415
79416         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79417         suggested by Bruno Haible <bruno@clisp.org>.
79418
79419         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79420
79421         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79422
79423         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79424         libgcrypt).
79425
79426         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79427
79428         * lib/md2.h, lib/md2.c: New files.
79429
79430 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79431
79432         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79433         errno alone.  Problem reported by Frederic Jolliton.
79434
79435 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * modules/verify (License): Change from GPL to LGPL.  This is a
79438         tiny module and there are apparently near-equivalents that are
79439         under the BSD license.
79440
79441 2005-10-24  Simon Josefsson  <jas@extundo.com>
79442
79443         * modules/sha1: Relicense to LGPL.
79444
79445 2005-10-24  Simon Josefsson  <jas@extundo.com>
79446
79447         * lib/md4.h: Shrink buffer size, now that we changed the type.
79448
79449 2005-10-23  Simon Josefsson  <jas@extundo.com>
79450
79451         * gnulib-tool (func_import): Fix --tests-base.
79452
79453 2005-10-22  Simon Josefsson  <jas@extundo.com>
79454
79455         * modules/arcfour (Depends-on): Need stdint.
79456
79457 2005-10-22  Simon Josefsson  <jas@extundo.com>
79458
79459         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79460         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79461
79462 2005-10-22  Simon Josefsson  <jas@extundo.com>
79463
79464         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79465         suggested by Bruno Haible <bruno@clisp.org>.
79466
79467 2005-10-22  Simon Josefsson  <jas@extundo.com>
79468
79469         * lib/crc.h: Include stddef.h, for size_t.
79470
79471 2005-10-22  Simon Josefsson  <jas@extundo.com>
79472
79473         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79474         arcfour_context struct (simplify test vector testing in GNU
79475         Shishi).
79476
79477 2005-10-21  Simon Josefsson  <jas@extundo.com>
79478
79479         * modules/des, modules/des-tests: New files.
79480
79481         * modules/gc-des, modules/gc-des-tests: New files.
79482
79483         * tests/test-des.c, tests/test-gc-des.c: New file.
79484
79485 2005-10-21  Simon Josefsson  <jas@extundo.com>
79486
79487         * modules/arctwo, modules/arctwo-tests: New files.
79488
79489         * tests/test-arctwo.c: New file.
79490
79491         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79492
79493         * tests/test-gc-arctwo.c: New file.
79494
79495 2005-10-21  Simon Josefsson  <jas@extundo.com>
79496
79497         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79498         Bruno Haible <bruno@clisp.org>.
79499
79500         * m4/gc-des.m4: New file.
79501
79502 2005-10-21  Simon Josefsson  <jas@extundo.com>
79503
79504         * m4/arctwo.m4: New file.
79505
79506         * m4/gc-arctwo.m4: New file.
79507
79508 2005-10-21  Simon Josefsson  <jas@extundo.com>
79509
79510         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79511         block.
79512
79513 2005-10-21  Simon Josefsson  <jas@extundo.com>
79514
79515         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79516         <bruno@clisp.org>.
79517
79518         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79519
79520         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79521         Bruno Haible <bruno@clisp.org>.
79522
79523         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79524         <bruno@clisp.org>.
79525
79526 2005-10-21  Simon Josefsson  <jas@extundo.com>
79527
79528         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79529
79530 2005-10-21  Simon Josefsson  <jas@extundo.com>
79531
79532         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79533
79534 2005-10-21  Simon Josefsson  <jas@extundo.com>
79535
79536         * lib/des.h, lib/des.c: New files.
79537
79538         * lib/gc-gnulib.c: Support DES.c
79539
79540 2005-10-21  Simon Josefsson  <jas@extundo.com>
79541
79542         * lib/arctwo.h, lib/arctwo.c: New files.
79543
79544         * lib/gc-gnulib.c: Support ARCTWO.
79545
79546 2005-10-21  Simon Josefsson  <jas@extundo.com>
79547
79548         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79549         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79550
79551 2005-10-21  Simon Josefsson  <jas@extundo.com>
79552
79553         * gnulib-tool (func_import, func_create_testdir): Define automake
79554         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79555         Makefile.am snippet),
79556         suggested by Bruno Haible <bruno@clisp.org>.
79557
79558         * modules/gc (Makefile.am): Use it.
79559
79560 2005-10-21  Bruno Haible  <bruno@clisp.org>
79561
79562         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79563         patch.
79564
79565 2005-10-19  Simon Josefsson  <jas@extundo.com>
79566
79567         * tests/test-gc-rijndael.c: New file.
79568
79569         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79570
79571 2005-10-19  Simon Josefsson  <jas@extundo.com>
79572
79573         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79574         interface too.
79575
79576 2005-10-19  Simon Josefsson  <jas@extundo.com>
79577
79578         * tests/test-gc-arcfour.c: New file.
79579
79580         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79581
79582 2005-10-19  Simon Josefsson  <jas@extundo.com>
79583
79584         * modules/gc-md4, modules/gc-md4-tests: New file.
79585
79586         * tests/test-gc-md4.c: New file.
79587
79588 2005-10-19  Simon Josefsson  <jas@extundo.com>
79589
79590         * m4/gc-md4.m4: New file.
79591
79592 2005-10-19  Simon Josefsson  <jas@extundo.com>
79593
79594         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79595         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79596         <kasal@ucw.cz>.
79597
79598 2005-10-19  Simon Josefsson  <jas@extundo.com>
79599
79600         * m4/gc-arcfour.m4: New file.
79601
79602         * m4/gc-rijndael.m4: New file.
79603
79604 2005-10-19  Simon Josefsson  <jas@extundo.com>
79605
79606         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79607
79608 2005-10-19  Simon Josefsson  <jas@extundo.com>
79609
79610         * lib/gc-gnulib.c: Support ARCFOUR.
79611
79612 2005-10-19  Simon Josefsson  <jas@extundo.com>
79613
79614         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79615         support.
79616
79617         * lib/gc.h: Add ECB enum type.
79618
79619         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79620
79621 2005-10-18  Simon Josefsson  <jas@extundo.com>
79622
79623         * tests/test-md5.c: New file.
79624
79625         * modules/md5-tests: New file.
79626
79627 2005-10-18  Simon Josefsson  <jas@extundo.com>
79628
79629         * tests/test-md4.c: New file.
79630
79631         * modules/md4, modules/md4-tests: New files.
79632
79633 2005-10-18  Simon Josefsson  <jas@extundo.com>
79634
79635         * m4/md4.m4: New file.
79636
79637 2005-10-18  Simon Josefsson  <jas@extundo.com>
79638
79639         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79640
79641 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79642
79643         * gnulib-tool (func_create_testdir): Omit the second check whether
79644         BUILT_SOURCES in nonempty.
79645
79646 2005-10-17  Simon Josefsson  <jas@extundo.com>
79647
79648         * tests/test-rijndael.c: New file.
79649
79650 2005-10-17  Simon Josefsson  <jas@extundo.com>
79651
79652         * modules/sha1: Depend on stdint instead of md5.
79653
79654         * modules/md5: Depend on stdint, remove uint32_t.
79655
79656 2005-10-17  Simon Josefsson  <jas@extundo.com>
79657
79658         * modules/gc-sha1-tests: New file.
79659
79660         * tests/test-gc-sha1.c: New file.
79661
79662 2005-10-17  Simon Josefsson  <jas@extundo.com>
79663
79664         * m4/md5.m4: Remove call to uint32_t.m4.
79665
79666 2005-10-17  Simon Josefsson  <jas@extundo.com>
79667
79668         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79669
79670         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79671         md5.h.
79672
79673         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79674
79675         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79676
79677 2005-10-17  Simon Josefsson  <jas@extundo.com>
79678
79679         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79680
79681 2005-10-17  Simon Josefsson  <jas@extundo.com>
79682
79683         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79684
79685 2005-10-17  Simon Josefsson  <jas@extundo.com>
79686
79687         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79688
79689         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79690
79691 2005-10-17  Bruno Haible  <bruno@clisp.org>
79692
79693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79694         that it can also be used in a test.
79695
79696 2005-10-16  Bruno Haible  <bruno@clisp.org>
79697
79698         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79699         TESTS_ENVIRONMENT, so that individual tests can augment it.
79700
79701         * gnulib-tool (func_create_testdir): Use an intermediate target for
79702         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79703         macros, like $(ALLOCA_H), which cannot be passed through the command
79704         line.
79705
79706 2005-10-15  Simon Josefsson  <jas@extundo.com>
79707
79708         * modules/rijndael-tests: New file.
79709
79710         * modules/rijndael: New file.
79711
79712 2005-10-15  Simon Josefsson  <jas@extundo.com>
79713
79714         * m4/rijndael.m4: New file.
79715
79716 2005-10-15  Simon Josefsson  <jas@extundo.com>
79717
79718         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79719
79720         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79721
79722 2005-10-14  Simon Josefsson  <jas@extundo.com>
79723
79724         * tests/test-arcfour.c: New file.
79725
79726         * modules/arcfour, modules/arcfour-tests: New files.
79727
79728 2005-10-14  Simon Josefsson  <jas@extundo.com>
79729
79730         * m4/arcfour.m4: New file.
79731
79732 2005-10-14  Simon Josefsson  <jas@extundo.com>
79733
79734         * lib/arcfour.h, lib/arcfour.c: New files.
79735
79736 2005-10-14  Roland McGrath  <roland@redhat.com>
79737
79738         Import from libc.  [BZ #1331]
79739         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79740         macro argument.
79741         Reported by Matej Vela <vela@debian.org>.
79742
79743 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79744
79745         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79746         include <wchar.h>; no longer needed.
79747
79748 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79749
79750         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79751
79752 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79753         and  Ulrich Drepper  <drepper@redhat.com>
79754
79755         Import from libc.
79756         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79757         instead of inline stream orientation test and two separate
79758         function calls.  Pay no attention to USE_IN_LIBIO.
79759
79760 2005-10-13  Simon Josefsson  <jas@extundo.com>
79761
79762         * modules/gc-hmac-md5-tests: New file.
79763
79764         * tests/test-gc-hmac-sha1.c: New file.
79765
79766         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79767
79768         * modules/gc-hmac-md5-tests: New file.
79769
79770         * tests/test-gc-md5.c: New file.
79771
79772         * modules/gc-md5-tests: New file.
79773
79774 2005-10-13  Simon Josefsson  <jas@extundo.com>
79775
79776         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79777         Move memory allocation outside of loop.
79778
79779 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79782         intermediate directory is in a read-only file system.  Problem
79783         reported by Eric Blake.
79784
79785 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79786
79787         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79788
79789 2005-10-12  Simon Josefsson  <jas@extundo.com>
79790
79791         * tests/test-hmac-sha1.c: New file.
79792
79793         * modules/hmac-sha1-tests: New file.
79794
79795         * modules/hmac-sha1: New file.
79796
79797 2005-10-12  Simon Josefsson  <jas@extundo.com>
79798
79799         * modules/gc-sha1: New file.
79800
79801 2005-10-12  Simon Josefsson  <jas@extundo.com>
79802
79803         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79804
79805         * tests/test-gc-pbkdf2-sha1.c: New file.
79806
79807 2005-10-12  Simon Josefsson  <jas@extundo.com>
79808
79809         * modules/gc-md5, modules/gc-hmac-md5: New files.
79810
79811         * modules/gc (Files): Remove md5, memxor and hmac files.
79812
79813 2005-10-12  Simon Josefsson  <jas@extundo.com>
79814
79815         * m4/gc-pbkdf2-sha1.m4: New file.
79816
79817         * m4/gc-hmac-sha1.m4: New file.
79818
79819         * m4/gc-sha1: New file.
79820
79821         * m4/hmac-sha1.m4: New file.
79822
79823 2005-10-12  Simon Josefsson  <jas@extundo.com>
79824
79825         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79826
79827         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79828
79829 2005-10-12  Simon Josefsson  <jas@extundo.com>
79830
79831         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79832         suggested by Bruno Haible <bruno@clisp.org>.
79833
79834 2005-10-12  Simon Josefsson  <jas@extundo.com>
79835
79836         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79837
79838 2005-10-12  Simon Josefsson  <jas@extundo.com>
79839
79840         * lib/gc-pbkdf2-sha1.c: New file.
79841
79842         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79843
79844 2005-10-12  Simon Josefsson  <jas@extundo.com>
79845
79846         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79847
79848         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79849
79850 2005-10-12  Simon Josefsson  <jas@extundo.com>
79851
79852         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79853         GC_USE_HMAC_MD5, respectively.
79854
79855         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79856         (gc_md5): Fix typo.
79857
79858         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79859
79860         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79861
79862         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79863
79864 2005-10-12  Bruno Haible  <bruno@clisp.org>
79865
79866         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79867         Reported by Stepan Kasal <kasal@ucw.cz>.
79868
79869 2005-10-11  Simon Josefsson  <jas@extundo.com>
79870
79871         * tests/test-crc.c: New file.
79872
79873         * modules/crc, modules/crc-tests: New files.
79874
79875 2005-10-11  Simon Josefsson  <jas@extundo.com>
79876
79877         * m4/crc.m4: New file.
79878
79879 2005-10-11  Simon Josefsson  <jas@extundo.com>
79880
79881         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79882
79883         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79884
79885         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79886
79887 2005-10-11  Simon Josefsson  <jas@extundo.com>
79888
79889         * lib/crc.h, lib/crc.c: New files.
79890
79891         * lib/gc.h (gc_hash_buffer): Add doc.
79892
79893 2005-10-11  Bruno Haible  <bruno@clisp.org>
79894
79895         * modules/c-strcasestr: New file.
79896         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79897
79898 2005-10-11  Bruno Haible  <bruno@clisp.org>
79899
79900         * modules/c-strcase: New file.
79901         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79902
79903 2005-10-11  Bruno Haible  <bruno@clisp.org>
79904
79905         * lib/strcasecmp.c: Include limits.h.
79906         (strcasecmp): Avoid integer overflow on exotic platforms.
79907         * lib/strncasecmp.c: Include limits.h.
79908         (strncasecmp): Avoid integer overflow on exotic platforms.
79909         Reported by Paul Eggert.
79910
79911 2005-10-11  Bruno Haible  <bruno@clisp.org>
79912
79913         * lib/c-strcasestr.h: New file, from GNU gettext.
79914         * lib/c-strcasestr.c: New file, from GNU gettext.
79915
79916 2005-10-11  Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/c-strcase.h: New file, from GNU gettext.
79919         * lib/c-strcasecmp.c: New file, from GNU gettext.
79920         * lib/c-strncasecmp.c: New file, from GNU gettext.
79921
79922 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79923
79924         * modules/mempcpy (License): GPL -> LGPL.
79925         * modules/strchrnul (License): Likewise.
79926         * modules/sysexits (License): Likewise.
79927
79928 2005-10-08  Simon Josefsson  <jas@extundo.com>
79929
79930         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79931
79932 2005-10-07  Simon Josefsson  <jas@extundo.com>
79933
79934         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79935
79936 2005-10-06  Simon Josefsson  <jas@extundo.com>
79937
79938         * tests/test-hmac-md5.c: New file.
79939
79940         * modules/hmac-md5-tests: New file.
79941
79942         * modules/hmac-md5: New file.
79943
79944 2005-10-06  Simon Josefsson  <jas@extundo.com>
79945
79946         * m4/hmac-md5.m4: New file.
79947
79948         * m4/memxor.m4: Require gl_C_RESTRICT.
79949
79950 2005-10-06  Simon Josefsson  <jas@extundo.com>
79951
79952         * lib/memxor.c (memxor): Avoid casts and warnings.
79953
79954 2005-10-06  Simon Josefsson  <jas@extundo.com>
79955
79956         * lib/hmac-md5.c: New file.
79957
79958         * lib/hmac.h: New file.
79959
79960 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79961
79962         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79963         promotes to int, not unsigned int, to catch the AIX 5.3
79964         compiler bug.
79965
79966 2005-10-05  Simon Josefsson  <jas@extundo.com>
79967
79968         * modules/memxor: New file.
79969
79970         * modules/iconv (Files): Move config.rpath to havelib, it is used
79971         there.
79972
79973         * modules/havelib (Files): Add config.rpath.
79974
79975 2005-10-05  Simon Josefsson  <jas@extundo.com>
79976
79977         * m4/memxor.m4: New file.
79978
79979 2005-10-05  Simon Josefsson  <jas@extundo.com>
79980
79981         * lib/memxor.c (memxor): Fix compiler error.
79982
79983         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79984         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79985
79986         * lib/memxor.h, lib/memxor.c: New files.
79987
79988         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79989         we assume all systems have it, suggested by Jim Meyering
79990         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79991         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79992         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79993         same reasons.
79994
79995 2005-10-05  Simon Josefsson  <jas@extundo.com>
79996
79997         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79998
79999 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80000
80001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80002         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80003         needed, since the source code now assumes these .h files.
80004
80005 2005-10-05  Derek Price  <derek@ximbiot.com>
80006
80007         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80008
80009 2005-10-05  Bruno Haible  <bruno@clisp.org>
80010
80011         * modules/stdint (License): Change to LGPL.
80012
80013 2005-10-04  Simon Josefsson  <jas@extundo.com>
80014
80015         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80016         D. Baushke" <mdb@gnu.org>.
80017
80018 2005-10-04  Bruno Haible  <bruno@clisp.org>
80019
80020         * lib/verify.h (verify_true): Provide alternative definition for C++.
80021
80022 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80025         (SSIZE_MAX): New macro, if not already defined.
80026         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80027         than 2 GiB.
80028
80029 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80030
80031         Sync from coreutils.
80032         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80033         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80034         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80035         ULLONG_MAX doesn't work with 2.7.2.1.
80036
80037 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80038
80039         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80040         From Ben Pfaff.
80041
80042         * modules/exclude (Depends-on): Depend on verify.
80043         * modules/strtoimax (Depends-on): Likewise.
80044         * modules/utimecmp (Depends-on): Likewise.
80045
80046 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * lib/exclude.c: Include verify.h.
80049         (verify): Remove.  All callers changed to use verify.h's version.
80050         * lib/strtoimax.c: Likewise.
80051         * lib/utimecmp.c: Likewis.e
80052
80053         Sync from coreutils.
80054         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80055         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80056         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80057         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80058         bother returning ENOSYS if settimeofday or stime fails; just let
80059         them return whatever errno they want to return.
80060         * lib/utimens.c: Include unistd.h, for dup2.
80061         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80062         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80063
80064 2005-10-02  Jim Meyering  <jim@meyering.net>
80065
80066         Sync from coreutils.
80067         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80068         from glibc-2.2.5 that fails for read-only files.
80069
80070 2005-10-02  Jim Meyering  <jim@meyering.net>
80071
80072         Sync from coreutils.
80073         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80074         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80075         `#if HAVE_CONFIG_H'.
80076         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80077         Remove AT_FDCWD test.
80078         Do not consume the fd unless successful.
80079         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80080         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80081         block, so that we don't even try to compile it if settimeofday is
80082         available.  This works around a compilation failure on OSF1 V5.1,
80083         due to stime requiring a `long int*' while tv_sec is `int'.
80084
80085 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80086
80087         Sync from coreutils.
80088         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80089         against `yes', rather than just testing for nonempty.
80090
80091 2005-10-01  Simon Josefsson  <jas@extundo.com>
80092
80093         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80094         and Darwin.
80095
80096         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80097         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80098         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80099         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80100         Check if struct addrinfo is declared.
80101
80102 2005-10-01  Simon Josefsson  <jas@extundo.com>
80103
80104         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80105         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80106         AI_* and EAI_* definitions.  Protect function declarations.
80107
80108 2005-10-01  Jim Meyering  <jim@meyering.net>
80109
80110         Sync from coreutils.
80111
80112         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80113         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80114         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80115         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80116         in the inet and nsl libraries.  Required on Solaris 5.7.
80117
80118 2005-10-01  Jim Meyering  <jim@meyering.net>
80119
80120         Sync from coreutils.
80121         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80122         in the inet and nsl libraries.  Required on Solaris 5.7.
80123
80124 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80125
80126         * lib/getdelim.c (getdelim): Remove unused variables.
80127
80128 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80131         so that the code works even with ancient cpp.  Portability problem
80132         with GCC 2.7.2.1 reported by Thomas M.Ott.
80133
80134 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80135
80136         * modules/regex (Depends-on): Add strcase.
80137
80138         * modules/gethostname (Licence): Change from GPL to LGPL, since
80139         gethostname.c is a trivial implementation of a standard library
80140         function.
80141         * modules/poll (License): Change from GPL to LGPL, since it's
80142         derived from LGPL code.
80143
80144 2005-09-27  Jim Meyering  <jim@meyering.net>
80145
80146         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80147         HAVE_CONFIG_H.
80148
80149         * lib/intprops.h (signed_type_or_expr__): Define.
80150         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80151         for unsigned types.
80152
80153 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80154
80155         * lib/verify.h (verify_expr): Remove, replacing with:
80156         (verify_true): New macro that returns true instead of void.
80157         (verify_type__): Remove.
80158         (verify): Use verify_true rather than verify_type__.
80159
80160 2005-09-26  Bruno Haible  <bruno@clisp.org>
80161
80162         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80163         is necessary.
80164         (lib_SOURCES): Remove mbchar.c.
80165         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80166         (Files): Add m4/mbrtowc.m4.
80167         * modules/mbiter: Likewise.
80168         * modules/mbuiter: Likewise.
80169
80170 2005-09-26  Bruno Haible  <bruno@clisp.org>
80171
80172         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80173         compile mbchar.c if they are not both present.
80174         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80175         * m4/mbiter.m4 (gl_MBITER): Likewise.
80176         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80177         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80178         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80179
80180 2005-09-25  Jim Meyering  <jim@meyering.net>
80181
80182         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80183         also uses socklen_t.
80184
80185 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * lib/utimens.c (ENOSYS): Define if not already defined.
80188         (futimens): Support having a null PATH if the file descriptor
80189         is nonnegative.
80190
80191         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80192         Remove.
80193         (__attribute): Define to empty unless GCC 3.1 or later.
80194         This works around a core dump on OpenBSD 3.4, which has GCC
80195         2.95.3, which dumps core when given __attribute__(()).  It also
80196         simplifies other tests, since we really don't want to bother with
80197         worrying about which ancient version of GCC supported what.
80198         Original problem reported by Yoann Vandoorselaere, with part of
80199         the fix suggested by Derek Price.
80200
80201 2005-09-24  Jim Meyering  <jim@meyering.net>
80202
80203         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80204         so we can once again use a positive bitfield width of 1 -- now we
80205         don't have to explain why we were using a bitfield width of 2.
80206
80207 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80208
80209         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80210         and similarly for the other external symbols.  Problem reported
80211         by James Gallager.
80212
80213         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80214         bug reported by Jim Meyering.
80215
80216         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80217         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80218         not needed, since socklen is a prerequisite module.
80219
80220 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80223         Problem reported by Eric Blake.
80224         (getaddrinfo): Initialize se so that it's not garbage.
80225         Redo internal storage allocation so that it doesn't make unportable
80226         assumptions about alignment.
80227         Fix a memory leak.
80228
80229         * lib/utimens.c (futimens): Use futimesat if available.
80230         Prefer it to futimes since it doesn't have the futimes bug.
80231
80232         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80233         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80234         Instead, declare a function that returns a pointer to an array,
80235         and use verify_type__ to declare the size of the array.
80236         Problem and germ of a solution reported by Bruno Haible.
80237         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80238         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80239
80240 2005-09-23  Jim Meyering  <jim@meyering.net>
80241
80242         Sync from coreutils.
80243         Correct build failure (socklen_t not defined) on at least
80244         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80246
80247 2005-09-23  Jim Meyering  <jim@meyering.net>
80248
80249         * modules/getaddrinfo (Depends-on): Add socklen.
80250
80251 2005-09-23  Bruno Haible  <bruno@clisp.org>
80252
80253         * tests/test-verify.c: New file.
80254
80255 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80256
80257         Sync from coreutils.
80258
80259         * modules/argmatch (Depends-on): Add verify.
80260         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80261         unistd-safer.
80262         * modules/save-cwd (Depends-on): Likewise.
80263
80264         * modules/openat (Files): Add lib/openat-die.c.
80265         (Depends-on): Remove error, exitfail.
80266         Add dirname.
80267
80268         * modules/verify: New file.
80269         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80270         with "verify" module.
80271
80272 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         Sync from coreutils.
80275
80276         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80277         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80278         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80279         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80280         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80281         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80282         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80283         Don't bother checking for string.h, stdlib.h, unistd.h.
80284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80285         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80286         module's job.
80287         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80288         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80289
80290         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80291         (gl_GETDATE): Use it.
80292
80293         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80294
80295 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80296
80297         Sync from coreutils.
80298
80299         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80300         stat-time.h.
80301         * lib/argmatch.h: Include verify.h
80302         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80303         (ARGMATCH_ASSERT): Remove; unused.
80304         * lib/canonicalize.c: Assume STDC_HEADERS.
80305         * lib/exclude.c: Include "strcase.h".
80306         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80307         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80308         and stdio-safer.h.
80309         (getusershell): Call fopen, not fopen_safer.
80310         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80311         Do not include unistd-safer.h.
80312         (save_cwd): Don't call fd_safer; no longer needed
80313         now that we include fcntl--.h.
80314
80315         * lib/getdate.y (relative_time): New type.
80316         (RELATIVE_TIME_0): New constant.
80317         (parser_control): Use relative_time instead of doing it ourselves.
80318         (%union): Add new relative_time rel member.
80319         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80320         Now typeless.
80321         (relunit, relunit_snumber): Now of type rel.
80322         (zone, rel, relunit, get_date): Adjust to above changes.
80323
80324         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80325         Do not include unistd-safer.h.
80326         (getloadavg): Don't call fd_safer; no longer needed
80327         now that we include fcntl--.h.
80328
80329         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80330         (make_dir_parents): Treat ENOSYS like EEXIST.
80331
80332         Improve quality of diagnostics on restore_cwd failure.
80333         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80334         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80335         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80336         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80337         each time through the loop.  Do not diagnose restore_cwd failure;
80338         that is the caller's job (and perhaps the caller does not care).
80339
80340         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80341         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80342         If the file already exists but is not a directory, don't bother
80343         to try to make its parents.
80344         Close potential file descriptor leak if we can't chdir("/") (!).
80345         Don't always return true if chdir($PWD) fails; return true only
80346         if the requested action was done successfully (except for the
80347         chdir($PWD)).
80348         Don't log final directory unless we actually made it.
80349         Refactor to avoid duplicate code to fix up permissions.
80350         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80351
80352         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80353         to make it a bit faster and (I hope) clearer.
80354         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80355         Fix bug in formats like %2N.
80356
80357         * lib/verify.h: New file.
80358
80359 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         Sync from coreutils.
80362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80363
80364 2005-09-22  Jim Meyering  <jim@meyering.net>
80365
80366         Sync from coreutils.
80367
80368         * m4/lstat.m4 (gl_FUNC_LSTAT):
80369         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80370         Remove obsolete comment.
80371         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80372         * m4/xstrtod.m4: Likewise.
80373
80374         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80375
80376 2005-09-22  Jim Meyering  <jim@meyering.net>
80377
80378         Sync from coreutils.
80379
80380         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80381
80382         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80383         the .tm_year member, since otherwise gcc-4.0 would now warn about
80384         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80385
80386         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80387         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80388
80389         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80390         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80391         when run in a time zone for which daylight savings time is in effect
80392         for the starting date.
80393
80394         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80395         stop us from restricting permissions of just-created absolute-named
80396         directories.
80397         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80398         to restore initial working directory.
80399         * lib/mkdir-p.c (make_dir_parents): New parameter:
80400         different_working_dir, to tell caller if/when we change the working
80401         directory and are unable to return to the initial one.
80402         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80403         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80404         `return false'.  This fixes a bug introduced on 2004-07-30.
80405
80406         * lib/openat.c (fdopendir): Be sure to close the supplied
80407         file descriptor before returning.  This makes our replacement
80408         implementation a little closer to Solaris's, where fdopendir
80409         ties the file descriptor to the returned DIR* pointer.
80410         * lib/openat.c (unlinkat): New function.
80411         * lib/openat.h (unlinkat): Add prototype.
80412         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80413         (openat_restore_fail): Rename from openat_restore_die.
80414         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80415
80416         Provide an alternative to exiting immediately upon save_cwd or
80417         restore_cwd failure.  Now, an application can arrange e.g.,
80418         to perform a longjump in that case.
80419         * lib/openat.c: Include dirname.h.
80420         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80421         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80422         and openat_restore_die rather than calling error directly.
80423         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80424
80425         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80426         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80427         define.
80428
80429         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80430         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80431                             int utc, int nanoseconds);
80432         Background:
80433         date should not have to allocate a megabyte of virtual memory to
80434         handle a format argument like +%1048575T.  When implemented with
80435         strftime, it must allocate such a buffer, use strftime to fill it
80436         in, print it, then free it.
80437         With fprintftime, it simply prints everything and exits.
80438         With no need for memory allocation, that's one fewer way to fail.
80439         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80440         optional field width, not before, so we accept %9:z, not %:9z.
80441         (my_strftime): Be sure to use L_('x') for literals.
80442
80443         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80444         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80445         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80446         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80447         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80448         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80449         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80450         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80451         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80452         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80453         * lib/xgethostname.c, lib/xreadlink.c:
80454         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80455
80456         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80457         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80458         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80459         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80460         and don't include <sys/file.h>).
80461
80462 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80463
80464         Sync from coreutils.
80465
80466         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80467         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80468         [!LDAV_DONE]: Avoid unused variable warning.
80469
80470 2005-09-21  Bruno Haible  <bruno@clisp.org>
80471
80472         * lib/unicodeio.h (unicode_to_mb): New declaration.
80473
80474 2005-09-20  Derek Price  <derek@ximbiot.com>
80475
80476         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80477         getaddrinfo.h.
80478
80479 2005-09-20  Bruno Haible  <bruno@clisp.org>
80480
80481         * gnulib-tool: Remove trailing slashes from the values specified for
80482         --source-base, --m4-base, --tests-base, --aux-dir.
80483         Suggested by Simon Josefsson <jas@extundo.com>.
80484
80485 2005-09-20  Bruno Haible  <bruno@clisp.org>
80486
80487         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80488         func_modules_to_filelist, func_import, func_create_testdir): Make all
80489         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80490         change when gnulib-tool is invoked in a different locale.
80491
80492 2005-09-19  Simon Josefsson  <jas@extundo.com>
80493
80494         * m4/socklen.m4: Fix typo.
80495
80496 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80497
80498         Use a consistent style for including <config.h>.
80499         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80500         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80501         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80502         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80503         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80504         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80505         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80506         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80507         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80508         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80509         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80510         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80511         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80512         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80513         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80514         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80515         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80516         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80517         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80518         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80519         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80520         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80521         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80522         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80523         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80524         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80525         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80526         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80527         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80528         lib/xstrtoumax.c, lib/yesno.c:
80529         Standardize inclusion of config.h.
80530         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80531         lib/inttostr.h:  Removed inclusion of config.h from header files.
80532         * lib/inttostr.c:  Adjusted in-tree users.
80533         * lib/timespec.h: Remove superfluous warning to include config.h.
80534         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80535         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80536         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80537         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80538         config.h with HAVE_CONFIG_H.
80539
80540 2005-09-19  Jim Meyering  <jim@meyering.net>
80541
80542         * modules/pathmax (License): Change to LGPL.
80543
80544 2005-09-19  Derek Price  <derek@ximbiot.com>
80545
80546         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80547
80548 2005-09-19  Bruno Haible  <bruno@clisp.org>
80549
80550         * gnulib-tool (import): Provide default for --tests-base.
80551
80552 2005-09-19  Bruno Haible  <bruno@clisp.org>
80553
80554         * doc/quote.texi: New file, extracted from gnulib.texi.
80555         * doc/ctime.texi: New file, extracted from gnulib.texi.
80556         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80557         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80558         * doc/gnulib.texi: Include them.
80559
80560 2005-09-18  Bruno Haible  <bruno@clisp.org>
80561
80562         Portability fix.
80563         * gnulib-tool (func_readlink): New function.
80564         (func_ln_if_changed): Use it.
80565
80566 2005-09-18  Bruno Haible  <bruno@clisp.org>
80567
80568         * gnulib-tool: Support --with-tests also with --import.
80569         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80570         (func_import): Use variables $testsbase and $inctests. Emit a
80571         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80572         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80573         SUBDIRS += $testsdir.
80574         (func_create_testdir): Update.
80575
80576 2005-09-18  Bruno Haible  <bruno@clisp.org>
80577
80578         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80579         instead of $dry_run.
80580         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80581         (func_ln_if_changed): Don't handle dry-run here.
80582         (func_import): In dry-run mode, detect more precisely which actions
80583         would be performed, and don't use "...ing" verbs.
80584
80585 2005-09-18  Bruno Haible  <bruno@clisp.org>
80586
80587         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80588         (func_import): Use join on two temporary files instead of three nested
80589         loops, in order to determine which files are new or old.
80590
80591 2005-09-18  Bruno Haible  <bruno@clisp.org>
80592
80593         * gnulib-tool (func_import): Comment out code that spits out the
80594         new files with --dry-run.
80595
80596 2005-09-18  Bruno Haible  <bruno@clisp.org>
80597
80598         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80599
80600 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         * lib/stat-time.h: New file.
80603         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80604         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80605         in a different way.
80606         (timespec_cmp): New function.
80607         * lib/utimecmp.c: Include stat-time.h.
80608         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80609         members exist, not on the obsolescent ST_MTIM_NSEC.
80610         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80611
80612 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80615
80616 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80617
80618         * MODULES.html.sh (File system functions): Add stat-time.
80619         * modules/stat-time: New file.
80620         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80621         is now done in a different way, by the stat-time module.
80622         * modules/utimecmp (Depends-on): Add stat-time.
80623
80624 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * m4/st_mtim.m4: Remove.  Superseded by...
80627         * m4/stat-time.m4: New file.
80628         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80629         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80630
80631 2005-09-15  Derek Price  <derek@ximbiot.com>
80632
80633         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80634
80635 2005-09-15  Derek Price  <derek@ximbiot.com>
80636
80637         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80638         * lib/regex_internal.c: Ditto, using this...
80639         (__GNUC_PREREQ): ...new macro.
80640         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80641         using...
80642         (__GNUC_PREREQ): ...this new macro.
80643
80644         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80645
80646 2005-09-15  Derek Price  <derek@ximbiot.com>
80647             Paul Eggert  <eggert@cs.ucla.edu>
80648
80649         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80650         changes, consolidating in...
80651         * lib/regex_internal.h: ...this file.
80652
80653 2005-09-13  Jim Meyering  <jim@meyering.net>
80654
80655         * lib/canon-host.c: Filter through gnu indent and reword comments
80656         slightly.
80657         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80658
80659 2005-09-13  Derek Price  <derek@ximbiot.com>
80660
80661         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80662         failure.
80663         Reported by Jim Meyering  <jim@meyering.net>.
80664
80665 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80666
80667         * lib/base64.c: Typo.
80668         (base64_encode): Put b64str in initialized data section.
80669
80670 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         Merge glibc and coreutils changes into gnulib, plus a few
80673         extra fixes.
80674         * lib/md5.c: Use #error rather than a string.
80675         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80676         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80677         (__attribute__): Define to empty for non recent-GCC.
80678         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80679         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80680         Renamed from their non-__ counterparts, with new macros replacing
80681         them if not _LIBC.  Add __THROW attribute.
80682         (rol): Remove.
80683         (struct md5_ctx): Align buffer if using GCC.
80684         * lib/sha1.h (struct sha1_ctx): Likewise.
80685         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80686         The old name was backwards.
80687         (NOTSWAP): Remove; not used.
80688         (rol): New macro, moved here from md5.h.
80689         (sha1_process_block): Remove a FIXME that doesn't make sense.
80690
80691 2005-09-12  Derek Price  <derek@ximbiot.com>
80692
80693         Return usable errors from canon-host.
80694         * lib/canon-host.h: New file.
80695         * lib/canon-host.c (canon_host): Wrap...
80696         (canon_host_r): ...this new function, which now relies exclusively on
80697         getaddrinfo.
80698         (ch_strerror): New function.
80699         (last_cherror): New global.
80700         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80701         interface.
80702         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80703         void *.
80704         (freeaddrinfo): Free ai->ai_canonname when set.
80705
80706 2005-09-12  Derek Price  <derek@ximbiot.com>
80707
80708         Make canon-host require getaddrinfo.
80709         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80710         AC_LIBSOURCE canon-host.h.  Call...
80711         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80712         gl_GETADDRINFO.
80713         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80714
80715 2005-09-12  Derek Price  <derek@ximbiot.com>
80716
80717         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80718         LGPL.
80719         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80720
80721 2005-09-12  Derek Price  <derek@ximbiot.com>
80722
80723         * lib/gai_strerror.c: Include config.h when available.  Include
80724         getaddrinfo.h before other headers to test interface.
80725         Reported by Larry Jones <lawrence.jones@ugs.com>.
80726
80727 2005-09-12  Derek Price  <derek@ximbiot.com>
80728             Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * modules/glob (Files): Add glob-libc.h.
80731
80732 2005-09-12  Derek Price  <derek@ximbiot.com>
80733             Paul Eggert  <eggert@cs.ucla.edu>
80734
80735         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80736         glob_.h, glob-libc.h.
80737         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80738
80739 2005-09-12  Derek Price  <derek@ximbiot.com>
80740             Paul Eggert  <eggert@cs.ucla.edu>
80741
80742         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80743         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80744         protecting things that should be done only in gnulib contexts.
80745         * lib/glob_.h: New file, containing only the glob things needed for
80746         gnulib.
80747         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80748         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80749         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80750         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80751         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80752         and to respect the namespace rules better.
80753
80754 2005-09-08  Simon Josefsson  <jas@extundo.com>
80755
80756         * modules/socklen: New file.
80757
80758 2005-09-08  Simon Josefsson  <jas@extundo.com>
80759
80760         * m4/socklen.m4: New file.
80761
80762 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80763
80764         * modules/utimens (Files): Add m4/utimbuf.m4, since
80765         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80766         Reported by Sergey Poznyakoff.
80767
80768 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80769
80770         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80771         definitions, since that's the preferred style in glibc.
80772         Fix a minor spacing issue, and update copyright notice to match
80773         glibc's.
80774
80775 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80776
80777         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80778
80779 2005-09-06  Simon Josefsson  <jas@extundo.com>
80780
80781         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80782         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80783
80784 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80787         warning.
80788
80789 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80790
80791         * config/srclist.txt: Add glibc bug 1302.
80792
80793 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80794
80795         Change bitset word type from unsigned int to unsigned long int,
80796         as this has better performance on typical 64-bit hosts.
80797         Port bitset code to hosts with unusual word sizes.
80798         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80799         (build_collating_symbol):
80800         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80801         argument is a bitset.  This is merely a style issue, but it makes
80802         it clearer that an entire array is expected.
80803         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80804         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80805         Port to the case where bitset_word is not the same as unsigned int.
80806         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80807         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80808         Likewise.
80809         * lib/regexec.c (check_dst_limits_calc_pos_1,
80810         check_subexp_matching_top):
80811         (build_trtable, group_nodes_into_DFAstates):
80812         Likewise.
80813         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80814         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80815         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80816         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80817         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80818         * lib/regcomp.c (optimize_subexps, lower_subexp):
80819         Work even if bitset_word has holes in its bitwise representation.
80820         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80821         * lib/regexec.c (check_dst_limits_calc_pos_1,
80822         check_subexp_matching_top):
80823         Likewise.
80824         * lib/regex_internal.c (re_string_reconstruct):
80825         Don't assume UCHAR_MAX == 255.
80826         * lib/regex_internal.h (bitset_set_all): Likewise.
80827         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80828         All uses changed.
80829         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80830         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80831         All uses changed.
80832         (BITSET_WORD_MAX): New macro.
80833         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80834         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80835         (bitset_empty, bitset_copy):
80836         Prefer sizeof (bitset) to multiplying it out ourselves.
80837         (bitset_not_merge): Remove; unused.
80838         (bitset_contain): Return bool, not unsigned int with one bit on.
80839         All callers changed.
80840         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80841         alignment than re_node_set; do this by defining a new internal
80842         type struct dests_alloc and using it to allocate memory.
80843
80844 2005-09-05  Bruno Haible  <bruno@clisp.org>
80845
80846         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80847         links.
80848
80849 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80850
80851         * modules/size_max (Makefile.am): Add size_max.h
80852
80853 2005-09-04  Derek Price  <derek@ximbiot.com>
80854
80855         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80856
80857 2005-09-03  Simon Josefsson  <jas@extundo.com>
80858
80859         * gnulib-tool: Fix typo.
80860
80861 2005-09-03  Simon Josefsson  <jas@extundo.com>
80862
80863         * config/srclist.txt: Add glibc bug 1293.
80864
80865 2005-09-03  Derek Price  <derek@ximbiot.com>
80866
80867         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80868         From Larry Jones <lawrence.jones@ugs.com>.
80869
80870 2005-09-02  Simon Josefsson  <jas@extundo.com>
80871
80872         * modules/socklen: New file.
80873
80874 2005-09-02  Simon Josefsson  <jas@extundo.com>
80875
80876         * modules/havelib: New module.
80877
80878         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80879         Use havelib.
80880
80881 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80882
80883         Check for arithmetic overflow when calculating sizes, to prevent
80884         some buffer-overflow issues.  These patches are conservative, in the
80885         sense that when I couldn't determine whether an overflow was possible,
80886         I inserted a run-time check.
80887         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80888         macros.
80889         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80890         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80891         (re_xnrealloc, re_x2nrealloc): New inline functions.
80892         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80893         parse_bracket_exp):
80894         (build_equiv_class, build_charclass): Check for arithmetic overflow
80895         in size expression calculations.
80896         * lib/regex_internal.c (re_string_realloc_buffers):
80897         (build_wcs_upper_buffer, re_node_set_add_intersect):
80898         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80899         (re_dfa_add_node, register_state): Likewise.
80900         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80901         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80902         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80903         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80904
80905 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80906
80907         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80908         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80909
80910 2005-09-02  Bruno Haible  <bruno@clisp.org>
80911
80912         Support for lib vs. lib64 distinction on biarch platforms.
80913         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80914         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80915         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80916
80917 2005-09-02  Bruno Haible  <bruno@clisp.org>
80918
80919         * gnulib-tool (import): In the other first-use case, provide defaults
80920         as well.
80921
80922 2005-09-02  Bruno Haible  <bruno@clisp.org>
80923
80924         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80925         patches not yet found in the latest gettext release.
80926
80927 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80928
80929         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80930         to avoid a collision with bits/local_lim.h in glibc.
80931         All uses changed.  Problem reported by Dmitry V. Levin in
80932         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80933
80934         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80935         bugs in int versus size_t comparisons.
80936         (re_string_context_at): Fix bug where the code assumed that
80937         Idx is signed.
80938
80939         Use bool where appropriate.
80940         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80941         All callers changed.
80942         (calc_eclosure_iter): Likewise, for ROOT arg.
80943         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80944         (build_charclass_op): Likewise, for NON_MATCH arg.
80945         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80946         (re_string_construct_common): Likewise, for ICASE arg.
80947         * lib/regexec.c (re_search_2_stub, re_search_stub):
80948         Likewise, for RET_LEN arg.
80949         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80950         (set_regs): Likewise, for FL_BACKTRACK arg.
80951         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80952         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80953         (calc_eclosure_iter, parse_bracket_exp):
80954         Use bool for internal variables that are booleans.
80955         * lib/regexec.c (re_search_internal, check_matching,
80956         proceed_next_node):
80957         (set_regs, build_sifted_states, sift_states_bkref):
80958         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80959         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80960         (find_collation_sequence_value):
80961         Likewise.
80962         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80963         (re_node_set_compare):
80964         Return bool, not int. All callers changed.
80965         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80966         (build_trtable, check_node_accept): Likewise.
80967         * lib/regex_internal.h: Include stdbool.h.
80968
80969         Fix bugs uncovered when converting to bool.
80970         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80971         failure instead of charging ahead blindly.
80972         * lib/regex_internal.c (register_state): Likewise.
80973         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80974         for freeing internal storage.
80975         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80976         bitset pieces used as boolean, to avoid undefined behavior
80977         on hosts that do int overflow checking.
80978
80979 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * config/srclist.txt: Add glibc bugs 1285-1287.
80982
80983 2005-09-01  Jim Meyering  <jim@meyering.net>
80984
80985         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80986         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80987         Require gl_STAT_MACROS, too.
80988
80989 2005-09-01  Bruno Haible  <bruno@clisp.org>
80990
80991         * gnulib-tool (import): In the first-use case, provide defaults.
80992
80993 2005-09-01  Bruno Haible  <bruno@clisp.org>
80994
80995         * gnulib-tool (func_import): Remove the .tmp files.
80996
80997 2005-09-01  Bruno Haible  <bruno@clisp.org>
80998
80999         * gnulib-tool (func_import): Fix handling of symbolic links.
81000
81001 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81002
81003         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81004         old glibc regex code mishandles strings longer than 2**31 bytes.
81005         This patch fixes this when the regex code is used in gnulib
81006         (i.e., outside glibc).
81007
81008         This patch should not affect the use of the regex code inside
81009         glibc.  No doubt this problem also needs to be handled for glibc
81010         as well, but the result will be an incompatible change to the
81011         glibc ABI, and the old ABI will have to be supported too.  That
81012         can be the the subject for another patch.
81013
81014         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81015         governing whether the rest of this patch is active.  By default,
81016         the macro is disabled and the patch has no effect.
81017         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81018         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81019         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81020         (re_match_2, re_set_registers): Use the new types.
81021         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81022         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81023         New macros.
81024         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81025         (re_string_context_at, bin_tree_t, re_dfastate_t):
81026         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81027         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81028         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81029         (re_string_char_size_at, re_string_wchar_at):
81030         (re_string_elem_size_at):
81031         Use the new types and macros to port to 64-bit hosts.
81032         Use unsigned types for internal values, so that the code
81033         mostly works even for arrays larger than SSIZE_MAX.
81034         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81035         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81036         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81037         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81038         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81039         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81040         (calc_inveclosure, parse_dup_op, build_range_exp):
81041         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81042         (fetch_number, create_token_tree, mark_opt_subexp):
81043         Likewise.
81044         * lib/regex_internal.c (re_string_construct_common,
81045         create_ci_newstate):
81046         (create_cd_newstate, re_string_allocate, re_string_construct):
81047         (re_string_realloc_buffers, build_wcs_upper_buffer):
81048         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81049         (re_string_reconstruct, re_string_peek_byte_case):
81050         (re_string_fetch_byte_case, re_string_context_at):
81051         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81052         (re_node_set_init_copy, re_node_set_add_intersect):
81053         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81054         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81055         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81056         (re_acquire_state, re_acquire_state_context, register_state):
81057         Likewise.
81058         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81059         search_cur_bkref_entry):
81060         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81061         (re_search_internal, re_search_2_stub, re_search_stub)
81062         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81063         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81064         (update_cur_sifted_state, check_dst_limits):
81065         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81066         (check_subexp_limits, sift_states_bkref, merge_state_array):
81067         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81068         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81069         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81070         (expand_bkref_cache, check_node_accept_bytes):
81071         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81072         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81073         (acquire_init_state_context, check_halt_node_context):
81074         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81075         (sift_states_backward, clean_state_log_if_needed):
81076         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81077         (find_recover_state, transit_state_sb, transit_state_mb):
81078         (transit_state_bkref, build_trtable, match_ctx_clean):
81079         Likewise.
81080         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81081         to work around an assumption that REG_MISSING is negative.
81082
81083         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81084         (seek_collating_symbol_entry) [defined _LIBC]:
81085         (lookup_collation_sequence_value) [defined _LIBC]:
81086         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81087         Use prototypes rather than old-style function definitions.
81088         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81089         (transit_state_sb) [0]:
81090         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81091
81092         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81093         rm_eo.
81094
81095         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81096         (optimize_subexps, lower_subexp):
81097         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81098         since the signed shift might overflow.  Use 1u<<31 instead.
81099         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81100         Likewise.
81101         * lib/regexec.c (check_dst_limits_calc_pos_1,
81102         check_subexp_matching_top): Likewise.
81103
81104         * lib/regcomp.c (optimize_subexps, lower_subexp):
81105         Use CHAR_BIT rather than 8, for clarity.
81106         * lib/regexec.c (check_dst_limits_calc_pos_1):
81107         (check_subexp_matching_top): Likewise.
81108         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81109         have to worry about portability issues when shifting it left.
81110         Remove no-longer-needed test for table_size > 0.
81111         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81112         in a word, as the resulting behavior is undefined.
81113         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81114         in one case, a <= should have been an <, and in another case the
81115         whole test was missing.
81116         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81117         the standard name CHAR_BIT.
81118         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81119         this is not true on one's complement and signed-magnitude hosts.
81120
81121         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81122         next_last_offset.
81123         (struct re_dfa_t): Remove unused member states_alloc.
81124         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81125
81126 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81129         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81130         and large-file glibc and in 32-bit large-file Solaris.
81131
81132 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81133
81134         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81135         lengths fit in regoff_t; this isn't true if regoff_t is the same
81136         width as size_t.
81137         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81138         (= START + RANGE) instead of RANGE.  This avoids overflow
81139         problems when regoff_t is the same width as size_t.
81140         All callers changed.
81141         (re_search_2_stub): Check for overflow when adding the
81142         sizes of the two strings.
81143         (re_search_stub): Check for overflow when adding START
81144         to RANGE; if it occurs, substitute the extreme value.
81145
81146 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81147
81148         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81149
81150 2005-08-31  Jim Meyering  <jim@meyering.net>
81151
81152         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81153         a pointer-to-const.
81154         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81155         (register_state): Likewise.
81156         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81157         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81158         (group_nodes_into_DFAstates): Likewise.
81159
81160 2005-08-31  Jim Meyering  <jim@meyering.net>
81161
81162         * check-module: Add a FIXME comment.
81163
81164 2005-08-31  Eric Blake  <ebb9@byu.net>
81165
81166         * modules/unistd-safer (Files): Add unistd--.h.
81167         * modules/stdio-safer (Files): Add stdio--.h.
81168
81169 2005-08-31  Derek Price  <derek@ximbiot.com>
81170
81171         * lib/getdelim.c (getdelim): Return EOF on EOF.
81172         Reported by Larry Jones <lawrence.jones@ugs.com>.
81173
81174 2005-08-31  Bruno Haible  <bruno@clisp.org>
81175
81176         Avoid unnecessary diffs in the generated lib/Makefile.am.
81177         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81178         the generated files.
81179         (func_import): Don't set cmd.
81180
81181 2005-08-31  Bruno Haible  <bruno@clisp.org>
81182
81183         * lib/strstr.c: Include <stddef.h>, for NULL.
81184         * lib/strcasestr.c: Likewise.
81185         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81186
81187 2005-08-31  Bruno Haible  <bruno@clisp.org>
81188
81189         * gnulib-tool: New option --macro-prefix.
81190         (func_import): Use macro_prefix.
81191         (import): Handle option --macro-prefix.
81192
81193 2005-08-31  Bruno Haible  <bruno@clisp.org>
81194
81195         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81196         Also use new variables cached_lgpl, cached_libtool.
81197
81198 2005-08-31  Bruno Haible  <bruno@clisp.org>
81199
81200         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81201         always instantiating them.
81202
81203 2005-08-31  Bruno Haible  <bruno@clisp.org>
81204
81205         * gnulib-tool (func_import): Read the previous cached settings
81206         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81207         earlier added by gnulib but are now dropped. Warn when a gnulib file
81208         overwrites a non-gnulib file.
81209
81210 2005-08-31  Bruno Haible  <bruno@clisp.org>
81211
81212         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81213         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81214         projects that don't keep autogenerated files in CVS. Put into
81215         actioncmd only the specified modules, not the transitive closure.
81216
81217 2005-08-31  Bruno Haible  <bruno@clisp.org>
81218
81219         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81220         Create directories that shall be filled.
81221         (import): Don't look for gl_* macros in configure.ac. Recurse across
81222         all directories containing a gnulib-cache.m4 files, if meaningful.
81223
81224 2005-08-31  Bruno Haible  <bruno@clisp.org>
81225
81226         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81227         (import): Set seen_libtool when we see gl_LIBTOOL.
81228
81229 2005-08-31  Bruno Haible  <bruno@clisp.org>
81230
81231         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81232         declaration macro definitions from generated gnulib.m4.
81233
81234 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81235
81236         * lib/iconvme.h: Add prototype for iconv_alloc.
81237
81238 2005-08-29  Simon Josefsson  <jas@extundo.com>
81239
81240         * lib/iconvme.c: Fix errno.
81241
81242 2005-08-29  Bruno Haible  <bruno@clisp.org>
81243
81244         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81245         that it works when the directory contains spaces.
81246
81247 2005-08-29  Bruno Haible  <bruno@clisp.org>
81248
81249         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81250
81251 2005-08-29  Bruno Haible  <bruno@clisp.org>
81252
81253         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81254         Emit more advice.
81255
81256 2005-08-29  Bruno Haible  <bruno@clisp.org>
81257         and Stepan Kasal  <kasal@ucw.cz>
81258
81259         * check-module: If more parameters are given, check each of them
81260         separately; add more exceptions, as noted by Jim Meyering.
81261         (check_module): New procedure.
81262         (%exempt_header): Now contains all exceptions.
81263
81264 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81265
81266         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81267
81268 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81269
81270         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81271
81272 2005-08-28  Bruno Haible  <bruno@clisp.org>
81273
81274         * m4/gnulib-tool.m4: New file.
81275
81276 2005-08-27  Jim Meyering  <jim@meyering.net>
81277
81278         * modules/unistd-safer (Files): Add pipe-safer.c.
81279         * modules/fcntl-safer (Files): Add creat-safer.c.
81280
81281 2005-08-27  Jim Meyering  <jim@meyering.net>
81282
81283         * m4/stdlib-safer.m4: New file.  From coreutils.
81284         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81285         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81286         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81287         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81288         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81289
81290 2005-08-27  Jim Meyering  <jim@meyering.net>
81291
81292         * lib/fopen-safer.c: Merge minor changes from coreutils.
81293         * lib/dup-safer.c: Likewise.
81294         * lib/fd-safer.c: Likewise.
81295
81296         Merge from coreutils.
81297         * lib/stdio--.h: New file.
81298         * lib/stdlib--.h: New file.
81299         * lib/mkstemp-safer.c: New file.
81300
81301         GNU tar needs these.
81302         * lib/pipe-safer.c: New file.
81303         * lib/creat-safer.c: New file.
81304         * lib/fcntl--.h (creat): Define to creat_safer.
81305         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81306         * lib/unistd--.h (pipe): Define to pipe_safer.
81307         * lib/unistd-safer.h: Declare pipe_safer.
81308
81309 2005-08-26  Simon Josefsson  <jas@extundo.com>
81310
81311         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81312         Haible <bruno@clisp.org>.
81313
81314 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81315
81316         * lib/regex_internal.h: Remove all references to
81317         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81318         or better.
81319         (bitset_not, bitset_merge, bitset_not_merge):
81320         (bitset_mask, re_string_allocate, re_string_construct):
81321         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81322         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81323         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81324         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81325         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81326         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81327         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81328         (re_acquire_state_context):
81329         Remove unnecessary forward decls.
81330         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81331         Put __attribute at function definition,
81332         now that the function decl has been removed.
81333         * lib/regex_internal.c (re_string_peek_byte_case):
81334         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81335         Likewise.
81336
81337 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81338
81339         * m4/regex.m4: Add AC_PREREQ(2.50).
81340         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81341
81342 2005-08-25  Simon Josefsson  <jas@extundo.com>
81343
81344         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81345         __fsetlocking.
81346
81347 2005-08-25  Simon Josefsson  <jas@extundo.com>
81348
81349         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81350         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81351         GLIBC specific code.
81352
81353 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81354
81355         Make regex safe for g++.  This fixes one real bug (an "err"
81356         that should have been "*err").  g++ problem reported by
81357         Sam Steingold.
81358         * lib/regex_internal.h (re_calloc): New macro, consistent with
81359         re_malloc etc.  All callers of calloc changed to use re_calloc.
81360         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81361         not int.  All callers changed.
81362         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81363         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81364         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81365         (find_recover_state): Change "err" to "*err"; this fixes what
81366         appears to be a real bug.
81367         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81368         versus int.
81369
81370 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * modules/regex (Depends-on): Add malloc, since the code
81373         assumes that !malloc(0) means failure.
81374
81375 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81378
81379         alloca modernization/simplification for regex.
81380         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81381         needs to be at the start of the file, and can be moved into
81382         regex_internal.h and simplified.
81383         * lib/regex_internal.h: Include <alloca.h>.
81384         (__libc_use_alloca) [!defined _LIBC]: New macro.
81385         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81386         now works outside glibc.
81387
81388 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * config/srclist.txt: Add glibc bugs 1241, 1245.
81391
81392 2005-08-25  Jim Meyering  <jim@meyering.net>
81393
81394         * lib/open-safer.c: Include <config.h>.
81395         Otherwise, we'd lose LARGEFILE support in any file using
81396         e.g. "fcntl--.h"
81397
81398 2005-08-25  Bruno Haible  <bruno@clisp.org>
81399
81400         * m4/minmax.m4: Require autoconf 2.52.
81401         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81402         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81403         alternatives of translit over the alphabet.
81404         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81405
81406 2005-08-24  Simon Josefsson  <jas@extundo.com>
81407
81408         * tests/test-getpass.c: New file.
81409
81410 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81411
81412         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81413         for GNU regex features.
81414
81415 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81416
81417         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81418         * lib/regex.h (regerror): Likewise.
81419
81420         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81421         requires this.  (The code never needed it.)
81422
81423         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81424         All uses of recently-renamed identifiers changed to use the new,
81425         POSIX-compliant names.  The code will build and run just fine
81426         without these changes, but it's better to eat our own dog food
81427         and use the standard-conforming names.
81428
81429         * lib/regex.h: Fix a multitude of POSIX name space violations.
81430         These changes have an effect only for programs that define
81431         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81432         do not change anything for programs compiled in the normal way.
81433         Also, there is no effect on the ABI.
81434
81435         (_REGEX_SOURCE): New macro.
81436         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81437         defined and _GNU_SOURCE is not; this fixes a name space violation.
81438
81439         Rename the following macros to obey POSIX requirements.
81440         The old names are still visible as macros if _REGEX_SOURCE is defined.
81441         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81442         RE_BACKSLASH_ESCAPE_IN_LISTS.
81443         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81444         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81445         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81446         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81447         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81448         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81449         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81450         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81451         (REG_INTERVALS): renamed from RE_INTERVALS.
81452         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81453         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81454         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81455         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81456         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81457         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81458         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81459         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81460         RE_UNMATCHED_RIGHT_PAREN_ORD.
81461         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81462         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81463         (REG_DEBUG): renamed from RE_DEBUG.
81464         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81465         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81466         unusual, since we can't clash with the POSIX REG_ICASE.
81467         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81468         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81469         (REG_NO_SUB): renamed from RE_NO_SUB.
81470         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81471         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81472         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81473         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81474         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81475         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81476         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81477         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81478         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81479         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81480         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81481         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81482         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81483         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81484         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81485         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81486         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81487         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81488         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81489         (REG_FIXED): Renamed from REGS_FIXED.
81490         (REG_NREGS): Renamed from RE_NREGS.
81491
81492         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81493         of other REG_* macros, since POSIX says the user is allowed to
81494         #undef these macros selectively.
81495
81496         (reg_errcode_t): Update comment stating what other tables need
81497         to be consistent.
81498
81499         Rename the following enum values to obey POSIX requirements.
81500         The old names are still visible as macros.
81501         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81502         is not defined, since GNU is supposed to be a superset of POSIX as
81503         much as possible, and since we want reg_errcode_t to be a signed
81504         type for implementation consistency.
81505         (_REG_NOERROR): Renamed from REG_NOERROR.
81506         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81507         (_REG_BADPAT): Renamed from REG_BADPAT.
81508         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81509         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81510         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81511         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81512         (_REG_EBRACK): Renamed from REG_EBRACK.
81513         (_REG_EPAREN): Renamed from REG_EPAREN.
81514         (_REG_EBRACE): Renamed from REG_EBRACE.
81515         (_REG_BADBR): Renamed from REG_BADBR.
81516         (_REG_ERANGE): Renamed from REG_ERANGE.
81517         (_REG_ESPACE): Renamed from REG_ESPACE.
81518         (_REG_BADRPT): Renamed from REG_BADRPT.
81519         (_REG_EEND): Renamed from REG_EEND.
81520         (_REG_ESIZE): Renamed from REG_ESIZE.
81521         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81522         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81523         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81524         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81525         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81526
81527         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81528         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81529         changed.  But support the old name if the new one is not defined
81530         and if _REGEX_SOURCE.
81531
81532         Change the following member names in struct re_pattern_buffer.
81533         The old names are still supported if !_REGEX_SOURCE.
81534         The new names are always supported, regardless of _REGEX_SOURCE.
81535         (re_buffer): Renamed from buffer.
81536         (re_allocated): Renamed from allocated.
81537         (re_used): Renamed from used.
81538         (re_syntax): Renamed from syntax.
81539         (re_fastmap): Renamed from fastmap.
81540         (re_translate): Renamed from translate.
81541         (re_can_be_null): Renamed from can_be_null.
81542         (re_regs_allocated): Renamed from regs_allocated.
81543         (re_fastmap_accurate): Renamed from fastmap_accurate.
81544         (re_no_sub): Renamed from no_sub.
81545         (re_not_bol): Renamed from not_bol.
81546         (re_not_eol): Renamed from not_eol.
81547         (re_newline_anchor): Renamed from newline_anchor.
81548
81549         Change the following member names in struct re_registers.
81550         The old names are still supported if !_REGEX_SOURCE.
81551         The new names are always supported, regardless of _REGEX_SOURCE.
81552         (rm_num_regs): Renamed from num_regs.
81553         (rm_start): Renamed from start.
81554         (rm_end): Renamed from end.
81555
81556         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81557         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81558         Prepend __ to parameter names.
81559
81560         Undo yesterday's changes.
81561
81562 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81563
81564         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81565         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81566         lib/regex.c.
81567
81568 2005-08-24  Jim Meyering  <jim@meyering.net>
81569
81570         Sync from coreutils.
81571         * m4/fcntl-safer.m4: New file.
81572
81573         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81574         and object files for this module.
81575
81576 2005-08-24  Jim Meyering  <jim@meyering.net>
81577
81578         Sync from coreutils.
81579         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81580
81581 2005-08-24  Jim Meyering  <jim@meyering.net>
81582
81583         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81584         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81585
81586 2005-08-24  Jim Meyering  <jim@meyering.net>
81587
81588         * modules/fcntl-safer: New module.
81589         * modules/fts (Depends-on): Add fcntl-safer.
81590         * MODULES.html.sh (File descriptor based Input/Output):
81591         Add fcntl-safer.
81592
81593 2005-08-24  Bruno Haible  <bruno@clisp.org>
81594
81595         Support for unit test modules.
81596         * modules/README: Mention tests modules.
81597         * modules/TEMPLATE-TESTS: New file.
81598         * gnulib-tool: New options --extract-tests-module, --with-tests and
81599         --tests-base (unused for the moment).
81600         (testsbase, inctests): New variables.
81601         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81602         (func_verify_module): Exclude TEMPLATE-TESTS.
81603         (func_verify_nontests_module, func_verify_tests_module): New functions.
81604         (func_get_dependencies): Add implicit dependency for tests modules.
81605         (func_get_tests_module): New function.
81606         (func_modules_transitive_closure): When --with-tests was specified,
81607         include the unit tests as well, unless explicitly avoided.
81608         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81609         (func_emit_tests_Makefile_am): New function.
81610         (func_create_testdir): When --with-tests was specified, emit a
81611         tests/ directory.
81612         * MODULES.html.sh (Future developments): Update.
81613
81614 2005-08-24  Bruno Haible  <bruno@clisp.org>
81615
81616         * modules/tls-tests: New file.
81617         * tests/test-tls.c: New file, from GNU gettext.
81618
81619 2005-08-24  Bruno Haible  <bruno@clisp.org>
81620
81621         * modules/lock-tests: New file.
81622         * tests/test-lock.c: New file, from GNU gettext.
81623
81624 2005-08-24  Bruno Haible  <bruno@clisp.org>
81625
81626         * lib/lock.h: Add multiple inclusion guard.
81627         * lib/tls.h: Add multiple inclusion guard.
81628
81629 2005-08-24  Bruno Haible  <bruno@clisp.org>
81630
81631         * gnulib-tool: Add support for the --aux-dir option to
81632         --create-testdir, --create-megatestdir, --test, --megatest.
81633         (func_create_testdir, func_create_megatestdir): Optionally emit a
81634         AC_CONFIG_AUX_DIR directive.
81635         (create-testdir, create-megatestdir, test, megatest): Provide a
81636         default value for $auxdir.
81637
81638 2005-08-24  Bruno Haible  <bruno@clisp.org>
81639
81640         * gnulib-tool (import): Use compound statement instead of subshell
81641         where possible.
81642
81643 2005-08-24  Bruno Haible  <bruno@clisp.org>
81644
81645         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81646
81647 2005-08-24  Bruno Haible  <bruno@clisp.org>
81648
81649         * gnulib-tool (func_version): Update.
81650
81651 2005-08-24  Bruno Haible  <bruno@clisp.org>
81652
81653         * gnulib-tool (func_import, func_create_testdir,
81654         func_create_megatestdir): Quote all autoconf macro arguments.
81655
81656 2005-08-24  Bruno Haible  <bruno@clisp.org>
81657
81658         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81659         option --force, because --force causes the aclocal.m4 of each
81660         subdirectory to be newer than the corresponding config.h.in.
81661
81662 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81663
81664         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81665         All contents moved to gl_REGEX.
81666         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81667         assume that it does.
81668
81669 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * lib/regex.h (REG_NOSYS)
81672         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81673         Define, since POSIX requires it as of 2001.
81674         (_REG_ENOSYS)
81675         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81676         New private symbol, used to keep the enum signed in all cases.
81677         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81678         Youngman in
81679         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81680
81681         * lib/regex_internal.c (re_string_skip_chars, register_state):
81682         (calc_state_hash):
81683         Remove forward decls; no longer needed now that we use prototypes.
81684         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81685         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81686         (clean_state_log_if_needed): Likewise.
81687
81688 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81689
81690         * config/srclist.txt: Add glibc bugs 1231-1233.
81691
81692 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         Fix problems reported by Sam Steingold in
81695         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81696         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81697         assumed that reg_errcode_t is a signed type, which is not
81698         necessarily true if _XOPEN_SOURCE is not defined.
81699         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81700         since some compilers warn about it otherwise.
81701
81702 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81703
81704         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81705         (init_word_char, create_initial_state, duplicate_node_closure):
81706         (fetch_token, peek_token_bracket, build_range_exp):
81707         (build_collating_symbol): Remove forward decls; no longer needed
81708         now that we use prototypes.
81709
81710         * lib/regcomp.c:
81711         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81712         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81713         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81714         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81715         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81716         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81717         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81718         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81719         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81720         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81721         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81722         (build_charclass, build_charclass_op, fetch_number, create_tree):
81723         (create_token_tree, mark_opt_subexp, duplicate_tree):
81724         Use prototypes rather than old-style definitions.
81725
81726         * lib/regex_internal.c:
81727         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81728         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81729         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81730         (re_string_reconstruct, re_string_peek_byte_case):
81731         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81732         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81733         (re_node_set_init_copy, re_node_set_add_intersect):
81734         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81735         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81736         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81737         (re_acquire_state, re_acquire_state_context, register_state):
81738         (create_ci_newstate, create_cd_newstate, free_state):
81739         Likewise.
81740         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81741         re_search_2):
81742         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81743         (re_search_internal, prune_impossible_nodes):
81744         (acquire_init_state_context, check_matching, static):
81745         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81746         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81747         (update_regs, sift_states_backward, build_sifted_states):
81748         (clean_state_log_if_needed, merge_state_array):
81749         (update_cur_sifted_state, add_epsilon_src_nodes):
81750         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81751         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81752         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81753         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81754         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81755         (check_arrival, check_arrival_add_next_nodes):
81756         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81757         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81758         (check_node_accept_bytes, check_node_accept, extend_buffers):
81759         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81760         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81761         (sift_ctx_init):
81762         Likewise.
81763
81764         * lib/regex_internal.h:
81765         (re_string_allocate, re_string_construct, re_string_reconstruct):
81766         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81767         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81768         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81769         (re_string_context_at, re_string_peek_byte_case):
81770         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81771         is defined, since we now use prototypes always.
81772
81773         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81774         C89 or better.  All uses removed.
81775
81776 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81777
81778         * config/srclist.txt: Add glibc bugs 1220-1227.
81779
81780 2005-08-20  Jim Meyering  <jim@meyering.net>
81781
81782         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81783         of unused local, dfa.
81784
81785 2005-08-20  Bruno Haible  <bruno@clisp.org>
81786
81787         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81788
81789 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81792         (re_node_set_insert_last, re_dfa_add_node):
81793         Rename local variables to avoid GCC shadowing warnings.
81794
81795 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81798         [defined lint]: Suppress bogus uninitialized-variable warnings.
81799
81800         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81801         and let the caller return REG_ESPACE if out of space.  This
81802         removes an uninitialied-variable warning with GCC 4.0.1, and also
81803         avoids taking the address of a local variable.  All callers
81804         changed.
81805
81806 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81807
81808         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81809         $LIBCSRC/posix/regexec.c.
81810         Add glibc bug 1217 for regcomp.c.
81811
81812 2005-08-19  Jim Meyering  <jim@meyering.net>
81813
81814         * lib/regexec.c (proceed_next_node): Redo local variables to
81815         avoid GCC shadowing warnings.
81816
81817 2005-08-18  Bruno Haible  <bruno@clisp.org>
81818
81819         * lib/strstr.c (strstr): Fix return value in multibyte case.
81820         * lib/strcasestr.c (strcasestr): Likewise.
81821
81822 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81825
81826 2005-08-17  Jim Meyering  <jim@meyering.net>
81827
81828         Make the %s format (seconds since the epoch) work for a negative
81829         number and when used with a zero-padded field width, e.g. %015s.
81830
81831         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81832         label so that it precedes the code to set `digits'.  Otherwise,
81833         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81834         print `00-22'.  Now, it prints `-0022', as it should.
81835
81836 2005-08-17  Bruno Haible  <bruno@clisp.org>
81837
81838         * modules/strstr (Files): Add m4/mbrtowc.m4.
81839         (Depends-on): Add mbuiter.
81840
81841 2005-08-17  Bruno Haible  <bruno@clisp.org>
81842
81843         * modules/strcasestr: New file.
81844         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81845         strcasestr.
81846
81847 2005-08-17  Bruno Haible  <bruno@clisp.org>
81848
81849         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81850
81851 2005-08-17  Bruno Haible  <bruno@clisp.org>
81852
81853         * modules/mbuiter: New file.
81854         * MODULES.html.sh (Extended multibyte and wide character utilities):
81855         Add mbuiter.
81856
81857 2005-08-17  Bruno Haible  <bruno@clisp.org>
81858
81859         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81860         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81861
81862 2005-08-17  Bruno Haible  <bruno@clisp.org>
81863
81864         * m4/strcasestr.m4: New file.
81865
81866 2005-08-17  Bruno Haible  <bruno@clisp.org>
81867
81868         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81869         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81870
81871 2005-08-17  Bruno Haible  <bruno@clisp.org>
81872
81873         * lib/strcasestr.h: New file.
81874         * lib/strcasestr.c: New file.
81875
81876 2005-08-17  Bruno Haible  <bruno@clisp.org>
81877
81878         * lib/strcasecmp.c: Use mbuiter.h.
81879
81880 2005-08-17  Bruno Haible  <bruno@clisp.org>
81881
81882         * lib/mbuiter.h: New file.
81883
81884 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81885
81886         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81887         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81888         and gl_GETOPT are both invoked via different paths (as happens
81889         with GNU tar CVS because it uses both argp and getopt), the former
81890         wins.
81891
81892 2005-08-16  Bruno Haible  <bruno@clisp.org>
81893
81894         * modules/tls: New file.
81895         * MODULES.html.sh (Multithreading): Add tls.
81896
81897 2005-08-16  Bruno Haible  <bruno@clisp.org>
81898
81899         * modules/strnlen1: New file.
81900         * MODULES.html.sh (String handling): Add strnlen1.
81901
81902 2005-08-16  Bruno Haible  <bruno@clisp.org>
81903
81904         * modules/strcase (Files): Add m4/mbrtowc.m4.
81905         (Depends-on): Add strnlen1, mbchar.
81906
81907 2005-08-16  Bruno Haible  <bruno@clisp.org>
81908
81909         * modules/mbiter: New file.
81910         * MODULES.html.sh (Extended multibyte and wide character utilities):
81911         Add mbiter.
81912
81913 2005-08-16  Bruno Haible  <bruno@clisp.org>
81914
81915         * modules/mbfile: New file.
81916         * MODULES.html.sh (Extended multibyte and wide character utilities):
81917         Add mbfile.
81918
81919 2005-08-16  Bruno Haible  <bruno@clisp.org>
81920
81921         * modules/mbchar: New file.
81922         * MODULES.html.sh (Extended multibyte and wide character utilities):
81923         New section.
81924
81925 2005-08-16  Bruno Haible  <bruno@clisp.org>
81926
81927         * m4/tls.m4: New file, from GNU gettext.
81928
81929 2005-08-16  Bruno Haible  <bruno@clisp.org>
81930
81931         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81932         always.
81933         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81934
81935 2005-08-16  Bruno Haible  <bruno@clisp.org>
81936
81937         * m4/mbiter.m4: New file.
81938
81939 2005-08-16  Bruno Haible  <bruno@clisp.org>
81940
81941         * m4/mbfile.m4: New file.
81942
81943 2005-08-16  Bruno Haible  <bruno@clisp.org>
81944
81945         * m4/mbchar.m4: New file.
81946
81947 2005-08-16  Bruno Haible  <bruno@clisp.org>
81948
81949         * lib/tls.h: New file, from GNU gettext.
81950         * lib/tls.c: New file, from GNU gettext.
81951
81952 2005-08-16  Bruno Haible  <bruno@clisp.org>
81953
81954         * lib/strnlen1.h: New file.
81955         * lib/strnlen1.c: New file.
81956
81957 2005-08-16  Bruno Haible  <bruno@clisp.org>
81958
81959         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81960         (mbi_init): Update.
81961         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81962         NUL byte, not after it.
81963
81964 2005-08-16  Bruno Haible  <bruno@clisp.org>
81965
81966         * lib/strcase.h (strcasecmp): Add note in comments.
81967         * lib/strncasecmp.c: Use code from strcasecmp.c.
81968         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81969         (strcasecmp): Work correctly in multibyte locales.
81970
81971 2005-08-16  Bruno Haible  <bruno@clisp.org>
81972
81973         * lib/mbiter.h: New file.
81974
81975 2005-08-16  Bruno Haible  <bruno@clisp.org>
81976
81977         * lib/mbfile.h: New file.
81978
81979 2005-08-16  Bruno Haible  <bruno@clisp.org>
81980
81981         * lib/mbchar.h: New file.
81982         * lib/mbchar.c: New file.
81983
81984 2005-08-16  Bruno Haible  <bruno@clisp.org>
81985
81986         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81987         the valid ones. Makes the comparison operations transitive:
81988         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81989         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81990
81991 2005-08-15  Simon Josefsson  <jas@extundo.com>
81992
81993         * modules/ssize_t (License): Change to 'unlimited'.
81994
81995         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81996
81997 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81998
81999         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82000         Add comments for each pending glibc patch.
82001
82002 2005-08-15  Bruno Haible  <bruno@clisp.org>
82003
82004         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82005         __cplusplus is defined.
82006
82007 2005-08-14  Jim Meyering  <jim@meyering.net>
82008
82009         Sync from coreutils.
82010
82011         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82012         Use the hash-table-based cycle-detection code not just when
82013         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82014         Reported by James Youngman in
82015         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82016         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82017         FTS_TIGHT_CYCLE_CHECK.
82018         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82019         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82020         once again.
82021         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82022         * lib/fts.c (fd_safer): Remove decl.
82023         Include fcntl--.h rather than unistd-safer.h
82024         (fts_safe_changedir): Don't call fd_safer; no longer needed
82025         now that we include fcntl--.h.
82026
82027 2005-08-12  Simon Josefsson  <jas@extundo.com>
82028
82029         * modules/getndelim2: Use ssize_t module.
82030         * modules/getnline: Likewise.
82031         * modules/safe-read: Likewise.
82032         * modules/xreadlink: Likewise.
82033
82034         * modules/ssize_t: New file.
82035
82036 2005-08-12  Simon Josefsson  <jas@extundo.com>
82037
82038         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82039
82040 2005-08-12  Simon Josefsson  <jas@extundo.com>
82041
82042         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82043         ssize_t.
82044
82045 2005-08-12  Simon Josefsson  <jas@extundo.com>
82046
82047         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82048         readline, getdelim and check_version.
82049         (Support for systems lacking ISO C 99: Sizes of integer types):
82050         Add size_max.
82051
82052 2005-08-12  Bruno Haible  <bruno@clisp.org>
82053
82054         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82055
82056 2005-08-11  Simon Josefsson  <jas@extundo.com>
82057
82058         * modules/readline: New file.
82059
82060         * modules/strnlen (Files): Add strnlen.h.
82061
82062 2005-08-11  Simon Josefsson  <jas@extundo.com>
82063
82064         * m4/readline.m4: New file.
82065
82066 2005-08-11  Simon Josefsson  <jas@extundo.com>
82067
82068         * lib/readline.h, readline.c: New file.
82069
82070 2005-08-11  Simon Josefsson  <jas@extundo.com>
82071
82072         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82073         gl_AVOID.
82074
82075 2005-08-11  Bruno Haible  <bruno@clisp.org>
82076
82077         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82078
82079 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82080
82081         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82082
82083 2005-08-10  Simon Josefsson  <jas@extundo.com>
82084
82085         * tests/test-iconvme.c: New file.
82086
82087 2005-08-10  Simon Josefsson  <jas@extundo.com>
82088
82089         * m4/strnlen.m4: New file.
82090
82091         * m4/strndup.m4: Don't check for strnlen declaration, done in
82092         strnlen.m4.
82093
82094 2005-08-10  Simon Josefsson  <jas@extundo.com>
82095
82096         * lib/strndup.c: Use strnlen.h.
82097
82098         * lib/strnlen.h: New file.
82099
82100 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82101
82102         * README: Typos.
82103
82104 2005-08-02  Simon Josefsson  <jas@extundo.com>
82105
82106         * modules/readline: New file.
82107
82108 2005-08-02  Simon Josefsson  <jas@extundo.com>
82109
82110         * modules/getdelim: New file.
82111
82112         * modules/getline: Rewrite, don't use getndelim2.
82113
82114 2005-08-02  Simon Josefsson  <jas@extundo.com>
82115
82116         * m4/getline.m4: Separate out getdelim stuff into separate module.
82117
82118         * m4/getdelim.m4: New file.
82119
82120 2005-08-02  Simon Josefsson  <jas@extundo.com>
82121
82122         * lib/getline.h, getline.c: Rewrite.
82123
82124         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82125
82126 2005-07-31  Bruno Haible  <bruno@clisp.org>
82127
82128         * lib/lock.h (gl_lock_initializer): New macro.
82129         (gl_lock_define_initialized): Use it.
82130         (gl_rwlock_initializer): New macro.
82131         (gl_rwlock_define_initialized): Use it.
82132         (gl_recursive_lock_initializer): New macro.
82133         (gl_recursive_lock_define_initialized): Use it.
82134
82135 2005-07-30  Karl Berry  <karl@gnu.org>
82136
82137         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82138         Report from Ben Pfaff, regarding getopt.
82139
82140 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82143         normal way.
82144         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82145         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82146         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82147         (gl_GETOPT): Use the new macros.  Most of the implementation
82148         is moved to the new macros.  This is for programs like Emacs
82149         that don't want all the functionality of gl_GETOPT.
82150
82151 2005-07-26  Bruno Haible  <bruno@clisp.org>
82152
82153         * m4/lock.m4: Update from GNU gettext.
82154
82155 2005-07-26  Bruno Haible  <bruno@clisp.org>
82156
82157         * lib/lock.h: Update from GNU gettext.
82158         * lib/lock.c: Update from GNU gettext.
82159
82160 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82161
82162         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82163         obsolescent AC_TRY_RUN.  Include the default includes files, for
82164         'exit'.
82165
82166 2005-07-24  Bruno Haible  <bruno@clisp.org>
82167
82168         * modules/visibility: New file.
82169         * MODULES.html.sh (Misc): Add visibility.
82170
82171 2005-07-24  Bruno Haible  <bruno@clisp.org>
82172
82173         * m4/visibility.m4: New file.
82174
82175 2005-07-24  Bruno Haible  <bruno@clisp.org>
82176
82177         * doc/visibility.texi: New file.
82178
82179 2005-07-22  Bruno Haible  <bruno@clisp.org>
82180
82181         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82182         $(ALLOCA_H), redundant through BUILT_SOURCES.
82183         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82184         redundant through BUILT_SOURCES.
82185         * modules/byteswap (Makefile.am): Remove explicit dependency on
82186         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82187         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82188         $(FNMATCH_H), redundant through BUILT_SOURCES.
82189         * modules/getopt (Makefile.am): Remove explicit dependency on
82190         $(GETOPT_H), redundant through BUILT_SOURCES.
82191         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82192         redundant through BUILT_SOURCES.
82193         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82194         redundant through BUILT_SOURCES.
82195         * modules/stdbool (Makefile.am): Remove explicit dependency on
82196         $(STDBOOL_H), redundant through BUILT_SOURCES.
82197         * modules/stdint (Makefile.am): Remove explicit dependency on
82198         $(STDINT_H), redundant through BUILT_SOURCES.
82199         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82200         Remove explicit dependency on $(SYSEXITS_H).
82201         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82202
82203 2005-07-18  Simon Josefsson  <jas@extundo.com>
82204
82205         * lib/check-version.c (check_version): Accept identical versions too.
82206
82207 2005-07-18  Bruno Haible  <bruno@clisp.org>
82208
82209         * modules/lock: New file.
82210         * MODULES.html.sh (Multithreading): New section.
82211
82212 2005-07-18  Bruno Haible  <bruno@clisp.org>
82213
82214         * m4/lock.m4: New file, from GNU gettext.
82215
82216 2005-07-18  Bruno Haible  <bruno@clisp.org>
82217
82218         * lib/lock.h: New file, from GNU gettext.
82219         * lib/lock.c: New file, from GNU gettext.
82220
82221 2005-07-18  Bruno Haible  <bruno@clisp.org>
82222
82223         * lib/lock.h (gl_once_t): New type.
82224         (gl_once_define, gl_once): New macros.
82225         * lib/lock.c (fresh_once): New variable.
82226         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82227         functions.
82228
82229 2005-07-16  Simon Josefsson  <jas@extundo.com>
82230
82231         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82232         workaround, suggested by Bruno.
82233
82234 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82235
82236         * modules/xalloc (Depends-on): Add xalloc-die.
82237         * modules/xvasprintf (Depends-on): Add xalloc-die.
82238
82239 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82240
82241         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82242         with a minor change.
82243
82244 2005-07-15  Bruno Haible  <bruno@clisp.org>
82245
82246         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82247         When using lib/poll.c, define poll as rpl_poll.
82248
82249 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82250
82251         * modules/argp (Depends-on): Remove unlocked-io.
82252
82253 2005-07-14  Derek Price  <derek@ximbiot.com>
82254
82255         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82256         for glob symlink bug.
82257
82258 2005-07-14  Bruno Haible  <bruno@clisp.org>
82259
82260         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82261         Instead, test for *_unlocked function declarations directly.
82262
82263 2005-07-11  Simon Josefsson  <jas@extundo.com>
82264
82265         * modules/size_max: New file.
82266
82267         * modules/xsize: Depend on size_max module for size_max.m4.
82268
82269 2005-07-11  Simon Josefsson  <jas@extundo.com>
82270
82271         * lib/size_max.h: New file.
82272
82273 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82276         copyright symbol and the year.
82277         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82278         (version_etc_va): Use parameterized copyright notice.
82279         Reword to conform to the current GNU coding standards.
82280
82281 2005-07-11  Karl Berry  <karl@gnu.org>
82282
82283         * doc/gnulib.texi (Quoting): new node.
82284         (Initial import): more info, from Patrice.
82285
82286 2005-07-11  Bruno Haible  <bruno@clisp.org>
82287
82288         * gnulib-tool (func_usage): Document option --avoid.
82289         (Command line options): Handle --avoid.
82290         (func_acceptable): New function.
82291         (func_modules_transitive_closure): Use it.
82292
82293 2005-07-11  Bruno Haible  <bruno@clisp.org>
82294
82295         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82296         Reported by Jim Meyering.
82297
82298 2005-07-10  Bruno Haible  <bruno@clisp.org>
82299
82300         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82301         Needed when size_t is smaller than 'unsigned int'.
82302         Reported by Paul Eggert.
82303
82304 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82305
82306         * modules/argp (Depends-on): Add unlocked-io
82307
82308 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82309
82310         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82311         block of defines.
82312
82313 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82314
82315         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82316         fix now.
82317
82318 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82319         and Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82322         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82323
82324 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82325
82326         * modules/regex (Files): Add lib/regex_internal.c,
82327         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82328         (Depends-on): Add extensions.
82329         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82330
82331 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82332
82333         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82334         pathconf.
82335         * m4/same.m4 (gl_SAME): Likewise.
82336         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82337
82338         * m4/regex.m4: Adjust to new libc regex implementation.
82339         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82340         all the .c and .h parts of (the new) regex.
82341         Quote the m4 stuff better.
82342         Check for RE_ICASE bug of old gnulib.
82343         Check for REG_STARTEND of recent libc.
82344         Rename local variables from jm_* to gl_*.
82345         Quote operand of "test -f".
82346         Say "recent enough" version of libc, not "version 2".
82347         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82348         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82349         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82350         Remove check for btowc, isascii.
82351         Require AM_LANGINFO_CODESET.
82352
82353 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82354
82355         * lib/regex.c, regex.h: Sync from libc.
82356         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82357         * lib/regexec.c:
82358         New files, synced from libc, except that regex_internal.h
82359         currently has a small porting fix.
82360
82361 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82364         regex_internal.c, regexec.c.
82365         Add regex_internal.h too, but as a comment, since the libc version
82366         is currently broken in gnulib mode.
82367
82368 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82369
82370         Support programs like Emacs that use gnulib but not gettext.
82371         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82372         * modules/gettext-h: New file.
82373         * modules/gettext (Files): Remove lib/gettext.h.
82374         (Depends-on): Add gettext-h.
82375         (Makefile.am): Remove lib_SOURCES.
82376         * modules/argmatch, modules/c-stack, modules/closeout:
82377         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82378         * modules/execute, modules/file-type, modules/getaddrinfo:
82379         * modules/getopt, modules/human, modules/javacomp:
82380         * modules/javaexec, modules/mkdir-p, modules/obstack:
82381         * modules/openat, modules/pagealign_alloc, modules/pipe:
82382         * modules/quotearg, modules/regex, modules/rpmatch:
82383         * modules/unicodeio, modules/userspec, modules/version-etc:
82384         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82385         * modules/xsetenv:
82386         Depend on gettext-h, not gettext.
82387
82388 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82389
82390         * gnulib-tool (func_import): Add support for 'public domain' license.
82391         * modules/alloca, modules/atexit, modules/memmove:
82392         Now public domain, not GPL.
82393         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82394         * modules/realloc, modules/strerror, modules/strtod:
82395         Now LGPL, not GPL.
82396
82397 2005-07-05  Bruno Haible  <bruno@clisp.org>
82398
82399         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82400         autoconf CVS. Needed for mingw.
82401
82402 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82403
82404         Remove the dependency of the strftime module on the tzset module.
82405         * modules/strftime (Depends-on): Remove dependency on tzset.
82406
82407 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82408
82409         Remove the dependency of the strftime module on the tzset module.
82410         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82411         gl_FUNC_TZSET_CLOBBER.
82412
82413 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82414
82415         Remove the dependency of the strftime module on the tzset module.
82416         * lib/strftime.c (my_strftime)
82417         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82418         Copy the input structure, to work around some of the bug with
82419         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82420         Solaris releases, you should also use the tzset module, but we won't
82421         require it as a dependency any more since we don't want LGPLed code
82422         to depend on GPLed code.
82423
82424 2005-07-02  Jim Meyering  <jim@meyering.net>
82425
82426         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82427         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82428         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82429         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82430
82431 2005-07-02  Jim Meyering  <jim@meyering.net>
82432
82433         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82434
82435 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82436
82437         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82438         declares only 'struct timespec;' (!).
82439
82440 2005-07-01  Jim Meyering  <jim@meyering.net>
82441
82442         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82443         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82444         * lib/save-cwd.c, tempname.c:
82445         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82446         and don't include <sys/file.h>).
82447
82448 2005-06-29  Jim Meyering  <jim@meyering.net>
82449
82450         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82451         type name.  Use the variable name instead.
82452         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82453         Likewise.
82454
82455 2005-06-28  Simon Josefsson  <jas@extundo.com>
82456
82457         * modules/check-version (Files): Add check-version.m4.
82458
82459 2005-06-28  Simon Josefsson  <jas@extundo.com>
82460
82461         * m4/check-version.m4: New file, suggested by Jim Meyering
82462         <jim@meyering.net>.
82463
82464 2005-06-28  Simon Josefsson  <jas@extundo.com>
82465
82466         * lib/check-version.h, lib/check-version.c: New files.
82467
82468 2005-06-28  Simon Josefsson  <jas@extundo.com>
82469
82470         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82471         collision with global variable.  Better indentation.  Don't
82472         increment buffer pointer beyond buffer end.  Based on comments
82473         from Paul Eggert <eggert@cs.ucla.edu>.
82474
82475         * lib/base64.h: Indent.
82476
82477 2005-06-28  Simon Josefsson  <jas@extundo.com>
82478
82479         * doc/gnulib.texi (Library version handling): New section.
82480
82481 2005-06-28  Jim Meyering  <jim@meyering.net>
82482
82483         * check-module (find_included_lib_files): Hard-code another
82484         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82485         but modules/fts-lgpl (correctly) does not list those files.
82486
82487         * modules/canonicalize (Files): Add lib/pathmax.h.
82488
82489 2005-06-25  Simon Josefsson  <jas@extundo.com>
82490
82491         * modules/check-version: New file.
82492
82493 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82496         initializer of struct addrinfo, as an indication that we don't
82497         care how many members the structure has.
82498
82499 2005-06-24  Derek Price  <derek@ximbiot.com>
82500         and Bruno Haible  <bruno@clisp.org>
82501
82502         Remove stat module & update lstat.
82503         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82504         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82505         * m4/stat.m4: Remove this file.
82506
82507 2005-06-24  Derek Price  <derek@ximbiot.com>
82508         and Bruno Haible  <bruno@clisp.org>
82509
82510         Remove stat module & update lstat.
82511         * lib/stat.c: Remove this file...
82512         (slash_aware_lstat): ...moving this content and its support...
82513         * lib/lstat.c (rpl_lstat): ...into here.
82514         * lib/lstat.h: New file.
82515
82516 2005-06-24  Derek Price  <derek@ximbiot.com>
82517         and Bruno Haible  <bruno@clisp.org>
82518
82519         Remove stat module & update lstat.
82520         * config/srclist.txt (libc sources): Remove stat.
82521
82522 2005-06-24  Derek Price  <derek@ximbiot.com>
82523         and Bruno Haible  <bruno@clisp.org>
82524
82525         Remove stat module & update lstat.
82526         * MODULES.html.sh (stat): Remove.
82527         * MODULES.html: Regenerated.
82528         * modules/lstat (Description): Correct function name.
82529         (Files): Add "lstat.h".
82530         (Depends-on): Remove stat, add xalloc, stat-macros.
82531         * modules/stat: Remove this file.
82532         (Include): Add "lstat.h", remove <sys/stat.h>.
82533
82534 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82535
82536         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82537         (ranged_convert): Don't save conversion in a temporary struct.
82538         This causes a warning with GCC 4.0.0, and anyway in the typical
82539         case it's not worth the extra 100 bytes or so of code.
82540         (ranged_convert, __mktime_internal): When calling a function via a
82541         pointer P, use P () rather than (*P) (), as we now assume C89 or
82542         better.
82543
82544 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82545
82546         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82547         "who -r" failed to give output.  Problem reported by Tim Waugh.
82548
82549         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82550         (xcalloc): Use it to avoid needless tests.
82551         Problem reported by Jim Meyering.
82552
82553 2005-06-20  Derek Price  <derek@ximbiot.com>
82554
82555         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82556         unnecessary for Autoconfs > 2.59c.
82557
82558 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82559
82560         * lib/argp.h (__option_is_short): Check upper limit of
82561         __key. Isprint() requires its argument to have the value
82562         of an unsigned char or EOF.
82563
82564 2005-06-16  Jim Meyering  <jim@meyering.net>
82565
82566         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82567         when either N or S is zero.
82568
82569 2005-06-16  Derek Price  <derek@ximbiot.com>
82570
82571         * m4/bison.m4: Declare YACC & YFLAGS precious.
82572
82573 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82576         multibyte string or pattern, fall back on unibyte matching.
82577         Problem reported by James Youngman.
82578
82579 2005-06-08  Bruno Haible  <bruno@clisp.org>
82580
82581         * modules/csharpcomp: New file.
82582         * MODULES.html.sh (C#): Add csharpcomp.
82583
82584 2005-06-08  Bruno Haible  <bruno@clisp.org>
82585
82586         * m4/csharpcomp.m4: New file, from GNU gettext.
82587
82588 2005-06-08  Bruno Haible  <bruno@clisp.org>
82589
82590         * lib/csharpcomp.h: New file, from GNU gettext.
82591         * lib/csharpcomp.c: New file, from GNU gettext.
82592         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82593
82594 2005-06-08  Bruno Haible  <bruno@clisp.org>
82595
82596         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82597         warning on mingw.
82598
82599 2005-06-07  Derek Price  <derek@ximbiot.com>
82600
82601         Sync from CVS.
82602         * lib/glob_.h: Indent nested #ifdef.
82603
82604 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82605
82606         Sync from coreutils.
82607         Use "file name" when talking about file names, instead of "filename"
82608         or "path", as per the GNU coding standards.
82609         * lib/mkdir-p.c: Renamed from makepath.c.
82610         (make_dir_parents): Renamed from make_path.  All callers changed.
82611         * lib/mkdir-p.h: Likewise.  All includers changed.
82612         * lib/filenamecat.c: Renamed from path-concat.c.
82613         (file_name_concat): Renamed from path_concat.  All callers changed.
82614         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82615         * lib/filenamecat.h: Likewise.  All includers changed.
82616         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82617         in comments or local variable names.
82618         * lib/basename.c: Likewise.
82619         * lib/canonicalize.c, canonicalize.h: Likewise.
82620         * lib/dirname.c, dirname.h: Likewise.
82621         * lib/euidaccess.c: Likewise.
82622         * lib/exclude.c: Likewise
82623         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82624         * lib/fsusage.c, fsuage.h: Likewise.
82625         * lib/fts.c, fts_.h: Likewise.
82626         * lib/getcwd.c: Likewise.
82627         * lib/getloadavg.c: Likewise.
82628         * lib/mkstemp.c: Likewise.
82629         * lib/mountlist.c, mountlist.h: Likewise.
82630         * lib/openat.c, openat.h: Likewise.
82631         * lib/readlink-stub.c: Likewise.
82632         * lib/readutmp.c, readutmp.h: Likewise.
82633         * lib/rename.c: Likewise.
82634         * lib/rmdir.c: Likewise.
82635         * lib/same.c: Likewise.
82636         * lib/savedir.c: Likewise.
82637         * lib/stripslash.c: Likewise.
82638         * lib/tempname.c: Likewise.
82639         * lib/xreadlink.c: Likewise.
82640         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82641         All uses changed.
82642         * lib/exclude.h: Likewise.
82643
82644         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82645         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82646         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82647         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82648         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82649         files have been getting away with it for years (MORE/BSD 4.3
82650         is extinct now).
82651         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82652         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82653
82654         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82655         Define to 256, not 255, as per modern POSIX.
82656
82657 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82658
82659         Sync from coreutils.
82660         Use "file name" when talking about file names, instead of "filename"
82661         or "path", as per the GNU coding standards.
82662         * MODULES.html.sh: mkdir-p renamed from makepath.
82663         filenamecat renamed from path-concat.
82664         * modules/filenamecat: Renamed from modules/path-concat.
82665         (Files): filenamecat.h and filenamecat.c renamed from
82666         path-concat.h and path-concat.c.
82667         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82668         (Include): filenamecat.h, not path-concat.h.
82669         * modules/mkdir-p: Renamed from modules/makepath.
82670         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82671         makepath.c.
82672         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82673         (Include): mkdir-p.h, not makepath.h.
82674
82675 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82676
82677         Sync from coreutils.
82678         * m4/mkdir-p.m4: Renamed from makepath.m4.
82679         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82680         Rename files from makepath.c to mkdir-p.c, and from
82681         makepath.h to mkdir-p.h.
82682         * m4/filenamecat.m4: Renamed from path-concat.m4.
82683         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82684         Rename files from path-concat.c to filenamecat.c,
82685         and from path-concat.h to filenamecat.h.
82686         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82687         "file name" in local variables or comments.
82688         * m4/rename.m4: Likewise.
82689
82690 2005-06-01  Bruno Haible  <bruno@clisp.org>
82691
82692         * modules/csharpexec: New file.
82693         * MODULES.html.sh (C#): New section.
82694
82695 2005-06-01  Bruno Haible  <bruno@clisp.org>
82696
82697         * m4/csharp.m4: New file, from GNU gettext.
82698         * m4/csharpexec.m4: New file, from GNU gettext.
82699
82700 2005-06-01  Bruno Haible  <bruno@clisp.org>
82701
82702         * lib/csharpexec.h: New file, from GNU gettext.
82703         * lib/csharpexec.c: New file, from GNU gettext.
82704         * lib/csharpexec.sh.in: New file, from GNU gettext.
82705
82706 2005-05-31  Derek Price  <derek@ximbiot.com>
82707             Paul Eggert  <eggert@cs.ucla.edu>
82708
82709         Sync from cvs.
82710         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82711
82712 2005-05-31  Derek Price  <derek@ximbiot.com>
82713             Paul Eggert  <eggert@cs.ucla.edu>
82714
82715         Sync from cvs.
82716         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82717
82718 2005-05-29  Derek Price  <derek@ximbiot.com>
82719
82720         * config/srclist.txt (glob_.h, glob.c): Add these files.
82721
82722 2005-05-29  Derek Price  <derek@ximbiot.com>
82723
82724         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82725         * modules/glob: New file.
82726         * modules/getlogin_r: Add link to POSIX spec in description.
82727
82728 2005-05-29  Derek Price  <derek@ximbiot.com>
82729             Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         * m4/glob.m4: New file.
82732
82733 2005-05-29  Derek Price  <derek@ximbiot.com>
82734             Paul Eggert  <eggert@cs.ucla.edu>
82735
82736         * lib/glob_.h, lib/glob.c: New files.
82737
82738 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82739
82740         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82741         * modules/fts-lgpl (Depends-on): Remove gettext.
82742
82743 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82746         and don't require gt_INTTYPES_PRI.
82747
82748 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82749
82750         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82751
82752         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82753         the configuration hassle isn't worth it.
82754         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82755         (LONGEST_MODIFIER, PRIuMAX): Remove.
82756
82757 2005-05-27  Bruno Haible  <bruno@clisp.org>
82758
82759         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82760
82761 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82762
82763         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82764         _POSIX_PTHREAD_SEMANTICS for Solaris.
82765
82766 2005-05-25  Derek Price  <derek@ximbiot.com>
82767
82768         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82769
82770 2005-05-25  Derek Price  <derek@ximbiot.com>
82771             Paul Eggert  <eggert@cs.ucla.edu>
82772
82773         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82774         * lib/getlogin_r.c, getlogin_r.h: New files.
82775
82776 2005-05-25  Bruno Haible  <bruno@clisp.org>
82777             Derek Price  <derek@ximbiot.com>
82778
82779         * lib/getlogin_r.h: Simplify API documentation.
82780
82781 2005-05-23  Derek Price  <derek@ximbiot.com>
82782
82783         * modules/minmax (Files): Add m4/minmax.m4.
82784         (configure.ac): Add gl_MINMAX.
82785
82786 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82787
82788         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82789         so that unistd-safer.h (GPL'ed code) need not be included.
82790
82791 2005-05-22  Bruno Haible  <bruno@clisp.org>
82792
82793         * m4/minmax.m4: New file.
82794         Based on a patch by Derek Price <derek@ximbiot.com>.
82795
82796 2005-05-22  Bruno Haible  <bruno@clisp.org>
82797
82798         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82799         (INT64_MIN): Fix definition.
82800         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82801
82802         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82803         NEED_SIGNED_INT_TYPES.
82804
82805         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82806         HAVE_SYSTEM_INTTYPES.
82807
82808 2005-05-22  Bruno Haible  <bruno@clisp.org>
82809
82810         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82811         Also include <sys/param.h> if it defines MIN, MAX.
82812         Based on a patch by Derek Price <derek@ximbiot.com>.
82813
82814 2005-05-21  Jim Meyering  <jim@meyering.net>
82815
82816         * modules/fts (Files): Add m4/inttypes-pri.m4.
82817         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82818
82819 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         New fts module.
82822         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82823         (setup_dir, free_dir): New functions.
82824         (enter_dir, leave_dir): Define trivial
82825         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82826         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82827         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82828         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82829         Move to fts-cycle.c.
82830         (fts_open): Use setup_dir.
82831         (fts_close): Use free_dir.
82832         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82833         This adds a label and some gotos, but the alternatives were messier.
82834         Check for memory allocation failure when entering a dir.
82835         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82836         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82837         (FTS): New member fts_cycle, that is a union that contains the
82838         old active_dir_ht and cycle_state.  All uses changed to mention
82839         fts_cycle.ht and fts_cycle.state.
82840         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82841         fts.c, with the following changes:
82842         (setup_dir, free_dir): New functions.
82843         (enter_dir): Now returns bool.  Return true if successful, false
82844         if memory exhausted.  All callers changed.
82845         Do not bother partly cleaning up on
82846         memory allocation failure; that is free_dir's job.
82847         However, free ad if hash_insert fails, to avoid memory leak.
82848         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82849         fts->fts_options to see which union member to use.
82850
82851 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82852
82853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82854         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82855
82856 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82857
82858         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82859
82860 2005-05-20  Jim Meyering  <jim@meyering.net>
82861
82862         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82863         Now a macro, to pacify GCC.
82864
82865 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82866
82867         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82868         of -1.
82869
82870 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82871
82872         * lib/chown.c (rpl_chown): Return -1 on failure.
82873
82874 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82875
82876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82877         Don't check for stddef.h.
82878         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82879         don't use its results.
82880         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82881         since we include them unconditionally.  Don't require
82882         AM_STDBOOL_H, since stdbool is a prerequisite.
82883         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82884         since we assume C89 or better.
82885         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82886         as we don't use their results.
82887         Don't check for fchdir, memmove, memset, strrchr, as we use
82888         them unconditionally.
82889         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82890         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82891
82892 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82893
82894         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82895         Include <stddef.h> unconditionally, since we assume C89 now.
82896         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82897         * lib/fts.c: Include fts_.h first, to check interface.
82898         Do not include intprops.h; no longer needed.
82899         Include cycle-check.h and hash.h, since fts_.h no longer does.
82900         Remove unnecessary casts of closedir to void.
82901         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82902         decide whether to decrement nlinks.
82903         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82904         (FTS): Use struct hash_table * instead of Hash_table, so that
82905         we no longer need to include hash.h here.
82906
82907 2005-05-18  Jim Meyering  <jim@meyering.net>
82908
82909         * modules/dirfd (License): Change to LGPL.  Most of the code
82910         is already in the public domain.
82911
82912 2005-05-18  Jim Meyering  <jim@meyering.net>
82913
82914         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82915         Reported by Yoann Vandoorselaere.
82916
82917 2005-05-17  Jim Meyering  <jim@meyering.net>
82918
82919         * m4/fts.m4: New file, from coreutils.
82920
82921 2005-05-17  Jim Meyering  <jim@meyering.net>
82922
82923         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82924
82925 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82926
82927         Sync from coreutils.
82928         * m4/unlinkdir.m4: New file.
82929
82930 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         Sync from coreutils.
82933         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82934         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82935         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82936         White space changes only.
82937         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82938         special.
82939         * lib/yesno.c: Include getline.h, not ctype.h.
82940         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82941         Use getline to remove arbitrary restriction on response length.
82942
82943 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82944
82945         * config/srclist-update: Spell out "Street" in FSF postal
82946         mail address; this is the style the FSF seems to prefer.
82947
82948         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82949         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82950         this updates FSF postal mail address.
82951
82952         Sync from coreutils.
82953         * modules/unlinkdir: New file.
82954         * modules/yesno (Depends-on): Add getline.
82955         * MODULES.html.sh (File system functions): Add unlinkdir.
82956
82957 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82958
82959         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82960         lib/strsep.h:
82961         Change the initial comment to refer to GPL, not LGPL.
82962         gnulib-tool will change it to LGPL as needed.
82963
82964         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82965         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82966         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82967         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82968         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82969         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82970         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82971         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82972         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82973         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82974         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82975         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82976         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82977         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82978         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82979         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82980         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82981         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82982         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82983         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82984         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82985         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82986         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82987         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82988         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82989         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82990         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82991         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82992         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82993         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82994         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82995         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82996         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82997         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82998         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82999         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83000         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83001         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83002         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83003         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83004         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83005         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83006         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83007         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83008         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83009         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83010         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83011         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83012         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83013         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83014         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83015         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83016         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83017         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83018         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83019         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83020         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83021         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83022         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83023         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83024         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83025         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83026         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83027         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83028         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83029         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83030         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83031         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83032         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83033         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83034         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83035         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83036         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83037         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83038         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83039         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83040         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83041         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83042         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83043         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83044         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83045         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83046         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83047         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83048         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83049         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83050         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83051         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83052         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83053         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83054         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83055         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83056         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83057         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83058         lib/yesno.c, lib/yesno.h:
83059         Update FSF postal mail address.
83060
83061 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83062
83063         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83064         tests/test-memmem.c, tests/test-stpncpy.c:
83065         Update FSF postal mail address.
83066
83067 2005-05-13  Bruno Haible  <bruno@clisp.org>
83068
83069         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83070         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83071         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83072         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83073         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83074         Add support for 64-bit integers in the MSVC compiler.
83075
83076 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83077
83078         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83079
83080 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83081
83082         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83083
83084 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83085
83086         * doc/getdate.texi (General date syntax): Don't say that date
83087         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83088         Problem reported by Nic Ferrier.
83089
83090 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83091
83092         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83093         specified in ai_socktype. Fix invalid ai_protocol
83094         check. ai_protocol is usually set to 0 or depending on
83095         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83096         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83097         ai_socktype / ai_protocol in the returned addrinfo structure.
83098
83099 2005-05-10  Simon Josefsson  <jas@extundo.com>
83100
83101         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83102         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83103
83104 2005-05-10  Karl Berry  <karl@gnu.org>
83105
83106         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83107         (from http://www.gnu.org/licenses).
83108         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83109         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83110         fdl.texi suffices.
83111
83112 2005-05-10  Karl Berry  <karl@gnu.org>
83113
83114         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83115         (COPYING.DOC): remove.
83116
83117         * config/srclist-update: new FSF address.
83118
83119 2005-05-10  Derek Price  <derek@ximbiot.com>
83120
83121         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83122         possible.
83123
83124 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83125             Bruno Haible  <bruno@clisp.org>
83126
83127         * modules/inet_ntop: New file.
83128         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83129         inet_ntop.
83130
83131 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83132             Bruno Haible  <bruno@clisp.org>
83133
83134         * m4/inet_ntop.m4: New file.
83135
83136 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83137             Bruno Haible  <bruno@clisp.org>
83138
83139         * lib/inet_ntop.h: New file.
83140         * lib/inet_ntop.c: New file, from glibc with modifications.
83141
83142 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83143
83144         * modules/time_r (License): Change to LGPL.
83145         * modules/extensions (License): Change to LGPL.  Actually,
83146         the license is more permissive than that, but currently gnulib-tool
83147         doesn't know how to handle more-permissive licenses.
83148
83149         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83150         Problem reported by Dave Love.
83151
83152 2005-05-08  Jim Meyering  <jim@meyering.net>
83153
83154         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83155         blank.
83156
83157 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         * modules/argmatch (Depends-on): Add stdbool.
83160         * modules/backupfile (Depends-on): Likewise.
83161         * modules/chdir-long (Depends-on): Likewise.
83162         * modules/closeout (Depends-on): Likewise.
83163         * modules/cycle-check (Depends-on): Likewise.
83164         * modules/dirname (Depends-on): Likewise.
83165         * modules/fnmatch (Depends-on): Likewise.
83166         * modules/fsusage (Depends-on): Likewise.
83167         * modules/fwriteerror (Depends-on): Likewise.
83168         * modules/getcwd (Depends-on): Likewise.
83169         * modules/getloadavg (Depends-on): Likewise.
83170         * modules/hard-locale (Depends-on): Likewise.
83171         * modules/makepath (Depends-on): Likewise.
83172         * modules/mountlist (Depends-on): Likewise.
83173         * modules/nanosleep (Depends-on): Likewise.
83174         * modules/posixtm (Depends-on): Likewise.
83175         * modules/quotearg (Depends-on): Likewise.
83176         * modules/readtokens (Depends-on): Likewise.
83177         * modules/readtokens0 (Depends-on): Likewise.
83178         * modules/readutmp (Depends-on): Likewise.
83179         * modules/save-cwd (Depends-on): Likewise.
83180         * modules/strftime (Depends-on): Likewise.
83181         * modules/userspec (Depends-on): Likewise.
83182         * modules/utimecmp (Depends-on): Likewise.
83183         * modules/xgetcwd (Depends-on): Likewise.
83184         * modules/xnanosleep (Depends-on): Likewise.
83185         * modules/xstrtod (Depends-on): Likewise.
83186         * modules/yesno (Depends-on): Likewise.
83187
83188 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83189
83190         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83191         needless checks.
83192
83193 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83194
83195         Merge from coreutils.  Among other things,
83196         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83197         * lib/fd-safer.c: New file.
83198         * lib/fcntl-safer.h, open-safer.c: Remove.
83199         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83200         * lib/dup-safer.c: Include unistd-safer.h first.
83201         Don't include errno.h.
83202         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83203         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83204         * lib/file-type.c: Rely on file-type.h change.
83205         * lib/getloadavg.c: Include unistd-safer.h.
83206         (getloadavg): Use safer open.
83207         * lib/getusershell.c: Include "stdio-safer.h".
83208         (getusershell): Use safer fopen.
83209         * lib/long-options.c (long_options): Use NULL rather than 0.
83210         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83211         'free'.
83212         * lib/modechange.c: Likewise.
83213         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83214         (MODE_DONE): New constant.
83215         (struct mode_change): Remove 'next' member.
83216         (make_node_op_equals): New function; like the old one of the
83217         same name, except it allocates an array.
83218         (mode_compile, mode_create_from_ref): Use it.
83219         (mode_compile): Allocate result as an array, not a linked list.
83220         Parse octal string ourself, so that we catch mistakes like "+0".
83221         (mode_adjust): Arg is an array, not a linked list.
83222         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83223         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83224         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83225         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83226         Remove.  This is now stat-macros.h's job.
83227         (talloc): Remove.  All callers replaced by xalloc, so that
83228         our invokers don't have to worry about reporting memory failures.
83229         (make_node_op_equals): Remove.
83230         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83231         New constants.
83232         (struct mode_change): Moved here from modechange.h.
83233         (mode_append_entry): Remove.
83234         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83235         apps to have incorrect behavior.  Use simpler algorithm for head
83236         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83237         Detect more invalid usages rather than having somewhat-random behavior.
83238         Don't insert an "a=" action, as that leads to incorrect behavior.
83239         (mode_compile, mode_create_from_ref): Return NULL on error instead
83240         of an enum, since now there's only one way to have an error.  All
83241         callers changed.
83242         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83243         at the correct time.  Simplify calculation of "+u" and its ilk.
83244         Don't mishandle "+X".
83245         (mode_free): Remove "register" and localize decls.
83246         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83247         (struct mode_change): Move to modechange.c; callers don't
83248         need to see this stuff.
83249         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83250         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83251         (mode_change, mode_adjust): Reflect the new signatures noted above.
83252         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83253         that might redefine system include files.
83254         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83255         (my_usleep): Use NULL rather than (void *) 0.
83256         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83257         Use siginterrupt to specify that system calls should be interrupted.
83258         (rpl_nanosleep): Move initialization of suspended closer to call of
83259         my_usleep.
83260         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83261         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83262         (desirable_utmp_entry): New function.
83263         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83264         using x2nrealloc, to simplify logic.
83265         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83266         size calculation.  Do not assume utmp file is a regular file.
83267         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83268         (READ_UTMP_CHECK_PIDS): New constant.
83269         * lib/save-cwd.c: Include unistd-safer.h.
83270         (save_cwd): Use fd_safer.
83271         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83272         [!_LIBC] Include "stat-macros.h" instead.
83273         * lib/unistd-safer.h (fd_safer): New decl.
83274
83275 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83276
83277         * modules/getloadavg (Depends-on): Add unistd-safer.
83278         * modules/getusershell (Depends-on): Add stdio-safer.
83279         * modules/lstat (Depends-on): Remove xalloc.
83280         * modules/mkstemp (Depends-on): Add stat-macros.
83281         * modules/modechange (Depends-on): Remove xstrtol.
83282         Add stat-macros, xalloc.
83283         * modules/save-cwd (Depends-on): Add unistd-safer.
83284         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83285         * modules/unistd-safer (Files): Add lib/fd-safer.c
83286         (Makefile.am): Remove lib_SOURCES.
83287
83288         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83289         Remove fcntl-safer; unistd-safer supersedes it.
83290
83291 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83292
83293         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83294         AC_HEADER_STAT.
83295         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83296         (gl_PREREQ_CHOWN): Remove.
83297         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83298         it.  Don't require AC_HEADER_STAT.
83299         (gl_PREREQ_LSTAT): Remove.
83300         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83301         Don't require AC_HEADER_STAT.
83302         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83303         (gl_PREREQ_RMDIR): Remove.
83304         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83305         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83306         the stat-macros module a prerequisite.
83307         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83308         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83309         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83310         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83311         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83312         variable names.
83313         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83314         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83315         variable prefixes.
83316         * m4/fcntl-safer.m4: Remove.
83317         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83318         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83319         Invoke gl_PREREQ_FD_SAFER.
83320         (gl_PREREQ_FD_SAFER): New macro.
83321         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83322         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83323         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83324         Remove duplicate call to AC_LIBOBJ(readutmp).
83325         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83326
83327         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83328         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83329
83330 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83331
83332         * MODULES.html.sh (Misc): Add byteswap.
83333
83334 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83335
83336         * modules/getcwd (Depends-on): Add extensions.
83337         * modules/openat (Depends-on): Likewise.
83338
83339 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83340
83341         * modules/byteswap: New file.
83342
83343 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83344
83345         * m4/byteswap.m4: New file.
83346
83347 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83348
83349         * lib/byteswap_.h: New file.
83350
83351 2005-04-25  Karl Berry  <karl@gnu.org>
83352
83353         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83354
83355 2005-04-25  Albert Chin  <china@thewrittenword.com>
83356
83357         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83358         Toolkit C bug.
83359
83360 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83361
83362         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83363         (func_ln_if_changed): Remove forcibly for no error message
83364         in case file does not exist.
83365
83366 2005-04-19  Simon Josefsson  <jas@extundo.com>
83367
83368         * gnulib-tool (Options): Make --symlink mean --symbolic.
83369
83370 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83371
83372         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83373
83374 2005-04-16  Simon Josefsson  <jas@extundo.com>
83375
83376         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83377
83378 2005-04-15  Simon Josefsson  <jas@extundo.com>
83379
83380         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83381
83382 2005-04-15  Simon Josefsson  <jas@extundo.com>
83383
83384         * gnulib-tool: Rename --symlink to --symbolic.
83385
83386 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83387
83388         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83389         symbolic links to files instead of copying/moving.  Add --aux-dir,
83390         specifying directory relative --dir where auxiliary build tools
83391         are placed.
83392
83393 2005-04-14  Bruno Haible  <bruno@clisp.org>
83394
83395         * modules/allocsa (License): Change to LGPL.
83396         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83397
83398 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83399
83400         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83401         that "UTC +1 second" continues to work.  Problem reported
83402         by Dmitry V. Levin.
83403         (relunit_snumber): New rule.
83404         (relunit): Use it.
83405
83406 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * lib/getdate.y (universal_time_zone_table): New constant.
83409         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83410         universal_time_zone_table.
83411         (lookup_zone): Prefer universal_time_zone_table to
83412         local_time_zone_table, so that "GMT" time stamps are allowed in
83413         London during the summer.  Problem reported by Ian Abbott.
83414
83415 2005-04-12  Jim Meyering  <jim@meyering.net>
83416
83417         * lib/human.c (humblock): Set *options even when returning due to
83418         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83419         warning from gcc-4.
83420
83421 2005-04-09  Jim Meyering  <jim@meyering.net>
83422
83423         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83424         -Wuninitialized: initialize tm0.tm_year.
83425
83426 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83427
83428         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83429         count, since there's no maximum.  All uses changed.
83430         Add member dsts_seen.
83431         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83432         not being INT_MAX.
83433         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83434         Use pc_rels_seen to decide whther a date is absolute.
83435
83436         * lib/getdate.y (number): Don't overwrite year.
83437         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83438         check.
83439
83440 2005-04-02  Simon Josefsson  <jas@extundo.com>
83441
83442         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83443         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83444
83445 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83446
83447         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83448         where no absolute path name can be longer than PATH_MAX.
83449
83450 2005-03-27  Jim Meyering  <jim@meyering.net>
83451
83452         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83453
83454 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83455
83456         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83457         "one's complement" -> "ones' complement" in comment, as per Knuth.
83458         "value of type" -> "type or expression" in comment.
83459         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83460
83461 2005-03-26  Jim Meyering  <jim@meyering.net>
83462
83463         Comment nits.
83464         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83465         Correct typos: s/or/of/.
83466
83467 2005-03-26  Jim Meyering  <jim@meyering.net>
83468
83469         * modules/check-include-files: Move to ../ and rename to...
83470         * check-module: ...this.
83471
83472 2005-03-25  Jim Meyering  <jim@meyering.net>
83473
83474         * modules/xvasprintf (Files): Add xalloc.h.
83475
83476 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         * modules/gettext (Files): config/config.rpath ->
83479         build-aux/config.rpath
83480         * modules/iconv (Files): Likewise.
83481         Problem reported by Oskar Liljeblad.
83482
83483 2005-03-23  Jim Meyering  <jim@meyering.net>
83484
83485         * modules/check-include-files: New script to check for
83486         missing dependencies, multiple includes, etc.
83487
83488         * modules/c-strtold (Depends-on): Add xalloc.
83489         * modules/c-strtod (Depends-on): Add xalloc.
83490         * modules/hash (Depends-on): Add xalloc.
83491         (Files): Remove lib/xalloc.h.
83492
83493         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83494         * modules/userspec (Files): Add lib/inttostr.h.
83495
83496 2005-03-23  Jim Meyering  <jim@meyering.net>
83497
83498         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83499
83500 2005-03-22  Jim Meyering  <jim@meyering.net>
83501
83502         * modules/stat-macros: New module.
83503         * modules/canonicalize, modules/euidaccess, modules/file-type,
83504         * modules/filemode, modules/lchown, modules/makepath,
83505         * modules/rmdir, modules/stat: Depend on new stat-macros module
83506         rather than listing lib/stat-macros.h manually.
83507         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83508
83509 2005-03-22  Jim Meyering  <jim@meyering.net>
83510
83511         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83512
83513 2005-03-22  Bruno Haible  <bruno@clisp.org>
83514
83515         * config/srclist.txt: Replace target directory 'config' with
83516         'build-aux'.
83517         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83518         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83519         ../build-aux/.
83520
83521 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83522
83523         * modules/chdir-long (Depends-on): Add mempcpy.
83524
83525         * modules/acl, modules/backupfile, modules/c-strtod,
83526         modules/c-strtold, modules/canon-host, modules/canonicalize,
83527         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83528         modules/exclude, modules/exitfail, modules/file-type,
83529         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83530         modules/getdate, modules/getline, modules/getpagesize,
83531         modules/getpass, modules/getugroups, modules/group-member,
83532         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83533         modules/inttostr, modules/long-options, modules/makepath,
83534         modules/md5, modules/memcasecmp, modules/memcoll,
83535         modules/modechange, modules/mountlist, modules/path-concat,
83536         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83537         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83538         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83539         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83540         modules/strftime, modules/strndup, modules/strverscmp,
83541         modules/timespec, modules/unlocked-io, modules/userspec,
83542         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83543         modules/yesno:
83544         Remove lib_SOURCES line from Makefile.am section, as this is now
83545         done automatically by the corresponding Autoconf macro.
83546
83547 2005-03-21  Jim Meyering  <jim@meyering.net>
83548
83549         Changes imported from coreutils.
83550
83551         * lib/cycle-check.c: Don't include xalloc.h.
83552
83553         * lib/path-concat.c: Don't include assert.h.
83554         (path_concat): Remove assertion that would have triggered
83555         for ABASE starting with more than one slash.
83556         Reported by Andreas Schwab.
83557
83558         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83559         properly when ABASE is an absolute file name.
83560         Correct the description of this function.
83561         Include <assert.h>.
83562         Add an assertion and a test driver.
83563         This fixes a bug introduced on 2004-07-02.
83564         Andreas Schwab reported the resulting failure of cp --parents:
83565         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83566
83567 2005-03-21  Jim Meyering  <jim@meyering.net>
83568
83569         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83570         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83571
83572 2005-03-21  Jim Meyering  <jim@meyering.net>
83573         and  Paul Eggert  <eggert@cs.ucla.edu>
83574
83575         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83576         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83577         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83578         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83579         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83580         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83581         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83582         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83583         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83584         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83585         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83586         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83587         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83588         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83589         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83590         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83591         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83592         for these modules.
83593
83594 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83597         (which shouldn't happen), generate nothing instead of returning 0
83598         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83599
83600 2005-03-16  Bruno Haible  <bruno@clisp.org>
83601
83602         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83603         HAVE_LONGLONG_64BIT.
83604
83605 2005-03-16  Bruno Haible  <bruno@clisp.org>
83606
83607         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83608         HAVE_LONGLONG_64BIT.
83609
83610 2005-03-16  Bruno Haible  <bruno@clisp.org>
83611
83612         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83613         HAVE_LONGLONG_64BIT.
83614
83615 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83616
83617         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83618         reliably distinguish strftime failure from empty output on POSIX
83619         hosts.
83620
83621 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83622
83623         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83624         (iconv_string): Don't guess a size-zero buffer, as that might cause
83625         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83626         result would be 'too large', where 'too large' is (heuristically)
83627         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83628         overflow concerns.  This will prevent some unwanted malloc failures
83629         when the inputs are very large.
83630
83631 2005-03-15  Karl Berry  <karl@gnu.org>
83632
83633         * config/srclist.txt (config.rpath): from gettext.
83634         * config/config.rpath: update.
83635
83636 2005-03-15  Bruno Haible  <bruno@clisp.org>
83637
83638         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83639         to 'negate'.
83640
83641         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83642         variable.
83643
83644         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83645         results.
83646
83647 2005-03-14  Simon Josefsson  <jas@extundo.com>
83648
83649         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83650         <fx@gnu.org>.
83651
83652 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83653
83654         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83655         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83656         intprops.h.
83657         * lib/strtol.c: Likewise.
83658
83659 2005-03-14  Jim Meyering  <jim@meyering.net>
83660
83661         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83662         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83663         to be nonzero so that we (and caller) can detect the difference
83664         between a valid zero-length expansion and an error return, even
83665         when the underlying strftime fails before writing anything into
83666         that location.
83667
83668 2005-03-14  Bruno Haible  <bruno@clisp.org>
83669
83670         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83671         Update from GNU gettext 0.14.3.
83672
83673 2005-03-10  Jim Meyering  <jim@meyering.net>
83674
83675         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83676
83677 2005-03-10  Jim Meyering  <jim@meyering.net>
83678
83679         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83680         so that this module works on systems without fchdir.
83681
83682 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83683
83684         Factor int-properties macros into a single file, except for
83685         glibc-related files.
83686         * lib/intprops.h: New file.
83687         * lib/getloadavg.c: Include it instead of limits.h.
83688         (INT_STRLEN_BOUND): Remove.
83689         * lib/human.c: Include intprops.h.
83690         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83691         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83692         302/1000.
83693         * lib/inttostr.h: Include intprops.h instead of limits.h.
83694         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83695         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83696         for consistency with intprops.h.
83697         (time_t_is_integer, twos_complement_arithmetic): Use them.
83698         * lib/sig2str.h: Include <signal.h>, intprops.h.
83699         (INT_STRLEN_BOUND): Remove.
83700         * lib/strftime.c (TYPE_SIGNED): Remove.
83701         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83702         * lib/strtol.c: Adjust comments to match intprops.h.
83703         * lib/userspec.c: Include intprops.h.
83704         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83705         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83706         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83707         instead of rolling our own expressions.
83708         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83709
83710         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83711         instead of int.
83712         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83713         the right thing even if adding 1900 would overflow.  Similarly
83714         for tm_mon + 1 and tm_yday + 1.
83715         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83716         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83717         (DO_SIGNED_NUMBER): New macro.
83718         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83719
83720 2005-03-07  Bruno Haible  <bruno@clisp.org>
83721
83722         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83723
83724 2005-03-07  Bruno Haible  <bruno@clisp.org>
83725
83726         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83727
83728 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83729
83730         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83731         (func_import): Only replace files via --import when they have actually
83732         changed.
83733
83734 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83735
83736         * m4/mmap-anon.m4: New file.
83737         * m4/pagealign_alloc.m4: New file.
83738
83739 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83740             Bruno Haible  <bruno@clisp.org>
83741
83742         * modules/pagealign_alloc: New file.
83743         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83744
83745 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83746             Bruno Haible  <bruno@clisp.org>
83747
83748         * lib/pagealign_alloc.h: New file.
83749         * lib/pagealign_alloc.c: New file.
83750
83751 2005-03-03  Bruno Haible  <bruno@clisp.org>
83752
83753         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83754         Use an all-permissive copyright notice, recommended by RMS.
83755
83756 2005-03-02  Bruno Haible  <bruno@clisp.org>
83757
83758         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83759         of AIX, the replacement has to be done only after <string.h> is
83760         included, therefore not in config.h. stpncpy.h does the replacement,
83761         and stpncpy.c uses it.
83762
83763 2005-03-02  Bruno Haible  <bruno@clisp.org>
83764
83765         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83766         stpncpy.c uses it.
83767
83768 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83769
83770         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83771         The workaround isn't strictly needed for POSIX conformance, and
83772         it's too much of a pain to configure and maintain.  We'll ask
83773         people to fix their kernels instead.
83774         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83775         (NANOSLEEP_BUG_WORKAROUND): Remove.
83776         (xnanosleep): Remove the workaround.
83777
83778 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83779
83780         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83781         Reported by Derek Price.
83782         (Include): Add "timespec.h".
83783
83784         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83785
83786 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83787
83788         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83789         to detect nanosleep bug.
83790
83791 2005-03-01  Bruno Haible  <bruno@clisp.org>
83792
83793         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83794
83795 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83796
83797         * modules/gethrxtime: New file.
83798         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83799         (Depends-on): Add gethrxtime.
83800         (configure.ac): Add gl_XNANOSLEEP.
83801         (Makefile.am): Remove lib_SOURCES line.
83802
83803 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83804
83805         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83806         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83807
83808 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83811         * lib/timespec.h (gettime): Return void, since it always
83812         succeeds now.  All uses changed.
83813         * lib/gettime.c (gettime): Likewise.
83814         [HAVE_NANOTIME]: Prefer nanotime.
83815         Assume gettimeofday succeeds, as POSIX requires.
83816         Assime time () succeeds, since other code already does.
83817         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83818         (timespec_subtract): Remove.
83819         (NANOSLEEP_BUG_WORKAROUND): New constant.
83820         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83821         things considerably.  Use it only on GNU/Linux hosts, since the
83822         workaround shouldn't be needed elsewhere.
83823
83824 2005-02-24  Bruno Haible  <bruno@clisp.org>
83825
83826         * modules/gettext (Files): Add m4/glibc2.m4.
83827
83828 2005-02-24  Bruno Haible  <bruno@clisp.org>
83829
83830         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83831         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83832         * m4/progtest.m4:
83833         Update from GNU gettext 0.14.2.
83834         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83835
83836 2005-02-24  Bruno Haible  <bruno@clisp.org>
83837
83838         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83839         * lib/config.charset: Update from GNU gettext 0.14.2.
83840
83841 2005-02-24  Bruno Haible  <bruno@clisp.org>
83842
83843         * lib/gettext.h: Update from GNU gettext 0.14.2.
83844
83845 2005-02-23  Simon Josefsson  <jas@extundo.com>
83846
83847         * m4/iconvme.m4: New file.
83848
83849 2005-02-23  Jim Meyering  <jim@meyering.net>
83850
83851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83852         change.
83853         Thanks to Bruno Haible for catching it.
83854
83855 2005-02-22  Simon Josefsson  <jas@extundo.com>
83856
83857         * modules/iconvme: New file.
83858
83859         * MODULES.html.sh: Add iconvme.
83860
83861 2005-02-22  Simon Josefsson  <jas@extundo.com>
83862
83863         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83864
83865 2005-02-22  Simon Josefsson  <jas@extundo.com>
83866
83867         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83868
83869 2005-02-22  Jim Meyering  <jim@meyering.net>
83870
83871         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83872         s/ifndef/ifdef/.
83873
83874 2005-02-20  Neil Conway  <neilc@samurai.com>
83875
83876         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83877         returned by OSX/Darwin if the specified buffer is not large
83878         enough for the hostname.
83879
83880 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83881
83882         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83883         pass it to _help, otherwise the latter coredumps trying to
83884         dereference state.root_argp.
83885
83886 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * modules/chdir-long (Depends-on): Add memrchr.
83889         * modules/memrchr (Files): Add lib/memrchr.h.
83890         (Include): "memrchr.h".
83891
83892 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83893
83894         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83895
83896 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83897
83898         * lib/memrchr.h: New file.
83899         * lib/chdir-long.c: Include it.
83900         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83901         Don't bother including stddef.h.
83902
83903 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83904
83905         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83906         inclusion.
83907         Include <sys/types.h>, for dev_t.
83908         (ME_DUMMY, ME_REMOTE): Move from here....
83909         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83910         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83911         Dmitry V. Levin.
83912         Include mountlist.h first, to test the interface.
83913
83914 2005-01-29  Bruno Haible  <bruno@clisp.org>
83915
83916         * lib/progname.c (program_name): Initialize.
83917         Needed when linking statically on MacOS X.
83918
83919 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83920
83921         Sync from coreutils.
83922         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83923         (Depends-on): Add c-strtod.
83924         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83925
83926 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83927
83928         Sync from coreutils.
83929         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83930
83931         Remove files that are specific to coreutils.
83932         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83933
83934 2005-01-28  Bruno Haible  <bruno@clisp.org>
83935
83936         * modules/javacomp: New file.
83937         * MODULES.html.sh (Java): Add javacomp.
83938
83939 2005-01-28  Bruno Haible  <bruno@clisp.org>
83940
83941         * m4/javacomp.m4: New file, from GNU gettext.
83942
83943 2005-01-28  Bruno Haible  <bruno@clisp.org>
83944
83945         * lib/javacomp.sh.in: New file, from GNU gettext.
83946         * lib/javacomp.h: New file, from GNU gettext.
83947         * lib/javacomp.c: New file, from GNU gettext.
83948
83949 2005-01-26  Simon Josefsson  <jas@extundo.com>
83950
83951         * lib/gai_strerror.c: Use GPL in header.
83952
83953 2005-01-26  Bruno Haible  <bruno@clisp.org>
83954
83955         * modules/javaexec: New file.
83956         * MODULES.html.sh (Java): Add javaexec.
83957
83958 2005-01-26  Bruno Haible  <bruno@clisp.org>
83959
83960         * m4/javaexec.m4: New file, from GNU gettext.
83961
83962 2005-01-26  Bruno Haible  <bruno@clisp.org>
83963
83964         * lib/javaexec.sh.in: New file, from GNU gettext.
83965         * lib/javaexec.h: New file, from GNU gettext.
83966         * lib/javaexec.c: New file, from GNU gettext.
83967
83968 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83969
83970         * modules/lchown (Depends-on): Remove lchown.h
83971
83972 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83973
83974         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83975         must be defined if the header file was not found, in order
83976         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83977
83978 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83979
83980         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83981         initializers for struct pentry_state.
83982         (__argp_error): Check return value of __asprintf
83983         (__argp_failure): Translate error message
83984
83985         * lib/argp-parse.c: Removed braces around the expansion of N_()
83986
83987 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83988
83989         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83990         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83991         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83992         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83993         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83994         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83995         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83996         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83997         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83998         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83999         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84000         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84001         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84002         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84003         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84004         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84005         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84006         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84007         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84008         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84009         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84010         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84011         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84012         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84013         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84014         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84015         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84016         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84017         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84018         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84019         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84020         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84021         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84022         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84023         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84024         Use an all-permissive copyright notice, recommended by RMS.
84025
84026 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84027
84028         * modules/chdir-long (Depends-on): Remove mempcpy.
84029
84030 2005-01-21  Jim Meyering  <jim@meyering.net>
84031
84032         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84033         same value as for Solaris 9.
84034
84035         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84036         component length.  This included changing the parameter to be
84037         of type `char *' rather than `char const *'.
84038         * lib/chdir-long.h (chdir_long): Update prototype.
84039
84040         * lib/openat.c (fdopendir, fstatat): New functions.
84041         * lib/openat.h: Include headers required for use of DIR and struct
84042         stat.
84043         [AT_SYMLINK_NOFOLLOW]: Define.
84044         (fdopendir, fstatat): Add prototypes.
84045
84046 2005-01-21  Bruno Haible  <bruno@clisp.org>
84047
84048         * modules/classpath: New file.
84049         * MODULES.html.sh (Java): Add classpath.
84050
84051 2005-01-21  Bruno Haible  <bruno@clisp.org>
84052
84053         * lib/classpath.h: New file, from GNU gettext.
84054         * lib/classpath.c: New file, from GNU gettext.
84055
84056 2005-01-20  Simon Josefsson  <jas@extundo.com>
84057
84058         * modules/version-etc-fsf: New file.
84059
84060 2005-01-20  Simon Josefsson  <jas@extundo.com>
84061
84062         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84063         * lib/version-etc.c: Remove version_etc_copyright.
84064         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84065         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84066
84067 2005-01-20  Simon Josefsson  <jas@extundo.com>
84068
84069         * lib/base64.h (isbase64): Add.
84070
84071         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84072         using a unsigned prototype, don't inline.
84073         (base64_decode): Use it.
84074
84075 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84076
84077         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84078         it.
84079
84080 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         * lib/save-cwd.c (save_cwd): Remove code to support the case
84083         where fchdir is missing or flaky.
84084
84085 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84086
84087         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84088
84089 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84090
84091         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84092         AC_LIBSOURCES now does this.
84093         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84094         with new ullong_max module.
84095
84096 2005-01-19  Bruno Haible  <bruno@clisp.org>
84097
84098         * modules/sh-quote: New file.
84099         * MODULES.html.sh (Executing programs): Add sh-quote.
84100
84101 2005-01-19  Bruno Haible  <bruno@clisp.org>
84102
84103         * lib/sh-quote.h: New file, from GNU gettext.
84104         * lib/sh-quote.c: New file, from GNU gettext.
84105
84106 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84107
84108         Merge from coreutils.
84109         * m4/ullong_max.m4: New file.
84110         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84111         (gl_MACROS): Assume localeconv exists.
84112
84113 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84114
84115         Merge changes from coreutils, as described below in several
84116         changelogs dated today.
84117
84118         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84119         (O_DIRECTORY): Remove; not needed here, since "." must be
84120         a directory.  All uses removed.
84121         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84122         universal on Suns, and we also need to test for IRIX.
84123         Revamp code to use 'if' rather than '#if'.
84124         Avoid unnecessary comparison of cwd->desc to 0.
84125
84126         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84127         for known valid error numbers rather than observed invalid ones.
84128
84129 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84130
84131         * modules/ullong_max: New file.
84132
84133         * modules/chdir-long, modules/openat: New files.
84134         * modules/save-cwd (Depends-on): Depend on chdir-long.
84135         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84136
84137 2005-01-18  Jim Meyering  <jim@meyering.net>
84138
84139         Merge from coreutils.
84140         * m4/chdir-long.m4, m4/openat.m4: New files.
84141         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84142         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84143         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84144         is sane and DOES follow symlinks.  Besides, testing 20 different
84145         systems found no broken chown implementations.
84146         Prompted by a change in rsync's copy of this macro.
84147         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84148
84149         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84150
84151         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84152         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84153         NULL-means-set-to-current-time semantics.
84154         Remove temporary file immediately, rather than waiting
84155         for configure's at-exit trap code to do it.
84156
84157 2005-01-18  Jim Meyering  <jim@meyering.net>
84158
84159         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84160
84161         * lib/utimens.c (futimens): Account for the fact that futimes
84162         can also fail with errno == ENOSYS or errno == ENOENT.
84163         Patch from Dmitry V. Levin.
84164
84165         Change the name of the robust chdir function from chdir to chdir_long.
84166         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84167         (restore_cwd): Use chdir_long, not chdir.
84168         * lib/chdir-long.c: Renamed from chdir.c.
84169         * lib/chdir-long.h: Renamed from chdir.h.
84170         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84171         Hurd.
84172
84173 2005-01-18  Bruno Haible  <bruno@clisp.org>
84174
84175         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84176         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84177         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84178         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84179         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84180         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84181         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84182         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84183         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84184         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84185         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84186         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84187         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84188         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84189         Use an all-permissive copyright notice, recommended by RMS.
84190
84191 2005-01-18  Bob Proulx  <bob@proulx.com>
84192
84193         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84194         simplify offsetof() macro construct to avoid compile failure with
84195         native HP-UX 11.0 ANSI C compiler.
84196
84197 2005-01-17  Bruno Haible  <bruno@clisp.org>
84198
84199         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84200         redundant because stpncpy.m4 takes care of it.
84201
84202 2005-01-17  Bruno Haible  <bruno@clisp.org>
84203
84204         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84205
84206 2005-01-17  Bruno Haible  <bruno@clisp.org>
84207
84208         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84209         used.
84210
84211 2005-01-17  Bruno Haible  <bruno@clisp.org>
84212
84213         * lib/fwriteerror.h (fwriteerror): Change specification to include
84214         fclose.
84215         * lib/fwriteerror.c: Include <stdbool.h>.
84216         (fwriteerror): At the end, close the file stream. Record whether
84217         stdout was already closed.
84218
84219 2005-01-17  Bruno Haible  <bruno@clisp.org>
84220
84221         * lib/execute.c (environ): Declare if needed.
84222         * lib/pipe.c (environ): Likewise.
84223         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84224
84225 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84226
84227         * modules/argp: Depend on vsnprintf
84228
84229 2005-01-10  Jim Meyering  <jim@meyering.net>
84230
84231         * modules/closeout (Depends-on): Add atexit.
84232
84233 2005-01-06  Bruno Haible  <bruno@clisp.org>
84234
84235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84236
84237 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84238
84239         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84240         definitions to be after all include files, to avoid collisions.
84241         Problem reported by Bob Proulx.
84242
84243 2005-01-04  Jim Meyering  <jim@meyering.net>
84244
84245         Changes imported from coreutils.
84246         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84247         as the mkstemp template, use a temporary directory and an
84248         8.3-friendly template to avoid trouble on systems like DJGPP.
84249         Reported by Juan M. Guerrero via Stepan Kasal.
84250         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84251         close. Remove the temporary directory right away, rather than waiting
84252         for configure's at-exit trap code to do it.
84253         Suggestion from Stepan Kasal.
84254
84255 2005-01-01  Simon Josefsson  <jas@extundo.com>
84256
84257         * gnulib-tool: Print #include directives when --import'ing.
84258
84259 2004-12-28  Simon Josefsson  <jas@extundo.com>
84260
84261         * tests/test-base64.c: Include required header files.  Remove
84262         unused variables.
84263
84264 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84265
84266         * modules/error (Depends-on): Remove gettext.
84267
84268 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84269
84270         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84271         not needed.  This removes a dependency on the gettext module.
84272         [defined _LIBC]: Do not include <libintl.h>; not needed.
84273
84274 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84275
84276         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84277         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84278
84279 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84280
84281         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84282         HAVE_DECL_STRTOLD.
84283
84284 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84285
84286         * modules/getdate (Depends-on): Remove alloca-opt.
84287
84288 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84289
84290         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84291
84292 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84293
84294         * lib/argp-parse.c: Include <stddef.h>.
84295         (alignof, alignto): New macros.
84296         (parser_init): Don't assume that void * is aligned sufficiently
84297         for struct option.
84298
84299         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84300         need to extend the stack.
84301         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84302         large.
84303
84304 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84305
84306         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84307
84308 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84309
84310         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84311         (2004-10-24) change.  Apparently this was a false alarm.
84312
84313         * modules/getdate: Depend on alloca-opt, not alloca.
84314
84315 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84316
84317         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84318         Remove now-obsolete comment about AIX.
84319         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84320         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84321         (YYMAXDEPTH): New macro.
84322
84323 2004-12-18  Simon Josefsson  <jas@extundo.com>
84324
84325         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84326
84327 2004-12-18  Bruno Haible  <bruno@clisp.org>
84328
84329         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84330
84331 2004-12-18  Bruno Haible  <bruno@clisp.org>
84332
84333         * lib/fatal-signal.c (fatal_signals): Make non-const.
84334         (init_fatal_signals): New function.
84335         (uninstall_handlers, install_handlers): Ignore signals that were set to
84336         SIG_IGN.
84337         (at_fatal_signal): Call init_fatal_signals.
84338         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84339         SIG_IGN.
84340         Reported by Paul Eggert.
84341
84342 2004-12-18  Bruno Haible  <bruno@clisp.org>
84343
84344         * doc/alloca.texi: New file.
84345         * doc/alloca-opt.texi: New file.
84346
84347 2004-12-17  Jim Meyering  <jim@meyering.net>
84348
84349         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84350         Otherwise, install-sh could exit with improper exit status when
84351         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84352
84353 2004-12-16  Simon Josefsson  <jas@extundo.com>
84354
84355         * tests/test-base64.c: Add license.
84356
84357 2004-12-15  Stepan Kasal  <address@hidden>
84358
84359         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84360
84361 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * modules/getcwd (Files): Add m4/d-ino.m4.
84364         Suggested by Mark D. Baushke.
84365
84366 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84367
84368         * lib/getdate.y (textint): New member "negative".
84369         (time_zone_hhmm): New function.
84370         Expect 14 shift-reduce conflicts, not 13.
84371         (o_colon_minutes): New rule.
84372         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84373         (yylex): Set the "negative" member of signed numbers.
84374
84375 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84376
84377         * doc/getdate.texi (Time of day items, Time zone items):
84378         Describe new formats +00:00, UTC+00:00.
84379
84380 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84381
84382         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84383         spurious "-l"s.  Problem reported by Stepan Kasal.
84384
84385 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84386
84387         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84388         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84389
84390 2004-12-04  Simon Josefsson  <jas@extundo.com>
84391
84392         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84393         Vandoorselaere <yoann@prelude-ids.org>.
84394
84395 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84396
84397         Changes imported from coreutils.
84398         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84399         exist.
84400         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84401
84402 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84403
84404         Changes imported from coreutils.
84405         * lib/hard-locale.c: Assume <locale.h> exists.
84406         Include "strdup.h".
84407         (GLIBC_VERSION): New macro.
84408         (hard_locale): Assume setlocale exists.
84409         Rewrite to avoid #ifdef.
84410         Use strdup rather than malloc + strcpy.
84411         * lib/human.c: Assume <locale.h> exists.
84412         (human_readable): Assume localeconv exists.
84413
84414 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84415
84416         * modules/hard-locale (Depends-on): Add strdup.
84417
84418 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84419
84420         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84421         convert T2, not T.  (Imported from libc.)
84422
84423 2004-11-30  Simon Josefsson  <jas@extundo.com>
84424
84425         * modules/restrict (License): Change to LGPL.
84426
84427 2004-11-30  Simon Josefsson  <jas@extundo.com>
84428
84429         * m4/restrict.m4: Add copyright and copying conditions.
84430
84431 2004-11-30  Simon Josefsson  <jas@extundo.com>
84432
84433         * m4/base64.m4: New file.
84434
84435 2004-11-30  Simon Josefsson  <jas@extundo.com>
84436
84437         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84438         base64.
84439
84440         * tests/test-base64.c: New file.
84441
84442         * modules/base64: New file.
84443
84444 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84445
84446         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84447         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84448
84449         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84450
84451 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84452
84453         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84454         (__getcwd.c): Don't restore errno; glibc doesn't.
84455         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84456         first, falling back to our code only if its results look suspicious.
84457         Ensure that the resulting buffer is only as large as necessary.
84458
84459         * lib/readutmp.c: Include readutmp.h first.
84460         Include <errno.h>, since readutmp.h no longer does that.
84461         * lib/readutmp.h: Don't include <errno.h>,
84462         <sys/param.h>, <time.h>; not needed to establish interface.
84463         (errno): Remove decl.
84464         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84465         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84466         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84467
84468 2004-11-28  Simon Josefsson  <jas@extundo.com>
84469
84470         * lib/base64.h, base64.c: New file.
84471
84472 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84473
84474         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84475
84476 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84477
84478         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84479         (Depends-on): Remove pathmax, same.  Add mempcpy.
84480         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84481         (Makefile.am): Append getcwd.h to lib_SOURCES.
84482         (Include): Add getcwd.h.
84483         (Maintainer): Change from Jim Meyering to "all, glibc",
84484         since getdate now uses intended-for-glibc code.
84485         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84486         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84487
84488 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84489
84490         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84491         HP's ANSI C compiler.
84492         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84493         Declaring int functions causes warnings on some modern systems and
84494         shouldn't be needed to compile on ancient ones.
84495         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84496         defined.
84497
84498         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84499         with the following changes.
84500         (__set_errno): Parenthesize properly.
84501         Include <stdbool.h>.
84502         (MIN, MAX, MATCHING_INO): New macros.
84503         (__getcwd): Define with prototype, not K&R form.
84504         Use heuristics to allocate default buffer on stack if possible.
84505         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84506         behavior, and to avoid the PATH_MAX limit when computing
84507         ../../../../...
84508         Use MATCHING_INO to compare inode number to file.
84509         Check for arithmetic overflow in size calculations.
84510         Fix bug in reallocation of dot array that caused getcwd to fail
84511         on directories nested deeper than 75.
84512         Be more careful about saving errno on error.
84513         Do not use realloc; use only free+malloc, as this is a bit
84514         more flexible and avoids a needless copy operation.
84515         Do not inspect st_dev and st_ino for symbolic links; POSIX
84516         doesn't specify the latter.
84517         Check for closedir errors.
84518         Avoid needless casts.
84519         Use "#ifdef weak_alias" around weak_alias, to be like other
84520         glibc code.
84521         The following changes to getcwd.c have effect only when used in
84522         gnulib; they have no effect inside glibc proper.
84523         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84524         as alloca isn't used.
84525         (alloca, __alloca): Likewise.
84526         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84527         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84528         unconditionally, as gnulib assumes C89 or better.
84529         Do not include <sys/param.h>.
84530         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84531         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84532         better.
84533         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84534         Include <dirent.h> in a way that is compatible with modern Autoconf.
84535         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84536         New macros, if not already defined.
84537         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84538         Use "_LIBC", not "defined _LIBC", for consistency.
84539         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84540         a mempcpy module.
84541         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84542         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84543         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84544         credit only to Jim Meyering and adjust the copyright dates.
84545         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84546         <stdlib.h>, <unistd.h>, "pathmax.h".
84547         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84548         (INITIAL_BUFFER_SIZE): Remove.
84549         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84550
84551 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84552
84553         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84554         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84555         Use the _ONCE methods, for efficiency.
84556         Check for fcntl.h.  In test program, include <errno.h>
84557         and <fcntl.h> if available.  Remove old K&R cruft from
84558         test program.  Check for common errors in GNU/Linux,
84559         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84560         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84561         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84562         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84563         name accordingly.
84564         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84565         accommodate new getcwd.c.
84566         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84567         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84568         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84569         that's all we need now.
84570
84571 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84572
84573         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84574         argp-parse.c depends on getopt internals, that means we should
84575         always use our getopt, to be on the safe side.
84576         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84577         order not to spoil the result of an eventual previous invocation
84578         of gl_GETOPT_SUBSTITUTE.
84579
84580 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84581
84582         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84583         redefinition warnings. To avoid them, include the defines
84584         in `#if !defined __need_getopt ... #endif'. The only place
84585         where __getopt_argv_const is used is in definitions
84586         of getopt_long and getopt_long_only below, which are as well
84587         protected by `#ifndef __need_getopt'.
84588         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84589         __need_getopt after including <stdio.h> and <unistd.h> These
84590         headers might have defined it.
84591
84592 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84593
84594         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84595
84596 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84597
84598         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84599         (futimens): New function, which uses futimes if available.
84600         (futimens, utimens): Support timespec==NULL, with same semantics
84601         as utime and utimens.
84602         * lib/utimens.h (futimens): New decl.
84603
84604 2004-11-23  Jim Meyering  <jim@meyering.net>
84605
84606         * lib/getopt_.h: Remove trailing blanks.
84607
84608 2004-11-23  Jim Meyering  <jim@meyering.net>
84609
84610         * lib/__fpending.c: Add comment.
84611
84612 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * modules/canonicalize (Depends-on): Add xreadlink.
84615         Problem reported by James Youngman.
84616
84617 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84618
84619         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84620         New macros.
84621         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84622         optopt): Use them instead of invoking ## directly; otherwise, the
84623         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84624
84625 2004-11-19  Bruno Haible  <bruno@clisp.org>
84626
84627         * lib/strtok_r.c: Move comments from here...
84628         * lib/strtok_r.h: ... to here.
84629
84630 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84631
84632         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84633         implementations that mishandle size_t overflow.
84634
84635 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84636
84637         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84638         might fail.  Problem reported by Yoann Vandoorselaere.
84639         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84640         implementations that mishandle size_t overflow.
84641
84642 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84643
84644         * modules/canon-host (Depends-on): Add strdup.
84645
84646 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84647
84648         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84649
84650 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84651
84652         * lib/canon-host.c: Include "strdup.h".
84653         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84654         Use strdup instead of malloc/strcpy to duplicate strings.
84655
84656         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84657         (human_space_before_unit): New constant.
84658         * lib/human.c (human_readable): Support it.
84659
84660         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84661         (xgetcwd): Set errno correctly when failing.
84662         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84663         the failure is actually due to a PATH_MAX problem.
84664
84665         Further getopt changes to make it more likely that glibc will
84666         buy the changes back.
84667         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84668         (getopt): Use it, so to preserve glibc semantic
84669         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84670         when compiling for libc.
84671         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84672         (getopt_long, getopt_long_only): Use it.
84673
84674         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84675         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84676         (getopt): Argv is now char * const *, as per standard.
84677         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84678         not char *__getopt_argv_const *.
84679         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84680         _getopt_long_only_r): Likewise.
84681         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84682         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84683         _getopt_long_r, _getopt_long_only_r): Likewise.
84684         * lib/getopt_.h (__getopt_argv_const): Remove.
84685         (getopt): Argv is now char * const *, as per standard.
84686
84687         * lib/getdate.y (tORDINAL): New token.
84688         (day, relunit): Allow it for relative times.
84689         (relative_time_table): Use tORDINAL for ordinals.
84690
84691 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84692
84693         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84694         Document that "second" isn't allowed as an ordinal number.
84695
84696 2004-11-16  Jim Meyering  <jim@meyering.net>
84697
84698         * modules/closeout (Depends-on): Add fpending.
84699
84700 2004-11-15  Jim Meyering  <jim@meyering.net>
84701
84702         * lib/closeout.c: Include "__fpending.h" once again.
84703         Include <stdbool.h>.
84704         (close_stdout): Don't fail just because stdout was closed initially,
84705         since some programs don't write to stdout in the normal course of
84706         operation (other than --version and --help), and we don't want this
84707         function to make e.g. `touch file >&-' fail.
84708         But do fail if it was closed and someone has tried to write to it.
84709         E.g., `printf foo >&-' must fail.
84710
84711 2004-11-13  Jim Meyering  <jim@meyering.net>
84712
84713         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84714
84715 2004-11-12  Simon Josefsson  <jas@extundo.com>
84716
84717         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84718         small doc fix is still pending.
84719
84720 2004-11-11  Simon Josefsson  <jas@extundo.com>
84721
84722         * modules/strtok_r: New file.
84723
84724         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84725         strtok_r.
84726
84727 2004-11-11  Simon Josefsson  <jas@extundo.com>
84728
84729         * m4/strtok_r.m4: New file.
84730
84731         * m4/getopt.m4: Replace opterr.
84732
84733 2004-11-11  Simon Josefsson  <jas@extundo.com>
84734
84735         * lib/strtok_r.h, strtok_r.c: New file.
84736
84737 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84740         of replacing opterr, getopt, etc.  This should handle the
84741         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84742
84743 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84744
84745         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84746         we can stop lying to compilers about the constness of argv when we
84747         are compiled outside glibc.
84748         (getopt, getopt_long, getopt_long_only): Use it.
84749         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84750         _getopt_internal, getopt): Likewise.
84751         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84752         _getopt_long_only_r): Likewise.
84753         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84754         _getopt_long_r, _getopt_long_only_r): Likewise.
84755
84756         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84757         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84758         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84759         the other external symbols.
84760         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84761         declaration, since the above renaming now works around collisions.
84762
84763 2004-11-11  Jim Meyering  <jim@meyering.net>
84764
84765         * lib/linebreak.c: Remove trailing blanks.
84766         * lib/alloca_.h: Likewise.
84767         * lib/acosl.c: Likewise.
84768         * lib/euidaccess.c: Likewise.
84769         * lib/allocsa.h: Likewise.
84770
84771 2004-11-10  Simon Josefsson  <jas@extundo.com>
84772
84773         * m4/getaddrinfo.m4: New file.
84774
84775 2004-11-10  Simon Josefsson  <jas@extundo.com>
84776
84777         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84778
84779 2004-11-10  Simon Josefsson  <jas@extundo.com>
84780
84781         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84782         getaddrinfo.
84783
84784         * modules/getaddrinfo: New file.
84785
84786 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84787
84788         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84789
84790 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84791
84792         * lib/mktime.c (SHR): New macro, which is a portable
84793         substitute for >> that should work even on Crays.
84794         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84795         Problem reported by Mark D. Baushke in
84796         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84797         * lib/getdate.y (SHR): Likewise.
84798         (tm_diff): Use it.
84799         * lib/strftime.c (SHR): Likewise.
84800         (tm_diff): Use it.
84801         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84802         quote_these_too, so that right shifts are well defined.  All uses
84803         changed.
84804
84805 2004-11-10  Jim Meyering  <jim@meyering.net>
84806
84807         Ensure that no close failure goes unreported.
84808         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84809         return early when it seems there's nothing to flush.
84810         Don't include __fpending.h.
84811
84812 2004-11-10  Jim Meyering  <jim@meyering.net>
84813
84814         * modules/closeout (Depends-on): Remove fpending.
84815
84816 2004-11-10  Jim Meyering  <jim@meyering.net>
84817
84818         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84819
84820 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84821
84822         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84823         gl_FUNC_STRFTIME.
84824         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84825         and AC_REQUIRE when possible, to avoid duplicate checks.
84826         Check for <wchar.h>.
84827
84828 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84831
84832 2004-11-09  Bruno Haible  <bruno@clisp.org>
84833
84834         * m4/sockpfaf.m4: New file.
84835
84836 2004-11-05  Bruno Haible  <bruno@clisp.org>
84837
84838         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84839         Reported by Mark D. Baushke <mdb@cvshome.org>.
84840
84841 2004-11-04  Bruno Haible  <bruno@clisp.org>
84842
84843         2004-09-11  Bruno Haible  <bruno@clisp.org>
84844                 * allocsa.valgrind: New file.
84845         2004-02-06  Bruno Haible  <bruno@clisp.org>
84846                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84847                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84848                 Reported by Christopher Seip <chris.seip@hp.com>.
84849
84850 2004-11-04  Bruno Haible  <bruno@clisp.org>
84851
84852         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84853         (Makefile.am): Distribute it.
84854
84855 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84856
84857         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84858         with errno == ERANGE if the buffer is too small.
84859         Problem reported by Mark D. Baushke.
84860
84861 2004-11-03  Albert Chin  <china@thewrittenword.com>
84862             Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84865         equivalent, substitute $ac_type for equivalent type rather than
84866         blindly using uint32_t *always* which won't work if uint32_t is not
84867         available.  Define _UINT32_T to work around typedef of uint32_t if
84868         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84869         2.5.1.
84870
84871 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84872
84873         * m4/jm-macros.m4: Sync from coreutils.
84874         (gl_MACROS): Check for mbrlen, for pathchk.
84875         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84876
84877 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84878
84879         * lib/xreadlink.c (MAXSIZE): New macro.
84880         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84881         size does not exceed MAXSIZE.  Avoid cast.
84882         As suggested by Mark D. Baushke in
84883         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84884         if readlink fails with buffer size just under MAXSIZE, try again
84885         with MAXSIZE.
84886
84887 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84890
84891 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84892         and  Paul Eggert  <eggert@cs.ucla.edu>
84893
84894         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84895         (get_date): Overparenthesize to avoid GCC warning.
84896
84897 2004-11-02  Bruno Haible  <bruno@clisp.org>
84898
84899         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84900         returns void.
84901
84902 2004-11-02  Bruno Haible  <bruno@clisp.org>
84903
84904         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84905         function returns void.
84906
84907 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84908
84909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84910         fflush_unlocked, flockfile, funlockfile, funlockfile,
84911         fputs_unlocked, putc_unlocked.
84912
84913 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84914
84915         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84916         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84917         already declared.
84918
84919 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84920
84921         * modules/getdate (Files): Add doc/getdate.texi.
84922         (Depends-on): Add setenv, xalloc.
84923
84924 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84925
84926         * lib/getdate.y: Add support for TZ="foo" within a date string.
84927         Fix some bugs near time_t boundaries.  Reject dates with
84928         out-of-range components, e.g., "Sept 31".
84929         Include <stdlib.h>, "setenv.h", "xalloc.h".
84930         (ISDIGIT_LOCALE): Remove; unused.
84931         Note that the TZ and time functions used here are not reentrant.
84932         (mktime_ok, get_tz): New functions.
84933         (TZBUFSIZE): New constant.
84934         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84935         This requires that we sometimes generate our own TZ="XXX..." setting.
84936
84937 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * doc/getdate.texi: New file, from coreutils with modifications for
84940         the new TZ parsing.
84941
84942 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84943
84944         * lib/mktime.c (not_equal_tm): Remove redundant check.
84945
84946 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84947
84948         * modules/regex (lib_SOURCES): Add regex.c.
84949         Reported by James Youngman in
84950         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84951
84952 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84953
84954         * lib/getdate.y: Use Bison 1.875 features, and some minor
84955         code cleanups.  This change does not affect semantics.
84956         Don't include <stdlib.h>; no longer needed.
84957         Don't include unlocked-io.h; only the "#if TEST" code uses
84958         stdio, and performance isn't crucial there.
84959         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84960         Bison 1.875 features as described below.
84961         All uses of "PC." replaced by "pc->".
84962         (YYSTYPE): Add a forward declaration.
84963         (yylex, yyerror): Use full prototypes in forward decls.
84964         Use "%pure-parser" rather than obsolescent "%pure_parser".
84965         Use %parse-param and %lex-param instead of obsolescent
84966         YYPARSE_PARAM and YYLEX_PARAM.
84967         (meridian_table, month_and_day_table, time_units_table,
84968         relative_time_table, time_zone_table, military_table,
84969         lookup_zone, lookup_word, get_date):
84970         Use NULL instead of 0 where appropriate.
84971         (to_hour): Avoid abort (), to avoid a dependency on
84972         stdlib.h.
84973         (yyerror, yylex): Now accepts parser_control * arg.
84974         (main) [TEST]: Use '\0' rather than 0 for char.
84975
84976 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84977
84978         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84979
84980 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84983         It's now the caller's responsibility to handle the case where
84984         !HAVE_GETPAGESIZE && !defined getpagesize.
84985
84986         * lib/mktime.c (leapyear): Arg is long int, not int.
84987
84988 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84989
84990         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84991
84992 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84995         missing.  Problem reported by James Youngman.
84996
84997 2004-10-16  Simon Josefsson  <jas@extundo.com>
84998
84999         * gnulib-tool: Fix comments.  Fix parse problem.
85000         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85001
85002 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85003
85004         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85005         implementation of getopt_long.  Problem reported by Alexander Taler in:
85006         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85007
85008 2004-10-15  Bruno Haible  <bruno@clisp.org>
85009
85010         * gnulib-tool: Untabify. Initialize supplied_libname.
85011         (func_usage): More homogenous output.
85012         (func_modules_transitive_closure, func_modules_to_filelist,
85013         func_emit_lib_Makefile_am): New functions.
85014         (func_import): New function, extracted from big case statement. Use
85015         func_get_license, func_modules_transitive_closure,
85016         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85017         opt_lgpl. Don't use test -a, as it's not portable.
85018         (func_create_testdir): Use func_modules_transitive_closure,
85019         func_modules_to_filelist, func_emit_lib_Makefile_am.
85020
85021 2004-10-15  Bruno Haible  <bruno@clisp.org>
85022
85023         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85024
85025 2004-10-15  Bruno Haible  <bruno@clisp.org>
85026
85027         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85028         the portions belonging to each module.
85029         Suggested by Derek Robert Price <derek@ximbiot.com>.
85030
85031 2004-10-12  Simon Josefsson  <jas@extundo.com>
85032
85033         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85034         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85035         to real functions.
85036
85037 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85038
85039         * modules/vsnprintf: New file.
85040
85041 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85042
85043         * m4/vsnprintf.m4: New file.
85044
85045 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85046
85047         * lib/vsnprintf.h: New file.
85048         * lib/vsnprintf.c: New file.
85049
85050 2004-10-11  Bruno Haible  <bruno@clisp.org>
85051
85052         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85053         vsnprintf.
85054
85055 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85056
85057         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85058
85059 2004-10-07  Bruno Haible  <bruno@clisp.org>
85060
85061         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85062         fits into the provided buffer.
85063
85064 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85065
85066         * lib/diacrit.c, diacrit.h: Add GPL notice.
85067
85068         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85069         notice.
85070         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85071         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85072         This avoids a potential constant-folding bug.
85073
85074 2004-10-05  Bruno Haible  <bruno@clisp.org>
85075
85076         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85077         for the declaration of strsep.
85078
85079 2004-10-05  Bruno Haible  <bruno@clisp.org>
85080
85081         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85082
85083 2004-10-04  Simon Josefsson  <jas@extundo.com>
85084
85085         * modules/memmem: New file.
85086         * tests/test-memmem.c: New file.
85087         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85088
85089 2004-10-04  Simon Josefsson  <jas@extundo.com>
85090
85091         * m4/memmem.m4: New file.
85092
85093 2004-10-04  Simon Josefsson  <jas@extundo.com>
85094
85095         * lib/memmem.h: New file.
85096         * lib/memmem.c: New file, taken from glibc.
85097
85098 2004-10-04  Simon Josefsson  <jas@extundo.com>
85099
85100         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85101         '#ifdef USE_UNLOCKED_IO'.
85102
85103 2004-10-04  Simon Josefsson  <jas@extundo.com>
85104
85105         * config/srclist.txt: Add memmem from glibc.
85106
85107 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85108
85109         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85110
85111         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85112         modules/exclude, modules/getdate, modules/getline,
85113         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85114         modules/getusershell, modules/linebuffer, modules/md5,
85115         modules/mountlist, modules/posixtm, modules/readtokens,
85116         modules/readutmp, modules/regex, modules/sha1,
85117         modules/version-etc, modules/yesno:
85118         Remove dependency on unlocked-io.
85119
85120 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85121
85122         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85123
85124         * m4/unlocked-io.m4: Add copyright notice.
85125         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85126
85127 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85130         * lib/xmalloc.c (xmemdup): Likewise.
85131         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85132         XFREE): Remove these long-obsolescent macros.
85133         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85134         * lib/xstrdup.c: Remove.
85135
85136         * lib/regex.c (re_comp): Cast gettext return value to char *,
85137         Problem reported by Martin Neitzel via Mark D. Baushke.
85138
85139 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85140
85141         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85142         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85143         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85144         regex.c, sha1.c, version-etc.c, yesno.c:
85145         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85146         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85147         the includer's responsibility.
85148
85149         Sync from coreutils.
85150
85151         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85152         points to the start of a string, as the C Standard says the
85153         resulting behavior is undefined.
85154
85155         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85156         simple -> simple_backups, numbered_existing ->
85157         numbered_existing_backups, numbered -> numbered_backups
85158         to avoid shadowing problems.  All uses changed.
85159         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85160         * lib/backupfile.c (check_extension, numbered_backup):
85161         Rename locals to avoid shadowing 'basename'.
85162         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85163         once.
85164
85165         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85166         * lib/.cvsignore: Add getopt.h.
85167
85168 2004-10-04  Bruno Haible  <bruno@clisp.org>
85169
85170         * modules/README: New file.
85171         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85172         not a module.
85173
85174 2004-10-02  Jim Meyering  <jim@meyering.net>
85175
85176         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85177
85178 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85179
85180         * modules/strsep: New file.
85181
85182 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85183
85184         * m4/strsep.m4: New file.
85185
85186 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85187
85188         * lib/strsep.h: New file.
85189         * lib/strsep.c: New file.
85190
85191 2004-10-01  Simon Josefsson  <jas@extundo.com>
85192
85193         * lib/snprintf.c (snprintf): Handle size==0.
85194
85195 2004-10-01  Simon Josefsson  <jas@extundo.com>
85196             Bruno Haible  <bruno@clisp.org>
85197
85198         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85199         (snprintf): Declare 'args'.
85200
85201 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85202
85203         * lib/snprintf.c: Remove comments as to why each header is needed.
85204
85205 2004-10-01  Bruno Haible  <bruno@clisp.org>
85206
85207         * MODULES.html.sh: Add strsep.
85208
85209 2004-09-30  Simon Josefsson  <jas@extundo.com>
85210
85211         * modules/snprintf: New file.
85212
85213 2004-09-30  Simon Josefsson  <jas@extundo.com>
85214
85215         * m4/snprintf.m4: New file.
85216
85217 2004-09-30  Simon Josefsson  <jas@extundo.com>
85218
85219         * lib/snprintf.h, lib/snprintf.c: New files.
85220
85221 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85222
85223         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85224         (hol_entry_help): Never translate an empty string.
85225         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85226         * lib/argp.h (OPTION_NO_TRANS): New option.
85227
85228 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * modules/argp (Maintainer): Replace Simon Josefsson
85231         by Sergey Poznyakoff.
85232
85233 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85234
85235         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85236         changes merged back into glibc.
85237
85238 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85241
85242 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85243
85244         * lib/xvasprintf.c: Include xalloc.h.
85245         (xvasprintf): Use xalloc_die, not xmalloc_die.
85246
85247 2004-09-29  Bruno Haible  <bruno@clisp.org>
85248
85249         * modules/alloca-opt: New file, derived from modules/alloca.
85250         * modules/allocsa: Depend on alloca-opt instead of alloca.
85251         * modules/setenv: Likewise.
85252         * modules/vasnprintf: Likewise.
85253         * MODULES.html.sh: Add alloca-opt.
85254
85255 2004-09-28  Simon Josefsson  <jas@extundo.com>
85256
85257         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85258         LGPL, and to replace license template from GPL to LGPL.
85259
85260 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85261
85262         * modules/dummy: Change license to LGPL.
85263
85264 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85265
85266         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85267
85268 2004-09-24  Simon Josefsson  <jas@extundo.com>
85269
85270         * modules/minmax (License): Change from GPL to LGPL.
85271
85272 2004-09-23  Simon Josefsson  <jas@extundo.com>
85273
85274         * gnulib-tool (--import): Typo.
85275
85276 2004-09-23  Simon Josefsson  <jas@extundo.com>
85277
85278         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85279
85280 2004-09-22  Bruno Haible  <bruno@clisp.org>
85281
85282         * modules/*: Add 'License' field.
85283         * gnulib-tool: Accept --extract-license option.
85284         (func_get_license): New function.
85285
85286 2004-09-21  Bruno Haible  <bruno@clisp.org>
85287
85288         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85289         Reported by Simon Josefsson.
85290
85291 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85292
85293         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85294         gl_AC_TYPE_LONG_LONG.
85295
85296 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85299
85300 2004-09-18  Simon Josefsson  <jas@extundo.com>
85301         and  Paul Eggert  <eggert@cs.ucla.edu>
85302
85303         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85304         calls with autoreconf.  Define GL_LIB.
85305
85306 2004-09-14  Karl Berry  <karl@gnu.org>
85307
85308         * config/srclist.txt: unsync setenv.c, sigh.
85309
85310 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85311
85312         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85313         Problem reported by Bruno Haible in:
85314         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85315
85316 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85317
85318         * config/srclist.txt: Comment out argp-pvh.c.
85319
85320 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85323         in case some system header has #define'd it.  Problem reported by
85324         Soeren D. Schulze in
85325         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85326
85327 2004-09-09  Karl Berry  <karl@gnu.org>
85328
85329         * regex.[ch]: delete from the root.  These were supposed to be
85330                 synced with emacs cvs, but this has not happened for about
85331                 a year, and anyway nothing else uses emacs regex.[ch].
85332                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85333                 lib/regex[.ch] is untouched.
85334
85335 2004-09-09  Bruno Haible  <bruno@clisp.org>
85336
85337         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85338
85339 2004-09-09  Bruno Haible  <bruno@clisp.org>
85340
85341         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85342         modifications.
85343         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85344
85345 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85346
85347         * modules/xvasprintf: New file.
85348         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85349
85350 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85351
85352         * lib/xvasprintf.h: New file.
85353         * lib/xvasprintf.c: New file.
85354         * lib/xasprintf.c: New file.
85355
85356 2004-09-08  Bruno Haible  <bruno@clisp.org>
85357
85358         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85359
85360 2004-09-08  Bruno Haible  <bruno@clisp.org>
85361
85362         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85363         length is > INT_MAX.
85364         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85365         more.
85366
85367 2004-09-08  Bruno Haible  <bruno@clisp.org>
85368
85369         * lib/stdint_.h: New file, taken from GNU clisp.
85370
85371 2004-09-08  Bruno Haible  <bruno@clisp.org>
85372             Oskar Liljeblad  <oskar@osk.mine.nu>
85373
85374         * modules/stdint: New file.
85375         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85376
85377 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85378
85379         Import from coreutils.
85380         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85381         strings on unbounded length.  alloca's performance benefits aren't
85382         that important here.
85383         (V_STRDUP): Remove.
85384         (parse_with_separator): New function, with most of the internals
85385         of the old parse_user_spec.  Allow user to omit both user and group,
85386         for compatibility with FreeBSD.
85387         Clone only the user name, not the entire spec.
85388         Do not set *uid, *gid unless entirely successful.
85389         Avoid memory leak in some failing cases.
85390         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85391         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85392         (parse_user_spec): Rewrite to use parse_with_separator.
85393
85394 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * modules/userspec: Don't depend on alloca.
85397
85398 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85401
85402 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85405         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85406         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85407
85408 2004-08-16  Simon Josefsson  <jas@extundo.com>
85409
85410         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85411         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85412         Add --dry-run for --import.
85413         Let user provided command line parameters override configure.ac
85414         settings.
85415
85416 2004-08-12  Simon Josefsson  <jas@extundo.com>
85417
85418         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85419         as discussed with Paul Eggert in threads rooted at
85420         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85421         and
85422         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85423         Before, the test was empty, and relied on ELIDE_CODE in source
85424         code.)
85425         (gl_PREREQ_GETOPT): New macro.
85426         (gl_GETOPT): Use them.
85427
85428 2004-08-12  Simon Josefsson  <jas@extundo.com>
85429
85430         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85431         * lib/getopt_.h: Renamed from getopt.h.
85432
85433 2004-08-12  Simon Josefsson  <jas@extundo.com>
85434
85435         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85436         Change default library name from libfoo to libgnu.
85437         Now, if you have a configure.ac that says:
85438                 gl_SOURCE_BASE(gl)
85439                 gl_M4_BASE(gl/m4)
85440                 gl_MODULES(error getopt etcetera)
85441                 gl_INIT
85442         you can import all you need by running:
85443                 ../gnulib/gnulib-tool --import
85444
85445         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85446         (Makefile.am): Rewrite, use logic from argz.
85447         (Include): Use <getopt.h> instead of "getopt.h".
85448
85449 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85450
85451         * modules/argp (Files): Add m4/unlocked-io.m4.
85452         (Depends-on): Add extensions.
85453
85454 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85457         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85458         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85459         Check for program_invocation_name, program_invocation_short_name,
85460         flockfile, funlockfile, features.h, _getopt_long_only_r.
85461
85462 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85463
85464         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85465         its complicated substitute.
85466         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85467         and program_invocation_name.
85468         (__argp_basename) [!_LIBC]: Remove; the only use was
85469         replaced by its body.
85470         (__argp_short_program_name): Change condition from
85471         !defined __argp_short_program_name to
85472         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85473         to match argp-namefrob.h.
85474         (__argp_failure): Don't assume strerror_r returns char *.
85475         * lib/argp-parse.c (N_): Define unconditionally.
85476         (argp_default_options): Fill out initializers with 0 to avoid
85477         gcc warnings.
85478
85479 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85480
85481         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85482         getopt1.c.
85483
85484 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85485
85486         Merge from coreutils.
85487
85488         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85489
85490         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85491         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85492
85493 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85494
85495         Merge from coreutils.
85496
85497         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85498         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85499         for Reliant Unix 5.43.
85500
85501         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85502         (union fooround): Use uintmax_t, not long int.
85503         The rest is a merge from libc:
85504         [defined _LIBC]: Include <shlib-compat.h>.
85505         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85506
85507         * lib/settime.c (settime): Recode to avoid warning with
85508         Sun Forte C 6U2.
85509
85510         * lib/strverscmp.c: Convert to UTF-8.
85511
85512 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85513
85514         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85515         m4/uintmax_t.m4.
85516
85517 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         * modules/xalloc-die: New file.
85520         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85521
85522         * modules/md5 (Files): Add m4/uint32_t.m4.
85523         * modules/sha1: Renamed from modules/sha.
85524         (Files):
85525         Rename lib/sha.h to lib/sha1.h.
85526         Rename lib/sha.c to lib/sha1.c.
85527         Rename m4/sha.m4 to m4/sha1.m4.
85528         (lib_SOURCES): Likewise.
85529         (configure.ac): Rename gl_SHA to gl_SHA1.
85530         (Include): sha.h -> sha1.h.
85531
85532 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85533
85534         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85535         * m4/sha1.m4: Renamed from sha.m4.
85536         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85537
85538 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85539
85540         * lib/obstack.h (obstack_empty_p):
85541         Don't assume that chunk->contents is suitably aligned.
85542         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85543         Likewise. Problem reported by Benno in
85544         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85545
85546         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85547         readable.  This could be improved further but it'd take some work.
85548
85549 2004-08-08  Simon Josefsson  <jas@extundo.com>
85550
85551         * modules/xgethostname (Depends-on): Remove exit and error (not
85552         used).
85553
85554         * modules/getpass-gnu: Add getpass.h.
85555         (Depends-on): Add stdbool.
85556         * modules/getpass: Add getpass.h.
85557
85558 2004-08-08  Simon Josefsson  <jas@extundo.com>
85559
85560         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85561         Check getpass declaration.
85562
85563 2004-08-08  Simon Josefsson  <jas@extundo.com>
85564
85565         * lib/xgethostname.c: Don't include error.h (not used).
85566
85567         * lib/getpass.h: Add.
85568         * lib/getpass.c: Include getpass.h first.
85569
85570 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85571
85572         * lib/xalloc-die.c: New file.
85573         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85574         All uses removed.
85575         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85576         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85577         xalloc-die.c.
85578         (_, N_, xalloc_die): Move to xalloc-die.c.
85579         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85580         so that we needn't mess with xalloc_msg_memory_exhausted.
85581
85582         * lib/sha1.h: Renamed from sha.h.
85583         (SHA1_H): Renamed from _SHA_H.
85584         (sha1_ctx): Renamed from sha_ctx.
85585         (sha1_init_ctx): Renamed from sha_init_ctx.
85586         (sha1_process_block): Renamed from sha_process_block.
85587         (sha1_process_bytes): Renamed from sha_process_bytes.
85588         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85589         (sha1_read_ctx): Renamed from sha_read_ctx.
85590         (sha1_stream): Renamed from sha_stream.
85591         (sha1_buffer): Renamed from sha_buffer.
85592         * lib/sha1.c: Likewise; renamed from sha.c.
85593         Do not include <sys/types.h>.
85594         Include <stddef.h> rather than <stdlib.h>.
85595
85596 2004-08-08  Bruno Haible  <bruno@clisp.org>
85597
85598         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85599         FILESYSTEM_PREFIX_LEN.
85600         * lib/progreloc.c: Likewise.
85601         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85602
85603 2004-08-06  Simon Josefsson  <jas@extundo.com>
85604
85605         * modules/progname (Depends-on): Don't depend on stdbool.
85606
85607 2004-08-06  Simon Josefsson  <jas@extundo.com>
85608
85609         * modules/getsubopt: New file.
85610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85611         getsubopt.
85612
85613 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85614
85615         More merge from coreutils.
85616
85617         * m4/utimens.m4, m4/utimecmp.m4: New files.
85618         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85619         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85620         prereq.m4, sha.m4: Import changes from coreutils.
85621
85622 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85623
85624         More merge from coreutils.
85625         * modules/raise, modules/readtokens0, modules/utimens:
85626         * modules/utimecmp, module/xnanosleep: New files.
85627         * modules/strftime: Add lib/strftime.h.
85628         Change include from <time.h> to "strftime.h".
85629         * modules/yesno: Add lib/yesno.h.
85630         * modules/backupfile: Remove lib/addext.c.
85631         * modules/euidaccess: Add stat-macros.h.
85632         * modules/canonicalize, modules/euidaccess,
85633         modules/filemode, modules/lchown, modules/makepath,
85634         modules/rmdir, modules/stat: Likewise.
85635
85636 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85637
85638         Merge from tar.
85639         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85640         SIZE_MAX is a valid preprocessor constant.
85641         (__argp_basename): Change from "#ifndef _LIBC"
85642         to "#ifndef __argp_short_program_name", so that
85643         we don't compile these functions for tar.
85644
85645         More merges from coreutils.
85646         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85647         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85648         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85649         * lib/addext.c: Remove; no longer needed.
85650         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85651         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85652         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85653         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85654         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85655         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85656         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85657         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85658         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85659         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85660         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85661         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85662         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85663         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85664         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85665         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85666         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85667         Import changes from coreutils.
85668
85669 2004-08-05  Simon Josefsson  <jas@extundo.com>
85670
85671         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85672
85673 2004-08-05  Simon Josefsson  <jas@extundo.com>
85674
85675         * m4/getsubopt.m4: New file.
85676
85677 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85678
85679         Merge from coreutils.
85680
85681         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85682         * m4/getcwd-path-max.m4: New files.
85683
85684         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85685         FILESYSTEM_PREFIX_LEN ->
85686         FILE_SYSTEM_PREFIX_LEN.
85687         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85688         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85689         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85690         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85691
85692         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85693         prerequisite modules now handle the DOS stuff.
85694         Don't check for unistd.h.
85695
85696 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85697
85698         Merge from coreutils.
85699
85700         * lib/.gdb-history: Remove; this doesn't belong here.
85701
85702         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85703         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85704         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85705         * lib/getcwd.c: New files.
85706
85707         * lib/dirname.h: Include <stdbool.h>.
85708         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85709         for consistency with POSIX terminology.  All uses changed.
85710         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85711         (strip_trailing_slashes): Use bool for booleans.
85712         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85713
85714         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85715         sometimes returns a positive errno value even when it succeeds.
85716         (print_errno_message) [!LIBC]: Fall back on strerror if
85717         __strerror_r fails.
85718
85719         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85720         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85721         (longest_relative_suffix): New function.
85722         (path_concat): Use it.  Assume first argument is not NULL.
85723         Port to DOS.  Omit redundant separators.
85724         Report an error instead of returning NULL.
85725         Use mempcpy instead of memcpy.
85726         (xpath_concat): Remove: not declared or used.
85727
85728         * lib/same.h: Include <stdbool.h>
85729         (same_name): Return bool, not int.
85730         * lib/same.c (same_name): Likewise.
85731         (errno): Don't declare; we assume C89 or better now.
85732
85733         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85734         if not already defined.
85735
85736         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85737         * lib/dup-safer.c (errno): Likewise.
85738
85739 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85740
85741         Merge from coreutils.
85742         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85743         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85744         * modules/path-concat: Don't depend on strdup.
85745
85746 2004-08-03  Simon Josefsson  <jas@extundo.com>
85747
85748         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85749         * lib/progname.h: Don't include stdbool.h.
85750
85751 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85752
85753         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85754         * MODULES.html.sh (func_all_modules): Remove fatal.
85755
85756 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85757
85758         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85759
85760 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85761
85762         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85763         working.
85764
85765 2004-08-02  Simon Josefsson  <jas@extundo.com>
85766
85767         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85768         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85769         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85770
85771 2004-08-01  Simon Josefsson  <jas@extundo.com>
85772
85773         * lib/xgetdomainname.c: Include stdlib.h, for free().
85774
85775 2004-07-19  Bruno Haible  <bruno@clisp.org>
85776
85777         * MODULES.html.sh (func_all_modules): Add dummy.
85778
85779 2004-07-16  Simon Josefsson  <jas@extundo.com>
85780
85781         * modules/dummy: New file.
85782
85783 2004-07-16  Simon Josefsson  <jas@extundo.com>
85784
85785         * lib/dummy.c: New file.
85786
85787 2004-07-16  Bruno Haible  <bruno@clisp.org>
85788
85789         * lib/backupfile.h: Add extern "C" for C++.
85790         * lib/closeout.h: Likewise.
85791         * lib/copy-file.h: Likewise.
85792         * lib/findprog.h: Likewise.
85793         * lib/full-write.h: Likewise.
85794         * lib/pathname.h: Likewise.
85795         * lib/progname.h: Likewise.
85796         * lib/stpcpy.h: Likewise.
85797         * lib/stpncpy.h: Likewise.
85798         * lib/strcase.h: Likewise.
85799         * lib/strstr.h: Likewise.
85800         * lib/xalloc.h: Likewise.
85801
85802         * lib/mbswidth.h: Add extern "C" for C++.
85803         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85804
85805 2004-07-13  Robert Millan  <robertmh@gnu.org>
85806
85807         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85808
85809 2004-07-09  Simon Josefsson  <jas@extundo.com>
85810
85811         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85812         failed without this.)
85813
85814 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85815
85816         * modules/chown (Files): Add lib/fchown-stub.c, since
85817         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85818
85819 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85820
85821         * lib/fchown-stub.c: New file.
85822
85823 2004-06-24  Jim Meyering  <jim@meyering.net>
85824
85825         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85826
85827 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85828
85829         * modules/argz: Omit "#include".
85830
85831         * MODULES.html.sh (func_all_modules): Add calloc, to match
85832         2004-06-01 addition of calloc module.
85833
85834 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85835
85836         * m4/argz.m4: New file, which is autoupdated from libtool.
85837
85838 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85839
85840         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85841         libtool.
85842
85843 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85844
85845         * config/srclist-update: Don't insist on "USA." before the
85846         close-comment, as libtool omits the period and puts the */ on a
85847         separate line.
85848         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85849         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85850
85851 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85852
85853         * modules/argz: New file.
85854         * MODULES.html.sh (func_all_modules): Add argz.
85855
85856 2004-06-12  Jim Meyering  <jim@meyering.net>
85857         and  Paul Eggert  <eggert@cs.ucla.edu>
85858
85859         * modules/hash (Files): Add lib/xalloc.h.
85860         * modules/pipe (Depends-on): Add wait-process.
85861         * modules/stat (Depends-on): Add xalloc.
85862         * modules/userspec (Files): Add lib/userspec.h.
85863         * modules/xstrto
85864
85865         Upgrade from gettext-0.13.
85866         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85867         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85868         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85869
85870 2004-06-10  Jim Meyering  <jim@meyering.net>
85871
85872         * lib/calloc.c: New file.
85873
85874 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85875
85876         * lib/getdate.y (yylex): Allow space between sign and number.
85877         Problem reported by Dan Jacobson.
85878
85879 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85880
85881         Merge from coreutils CVS.
85882
85883         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85884         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85885         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85886         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85887         xstrtol.m4: Fix copyright date and/or serial number.
85888
85889         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85890         See if we need an fchown replacement.
85891         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85892         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85893         and use the replacement function if we detect either defect.
85894
85895         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85896         gl_UTIMECMP.
85897
85898 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85899         and  Jim Meyering  <jim@meyering.net>
85900
85901         Merge from coreutils CVS.
85902
85903         * lib/stat-macros.h: New file, with contents from file-type.h
85904         and coreutils' system.h.
85905         * lib/file-type.c: Include "stat-macros.h".
85906         * lib/file-type.h (file_type): Move all macro definitions to new file,
85907         stat-macros.h.
85908
85909         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85910         Wrap old code with this conditional.
85911         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85912         function that does not dereference symlinks.
85913         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85914
85915         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85916         dependency problems.
85917         (xreadlink): Accept new arg SIZE, for efficiency.
85918         All decls and uses changed.
85919         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85920
85921         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85922         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85923
85924         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85925         sysexits.h.
85926
85927 2004-06-01  Jim Meyering  <jim@meyering.net>
85928
85929         * m4/calloc.m4: New file.
85930
85931 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85932
85933         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85934         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85935         Also, fix a typo in a diagnostic.
85936
85937 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85938
85939         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85940         or AC_FUNC_REALLOC.
85941
85942 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85943
85944         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85945         macros to be defined.
85946         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85947         the allocator returns NULL because the requested size is zero.
85948
85949 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85952         var.  Add comment explaining why libc still defines it.  This
85953         merges the following patch from glibc:
85954         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85955
85956 2004-05-20  Andreas Schwab  <schwab@suse.de>
85957
85958         * m4/free.m4: Replace free if it not known to work, not the other
85959         way round.
85960
85961 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85962
85963         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85964         present in glibc since revision 1.1 of this file.
85965         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85966         obstack_alignment_mask, obstack_alloc, obstack_base,
85967         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85968         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85969         obstack_grow0, obstack_init, obstack_int_grow,
85970         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85971         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85972         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85973         nonexistent functions.
85974
85975 2004-05-18  Karl Berry  <karl@gnu.org>
85976
85977         * config/srclist.txt: break link for vasnprintf.c.
85978
85979 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85980
85981         Port obstack to the AS/400, where pointers are 16 bytes wide and
85982         you cannot cast an integer to a valid pointer.  This patch is
85983         currently waiting to be integrated into glibc; see
85984         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85985
85986         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85987         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85988         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85989         (struct obstack): temp member is now a union of a pointer and
85990         an integer, instead of an integer.  All integer uses changed.
85991         This does not affect the physical layout of struct obstack,
85992         except on hosts (like the AS/400) where the size or alignment of
85993         void * is greater than that of ptrdiff_t.
85994         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85995         __STDC__)]: Store temporary in pointer member of union, not
85996         integer member.
85997         * lib/obstack.c: Include <stddef.h>, for offsetof.
85998         (struct fooalign): Remove; it doesn't need a name.
85999         (union fooround): Change double to long double, and add void *.
86000         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86001         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86002         not a macro.  Hence the values are always int; so remove all
86003         casts-to-int in uses.
86004
86005 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86006
86007         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86008         we can get this patch merged into glibc.
86009
86010 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86011             Paul Eggert  <eggert@cs.ucla.edu>
86012
86013         * m4/argp: Depend on alloca.
86014
86015 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86016             Paul Eggert  <eggert@cs.ucla.edu>
86017
86018         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86019         freecoding.
86020
86021 2004-05-17  Bruno Haible  <bruno@clisp.org>
86022
86023         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86024         precision that consists of a '.' followed by an empty digit string.
86025         Patch by Tor Lillqvist <tml@iki.fi>.
86026
86027 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86028
86029         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86030         for backward compatibility with older code.  We need our own
86031         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86032         it under some other name, and our alloca.h will define it.
86033
86034 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86035             Derek Price  <derek@ximbiot.com>
86036
86037         * lib/alloca.c: Include <alloca.h>, to get our interface.
86038         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86039         include <alloca.h> first.  Use C89 prototype for alloca; this
86040         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86041         Use #elif for simplicity, since we can assume C89 now.
86042         Don't try to source the system alloca.h since it will not be found
86043         and to prevent recursively including its replacement.
86044         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86045         * lib/regex.c: Likewise.
86046
86047 2004-05-16  Derek Price  <derek@ximbiot.com>
86048             Paul Eggert  <eggert@cs.ucla.edu>
86049
86050         getline cleanup.  This changes the getndelim2 API: both order of
86051         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86052         no delimiter).
86053
86054         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86055         interface does that.
86056         (getline): Always use getdelim, so that we don't have two
86057         copies of this code.
86058         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86059         if available.
86060         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86061         (GETNDELIM2_MAXIMUM): New macro.
86062         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86063         instead of the old practice of delim2==0.  All callers changed.
86064         Return -1 on overflow, instead of returning junk.
86065         Do not set *linesize unless allocation succeeds.
86066         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86067         that we include sys/types.h.
86068         * lib/getnline.h: Likewise.
86069         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86070         (getndelim2): Reorder arguments.
86071         * lib/getnline.c (getnline, getndelim):
86072         Don't discard the NMAX argument.
86073         (getnline): Invoke getndelim, to avoid code duplication.
86074         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86075         of (size_t) -1 by callers of the getnline family.
86076
86077 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86078
86079         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86080         Check for gettimeofday.
86081         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86082         Check for settimeofday, stime.
86083
86084 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86085
86086         * lib/nanosleep.c (suspended): Change its type from int to
86087         sig_atomic_t volatile.
86088         (first_call): Make it private to rpl_nanosleep, and have it
86089         be zero initially as that's a bit faster.
86090         (my_usleep): Round up fractional times instead of truncating them,
86091         as this is the usual meaning for 'sleep'.
86092
86093         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86094         doesn't work.
86095         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86096         (ENOSYS): Define if not defined.
86097         (settime): Fall back on stime if it exists and settimeofday fails.
86098         But don't bother with fallbacks if a method fails with errno == EPERM.
86099
86100 2004-05-11  Jim Meyering  <jim@meyering.net>
86101
86102         Prior to this change, the save_cwd caller required read access to the
86103         current directory on most systems (ones with the fchdir function).
86104
86105         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86106         fails, try write-only, and finally, resort to using xgetcwd.
86107
86108 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86109
86110         * lib/obstack.c, obstack.h: Import changes from libc.
86111
86112 2004-04-28  Bruno Haible  <bruno@clisp.org>
86113
86114         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86115         also implicitly appends .exe to executables.
86116         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86117         accepts Windows pathnames.
86118         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86119         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86120         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86121         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86122         Reported by Derek Robert Price <derek@ximbiot.com>.
86123
86124 2004-04-21  Karl Berry  <karl@gnu.org>
86125
86126         * config/srclist.txt (localcharset.c): break sync.
86127
86128 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86129
86130         * m4/host-os.m4: Add a copyright notice.
86131
86132 2004-04-20  Jim Meyering  <jim@meyering.net>
86133
86134         Change UTILS_ to gl_ in AC_DEFINE'd names.
86135         Change utils_- and jm_-prefixed variables, too.
86136         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86137         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86138         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86139
86140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86141         Don't emit trailing blanks.
86142         Also rename jm_-prefixed variables to have gl_ prefix.
86143
86144         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86145         Also rename jm_-prefixed variables to have gl_ prefix.
86146
86147         * m4/jm-macros.m4: Reflect the renamings.
86148         * m4/prereq.m4: Likewise.
86149
86150 2004-04-20  Jim Meyering  <jim@meyering.net>
86151
86152         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86153         memory.
86154
86155 2004-04-20  Jim Meyering  <jim@meyering.net>
86156             Bruno Haible  <bruno@clisp.org>
86157
86158         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86159         memory when realloc fails.
86160
86161 2004-04-19  Jim Meyering  <jim@meyering.net>
86162
86163         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86164         now that readutmp.c may call `free (0)'.
86165
86166 2004-04-19  Bruno Haible  <bruno@clisp.org>
86167
86168         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86169         * m4/inttypes_h.m4: Likewise.
86170         * m4/stdint_h.m4: Likewise.
86171         * m4/intmax_t.m4: Likewise.
86172         * m4/uintmax_t.m4: Likewise.
86173
86174 2004-04-18  Jim Meyering  <jim@meyering.net>
86175
86176         * m4/prereq.m4: Don't forbid jm_ prefix.
86177
86178         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86179         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86180         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86181         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86182         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86183         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86184         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86185         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86186         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86187         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86188         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86189         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86190         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86191         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86192         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86193         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86194         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86195         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86196         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86197
86198 2004-04-18  Jim Meyering  <jim@meyering.net>
86199
86200         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86201         failure, don't leak memory and do call END_UTMP_ENT.
86202
86203 2004-04-16  Jim Meyering  <jim@meyering.net>
86204
86205         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86206         coreutils' stat program.
86207         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86208
86209 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86210
86211         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86212         C89.
86213         (CHAR_BIT): Remove, since we assume C89.
86214         Include <stdint.h> if available, as per current Autoconf CVS advice.
86215
86216 2004-03-31  Jim Meyering  <jim@meyering.net>
86217
86218         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86219         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86220         * m4/xalloc.m4: Likewise.
86221
86222 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86223
86224         Merge from coreutils.
86225
86226         * m4/inttostr.m4: New file.
86227         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86228         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86229         Require gl_CLOCK_TIME.
86230         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86231
86232 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86233
86234         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86235         not bool, to be more consistent with Unix conventions.
86236         Suggested by Bruno Haible.
86237
86238         Merge from coreutils.
86239
86240         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86241         * lib/umaxtostr.c: New files.
86242
86243         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86244         the usual <time.h> dance.
86245         (get_date): Change signature to support fractional time stamps.
86246         All callers changed.
86247         * lib/getdate.y: Include "getdate.h" first, as we can now
86248         assume C89 and don't need to worry about 'const'.
86249         Similarly, include "unlocked-io.h" near start, not in middle.
86250         Include <limits.h>.
86251         (textint.value): Use long int rather than int.
86252         (textint.digits): Use size_t rather than int.
86253         (BILLION, LOG10_BILLION): New constants.
86254         (parser_control): New member rel_ns.  Members day_ordinal,
86255         time_zone, month, day, hour, minutes, rel_year, rel_month,
86256         rel_day, rel_hour, rel_minutes, rel_seconds
86257         are now long int, not int.  Member seconds is now struct timespec,
86258         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86259         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86260         not int.
86261         (%union.intval): Now long int, not int.
86262         New member timespec.
86263         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86264         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86265         (spec): Now is a timespec or an item list.
86266         (timespec, items): New nonterminals.
86267         (time, rel, relunit, number, get_date):
86268         Add support for fractional seconds.
86269         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86270         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86271         (to_hour): First arg is now long int, not int.
86272         (to_year): Returns long int, not int.
86273         Don't treat year -70 like 70.
86274         (tm_diff): Returns long int, not int.
86275         (lookup_word): Use bool instead of int when appropriate.
86276         (yylex): Use size_t for count, not int.
86277         Detect overflow when parsing large integer constants.
86278         Add support for fractions.
86279         (get_date): Make pointers 'const' if possible.
86280         Use more-portable code to detect integer overflow.
86281         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86282         Don't use ctime; it's not reliable if the year has >4 digits.
86283
86284         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86285         This is for compatibility with BSD.
86286
86287         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86288         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86289         From coreutils' system.h.
86290
86291         * lib/userspec.c: Don't include "posixver.h".
86292         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86293         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86294         compatible extension.  Simplify code by removing a boolean int
86295         that was always nonzero if a string was nonnull.
86296
86297 2004-03-30  Jim Meyering  <jim@meyering.net>
86298
86299         Merge from coreutils.
86300
86301         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86302         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86303         on some systems one must include <grp.h> before it.
86304         Reported by Christian Krackowizer.
86305
86306 2004-03-30  Jim Meyering  <jim@meyering.net>
86307
86308         Merge from coreutils.
86309
86310         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86311
86312         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86313         an empty input stream.
86314
86315         * lib/readtokens.c: Include <stdbool.h>.
86316         (readtoken): Use `size_t' rather than int/long.
86317         All callers adjusted.
86318         Use `bool' rather than `int' where appropriate.
86319         Use memset rather than an explicit loop.
86320         Use x2nrealloc rather than xrealloc.
86321         Allow the use of `\0' as a delimiter.
86322         (readtokens): Likewise.
86323         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86324
86325 2004-03-30  Jim Meyering  <jim@meyering.net>
86326
86327         * m4/realloc.m4: Remove file, since now it does no more than
86328         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86329         the `configure.ac' section of module/realloc.
86330         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86331
86332 2004-03-30  Bruno Haible  <bruno@clisp.org>
86333
86334         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86335         nonnull.
86336
86337 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86338
86339         Merge changes to getloadavg.c from coreutils and Emacs.
86340
86341         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86342         Define to an expression, not to the empty string.
86343         Include cloexec.h and xalloc.h.
86344         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86345         Use set_cloexec_flag rather than rolling our own.
86346         * lib/cloexec.c, lib/cloexec.h: New files.
86347
86348 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86349
86350         * m4/cloexec.m4: New file.
86351
86352 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86353
86354         * lib/getopt.h: Sync with libc CVS.
86355
86356 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86357             Bruno Haible  <bruno@clisp.org>
86358
86359         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86360         mbswidth.
86361
86362 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86363             Bruno Haible  <bruno@clisp.org>
86364
86365         * lib/mbswidth.h: Include <wchar.h> only if
86366         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86367         <wchar.h>.
86368         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86369
86370 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86371
86372         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86373         Sync with libc CVS.
86374         * lib/getopt_int.h: New file, also synced from libc.
86375
86376 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86377
86378         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86379         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86380         Bring back getopt.c, getopt.h, getopt1.c.
86381
86382 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86383
86384         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86385         All uses changed.  Check for sa_sigaction member; this fixes
86386         a bug first reported by Jason Andrade in
86387         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86388
86389 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86390
86391         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86392         '#if' expressions.  Unlike the code it replaces, it does not
86393         depend on (defined _SC_PAGESIZE).  However, it does depend on
86394         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86395         first reported by Jason Andrade in
86396         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86397
86398 2004-02-25  Simon Josefsson  <jas@extundo.com>
86399
86400         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86401
86402 2004-02-25  Simon Josefsson  <jas@extundo.com>
86403
86404         * lib/strdup.h: New file.
86405         * lib/strdup.c: Include it.
86406         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86407         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86408
86409 2004-02-23  Karl Berry  <karl@gnu.org>
86410
86411         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86412         (from fencepost.gnu.org:/gd/gnuorg).
86413
86414 2004-02-23  Karl Berry  <karl@gnu.org>
86415
86416         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86417         * config/srclist.txt: add maintain/standards documents.
86418
86419 2004-02-18  Bruno Haible  <bruno@clisp.org>
86420
86421         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86422         Reported by Derek Robert Price <derek@ximbiot.com>.
86423
86424 2004-02-16  Karl Berry  <karl@gnu.org>
86425
86426         * config/mkinstalldirs, install-sh: update from automake.
86427
86428 2004-02-06  Karl Berry  <karl@gnu.org>
86429
86430         * m4/po.m4: update from gettext 0.14.1.
86431
86432 2004-02-06  Karl Berry  <karl@gnu.org>
86433
86434         * lib/config.charset: update from gettext 0.14.1.
86435
86436 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86437
86438         Add comments and code, prompted by suggestions from Bruno Haible
86439         for sh-quote.
86440         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86441         describing the enum quoting_style values.
86442         * lib/quotearg.c (quotearg_alloc): New function.
86443         (quotearg_buffer_restyled): Treat lone { and } as special.
86444         Treat = as special.  Work around bug with older shells
86445         that "see" a '\' that is really the 2nd byte of a multibyte char.
86446         Quote empty string with shell_quoting_style.
86447
86448 2004-02-03  Bruno Haible  <bruno@clisp.org>
86449
86450         * m4/pipe.m4: New file, from GNU gettext.
86451
86452 2004-02-03  Bruno Haible  <bruno@clisp.org>
86453
86454         * lib/pipe.h: New file, from GNU gettext.
86455         * lib/pipe.c: New file, from GNU gettext.
86456
86457 2004-01-27  Bruno Haible  <bruno@clisp.org>
86458
86459         * m4/execute.m4: New file, from GNU gettext.
86460
86461 2004-01-27  Bruno Haible  <bruno@clisp.org>
86462
86463         * lib/execute.h: New file, from GNU gettext.
86464         * lib/execute.c: New file, from GNU gettext.
86465         * lib/w32spawn.h: New file, from GNU gettext.
86466
86467 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86468
86469         Merge from diffutils.
86470
86471         * lib/file-type.c (file_type): Add typed memory objects.
86472         * lib/file-type.h (S_TYPEISTMO): New macro.
86473
86474         * lib/c-stack.h (c_stack_action): Remove argv argument.
86475         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86476         (die): Don't calculate message unless segv_action returns.
86477         (get_stack_location, min_address_from_argv, max_address_from_argv,
86478         volatile stack_base, volatile_stack_size): Remove.
86479         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86480         that every segmentation violation is a stack overflow.  (Ouch!)
86481         See Debian bug 136249 (still outstanding) for more info about why
86482         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86483
86484 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86485
86486         Exit-status fix from coreutils.
86487
86488         Use exit_failure consistently in place of EXIT_FAILURE,
86489         so that program exit statuses are consistent on failure.
86490
86491         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86492         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86493         * lib/argmatch.h: Comment fix to match the above.
86494         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86495         Now a macro referring to exit_failure, instead of a separate
86496         variable.  Include "exitfail.h" to get it.
86497         * lib/xstrtol.h: Include "exitfail.h".
86498         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86499
86500         * lib/long-options.c (parse_long_options): Use prototype
86501         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86502         for clarity.
86503
86504 2004-01-21  Jim Meyering  <jim@meyering.net>
86505
86506         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86507         so as not to conflict with a different-sized __mktime_internal
86508         function in GNU libc.
86509         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86510         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86511
86512 2004-01-20  Karl Berry  <karl@gnu.org>
86513
86514         * config/config.guess: update from config.
86515
86516         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86517
86518 2004-01-20  Bruno Haible  <bruno@clisp.org>
86519
86520         Safer stack allocation.
86521         * lib/setenv.c: Include allocsa.h.
86522         (alloca): Remove fallback definition.
86523         (freea): Remove macro.
86524         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86525         instead of freea.
86526
86527 2004-01-20  Bruno Haible  <bruno@clisp.org>
86528
86529         * m4/eealloc.m4: New file, from GNU gettext.
86530
86531 2004-01-20  Bruno Haible  <bruno@clisp.org>
86532
86533         * m4/allocsa.m4: New file, from GNU gettext.
86534
86535 2004-01-20  Bruno Haible  <bruno@clisp.org>
86536
86537         * lib/xallocsa.h: New file, from GNU gettext.
86538         * lib/xallocsa.c: New file, from GNU gettext.
86539
86540 2004-01-20  Bruno Haible  <bruno@clisp.org>
86541
86542         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86543
86544 2004-01-20  Bruno Haible  <bruno@clisp.org>
86545
86546         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86547         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86548         specially.
86549
86550 2004-01-20  Bruno Haible  <bruno@clisp.org>
86551
86552         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86553         patch.
86554
86555 2004-01-20  Bruno Haible  <bruno@clisp.org>
86556
86557         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86558
86559 2004-01-20  Bruno Haible  <bruno@clisp.org>
86560
86561         * lib/eealloc.h: New file.
86562
86563 2004-01-20  Bruno Haible  <bruno@clisp.org>
86564
86565         * lib/binary-io.h: Avoid warnings on Cygwin.
86566
86567 2004-01-20  Bruno Haible  <bruno@clisp.org>
86568
86569         * lib/allocsa.h: New file, from GNU gettext.
86570         * lib/allocsa.c: New file, from GNU gettext.
86571
86572 2004-01-18  Karl Berry  <karl@gnu.org>
86573
86574         * doc/gpl.texi, doc/lgpl.texi: new files.
86575
86576 2004-01-18  Karl Berry  <karl@gnu.org>
86577
86578         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86579         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86580
86581 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86582
86583         Merge from coreutils.
86584
86585         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86586         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86587         (gl_DEFAULT_POSIX2_VERSION): Move
86588         the documentation from 'configure' into 'config.hin',
86589         so that 'configure --help' isn't burdened by it and
86590         we don't have to worry about its formatting there.
86591         Reword the documentation so that it's more succinct
86592         and can be run together into a single paragraph.
86593         * m4/same.m4 (gl_SAME): Check for pathconf.
86594
86595 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86596
86597         Merge from coreutils.
86598
86599         * lib/posixver.c: Include posixver.h.
86600
86601         * lib/same.c: Include <stdbool.h>, <limits.h>.
86602         (_POSIX_NAME_MAX): Define if not defined.
86603         (MIN): New macro.
86604         (same_name): If file names are silently truncated, report
86605         that the file names are the same if they are the same after
86606         the silent truncation.
86607
86608         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86609         conversion function.
86610         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86611         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86612         longer needed.
86613
86614 2004-01-15  Jim Meyering  <jim@meyering.net>
86615
86616         Merge from coreutils.
86617
86618         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86619         if no library is required.
86620         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86621         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86622         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86623         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86624         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86625         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86626         value, $ac_cv_search_crypt, if it's "none required".
86627         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86628         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86629         not gl_FUNC_GETLOADAVG.
86630         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86631         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86632
86633 2004-01-15  Jim Meyering  <jim@meyering.net>
86634
86635         Merge from coreutils.
86636
86637         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86638         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86639         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86640
86641         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86642         optional configure-time default.
86643
86644         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86645
86646         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86647
86648 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86649
86650         Merge from coreutils.
86651
86652         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86653         value, $ac_cv_search_nanosleep, if it's "none required".
86654
86655 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86656
86657         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86658         with like-named macro in fnmatch.c.
86659         (EXT): Use an internal constant instead.
86660
86661         Merge fnmatch patches from glibc.
86662         * lib/fnmatch.c (mbsinit): Remove define.
86663         Add libc_hidden_ver (__fnmatch, fnmatch).
86664         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86665         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86666
86667 2004-01-14  Karl Berry  <karl@gnu.org>
86668
86669         * config/install-sh: update from automake.
86670
86671 2004-01-13  Karl Berry  <karl@gnu.org>
86672
86673         * config/install-sh: update from automake.
86674
86675 2004-01-09  Karl Berry  <karl@gnu.org>
86676
86677         * config/install-sh: update from automake.
86678
86679 2004-01-05  Karl Berry  <karl@gnu.org>
86680
86681         * config/config.{sub,guess}: update from config.
86682
86683 2003-12-31  Karl Berry  <karl@gnu.org>
86684
86685         * config/depcomp: update from automake.
86686
86687 2003-12-14  Karl Berry  <karl@gnu.org>
86688
86689         * lib/config.charset: update from gettext-runtime.
86690
86691 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86692
86693         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86694         Bug reported by Alfred M. Szmidt.
86695
86696 2003-12-03  Bruno Haible  <bruno@clisp.org>
86697
86698         * m4/gettext.m4: Upgrade from gettext-0.13.
86699         * m4/po.m4: Upgrade from gettext-0.13.
86700         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86701         * m4/intmax.m4: New file, from gettext-0.13.
86702         * m4/printf-posix.m4: New file, from gettext-0.13.
86703
86704 2003-11-29  Karl Berry  <karl@gnu.org>
86705
86706         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86707
86708 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86709             Bruno Haible  <bruno@clisp.org>
86710
86711         * lib/printf-parse.h: Don't include sys/types.h.
86712         (ARG_NONE): New macro.
86713         (char_directive): Change type of *arg_index fields to size_t.
86714         * lib/printf-parse.c: Don't include sys/types.h.
86715         (SSIZE_MAX): Remove macro.
86716         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86717         Remove unnecessary overflow check.
86718         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86719         fields.
86720
86721 2003-11-25  Bruno Haible  <bruno@clisp.org>
86722
86723         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86724
86725 2003-11-25  Bruno Haible  <bruno@clisp.org>
86726
86727         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86728         gt_TYPE_SSIZE_T.
86729
86730 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86731
86732         * modules/alloca: Remove dependency on xalloc.
86733
86734 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86735
86736         * lib/alloca.c: Remove dependency on xalloc module.
86737         (xalloc_die): Remove.
86738         (memory_full) [!defined emacs]: New macro.
86739         [!defined emacs]: Don't include xalloc.h.
86740         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86741         address arithmetic overflows.  Change datatypes a bit to avoid
86742         unnecessary casts.
86743
86744 2003-11-22  Jim Meyering  <jim@meyering.net>
86745
86746         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86747         s/size/size_t/.
86748
86749 2003-11-21  Karl Berry  <karl@gnu.org>
86750
86751         * config/config.{sub,guess}: update from config.
86752
86753 2003-11-18  Karl Berry  <karl@gnu.org>
86754
86755         * config/config.{sub,guess}: update from config.
86756
86757         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86758
86759 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86760
86761         * README: Mention that S+T cannot overflow if S is the size of
86762         an existing object and T is sufficiently small.
86763
86764 2003-11-17  Jim Meyering  <jim@meyering.net>
86765
86766         On systems without utime and without a utimes function capable of
86767         dealing with a NULL struct utimbuf* argument, this utime replacement
86768         could -- in unusual circumstances -- leak a file descriptor.
86769         * lib/utime.c: Include <unistd.h> and <errno.h>.
86770         (utime_null): Be sure to close `fd' and to preserve errno.
86771         Reported by Geoff Collyer via Arnold Robbins.
86772
86773 2003-11-17  Bruno Haible  <bruno@clisp.org>
86774
86775         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86776         (Depends-on): Add xsize.
86777
86778 2003-11-17  Bruno Haible  <bruno@clisp.org>
86779
86780         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86781
86782 2003-11-17  Bruno Haible  <bruno@clisp.org>
86783
86784         * lib/vasnprintf.c (alloca): Remove fallback definition.
86785         (freea): Remove definition.
86786         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86787         Reported by Paul Eggert.
86788
86789 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86790             Bruno Haible  <bruno@clisp.org>
86791
86792         Protect against address arithmetic overflow.
86793         * lib/printf-args.h: Include stddef.h.
86794         (arguments): Change type of field 'count' to size_t.
86795         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86796         'unsigned int' where appropriate.
86797         * lib/printf-parse.h: Include sys/types.h.
86798         (char_directive): Change type of *arg_index fields to ssize_t.
86799         (char_directives): Change type of fields 'count', max_*_length to
86800         size_t.
86801         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86802         (SSIZE_MAX): Define fallback value.
86803         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86804         instead of 'int' where appropriate. Check a_allocated, d_allocated
86805         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86806         * lib/vasnprintf.c: Include xsize.h.
86807         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86808         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86809         overflow. Avoid wraparound when converting a width or precision from
86810         decimal to binary.
86811
86812 2003-11-16  Bruno Haible  <bruno@clisp.org>
86813
86814         Update from GNU gettext.
86815         * lib/printf-parse.c: Generalize to it can be compiled for wide
86816         strings.
86817         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86818         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86819         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86820         SNPRINTF): New macros.
86821         Don't include <alloca.h> if the file is used inside libintl.
86822         (local_wcslen): New function, for Solaris 2.5.1.
86823         (VASNPRINTF): Use it instead of wcslen.
86824
86825 2003-11-16  Bruno Haible  <bruno@clisp.org>
86826
86827         * lib/xsize.h (xmax): New function.
86828         (xsum, xsum3, xsum4): Declare as "pure" functions.
86829
86830 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86831
86832         * modules/xalloc (Files): Undo latest change, since xalloc.h
86833         no longer needs SIZE_MAX or PTRDIFF_MAX.
86834
86835 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86836
86837         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86838         gl_PTRDIFF_MAX.
86839
86840 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86841
86842         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86843         "return", to pacify some unknown compiler.  Problem reported
86844         by Joerg Schilling.
86845
86846 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86847
86848         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86849         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86850         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86851         heuristic is just as accurate as far as we know, and it removes a
86852         dependency on size_max.m4 and ptrdiff_max.m4.
86853
86854 2003-11-11  Bruno Haible  <bruno@clisp.org>
86855
86856         * modules/xsize (Files): Add m4/size_max.m4.
86857         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86858
86859 2003-11-11  Bruno Haible  <bruno@clisp.org>
86860
86861         * m4/size_max.m4: New file.
86862         * m4/ptrdiff_max.m4: New file.
86863         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86864         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86865         (gl_XALLOC): Invoke it.
86866
86867 2003-11-11  Bruno Haible  <bruno@clisp.org>
86868
86869         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86870         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86871         defined.
86872
86873 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86874
86875         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86876         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86877         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86878         From Bruno Haible.
86879         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86880         not (size_t) -1, since it's defined here.
86881
86882 2003-11-09  Karl Berry  <karl@gnu.org>
86883
86884         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86885
86886 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86887
86888         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86889         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86890         Reject sizes of exactly SIZE_MAX bytes.
86891         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86892         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86893
86894 2003-11-05  Bruno Haible  <bruno@clisp.org>
86895
86896         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86897         SIZE_MAX defined in <limits.h> on Solaris.
86898
86899 2003-11-04  Jim Meyering  <jim@meyering.net>
86900
86901         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86902         variable names, rather than @VAR@.
86903         * modules/poll: Likewise.
86904
86905 2003-11-04  Bruno Haible  <bruno@clisp.org>
86906
86907         * modules/xsize: New file.
86908         * modules/linebreak: Depend on xsize.
86909         * MODULES.html.sh (func_all_modules): Add xsize.
86910
86911 2003-11-04  Bruno Haible  <bruno@clisp.org>
86912
86913         * m4/xsize.m4: New file.
86914
86915 2003-11-04  Bruno Haible  <bruno@clisp.org>
86916
86917         * lib/xsize.h: New file.
86918         * lib/linebreak.c: Include xsize.h.
86919         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86920         argument for overflow.
86921         Suggested by Paul Eggert.
86922
86923 2003-11-03  Karl Berry  <karl@gnu.org>
86924
86925         * config/config.{guess,sub}: update from config.
86926
86927 2003-11-03  Jim Meyering  <jim@meyering.net>
86928
86929         * modules/userspec (lib_SOURCES): Add userspec.h.
86930         (Include): Add "userspec.h".
86931         Improve description.
86932
86933 2003-11-03  Jim Meyering  <jim@meyering.net>
86934
86935         * lib/userspec.c: Include "userspec.h".
86936         * lib/userspec.h: New file.
86937
86938 2003-11-03  Bruno Haible  <bruno@clisp.org>
86939
86940         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86941
86942 2003-11-03  Bruno Haible  <bruno@clisp.org>
86943
86944         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86945         available, to avoid (extremely rare) race condition.
86946         Suggested by Paul Eggert.
86947
86948 2003-11-02  Karl Berry  <karl@gnu.org>
86949
86950         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86951
86952 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86953
86954         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86955         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86956         (read_filesystem_list): Set and use me_type_malloced.
86957         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86958         whatever the type happens to be), for brevity and consistency.
86959         Check for size calculation overflow on Alphas running OSF/1.
86960
86961 2003-10-31  Jim Meyering  <jim@meyering.net>
86962
86963         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86964
86965         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86966
86967 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86968             Bruno Haible  <bruno@clisp.org>
86969
86970         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86971         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86972
86973 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86974
86975         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86976         netbsd*-gnu*.  Suggested by Robert Millan.
86977
86978 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86979
86980         * modules/group-member: Depend on stdbool.
86981
86982 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86983
86984         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86985
86986 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86987
86988         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86989         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86990         after the 'gnu' in these cases.  This fixes some bugs in the
86991         previous change, and is based on suggestions by Robert Millan.
86992
86993 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86994
86995         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86996         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86997         no longer needed.
86998         * lib/quotearg.c (quotearg_n_options): Use it.
86999         * lib/group-member.c: Include <stdbool.h>.
87000         (free_group_info): Arg is now const *; don't free arg.
87001         (get_group_info): Now returns bool and accepts struct group_info *,
87002         rather than returning a malloc'ed struct group_info *.
87003         All uses changed.  Check for overflow in internal size calculation.
87004
87005         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87006         rather than xmalloc/xrealloc.
87007         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87008         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87009         conformance bug: the old code used a pointer after freeing the
87010         storage that it addressed.
87011         * lib/hash.c (hash_initialize): Simplify the code by using
87012         xalloc_oversized rather than doing it by hand.
87013         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87014         the buffer preserved.  Use free and xmalloc instead.
87015         * lib/quotearg.c (quotearg_n_options): Likewise.
87016         Use a simpler test for size overflow.  Don't use xalloc_oversized
87017         because unsigned int might be wider than size_t (!); this suggests
87018         that we should switch from unsigned int to size_t for slot numbers.
87019
87020 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87021
87022         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87023         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87024         NetBSD kernels.  Requested by Richard Stallman.
87025
87026 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87027
87028         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87029         to allocate the returned structure.  Do not allocate a subarray,
87030         as x2nrealloc will do that.
87031         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87032         instead of xnrealloc.
87033         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87034
87035 2003-10-27  Bruno Haible  <bruno@clisp.org>
87036
87037         * lib/stdbool_.h: Better support for BeOS.
87038
87039 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87040
87041         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87042         now uses inline.
87043
87044 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87045
87046         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87047         callers that want to do their own size-overflow checking.  Include
87048         <stdbool.h>, since xalloc_oversized returns bool.
87049         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87050         to use xalloc_oversized.
87051
87052         Add two functions x2realloc, x2nrealloc, for programs that grow
87053         arrays dynamically by doubling their sizes.
87054         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87055         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87056         New functions.
87057
87058         Port to C99 semantics for 'inline' of external functions.
87059         Bug reported by Bruno Haible.
87060         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87061         with the old contents of xnmalloc.
87062         (xnmalloc, xmalloc): Use it.
87063         (xnrealloc_inline): New static inline function,
87064         with the old contents of xnrealloc.
87065         (xnrealloc, xrealloc): Use it.
87066
87067         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87068         that.
87069
87070 2003-10-26  Karl Berry  <karl@gnu.org>
87071
87072         * config/srclist.txt (COPYING.DOC): no longer available from
87073         /gd/gnuorg; don't know where the ultimate source is.
87074
87075 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87076
87077         Fix several address-calculation bugs in the hash modules,
87078         plus some minor code cleanup.
87079
87080         * lib/hash.h: Include <stdbool.h>, for bool.
87081         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87082         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87083         hash_get_n_entries, hash_get_max_bucket_length,
87084         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87085         hash_rehash): Use size_t rather than unsigned.
87086         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87087         hash_get_n_buckets_used, hash_get_n_entries,
87088         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87089         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87090         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87091         Likewise.
87092         (SIZE_MAX): Define if not defined.
87093         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87094         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87095         hash_print):
87096         Use const * when possible.
87097         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87098         (check_tuning): Fix bug: if tuning parameters were very close to
87099         0 or 1, rounding errors could have caused subscript violations.
87100         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87101         (hash_initialize): Add 'fail:' label
87102         to free table and return NULL, and use it to simplify code.
87103         Use calloc rather than clearing the storage ourself.
87104         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87105         buffer size calculations.
87106         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87107         Include <stddef.h>, for size_t.
87108         * lib/hash-pjw.c (hash_pjw): Likewise.
87109         Switch to method described by Bruno Haible.
87110         Include <limits.h>, for CHAR_BIT.
87111         (SIZE_BITS): New macro.
87112
87113 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87114
87115         * m4/getline.m4 (AM_FUNC_GETLINE):
87116         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87117         hosts.  Problem reported by Derek Robert Price in
87118         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87119         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87120         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87121
87122 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87123
87124         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87125         ceiling the allocation at NMAX bytes rather than silently
87126         discarding input bytes before NMAX is reached.  This makes
87127         a difference only if NMAX exceeds SIZE_MAX / 2.
87128
87129         * lib/obstack.c: Merge from glibc.
87130         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87131         Add libc_hidden_def (_obstack_newchunk).
87132         (_obstack_free) [! defined _LIBC]: Remove.
87133         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87134         a clone of the function body.
87135         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87136         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87137
87138         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87139         glibc.
87140         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87141         arg to memcpy.
87142
87143         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87144         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87145         Don't use lvalue casts, as GCC plans to remove support for them
87146         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87147         was also present in the non-GCC version, indicating that this
87148         code had always been buggy and had never been widely used.
87149         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87150         Use the fast variant of each macro, rather than copying the
87151         definiens of the fast variant; that way, we'll be more likely to
87152         catch future bugs in the fast variants.
87153
87154 2003-10-20  Bruno Haible  <bruno@clisp.org>
87155
87156         * modules/wait-process: New file.
87157         * MODULES.html.sh (func_all_modules): Add wait-process.
87158
87159 2003-10-20  Bruno Haible  <bruno@clisp.org>
87160
87161         * m4/wait-process.m4: New file.
87162
87163 2003-10-20  Bruno Haible  <bruno@clisp.org>
87164
87165         * lib/wait-process.h: New file, from GNU gettext.
87166         * lib/wait-process.c: New file, from GNU gettext.
87167
87168 2003-10-19  Jim Meyering  <jim@meyering.net>
87169
87170         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87171         HPUX 10.20.
87172
87173 2003-10-18  Karl Berry  <karl@gnu.org>
87174
87175         * config/config.guess: update from config.
87176
87177 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87178
87179         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87180         (getgroups): First arg is int, not size_t.
87181         Don't let 'free' mangle errno.
87182
87183 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87184
87185         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87186
87187 2003-10-16  Karl Berry  <karl@gnu.org>
87188
87189         * config/config.{guess,sub}: update from config.
87190
87191 2003-10-16  Jim Meyering  <jim@meyering.net>
87192
87193         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87194         memcpy.
87195
87196 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87197
87198         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87199         (SIZE_MAX): Remove.
87200         (new_exclude, add_exclude_file): Initial size no longer needs to
87201         be a power of 2.
87202         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87203         our own address arithmetic overflow checking.
87204
87205         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87206         (fnmatch): Do not alloca more than 2000 wide characters;
87207         instead, use malloc for large buffers.
87208         Check for address arithmetic overflow, and return -1
87209         with errno set to ENOMEM in that case.
87210         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87211         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87212         instead, return -1.  Check for address arithmetic overflow.
87213
87214 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87215
87216         Handle invalid suffixes and overflow independently, so that
87217         callers can treat them independently as needed.  Fix some bugs in
87218         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87219         suffix for a human-readable blocksize.  The major caller-visible
87220         change is the addition of a new
87221         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87222         that both overflow and suffix chars were found.
87223
87224         * lib/human.c (humblock): Don't check separately for invalid suffix
87225         char; that is xstrtoumax's job (now that its bug is fixed).
87226         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87227         INTMAX_MAX]: New macros.
87228         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87229         TYPE_MAXIMUM): New macros.
87230         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87231         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87232         if overflow occurs, as it's what __strtol does and it's more useful
87233         in practice.
87234         (__xstrtol): If __strtol reports some error other than ERANGE,
87235         reflect it to the caller as LONGINT_INVALID.  If it reports
87236         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87237         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87238         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87239         value.
87240         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87241         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87242         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87243         [defined UINTMAX_MAX]: New macros.
87244
87245 2003-10-14  Bruno Haible  <bruno@clisp.org>
87246
87247         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87248
87249 2003-10-14  Bruno Haible  <bruno@clisp.org>
87250
87251         * m4/sig_atomic_t: New file, from GNU gettext.
87252         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87253
87254 2003-10-14  Bruno Haible  <bruno@clisp.org>
87255
87256         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87257         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87258         Also use volatile where needed.
87259
87260 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87261
87262         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87263         Change maintainer from Bruno Haible to 'all'.
87264
87265 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87266
87267         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87268
87269 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87270
87271         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87272         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87273         and define in terms of the other primitives.
87274         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87275         (SIZE_MAX): Define if not already defined.
87276         (array_size_overflow): New function.
87277         (xalloc_die): Abort instead of exiting if 'error' returns.
87278         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87279         (xmalloc, xrealloc): Use them.
87280         (xcalloc): Check for address arithmetic overflow.
87281         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87282         a bit faster than strcpy.
87283
87284 2003-10-10  Simon Josefsson  <jas@extundo.com>
87285
87286         * modules/argp (Depends-on): Add restrict and strcase.
87287
87288 2003-10-10  Simon Josefsson  <jas@extundo.com>
87289
87290         * m4/argp.m4: Add AC_C_INLINE.
87291
87292 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87293
87294         Merge getpass from libc, plus a few fixes.
87295
87296         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87297         Include <stdbool.h>.
87298         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87299         __fsetlocking to empty.
87300         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87301         do include <bits/libc-lock.h>.
87302         Do not include <fcntl.h>; not needed.
87303         [_LIBC]: Include <wchar.h>.
87304         (NOTCANCEL_MODE): New macro.
87305         (flockfile, funlockfile) [_LIBC]: New macros.
87306         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87307         [!_LIBC]: New macros.
87308         (call_fclose): New function.
87309         (getpass): Use it.  Save tty stream separately; this simplifies the
87310         code and makes it more reliable if stdin happens to equal stdout.
87311         Invoke __fsetlocking on tty.
87312         Handle thread cancellation if needed.
87313         Namespace cleanup (use __tcgetattr, __getline).
87314         Use bool for Booleans.
87315         [USE_IN_LIBIO]: Handle wide streams.
87316         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87317         stream might go where.
87318
87319         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87320         doesn't have to include <stdio.h> before us.
87321         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87322         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87323         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87324         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87325         if not declared, so that we can use getpass.c code from libc without
87326         rewriting it.
87327         (flockfile, ftrylockfile, funlockfile): New macros.
87328
87329 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87330
87331         * modules/getpass: Depend on stdbool.
87332
87333 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87334
87335         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87336
87337 2003-10-07  Karl Berry  <karl@gnu.org>
87338
87339         * config/config.{guess,sub}: update from config.
87340
87341 2003-10-06  Jim Meyering  <jim@meyering.net>
87342             Bruno Haible  <bruno@clisp.org>
87343
87344         This lets translators provide better translations for the
87345         "Written by ..." part of --version output.
87346         * lib/version-etc.h: Include stdarg.h.
87347         (version_etc_copyright): Declare as readonly.
87348         (version_etc): Make this function variadic with a NULL-terminated list
87349         of author name strings.
87350         (version_etc_va): New declaration.
87351         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87352         (version_etc_copyright): Declare as readonly.
87353         (version_etc_va): New function. Provide a different translatable string
87354         for each possible number of authors < 10. Abbreviate when there are 10
87355         authors or more.
87356         (version_etc): Make this function variadic. Call version_etc_va.
87357         Suggestion from Gary V. Vaughan.
87358
87359         * lib/long-options.h (parse_long_options): Change prototype: the
87360         authors string is moved to the end and becomes variadic.
87361         * lib/long-options.c: Include stdarg.h.
87362         (parse_long_options): Make this function variadic, too.
87363         Call version_etc_va, not version_etc.
87364
87365 2003-10-06  Bruno Haible  <bruno@clisp.org>
87366
87367         * modules/version-etc-2: Remove file.
87368         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87369
87370 2003-10-06  Bruno Haible  <bruno@clisp.org>
87371
87372         * modules/fatal-signal: New file.
87373         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87374
87375 2003-10-06  Bruno Haible  <bruno@clisp.org>
87376
87377         * m4/fatal-signal.m4: New file.
87378         * m4/signalblocking.m4: New file, from GNU gettext.
87379
87380 2003-10-06  Bruno Haible  <bruno@clisp.org>
87381
87382         * lib/version-etc-2.h: Remove file.
87383         * lib/version-etc-2.c: Remove file.
87384
87385 2003-10-06  Bruno Haible  <bruno@clisp.org>
87386
87387         * lib/fatal-signal.h: New file, from GNU gettext.
87388         * lib/fatal-signal.c: New file, from GNU gettext.
87389
87390 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87391
87392         * README: Rework advice for preventing empty .o files.
87393         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87394         not <sys/types.h>.
87395
87396 2003-10-04  Karl Berry  <karl@gnu.org>
87397
87398         * lib/argp*: update from libc.
87399
87400 2003-10-04  Karl Berry  <karl@gnu.org>
87401
87402         * config/config.{guess,sub}: update from config.
87403
87404 2003-10-02  Bruno Haible  <bruno@clisp.org>
87405
87406         * modules/lchown (Include): Add lchown.h.
87407         * modules/time_r (Include): Use "..." syntax.
87408         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87409
87410 2003-10-01  Simon Josefsson  <jas@extundo.com>
87411
87412         * MODULES.html.sh (func_all_modules): Move gethostname from section
87413         'based on' to section 'lacking' POSIX:2001.
87414
87415 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87416
87417         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87418         to output mode on the same stream.
87419
87420 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87421
87422         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87423         Fix arg typo in previous patch.
87424
87425 2003-09-28  Jim Meyering  <jim@meyering.net>
87426
87427         * lib/error.c: Correct cpp indentation.
87428
87429 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87430
87431         * modules/free: New file.
87432
87433 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87434
87435         * m4/free.m4: New file.
87436
87437 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87438
87439         * lib/minmax.h (MIN, MAX)
87440         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87441         Omit the special code that used __typeof__, since we worry that
87442         it could be more trouble than it's worth.  See:
87443         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87444         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87445
87446         * lib/free.c: New file.
87447
87448 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87449
87450         Trivial fixes to Makefile.am parts of module listings.
87451         * modules/strstr: Append strstr.h to lib_SOURCES.
87452         * modules/strcase: Likewise, for strcase.h.
87453
87454 2003-09-27  Karl Berry  <karl@gnu.org>
87455
87456         * config/mkinstalldirs: update from automake.
87457
87458 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87459
87460         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87461         (error_tail): Do not loop, reallocating temporary buffer, since
87462         the output cannot contain more wide characters than the input
87463         contains bytes, the size must be big enough already.  This avoids
87464         one potential size overflow calculation.  Check for size overflow
87465         when calculating temporary buffer size.  Free temporary buffer
87466         when done, if it was allocated with malloc; this plugs a memory
87467         leak.  Remove casts from void * to pointers, that are no longer
87468         needed now that we're assuming C89 or better.
87469
87470         Merge error changes from glibc.
87471
87472         * lib/error.c, error.h: Update copyright notice header to match glibc.
87473         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87474         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87475         Disable cancellation while printing error.
87476         * lib/error.h: Prepend __ to parameter names.
87477
87478 2003-09-26  Jim Meyering  <jim@meyering.net>
87479
87480         * lib/error.c (error_tail): Move some declarations
87481         into inner scope where the local variables are used.
87482
87483 2003-09-26  Bruno Haible  <bruno@clisp.org>
87484
87485         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87486         stpncpy().
87487         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87488
87489 2003-09-26  Bruno Haible  <bruno@clisp.org>
87490
87491         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87492         (stpncpy): Define as alias for gnu_stpncpy.
87493         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87494
87495 2003-09-25  Simon Josefsson  <jas@extundo.com>
87496
87497         * lib/xgetdomainname.h: New file.
87498         * lib/xgetdomainname.c: New file.
87499
87500 2003-09-25  Simon Josefsson  <jas@extundo.com>
87501             Bruno Haible  <bruno@clisp.org>
87502
87503         * modules/getdomainname: New file.
87504         * modules/xgetdomainname: New file.
87505         * MODULES.html.sh (func_all_modules): Add getdomainname,
87506         xgetdomainname.
87507
87508 2003-09-25  Simon Josefsson  <jas@extundo.com>
87509             Bruno Haible  <bruno@clisp.org>
87510
87511         * m4/getdomainname.m4: New file.
87512
87513 2003-09-25  Simon Josefsson  <jas@extundo.com>
87514             Bruno Haible  <bruno@clisp.org>
87515
87516         * lib/getdomainname.h: New file.
87517         * lib/getdomainname.c: New file.
87518
87519 2003-09-25  Karl Berry  <karl@gnu.org>
87520
87521         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87522
87523 2003-09-25  Karl Berry  <karl@gnu.org>
87524
87525         * config/install-sh: update from automake.
87526
87527 2003-09-25  Bruno Haible  <bruno@clisp.org>
87528
87529         * modules/version-etc-2: New file, from modules/version-etc with
87530         modifications.
87531         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87532
87533 2003-09-25  Bruno Haible  <bruno@clisp.org>
87534
87535         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87536         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87537
87538 2003-09-24  Simon Josefsson  <jas@extundo.com>
87539
87540         * modules/xgethostname: Add xgethostname.h.
87541
87542 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87543
87544         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87545         the buffer associated with the argument.  Bug reported by
87546         Simon Josefsson.
87547
87548 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87549
87550         * README: Document assumptions that 'int' is at least 32 bits
87551         wide, that integer arithmetic is 2's complement without overflow,
87552         that there are no holes in integer values, that adding sizes of
87553         two nonoverlapping objects can't overflow, and that all-bits-zero
87554         yields scalar zero.  Fix spelling and capitalization typos.
87555
87556 2003-09-19  Karl Berry  <karl@gnu.org>
87557
87558         * lib/argp.h: update from libc.
87559
87560 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87561
87562         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87563         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87564         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87565
87566 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87567
87568         * gnulib-tool: Use "test -h", not "test -L", for portability
87569         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87570         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87571         (sed_extract_prog): Issue s commands one-by-one, rather than
87572         using \| in one s command.
87573
87574 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87575
87576         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87577         input error, instead of returning NULL the next time we are called
87578         (and therefore losing track of errno).
87579
87580 2003-09-16  Bruno Haible  <bruno@clisp.org>
87581
87582         * gnulib-tool (func_create_testdir): Warn about duplicated
87583         dependencies.
87584
87585 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87586
87587         * modules/argmatch, modules/fatal, modules/obstack,
87588         modules/xalloc, modules/xgethostname: Sort dependencies by
87589         importance, not alphabetically.
87590
87591 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87592
87593         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87594         fails, so that the caller gets the proper errno.
87595
87596         * lib/readutmp.c (read_utmp): Likewise.
87597         Check for fstat error.  Close stream and free storage
87598         when failing.
87599
87600 2003-09-14  Karl Berry  <karl@gnu.org>
87601
87602         * config/srclist.txt (strdup.c): disable for c89 changes.
87603
87604 2003-09-14  Jim Meyering  <jim@meyering.net>
87605
87606         * lib/getloadavg.c: Correct cpp indentation.
87607         * lib/strdup.c: Likewise.
87608         * lib/vasnprintf.c: Likewise.
87609
87610 2003-09-14  Bruno Haible  <bruno@clisp.org>
87611
87612         * modules/fwriteerror: New file.
87613         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87614
87615 2003-09-14  Bruno Haible  <bruno@clisp.org>
87616
87617         * lib/fwriteerror.h: New file.
87618         * lib/fwriteerror.c: New file.
87619
87620 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87621
87622         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87623         modules/xgethostname, modules/xalloc: Depend on exit.
87624
87625 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87626
87627         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87628
87629         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87630         and AC_MINIX, too, so that their extensions are available.
87631
87632         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87633         This macro has been superseded by gl_BACKUPFILE.
87634
87635         More patches to assume C89 or better.
87636
87637         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87638
87639         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87640         unconditionally.
87641         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87642         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87643         Include <string.h>, <stdlib.h> unconditionally.
87644         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87645         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87646         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87647         headers or for string.h.
87648         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87649         or strtoul.
87650
87651         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87652         headers.
87653         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87654         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87655         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87656         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87658         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87659         memcpy, memset.
87660         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87661         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87662         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87663         strtol.
87664         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87665         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87666         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87667         strtoul.
87668
87669 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87670
87671         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87672         * lib/obstack.c [!defined _LIBC]: Likewise.
87673         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87674         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87675         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87676
87677         More changes to assume C89 or better.
87678
87679         * lib/error.c (error_tail): Assume vprintf.
87680
87681         * lib/argmatch.c (getenv): Remove decl.
87682         * lib/progreloc.c (get_full_program_name): Define via prototype.
87683         * lib/setenv.c (clearenv): Likewise.
87684         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87685         needed.
87686         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87687         (malloc, memcpy): Remove decls.
87688         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87689         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87690         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87691         (memcpy): Remove macro.
87692         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87693         (__P): Remove.  All uses removed.
87694         (PTR): Remove.  All uses changed to void *.
87695         (CHAR_BIT, NULL): Remove.
87696         (spaces, zeros, memset_space, memset_zero)
87697         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87698         Remove.
87699         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87700         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87701         Define with prototype.
87702         Remove now-unnecessary prototype decl.
87703         (extra_args_spec): Assume ANSI C.  All uses changed.
87704         (extra_args_spec_iso): Remove.
87705         (my_strftime, emacs_strftimeu): Define via prototype.
87706         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87707         unconditionally.
87708         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87709         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87710         (strtoul, strtol): Remove decls.
87711         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87712         LONG_MAX): Remove.
87713         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87714         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87715         (LOCALE_PARAM_PROTO): New macro.
87716         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87717         (INTERNAL (strtol), strtol): Define with a prototype.
87718         (PARAMS): Remove.  All uses removed.
87719         * lib/tempname.c: Include <string.h> unconditionally.
87720         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87721         * lib/xgethostname.c (main): Define with a prototype.
87722         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87723         Include <stdlib.h> unconditionally.
87724         (calloc, malloc, realloc, free): Remove decls.
87725         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87726         Include <stdlib.h> unconditionally.  Sort include file names.
87727         (strtod): Remove.
87728         (xstrtod): Define with a prototype.
87729         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87730         (strtol, strtoul): Remove decls.
87731
87732 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87733
87734         More patches to assume C89 or better.
87735         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87736         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87737         string.h, memchr, STDC_HEADERS.
87738
87739 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87740
87741         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87742         Include <stdlib.h>, <string.h> unconditionally.
87743         Remove now-unnecessary cast to char *.
87744         * lib/strnlen.c: Include <string.h> unconditionally.
87745         * lib/yesno.c (yesno): Define with a prototype.
87746
87747 2003-09-11  Bruno Haible  <bruno@clisp.org>
87748
87749         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87750
87751 2003-09-10  Jim Meyering  <jim@meyering.net>
87752
87753         * lib/error.c: Correct indentation of cpp directives.
87754
87755 2003-09-10  Bruno Haible  <bruno@clisp.org>
87756
87757         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87758         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87759         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87760         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87761         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87762         <stdlib.h> and <string.h> checks.
87763         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87764         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87765
87766 2003-09-10  Bruno Haible  <bruno@clisp.org>
87767
87768         * lib/strcspn.c: Include <string.h> unconditionally.
87769         * lib/strpbrk.c: Include <string.h> unconditionally.
87770         * lib/strstr.c: Include <string.h> unconditionally.
87771         * lib/unicodeio.c: Include <string.h> unconditionally.
87772         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87773         * lib/unsetenv.c: Likewise.
87774         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87775         * lib/yesno.c: Include <stdlib.h> unconditionally.
87776         (rpmatch): Add prototype.
87777
87778 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87779
87780         More patches to assume C89 or better.
87781         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87782         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87783         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87784         or for string.h.
87785         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87786         stdlib.h.
87787         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87788         C headers.
87789         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87790         string.h.
87791         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87792         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87793         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87794         or for string.h.
87795         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87796         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87797         C headers.
87798         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87799         memcpy.
87800         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87801         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87802         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87803         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87804         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87805         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87806         string.h, free.
87807         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87808         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87809         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87810         C headers, or for string.h.
87811         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87812         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87813         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87814         headers, memory.h, stdlib.h, string.h, strings.h.
87815         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87816         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87817         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87818         strchr.
87819         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87820         headers, memory.h, string.h.
87821         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87822         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87823         free.
87824         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87825         headers.
87826         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87827         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87828         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87829         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87830         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87831
87832 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87833
87834         More K&R removal.
87835
87836         * lib/acosl.c (main): Use a prototype.
87837         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87838         tanl.c: Likewise.
87839
87840         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87841
87842         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87843         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87844         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87845         with a prototype.
87846         * lib/getopt.c (const): Remove macro.
87847         Include <string.h> unconditionally.
87848         (my_index): Remove; all uses changed to strchr.
87849         (strlen): Remove decl.
87850         (exchange): Remove forward decl; no longer needed.
87851         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87852         Define with prototype.
87853         * lib/getopt1.c (const): Remove macro.
87854         (getopt_long, getopt_long_only, main): Define with prototype.
87855
87856         * lib/getugroups.c: Include <string.h> unconditionally.
87857
87858         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87859         (getusershell, setusershell, endusershell, readname, main):
87860         Define with prototypes.
87861
87862         * lib/group-member.c: Include group-member.h first.
87863         Include <stdlib.h> unconditionally.
87864
87865         * lib/hard-locale.c: Include hard-locale.h first.
87866         Include <stdlib.h>, <string.h> unconditionally.
87867
87868         * lib/hash.c (free, malloc): Remove decls.
87869         Include <stdlib.h> unconditionally.
87870
87871         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87872         (getenv): Do not declare.
87873
87874         * lib/idcache.c: Include <string.h> unconditionally.
87875
87876         * lib/long-options.c: Include long-options.h first, to test interface.
87877         Include <stdlib.h> unconditionally.
87878
87879         * lib/makepath.c: Include makepath.h first, to test interface.
87880         Include <stdlib.h> and <string.h> unconditionally.
87881
87882         * lib/linebuffer.c: Include <stdlib.h>.
87883         (free): Remove decl.
87884
87885         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87886         stddef.h. rpl_malloc returns void *, not char *.
87887         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87888         prototype.
87889
87890         * lib/md5.h: Include <limits.h> unconditionally.
87891         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87892         (__P): Remove; all uses removed.
87893         * lib/md5.c: Include "md5.h" first.
87894         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87895         md5_buffer, md5_process_bytes, md5_process_block):
87896         Define with prototypes.
87897         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87898         * lib/sha.c: Include "sha.h" first.
87899         Include <stdlib.h>, <string.h> unconditionally.
87900
87901         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87902         * lib/memcmp.c (__ptr_t): Likewise.
87903         * lib/memrchr.c (__ptr_t): Likewise.
87904         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87905         Include <string.h> unconditionally.
87906         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87907         * lib/memchr.c: Include <stdlib.h> unconditionally.
87908         * lib/memchr.c (LONG_MAX): Remove.
87909         * lib/memrchr.c (LONG_MAX): Likewise.
87910         * lib/memchr.c (__memchr): Define via a prototype.
87911         * lib/memrchr.c (__memrchr): Likewise.
87912         * lib/memcmp.c (__P): Remove, and remove all uses.
87913         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87914         Remove forward decls; no longer needed.
87915         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87916         Use types required by C89 in prototype.
87917
87918         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87919         * lib/savedir.c: Likewise.
87920         * lib/mkdir.c (free): Remove decl.
87921         * lib/rmdir.c (rmdir): Define with a prototype.
87922         * lib/savedir.c: Include savedir.h first, to test interface.
87923
87924         * lib/mktime.c (STDC_HEADERS): Remove.
87925         Include <stdlib.h>, <string.h> unconditionally.
87926
87927         * lib/modechange.c: Include <stdlib.h> unconditionally.
87928         (malloc): Remove decl.
87929
87930         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87931         (free): Remove decl.
87932
87933         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87934         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87935         (This type really should be intptr_t, but that's a C99ism.)
87936         (_obstack_memcpy): Remove: all uses changed to memcpy.
87937         Include <string.h> unconditionally.
87938         (struct obstack): Assume __STDC__ for types of members
87939         chunkfun, freefun, extra_arg.
87940         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87941         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87942         obstack_begin, obstack_specify_allocation,
87943         obstack_specify_allocation_with_arg, obstack_chunkfun,
87944         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87945         Remove unprototyped decls and the macros that use them.
87946         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87947         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87948         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87949         (defined __STDC__ && __STDC__)]:
87950         Remove nonprototyped code.
87951         Include <stdlib.h> unconditionally.
87952         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87953         _obstack_allocated_p, _obstack_free, obstack_free,
87954         _obstack_memory_used, print_and_abort):
87955         Define using prototypes.
87956         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87957         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87958         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87959         obstack_next_free, obstack_object_size, obstack_room) [0]:
87960         Remove unused, unprototyped code.
87961
87962         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87963
87964         * lib/physmem.c (physmem_total, physmem_available, main): Define
87965         with prototypes.
87966
87967         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87968         (main): Define with a prototype.
87969
87970         * lib/posixver.c (getenv): Remove decl.
87971
87972         * lib/putenv.c (malloc): Returns void *, not char *.
87973         Include <string.h> unconditionally.
87974         (strchr, memcpy, NULL): Do not define.
87975
87976         * lib/readtokens.c: Include readtokens.h first, to test interface.
87977         Include <stdlib.h>, <string.h> unconditionally.
87978         (init_tokenbuffer): Define with a prototype.
87979
87980         * lib/regex.c (PARAMS): Remove.  All uses removed.
87981         All uses of _RE_ARGS removed, too.
87982         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87983         unconditionally.
87984         (bzero): Assume memset exists.
87985         (memcmp, memcpy, NULL): Remove.
87986         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87987         char, or assignments to local vars of type signed char.
87988         (init_syntax_once, PREFIX(extract_number_and_incr),
87989         PREFIX(print_partial_compiled_pattern),
87990         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87991         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87992         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87993         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87994         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87995         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87996         wcs_compile_range, byte_compile_range, truncate_wchar,
87997         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87998         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87999         count_mbs_length, wcs_re_match_2_internal,
88000         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88001         PREFIX(alt_match_null_string_p),
88002         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88003         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88004         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88005         now-unnecessary declaration, if any.
88006         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88007         regcomp, regexec):
88008         Remove now-unnecessary casts among pointer types.
88009         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88010
88011         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88012         (free): Remove decl.
88013
88014         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88015
88016         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88017         (free): Remove decl.
88018
88019         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88020         * lib/xgetcwd.c: Likewise.
88021
88022         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88023         (free): Remove decl.
88024
88025         * lib/strchrnul.c (strchrnul): Define with a prototype.
88026         Fix bug: c_in was not converted to char before searching.
88027
88028         The following changes are not K&R related:
88029
88030         * lib/group-member.h: Include <sys/types.h>, so that this file is
88031         self-contained.
88032         * lib/makepath.h: Likewise.
88033
88034         * lib/getusershell.c (readname, default_index, line_size, readname):
88035         Use size_t, not int, for sizes.
88036         (readname): If the size overflows, report an error instead of
88037         looping forever.
88038
88039 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88040
88041         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88042         libc.
88043
88044 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88045
88046         * README: New section: portability guidelines.
88047
88048 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88049
88050         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88051         C89 spec.
88052
88053 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88054
88055         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88056
88057 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88058
88059         Assume C89 or better; remove K&R cruft.
88060         A few of these changes were first proposed by Derek Robert Price
88061         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88062
88063         * lib/addext.c: Include <string.h> unconditionally.
88064         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88065         Don't declare getenv or malloc.
88066
88067         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88068         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88069         (NULL): Remove.
88070         (find_stack_direction, alloca): Use prototypes.
88071
88072         * lib/atexit.c (atexit): Define using a prototype.
88073
88074         * lib/basename.c, dirname.c, stripslash.c:
88075         Include <string.h> unconditionally.
88076
88077         * lib/bcopy.c: Include <stddef.h>.
88078         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88079
88080         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88081
88082         * lib/error.h (error, error_at_line, error_print_progname)
88083         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88084         * lib/error.c: Include error.h first, to check interface.
88085         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88086         (VA_START): Remove; all uses changeed to va_start.
88087         (exit, strerror): Remove decls.
88088         (error_print_progname): Prototype uncondionally.
88089         Don't include <errno.h>; no longer needed.
88090         (private_strerror): Remove.
88091         (error_tail): Always define.
88092         (error, error_at_line): Assume C89 or better; always use prototypes.
88093         * lib/fatal.c: Include "fatal.h" first, to test interface.
88094         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88095         (VA_START): Remove; all uses changed to va_start.
88096         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88097         this case.
88098         (exit): Remove decl.
88099         (fatal): Prototype unconditionally.  Assume va_start works.
88100         Abort at end, to pacify gcc.
88101
88102         * lib/euidaccess.c (main): Define with a prototype.
88103
88104         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88105
88106         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88107
88108         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88109         prototypes.
88110         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88111         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88112         (getenv): Remove decl.
88113         (fnmatch): Define using a prototype.
88114         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88115         (FCT): Define using a prototype.
88116
88117         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88118
88119         * lib/gethostname.c: Include <stddef.h>.
88120         (gethostname): Define with prototype.  Length is size_t, not int.
88121
88122 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88123
88124         Assume C89 or better; remove K&R cruft.
88125         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88126         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88127         string.h, getenv, malloc.
88128         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88129         headers.
88130         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88131         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88132         do not check for strerror.
88133         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88134         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88135         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88136         do not check for doprnt or vprintf.
88137         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88138         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88139
88140 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88141
88142         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88143         getversion.c should have been removed then, but was accidentally
88144         preserved.
88145
88146         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88147         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88148
88149 2003-09-08  Karl Berry  <karl@gnu.org>
88150
88151         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88152                 config, forget about prep.
88153
88154         * config/depcomp, missing: update from automake.
88155
88156 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88157
88158         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88159         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88160
88161 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88162
88163         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88164         copy_tm_result.  Bug reported by Simon Josefsson in
88165         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88166
88167 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88168
88169         * m4/time_r.m4: New file.
88170         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88171         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88172         is. Check for timegm declaration.
88173         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88174         Do not check for gmtime_r.
88175         Replace mktime if __mktime_internal does not exist and if mktime
88176         hasn't been replaced already.
88177
88178 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88179
88180         * lib/time_r.c, lib/time_r.h: New files.
88181
88182         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88183         __localtime_r.
88184         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88185         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88186
88187         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88188         __gmtime_r.
88189         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88190         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88191         Include <time_r.h>.
88192
88193         * lib/timegm.c: Switch to glibc implementation, with the following
88194         changes:
88195         [defined HAVE_CONFIG_H]: Include <config.h>.
88196         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88197         (__mktime_internal) [!defined _LIBC]: New decl.
88198         (__gmtime_r) [!defined _LIBC]: New macro and function.
88199         (timegm): Use a prototype, since gnulib assumes C89.
88200         Do not bother declaring tmp to be const, as it's not really usefu.
88201         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88202         (timegm): Declare only if HAVE_DECL_TIMEGM.
88203
88204 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88205
88206         * MODULES.html.sh (func_all_modules): Add time_r.
88207         * modules/time_r: New file.
88208         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88209         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88210
88211 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88212
88213         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88214         Bug reported by Lute Kamstra in
88215         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88216
88217         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88218         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88219         course with correspondingly smaller numbers for tomorrow and
88220         yesterday.  From Tadayoshi Funaba.  Originally installed into
88221         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88222         coreutils merge?).
88223
88224 2003-08-31  Simon Josefsson  <jas@extundo.com>
88225
88226         * modules/timegm: New file.
88227         * MODULES.html.sh (func_all_modules): Add timegm.
88228
88229 2003-08-31  Simon Josefsson  <jas@extundo.com>
88230
88231         * m4/timegm.m4: New file.
88232
88233 2003-08-31  Simon Josefsson  <jas@extundo.com>
88234
88235         * lib/timegm.h: New file.
88236         * lib/timegm.c: New file.  Based on
88237         wget-1.8.2/src/http.c:mktime_from_utc.
88238
88239 2003-08-31  Karl Berry  <karl@gnu.org>
88240
88241         * lib/argp.h: update from libc.
88242
88243 2003-08-28  Bruno Haible  <bruno@clisp.org>
88244
88245         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88246         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88247         followed by '#define fnmatch fnmatch_posix' gives an error.
88248
88249 2003-08-28  Bruno Haible  <bruno@clisp.org>
88250
88251         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88252         warning on QNX, which defines O_BINARY to 000000.
88253
88254 2003-08-27  Jim Meyering  <jim@meyering.net>
88255
88256         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88257         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88258         would fail after 32.  Reported by Danny Levinson.  Details here:
88259         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88260
88261 2003-08-24  Bruno Haible  <bruno@clisp.org>
88262
88263         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88264         MSVC7 <stdio.h> is included later.
88265
88266 2003-08-22  Simon Josefsson  <jas@extundo.com>
88267
88268         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88269
88270 2003-08-20  Karl Berry  <karl@gnu.org>
88271
88272         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88273
88274 2003-08-20  Bruno Haible  <bruno@clisp.org>
88275
88276         * modules/progname: New file.
88277         * MODULES.html.sh (func_all_modules): Add progname.
88278
88279 2003-08-20  Bruno Haible  <bruno@clisp.org>
88280
88281         * lib/progname.h: New file, from GNU gettext.
88282         * lib/progname.c: New file, from GNU gettext.
88283         * lib/progreloc.c: New file, from GNU gettext.
88284
88285 2003-08-19  Jim Meyering  <jim@meyering.net>
88286
88287         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88288         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88289
88290 2003-08-19  Bruno Haible  <bruno@clisp.org>
88291
88292         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88293         more.
88294
88295 2003-08-19  Bruno Haible  <bruno@clisp.org>
88296
88297         * lib/xstrdup.c: Assume <string.h> exists.
88298
88299 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88300
88301         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88302         in makefile rules.
88303
88304 2003-08-18  Jim Meyering  <jim@meyering.net>
88305
88306         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88307         * m4/lib-ld.m4: Likewise.
88308
88309 2003-08-18  Jim Meyering  <jim@meyering.net>
88310
88311         * lib/setenv.h: Indent nested cpp directive.
88312         * lib/vasnprintf.c: Remove trailing blanks.
88313
88314 2003-08-17  Simon Josefsson  <jas@extundo.com>
88315
88316         * modules/xstrndup: New file.
88317         * MODULES.html.sh (func_all_modules): Add xstrndup.
88318
88319 2003-08-17  Simon Josefsson  <jas@extundo.com>
88320
88321         * modules/argp: Fix autoconf macro name. Add more dependencies.
88322
88323 2003-08-17  Simon Josefsson  <jas@extundo.com>
88324
88325         * m4/xstrndup.m4: New file.
88326
88327 2003-08-17  Simon Josefsson  <jas@extundo.com>
88328
88329         * m4/argp.m4: New file.
88330
88331 2003-08-17  Simon Josefsson  <jas@extundo.com>
88332             Bruno Haible  <bruno@clisp.org>
88333
88334         * lib/xstrndup.h: New file.
88335         * lib/xstrndup.c: New file.
88336
88337 2003-08-17  Bruno Haible  <bruno@clisp.org>
88338
88339         * modules/strndup (Files, Include): Add lib/strndup.h.
88340
88341 2003-08-17  Bruno Haible  <bruno@clisp.org>
88342
88343         * modules/euidaccess (Files): Add lib/euidaccess.h.
88344
88345 2003-08-17  Bruno Haible  <bruno@clisp.org>
88346
88347         * lib/strndup.h: New file.
88348
88349 2003-08-17  Bruno Haible  <bruno@clisp.org>
88350
88351         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88352         like AC_GNU_SOURCE.
88353         * modules/extensions (configure.ac): Comment out the invocation of
88354         gl_USE_SYSTEM_EXTENSIONS.
88355
88356 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88357
88358         Merges from coreutils, etc.
88359         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88360         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88361         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88362         fixing a typo.
88363         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88364         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88365
88366 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88367
88368         Document merge from coreutils.
88369         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88370         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88371         * modules/utime: Add m4/utimes-null.m4.
88372
88373 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88374
88375         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88376         space, undoing this 2003-08-12 change:
88377         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88378
88379 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88380
88381         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88382         strtoul.c from libc, undoing this 2003-08-12 change:
88383         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88384
88385 2003-08-16  Jim Meyering  <jim@meyering.net>
88386
88387         Merges from coreutils.
88388         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88389         prefix.  Adjust cache variables similarly.  Create 500 rather than
88390         just 300 files, to exercise bug on Darwin6.5, too.
88391         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88392         $missing_dir.
88393         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88394         AM_SYS_POSIX_TERMIOS.
88395         Reported by mkc@mathdogs.com.
88396         Also change use of $am_cv_sys_posix_termios
88397         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88398         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88399         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88400         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88401         in /proc/mounts until it finds one with matching device number.  This
88402         is unnecessary when the FILE argument *is* a mount point.  No stat call
88403         is necessary in that case.  So, disable the statvfs-testing code on
88404         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88405         as RedHat bug# 84846.
88406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88407         to 1MB, so as not to render systems with no stack size limit (e.g.,
88408         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88409         Include <unistd.h>.  On some systems,
88410         it is required for the definition of _SC_PAGESIZE.
88411
88412 2003-08-16  Jim Meyering  <jim@meyering.net>
88413
88414         Merge from coreutils.
88415         * lib/xstrtoimax.c: #else #if -> #elif.
88416         * lib/xstrtoumax.c: Likewise.
88417
88418 2003-08-16  Jim Meyering  <jim@meyering.net>
88419
88420         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88421         * m4/utimes.m4: Removed.
88422         * m4/utimes-null.m4: Renamed from utimes.m4.
88423
88424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88425         to 1MB, so as not to render systems with no stack size limit (e.g.,
88426         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88427         Include <unistd.h>.  On some systems,
88428         it is required for the definition of _SC_PAGESIZE.
88429
88430 2003-08-16  Jim Meyering  <jim@meyering.net>
88431         and Paul Eggert  <eggert@cs.ucla.edu>
88432
88433         Merges from coreutils, etc.
88434
88435         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88436         using the latest version from cvs.  This avoids problems with #line
88437         directives using a vendor (Sun) compiler.
88438         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88439         Don't set GETGROUPS_LIB here; now it's
88440         done via getgroups.m4's wrapper function.
88441         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88442         rather than just in sh-util/configure.in, so that the
88443         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88444         same.
88445         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88446         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88447         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88448         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88449         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88450         Remove code that is now done by the newly-required macros.
88451         Append $(EXEEXT) to DF_PROG.
88452         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88453         Do not invoke or require the following here,
88454         since prereq.m4 or some gnulib .m4 now does this for us:
88455         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88456         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88457         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88458         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88459         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88460         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88461         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88462         AC_FUNC_OBSTACK.
88463         Do not replace the following functions, as this is now the job
88464         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88465         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88466         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88467         atexit getpass, strdup, getpagesize.
88468         Replace 'raise'.
88469         Do not check for the following functions, as this is now the job
88470         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88471         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88472         setregid.
88473         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88474         Check for sys/sysctl.h.
88475         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88476         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88477         of checking for ssize_t ourselves.
88478
88479         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88480         Require every macro that gnulib/modules/* suggests for us.
88481         (jm_PREREQ_ADDEXT): New macro.
88482         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88483         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88484
88485         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88486         (gl_PHYSMEM): Use it.
88487         Also check for `table' function.
88488         Check for new headers and functions.
88489         Add check for sys/sysmp.h.
88490         With suggestions from Kaveh Ghazi.
88491         Ignore headers that are present but cannot be compiled.  This
88492         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88493         C 5.4.
88494
88495 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88496
88497         Document merge from coreutils.
88498         * modules/userspec: Depend on posixver.
88499         * modules/strftime: Depend on tzset.
88500
88501 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88502
88503         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88504         rather than tab, after '#' in shell-script copyright notices.
88505         Suggested by Bruno Haible.
88506
88507 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88508
88509         * config/srclist-update: Use three spaces, rather than tab, after '#'
88510         in shell-script copyright notices.  Suggested by Bruno Haible.
88511         Remove unnecessary parenthesization in regular expression.
88512
88513 2003-08-15  Jim Meyering  <jim@meyering.net>
88514
88515         Merge from coreutils.
88516         * lib/xgethostname.c: Include <stdlib.h>.
88517         (xghostname): Don't exit for anything other than memory-related
88518         failure; just return NULL.
88519         * lib/userspec.c: Include "posixver.h".
88520         (parse_user_spec): Accept `.' as a separator only
88521         in pre-POSIX-200112 mode.
88522         * lib/strtoimax.c: Use #elif rather than #else #if.
88523         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88524         Remove function, now that we can rely on a working tzset function.
88525         [!_LIBC]: Ensure that the required autoconf test has been run.
88526         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88527         Use underlying_strftime for %r.
88528         * lib/sha.c: Merge in some clean-up and optimization changes from
88529         glibc.
88530         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88531         Ensure that it is a multiple of 64.
88532         Rearrange loop exit tests so as to avoid performing an
88533         additional fread after encountering an error or EOF.
88534         * lib/realloc.c: Update copyright date.
88535
88536 2003-08-15  Jim Meyering  <jim@meyering.net>
88537         and Paul Eggert  <eggert@twinsun.com>
88538
88539         Merge from coreutils.
88540         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88541         member but strut utmpx does not.  Needed for AIX 4.3.3.
88542         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88543
88544 2003-08-15  Jim Meyering  <jim@meyering.net>
88545         and Paul Eggert  <eggert@cs.ucla.edu>
88546
88547         Merges from coreutils, etc.
88548         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88549         Require gl_FUNC_TZSET_CLOBBER.
88550         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88551         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88552         members.
88553
88554 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88555
88556         Help the merge from coreutils.
88557         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88558         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88559         * m4/tzset.m4: Use it too.
88560
88561 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88562
88563         * modules/tzset: New file.
88564
88565 2003-08-14  Jim Meyering  <jim@meyering.net>
88566
88567         Merges from coreutils.
88568         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88569         variable names, rather than @FNMATCH_H@.
88570         * modules/alloca: Likewise for $(ALLOCA_H).
88571
88572         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88573         the three copies of the literal target, `fnmatch.h'.
88574         * modules/alloca (alloca.h): Likewise.
88575
88576 2003-08-14  Jim Meyering  <jim@meyering.net>
88577
88578         Merge from coreutils.
88579         * m4/tzset.m4: New file.
88580         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88581         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88582         otherwise, AIX 5.1 systems would end up using the latter.
88583         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88584         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88585         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88586         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88587
88588 2003-08-14  Jim Meyering  <jim@meyering.net>
88589
88590         Merge from coreutils.
88591         * lib/obstack.h: Whitespace changes.
88592         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88593         and xcalloc return values.
88594         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88595         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88596         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88597         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88598         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88599         error from mntctl.
88600         Use mntctl's return value to drive the entry-processing loop, since
88601         we can't rely on the value of the vmt_length member in the last
88602         entry.  On some systems doing so could result in exhausting
88603         virtual memory.  Based in part on a patch from Mike Jetzer.
88604
88605 2003-08-14  Jim Meyering  <jim@meyering.net>
88606         and Paul Eggert  <eggert@twinsun.com>
88607
88608         Merges from coreutils, plus other fixes.
88609         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88610         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88611         for credits and details.  Thanks to Kaveh Ghazi for helping
88612         to keep these files in sync.
88613         (ARRAY_SIZE): Define it.
88614         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88615         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88616         (memcasecmp): Don't assume size_t fits in unsigned int.
88617         Remove casts and duplicate code.
88618         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88619         (memcpy): Remove definition.
88620         Merge in some clean-up and optimization changes from glibc.
88621         [BLOCKSIZE]: Move definition to top of file.
88622         Ensure that it is a multiple of 64.
88623         Rearrange loop exit tests so as to avoid performing an
88624         additional fread after encountering an error or EOF.
88625         * lib/md5.h (md5_uintptr): Define.
88626         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88627         return to the initial working directory.  Preserve errno
88628         for caller.
88629         * lib/idcache.c: Include "xalloc.h".
88630         (xmalloc, xrealloc): Remove decls.
88631         (getuser): Remove casts no longer required in C89.
88632         * lib/human.c: Include stdio.h, for sprintf.
88633         * lib/group-member.c: Include "xalloc.h".
88634         (xmalloc, xrealloc): Remove decls.
88635         (get_group_info): Remove casts no longer required in C89.
88636         * lib/getusershell.c (readname): Remove casts no longer required in
88637         C89.
88638         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88639         * lib/getline.c: Whitespace fix, from coreutils.
88640
88641 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88642
88643         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88644         Check for isascii.
88645
88646         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88647         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88648         Undo previous (whitespace-only) change.
88649
88650 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88651
88652         * lib/exclude.c: Include <ctype.h>
88653         (IN_CTYPE_DOMAIN): New macro.
88654         (is_space): New fn.
88655         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88656         and empty lines.
88657
88658         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88659         Undo previous (whitespace-only) change.
88660
88661 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88662
88663         * config/srclist-update: Change update back to the old behavior,
88664         leaving whitespace alone.  Use one 'sed' command rather than a
88665         pipeline.
88666         (fixlicense): Now a variable, not a function.
88667         (remove_trailing_blanks): Remove.
88668         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88669         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88670         Undo previous (whitespace-only) change.
88671
88672 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88673
88674         Merge from coreutils.
88675         * modules/euidaccess: Add lib_SOURCES, include for new
88676         file euidaccess.h
88677
88678 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88679
88680         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88681         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88682         Normalize leading white space and remove trailing white space.
88683
88684         Merge from coreutils
88685         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88686
88687         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88688         0.12.1.  These files are now being upgraded automatically by
88689         ../config/srclist-update.
88690
88691 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88692
88693         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88694         Normalize leading white space and remove trailing white space.
88695         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88696         notice, as per ../config/srclist-update.
88697
88698         Merge from coreutils.
88699         * lib/euidaccess.h: New file.
88700         * lib/euidaccess.c: Include it.
88701         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88702         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88703         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88704
88705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88706
88707         * config/srclist-update: Add copyright notice.
88708         (remove_id_lines, remove_trailing_blanks): New constants.
88709         (fixfile): Use them to normalize spacing a bit in copied files.
88710         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88711         Normalize leading white space and remove trailing white space.
88712
88713         * config/texinfo.tex: Sync with texinfo.
88714
88715         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88716         strtoul.c from libc, to merge coreutils whitespace changes.
88717
88718         * config/srclist.txt: Get the following m4 files from gettext:
88719         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88720         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88721         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88722         wint_t.m4.
88723
88724 2003-08-12  Karl Berry  <karl@gnu.org>
88725
88726         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88727         been made.
88728
88729 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88730
88731         * modules/gnu-source, m4/gnu-source.m4:
88732         Remove; we're assuming Autoconf 2.54 or later now.
88733         Suggested by Bruno Haible.
88734         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88735
88736 2003-08-11  Bruno Haible  <bruno@clisp.org>
88737
88738         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88739
88740 2003-08-11  Bruno Haible  <bruno@clisp.org>
88741
88742         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88743         (vasnprintf): Use it instead of wcslen.
88744
88745 2003-08-11  Bruno Haible  <bruno@clisp.org>
88746
88747         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88748         value to ensure that _Bool promotes to int. Use #define for _Bool when
88749         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88750
88751 2003-08-10  Karl Berry  <karl@gnu.org>
88752
88753         * lib/regex.h: update from libc (whitespace fix).
88754
88755 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88756
88757         Merge some files from coreutils.  These changes were
88758         originally made by Jim Meyering.
88759         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88760         many older Unixes require this.
88761         * lib/alloca.c (alloca): Remove cast to argument of free;
88762         no longer needed in C89.
88763         * lib/alloca_.h, regex.h: Fix white space to match
88764         what GNU indent does.
88765
88766 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88767
88768         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88769         apparently Emacs's Unicode mode got confused before my 2003-08-05
88770         checkin.
88771
88772 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88773
88774         * m4/extensions.m4: New file.
88775         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88776         Require gl_USE_SYSTEM_EXTENSIONS.
88777         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88778         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88779
88780 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88781
88782         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88783         * modules/extensions, modules/gnu-source: New files.
88784         * modules/timespec, modules/unlocked-io: Depend on extensions.
88785
88786 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88787
88788         * modules/restrict: New file.
88789         * MODULES.html.sh (func_all_modules): Add restrict.
88790         * modules/regex: Depend on restrict.
88791
88792 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88793
88794         * m4/restrict.m4: New file.
88795         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88796
88797 2003-08-07  Bruno Haible  <bruno@clisp.org>
88798
88799         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88800         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88801
88802 2003-08-07  Bruno Haible  <bruno@clisp.org>
88803
88804         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88805         makes the module 'getndelim2' compatible with the module 'getline'.
88806
88807 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88808
88809         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88810         byte with "\201" to avoid glitches when editing that source file
88811         with multi-gnome-terminal.
88812
88813 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88814
88815         * lib/bumpalloc.h: Remove.
88816
88817 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88818
88819         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88820         * modules/bumpalloc: Remove.
88821
88822 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88823
88824         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88825         GNU coding style.
88826
88827         Merge from coreutils.
88828         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88829         1. From glibc.
88830         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88831         from Karl Berry, implemented by Jim Meyering.
88832         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88833         from Dmitry V. Levin.
88834         Remove anachronistic cast of xrealloc.
88835         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88836         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88837         type. Otherwise, it wouldn't compile with at least /bin/cc on
88838         ymp-cray-unicos9.0.2.X.
88839         Combine two mostly-identical uses of alloca into one.
88840         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88841
88842 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88843
88844         [From Emacs.]
88845
88846         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88847         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88848         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88849         obsolete NLIST_NAME_UNION.
88850         [__GNU__]: Undef BSD and FSCALE.
88851         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88852
88853 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88854
88855         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88856         an enum type, so that it's guaranteed to promote to int.  See:
88857         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88858
88859 2003-08-03  Karl Berry  <karl@gnu.org>
88860
88861         * config/depcomp: update from automake.
88862
88863 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88864
88865         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88866         (strerror): Don't assume that a printable int fits in 14 bytes.
88867
88868 2003-07-31  Bruno Haible  <bruno@clisp.org>
88869
88870         * modules/getpass-gnu: New file.
88871         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88872
88873 2003-07-31  Bruno Haible  <bruno@clisp.org>
88874
88875         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88876
88877 2003-07-24  Karl Berry  <karl@gnu.org>
88878
88879         * config/missing: update from automake.
88880
88881 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88882             Bruno Haible  <bruno@clisp.org>
88883
88884         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88885         * lib/getline.c (getline, getdelim): Likewise.
88886         Remove _GNU_SOURCE define; now it's defined in config.h through
88887         m4/getline.m4.
88888
88889 2003-07-23  Karl Berry  <karl@gnu.org>
88890
88891         * config/config.sub: update from prep.
88892
88893 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88894
88895         * modules/xalloc (Depends-on): Add exitfail.
88896         * modules/xmemcoll: Likewise.
88897
88898 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88899
88900         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88901         over-parenthesization in macros.
88902
88903         Sync with coreutils.
88904
88905         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88906         required by C99.
88907
88908         Use `exit_failure' for xalloc and xmemcoll instead of their own
88909         private exit-failure variables.
88910         * lib/xalloc.h (xalloc_exit_failure): Remove.
88911         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88912         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88913         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88914         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88915         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88916
88917 2003-07-20  Jim Meyering  <jim@meyering.net>
88918
88919         * modules/closeout (Depends-on): Add exitfail.
88920         Suggestion from Bruno Haible.
88921
88922 2003-07-19  Karl Berry  <karl@gnu.org>
88923
88924         * config/config.sub: update from prep.
88925
88926 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88927
88928         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88929         Remove.
88930         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88931         to test that it can stand by itself.  Include "exitfail.h".
88932         Clients should set exit_failure instead.
88933         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88934
88935 2003-07-18  Bruno Haible  <bruno@clisp.org>
88936
88937         * modules/getndelim2: New file.
88938         * modules/getline: Share files with module getndelim2.
88939         * modules/getnline: Depend on getndelim2 instead of sharing files with
88940         it. Add getnline.c to lib_SOURCES.
88941         * MODULES.html.sh (func_all_modules): Add getndelim2.
88942
88943 2003-07-18  Bruno Haible  <bruno@clisp.org>
88944
88945         * m4/getndelim2.m4: New file.
88946         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88947         invoke gl_PREREQ_GETNDELIM2.
88948         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88949         gl_PREREQ_GETNDELIM2.
88950         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88951         gl_GETNDELIM2.
88952
88953 2003-07-18  Bruno Haible  <bruno@clisp.org>
88954
88955         * lib/getndelim2.h: New file.
88956         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88957         getndelim2.h.
88958         (getndelim2): Make non-static. Change return type to ssize_t.
88959         * lib/getline.h: Change argument names.
88960         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88961         * lib/getnline.c: Include getndelim2.h.
88962
88963 2003-07-18  Andreas Schwab  <schwab@suse.de>
88964
88965         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88966
88967 2003-07-17  Karl Berry  <karl@gnu.org>
88968
88969         * config/config.sub: update from prep.
88970
88971 2003-07-17  Bruno Haible  <bruno@clisp.org>
88972
88973         * modules/getnline: New file.
88974         * modules/getline: Add lib/getndelim2.c to source file list.
88975         * MODULES.html.sh (func_all_modules): Add getnline.
88976
88977 2003-07-17  Bruno Haible  <bruno@clisp.org>
88978
88979         * m4/getnline.m4: New file.
88980
88981 2003-07-17  Bruno Haible  <bruno@clisp.org>
88982
88983         * m4/Makefile.am.in: Remove file.
88984         * m4/Makefile.am: Remove file.
88985         * m4/Makefile.in: Remove file.
88986
88987 2003-07-17  Bruno Haible  <bruno@clisp.org>
88988
88989         * lib/getnline.h: New file.
88990         * lib/getnline.c: New file.
88991         * lib/getndelim2.c: New file, extracted from getline.c.
88992         (getndelim2): Renamed from getdelim2, with added nmax argument.
88993         * lib/getline.c: Include getndelim2.c.
88994         (getdelim2): Moved out to getndelim2.c.
88995         (getline, getdelim): Update.
88996
88997 2003-07-17  Bruno Haible  <bruno@clisp.org>
88998
88999         * lib/Makefile.am: Remove file.
89000         * lib/Makefile.in: Remove file.
89001
89002 2003-07-17  Bruno Haible  <bruno@clisp.org>
89003
89004         * configure.in: Remove file.
89005         * Makefile.in: Remove file.
89006
89007 2003-07-17  Bruno Haible  <bruno@clisp.org>
89008
89009         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89010
89011 2003-07-16  Karl Berry  <karl@gnu.org>
89012
89013         * config/srclist-update: was running fixlicense twice, which caused
89014                 texinfo.tex to be nullified for some reason.  Simplify,
89015                 $gplsrc is no longer needed as far as I can see?
89016
89017 2003-07-16  Jim Meyering  <jim@meyering.net>
89018
89019         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89020
89021 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89022
89023         * config/srclist.txt: Get the following files from gettext-runtime/intl
89024         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89025         ref-del.sin.  From Bruno Haible.
89026         * config/srclist-update (fixfile): Change grep pattern again, since the
89027         previous fix didn't work (there was another trailing $).  Use
89028         '[$]' to escape the $s.
89029
89030 2003-07-15  Karl Berry  <karl@gnu.org>
89031
89032         * lib/vasnprintf.c: update from gettext.
89033
89034 2003-07-15  Karl Berry  <karl@gnu.org>
89035
89036         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89037         gets expanded when surrounded by '$'.
89038
89039 2003-07-15  Jim Meyering  <jim@meyering.net>
89040
89041         * modules/save-cwd: Don't depend on error.  From Derek Price.
89042
89043 2003-07-15  Jim Meyering  <jim@meyering.net>
89044
89045         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89046
89047 2003-07-14  Simon Josefsson  <jas@extundo.com>
89048
89049         * modules/mempcpy: New file.
89050         * MODULES.html.sh (func_all_modules): Add mempcpy.
89051
89052 2003-07-14  Simon Josefsson  <jas@extundo.com>
89053
89054         * m4/mempcpy.m4: New file.
89055
89056 2003-07-14  Simon Josefsson  <jas@extundo.com>
89057
89058         * lib/mempcpy.h: New file.
89059         * lib/mempcpy.c: New file.
89060
89061 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89062
89063         * modules/getdate, modules/posixtm: Depend on mktime.
89064
89065 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89066
89067         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89068         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89069         unicodeio.c, unicodeio.h, unlocked-io.h:
89070         Switch from LGPL to GPL.
89071
89072 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89073
89074         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89075         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89076         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89077         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89078         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89079         updated automatically by ../config/srclist-update.  This changes
89080         their license from LPGL to GPL.
89081
89082 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89083
89084         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89085         assumed to refer to the root of the most recent stable gettext version.
89086         * config/srclistvars.sh: Add defaults for eggert.
89087         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89088         Match "This program" as well as "The program".  This is needed
89089         for gettext.
89090
89091 2003-07-14  Jim Meyering  <jim@meyering.net>
89092
89093         Don't emit diagnostics.  Let callers do that.
89094         * lib/save-cwd.c: Don't include "error.h".
89095         (save_cwd): Don't call error.  Ensure that errno is valid
89096         when returning nonzero.
89097
89098         * lib/save-cwd.h (restore_cwd): Update prototype.
89099         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89100         Simplify.  Don't call error upon failure.  Let callers do that.
89101         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89102         when auditing is enabled.  But don't bother updating the #if.
89103
89104 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89105
89106         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89107         it breaks C++ compilation.
89108         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89109
89110 2003-07-10  Simon Josefsson  <jas@extundo.com>
89111
89112         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89113
89114 2003-07-10  Jim Meyering  <jim@meyering.net>
89115
89116         * m4/clock_time.m4: Remove trailing blank.
89117         * m4/intmax_t.m4: Likewise.
89118
89119 2003-07-10  Jim Meyering  <jim@meyering.net>
89120
89121         * lib/vasnprintf.c: Remove trailing blanks.
89122         Make cpp indentation consistent.
89123
89124 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89125
89126         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89127         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89128         Switch from LGPL to GPL.
89129
89130 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89131
89132         * config/srclist.txt: Sort sublists.  Add
89133         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89134         that differ from gnulib for one reason or another; we'd like this list
89135         to be smaller but for now let's document what we have.
89136
89137 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89138
89139         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89140         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89141         and sweeter "eval x=$x".
89142         * config/srclist.txt: Get lib/argp* from glibc.
89143
89144 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89145
89146         * lib/mktime.c: Fix some boundary cases and remove need for floating
89147         point.
89148
89149         Issue a compile-time diagnostic if time_t is floating point, or if
89150         two's complement arithmetic is not in effect, or if arithmetic
89151         right shift does not propagate the sign.  These assumptions were
89152         all in the original code but they weren't checked.
89153
89154         (TIME_T_MIDPOINT, verify): New macros.
89155         (__isleap): Remove; it has integer overflow problems.
89156         (leapyear): New function, without those problems.
89157         (ydhms_tm_diff): Remove; splitting into two parts.
89158         (ydhms_diff): New function, containing the arithmetic part of
89159         the old ydhms_tm_diff function.  Issue a compile-time
89160         diagnostic if we are not using C99 integer division.
89161         Avoid casts when possible.
89162         (guess_time_tm): New function, containing the checking part of
89163         the old ydhms_tm_diff function.  Return the new value, rather than
89164         the difference between it and the old.  Accept a new argument T
89165         so that *T specifies the old value.  Check for overflow in the result.
89166
89167         (__mktime_internal): Use a time_t offset, not a long int offset.
89168         This undoes the 2003-06-04 change, which is no longer needed now
89169         that we have better overflow checking.
89170         (localtime_offset): Likewise.
89171
89172         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89173         and long are 64-bit but int is only 32-bit.
89174         (ydhms_diff): Use long int to store year1 and yday1.
89175         Issue a compile-time diagnostic if long int is not wide enough.
89176
89177         (__mktime_internal): Use long int to store adjusted year and yday.
89178         Use plain C rather than preprocessor commands, if that doesn't
89179         affect efficiency.
89180         Check for overflow (and try to repair) after each probe
89181         rather than checking only at the very end.  This avoids some bugs
89182         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89183         does not equal GMT offset at maximum time).
89184         Use integer to check for overflow rather than floating point; this
89185         is more portable to non-IEEE hosts, and is a tad faster.
89186         When we detect that we are oscillating between two values,
89187         don't check whether tm_isdst has the requested value, since
89188         we already know the answer.  When tm_isdst has the wrong value,
89189         use a different heuristic to find the right one, based on the
89190         extreme values actually observed in practice in tz2003a,
89191         rather than the (overly optimistic) "previous 3 calendar quarters".
89192
89193         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89194         "T const" to accommodate glibc style.
89195         (check_result): Use less-confusing report format.  "long" -> "long int.
89196         (main): Likewise.
89197         Don't loop if the iteration overflows time_t.
89198         Allow a negative step in the iteration.
89199
89200 2003-07-06  Karl Berry  <karl@gnu.org>
89201
89202         * config/depcomp: update from automake.
89203         * config/config.sub: update from prep.
89204
89205 2003-07-03  Karl Berry  <karl@gnu.org>
89206
89207         * config/config.guess: update from prep.
89208
89209 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89210
89211         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89212         xreadlink.c now includes it unconditionally.
89213
89214 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89215
89216         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89217         having it depend on HAVE_SYS_TYPES_H.
89218
89219 2003-07-01  Bruno Haible  <bruno@clisp.org>
89220
89221         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89222         <sys/types.h> should be sufficient.
89223         Reported by Paul Eggert.
89224
89225 2003-06-26  Karl Berry  <karl@gnu.org>
89226
89227         * config/depcomp: update from automake.
89228
89229 2003-06-26  Bruno Haible  <bruno@clisp.org>
89230
89231         * modules/human: Depend on module stdbool.
89232
89233 2003-06-25  Bruno Haible  <bruno@clisp.org>
89234
89235         * modules/readlink: New file.
89236         * modules/xreadlink: Depend on it.
89237         * MODULES.html.sh (func_all_modules): Add readlink.
89238
89239 2003-06-25  Bruno Haible  <bruno@clisp.org>
89240
89241         * m4/readlink.m4: New file.
89242
89243 2003-06-25  Bruno Haible  <bruno@clisp.org>
89244
89245         * lib/readlink.c: New file.
89246
89247 2003-06-22  Karl Berry  <karl@gnu.org>
89248
89249         * config/srclist.txt: update mkinstalldirs from automake.
89250         * config/mkinstalldirs: update.
89251
89252 2003-06-22  Bruno Haible  <bruno@clisp.org>
89253
89254         Portability to mingw32.
89255         * m4/ssize_t.m4: New file, from GNU gettext.
89256         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89257         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89258
89259 2003-06-22  Bruno Haible  <bruno@clisp.org>
89260
89261         * modules/safe-read: Add m4/ssize_t.m4.
89262         * modules/xreadlink: Add m4/ssize_t.m4.
89263
89264 2003-06-20  Bruno Haible  <bruno@clisp.org>
89265
89266         Assume C89, so PARAMS isn't needed.
89267         * lib/unicodeio.h (PARAMS): Remove.
89268         * lib/unicodeio.c: Don't use PARAMS.
89269
89270 2003-06-18  Karl Berry  <karl@gnu.org>
89271
89272         * config/config.{guess,sub}: update from prep.
89273
89274 2003-06-18  Jim Meyering  <jim@meyering.net>
89275
89276         Merge changes from coreutils.
89277         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89278         Remove explicit declarations of xmalloc and realloc.
89279         Include xalloc.h.
89280         (read_utmp): Remove anachronistic cast of xmalloc.
89281
89282 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89283
89284         Assume C89, so PARAMS isn't needed.
89285         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89286         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89287         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89288         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89289         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89290         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89291         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89292         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89293         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89294         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89295         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89296         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89297         no longer needed. Anyway, config.h should always be included before any
89298         other file.
89299
89300 2003-06-11  Simon Josefsson  <jas@extundo.com>
89301
89302         * modules/sysexits: New file.
89303         * MODULES.html.sh (func_all_modules): Add sysexits.
89304
89305 2003-06-11  Simon Josefsson  <jas@extundo.com>
89306
89307         * lib/sysexit_.h: New file.
89308
89309 2003-06-11  Derek Price  <derek@ximbiot.com>
89310
89311         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89312         necessary.
89313
89314 2003-06-11  Bruno Haible  <bruno@clisp.org>
89315
89316         * m4/sysexits.m4: New file.
89317
89318 2003-06-10  Simon Josefsson  <jas@extundo.com>
89319
89320         * lib/argp.h: New file, from glibc.
89321         * lib/argp-ba.c: New file, from glibc.
89322         * lib/argp-eexst.c: New file, from glibc.
89323         * lib/argp-fmtstream.c: New file, from glibc.
89324         * lib/argp-fmtstream.h: New file, from glibc.
89325         * lib/argp-fs-xinl.c: New file, from glibc.
89326         * lib/argp-help.c: New file, from glibc.
89327         * lib/argp-namefrob.h: New file, from glibc.
89328         * lib/argp-parse.c: New file, from glibc.
89329         * lib/argp-pv.c: New file, from glibc.
89330         * lib/argp-pvh.c: New file, from glibc.
89331         * lib/argp-xinl.c: New file, from glibc.
89332
89333 2003-06-10  Simon Josefsson  <jas@extundo.com>
89334
89335         * modules/strchrnul: New file.
89336
89337 2003-06-10  Simon Josefsson  <jas@extundo.com>
89338
89339         * modules/argp: New file.
89340
89341 2003-06-10  Simon Josefsson  <jas@extundo.com>
89342
89343         * m4/strchrnul.m4: New file.
89344
89345 2003-06-10  Simon Josefsson  <jas@extundo.com>
89346
89347         * lib/strchrnul.h: New file.
89348         * lib/strchrnul.c: New file.
89349
89350 2003-06-10  Bruno Haible  <bruno@clisp.org>
89351
89352         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89353
89354 2003-06-07  Karl Berry  <karl@gnu.org>
89355
89356         * config/config.{guess,sub}: update from prep.
89357
89358 2003-06-07  Jim Meyering  <jim@meyering.net>
89359
89360         * modules/strtod: Use $(...) notation, not @...@ for
89361         AC_REPLACE'd variables.
89362         * modules/localcharset: Likewise.
89363
89364 2003-06-07  Jim Meyering  <jim@meyering.net>
89365
89366         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89367         in place of my name in the copyright comment.
89368         Remove definition and uses of __P.
89369
89370         From coreutils.
89371         * lib/stat.c: Don't declare xmalloc explicitly.
89372         Instead, include "xalloc.h".
89373         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89374         xrealloc, and xcalloc return values.
89375         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89376         Improve comment.
89377         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89378
89379 2003-06-07  Bruno Haible  <bruno@clisp.org>
89380
89381         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89382         avoid AC_CONFIG_LINKS.
89383         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89384         fnmatch.h, to avoid AC_CONFIG_LINKS.
89385         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89386
89387 2003-06-07  Bruno Haible  <bruno@clisp.org>
89388
89389         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89390         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89391         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89392         directory.
89393         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89394         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89395         directory.
89396
89397 2003-06-06  Jim Meyering  <jim@meyering.net>
89398
89399         Merge from coreutils.
89400         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89401         Consolidate declarations and initializations of *_base* locals.
89402
89403         Merge from coreutils.
89404         This avoids a core dump on systems without GNU putenv,
89405         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89406         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89407         (unsetenv): New static function, from GNU libc.
89408         (rpl_putenv): Use it.
89409
89410         * lib/modechange.c: Remove trailing blanks.
89411
89412         Merge from coreutils.
89413         * lib/fsusage.c: Remove declaration of statfs.
89414         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89415
89416         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89417
89418 2003-06-06  Jim Meyering  <jim@meyering.net>
89419
89420         * lib/stdbool_.h: Renamed from stdbool.h.in.
89421
89422 2003-06-06  Jim Meyering  <jim@meyering.net>
89423             Bruno Haible  <bruno@clisp.org>
89424
89425         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89426         Adjust Makefile.am snippet not to redirect directly to target.
89427         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89428
89429 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89430
89431         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89432         mismatch, look in future quarters as well as past.  This fixes a
89433         bug when processing fall-backwards gaps immediately after a long
89434         period of daylight-saving time.
89435
89436         * lib/mktime.c: Assume freestanding C89 or better.
89437         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89438         (__P): Remove; not used.
89439         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89440         (mktime, not_equal_tm, print_tm, check_result,
89441         main): Use prototypes.  Use const * where appropriate.
89442         (main): Fix typo in testing code that uncovered by above changes.
89443         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89444
89445 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89446
89447         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89448         locale.h, localeconv.  This merges changes from coreutils.
89449
89450         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89451         It can be removed after the next Autoconf is released.
89452         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89453         needed.
89454
89455 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89456
89457         * lib/mktime.c: Fix Debian bug 177940
89458         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89459         (localtime_offset): Now long int, not time_t, because we want it
89460         to be guaranteed to be signed.  All uses changed.
89461         (__mktime_internal): If overflow would occur when adding offset,
89462         don't add it.
89463
89464         Merge 'human' changes from coreutils.  Rewrite to support
89465         locale-specific notations like thousands separators.
89466         * lib/human.c: Simplify authorship notice.
89467         Include human.h immediately after config.h.
89468         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89469         <limits.h>: Do not include, since human.h does.
89470         (SIZE_MAX, UINTMAX_MAX): New macros.
89471         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89472         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89473         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89474         (power_letter): Renamed from suffixes.
89475         (generate_suffix_backwards): Remove.
89476         (adjust_value): Now takes int style (because of human.h changes)
89477         and long double value (for greater precision on some platforms).
89478         (group_number): New function.
89479         (human_readable): Use it.  Use integer options, not enum.
89480         Put the options before the sizes in the arg list.
89481         Support all the new options.
89482         The old human_readable function has been removed;
89483         use inttostr.h instead.
89484         (human_readable, default_block_size, humblock):
89485         Use uintmax_t, not int, for block sizes.
89486         (human_readable_inexact, block_size_types): Remove.
89487         (block_size_opts): New constant.
89488         (human_options): Renamed from human_block_size, with new signature
89489         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89490         * lib/human.h: Add copyright and authorship notice.
89491         Include <limits.h> and <stdbool.h> unconditionally.
89492         (PARAMS): Remove.  All uses removed.
89493         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89494         (enum human_inexact_style): Remove tag; now a nameless enum.
89495         (human_floor, human_ceiling, human_round_to_even): Now have
89496         values 2, 0, 1 rather than -1, 1, 0.
89497         (human_group_digits, human_suppress_point_zero, human_autoscale,
89498         human_base_1024, human_SI, human_B): New constants.
89499         (human_readable_inexact, human_block_size): Remove.
89500         (human_readable): Size args are now uintmax_t, not int.
89501         (human_options): New decl.
89502
89503         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89504         unnecessary now that we assume C89 or better.  This change
89505         imported from coreutils.
89506
89507         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89508         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89509         in the 2003-05-30 sync from glibc.
89510
89511         .h files should stand alone, but we shouldn't include <sys/types.h>
89512         if we can get away with just <stddef.h>.
89513
89514         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89515         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89516         rather than <sys/types.h>, as we merely need size_t.
89517         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89518         to get size_t.
89519         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89520         Include <stdio.h>, to get FILE.
89521         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89522         memcasecmp.h has included <stddef.h> and all we need is size_t.
89523         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89524         our interface, instead of including <sys/types.h>
89525
89526 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89527
89528         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89529         now, as glibc mktime is buggy on non-glibc systems.
89530
89531 2003-06-03  Karl Berry  <karl@gnu.org>
89532
89533         * config/config.sub: update from prep.
89534
89535 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89536
89537         [from coreutils]
89538         Fix some minor time-related bugs with POSIX time arguments.
89539         Some valid time stamps were being rejected (notably -1, and
89540         time stamps before 1900 on 64-bit hosts).  And some invalid
89541         time stamps were being accepted, e.g. September 31.
89542
89543         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89544         that we can return (time_t) -1 successfully.
89545         * lib/posixtm.c: Likewise.
89546         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89547         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89548         (t): Remove static var.
89549         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89550         of static var.  All uses changed.
89551         (year): Do not reject years before 1900; they can occur with
89552         64-bit time_t.
89553         (posix_time_parse): Do not check for out-of-range components;
89554         that is now the caller's responsibility, since our checks were
89555         only approximations.
89556         (posixtime): Use mktime to check for out-of-range components,
89557         since it knows them exactly.
89558         If mktime returns (time_t) -1, check whether an error actually occurred
89559         by invoking localtime on -1.
89560         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89561         posixtime failures better.
89562         Improve the test data (in comments only).
89563
89564 2003-06-02  Karl Berry  <karl@gnu.org>
89565
89566         * config/mkinstalldirs (version): new variable.
89567         (--version): new option.
89568         (usage): improve message.
89569
89570 2003-05-30  Karl Berry  <karl@gnu.org>
89571
89572         * lib/mktime.c: update from libc.
89573
89574 2003-05-30  Bruno Haible  <bruno@clisp.org>
89575
89576         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89577         * config/config.rpath: Upgrade to gettext-0.12.1.
89578
89579 2003-05-30  Bruno Haible  <bruno@clisp.org>
89580
89581         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89582         * m4/nls.m4: New file, from gettext-0.12.1.
89583         * m4/po.m4: New file, from gettext-0.12.1.
89584         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89585
89586 2003-05-30  Bruno Haible  <bruno@clisp.org>
89587
89588         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89589         * lib/localcharset.h: Likewise.
89590         * lib/localcharset.c: Likewise.
89591
89592 2003-05-29  Karl Berry  <karl@gnu.org>
89593
89594         * config/config.rpath: update from gettext.
89595
89596 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89597
89598         Assume the headers required for C89 freestanding compilers.
89599         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89600         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89601         * m4/human.m4 (gl_HUMAN): Likewise.
89602         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89603         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89604         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89605         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89606         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89607         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89608
89609 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89610
89611         Assume the headers required for C89 freestanding compilers.
89612         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89613         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89614         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89615         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89616         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89617         define, since <limits.h> is guaranteed to do that.
89618         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89619         * lib/exclude.c: Include <stdbool.h> unconditionally.
89620         * lib/tempname.c: Include <stddef.h> unconditionally.
89621         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89622         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89623         <stddef.h> does that.
89624         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89625         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89626         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89627         needed.
89628         * lib/xstrtol.c: Likewise.
89629         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89630         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89631
89632         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89633         warnings on some platforms.
89634
89635         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89636         arbitrarily.
89637
89638 2003-05-26  Jim Meyering  <jim@meyering.net>
89639
89640         Merge in a change from coreutils:
89641         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89642         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89643         that condition, rather than `-1' which is slightly misleading.
89644         Change the name of the cache variable to have the gl_ prefix.
89645         Prompted by a patch from Richard Dawe for DJGPP.
89646
89647 2003-05-24  Karl Berry  <karl@gnu.org>
89648
89649         * config/config.guess: update from prep.
89650
89651 2003-05-22  Karl Berry  <karl@gnu.org>
89652
89653         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89654
89655 2003-05-20  Karl Berry  <karl@gnu.org>
89656
89657         * config/config.guess: update from prep.
89658
89659 2003-05-18  Karl Berry  <karl@gnu.org>
89660
89661         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89662         might actually be set by the user.
89663
89664         * config/depcomp, install-sh, mdate-sh: update from automake.
89665
89666 2003-05-17  Bruno Haible  <bruno@clisp.org>
89667
89668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89669         invalid expansion for AC_EGREP_CPP.
89670         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89671         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89672         Suggested by Akim Demaille <akim@epita.fr> in
89673         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89674
89675 2003-05-12  Jim Meyering  <jim@meyering.net>
89676
89677         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89678         the space-padded-by-default conversion specifiers, %e, %k, %l.
89679
89680 2003-05-12  Bruno Haible  <bruno@clisp.org>
89681
89682         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89683         the string is longer than 4 KB.
89684
89685 2003-05-11  Karl Berry  <karl@gnu.org>
89686
89687         * config/config.{guess,sub}: update from prep.
89688
89689 2003-05-09  Bruno Haible  <bruno@clisp.org>
89690
89691         * modules/error: Add m4/strerror_r.m4 to file list.
89692
89693 2003-05-03  Bruno Haible  <bruno@clisp.org>
89694
89695         Upgrade to Unicode-4.0.
89696         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89697         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89698         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89699         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89700         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89701         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89702         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89703         Change width of U+E0100..U+E01EF from 1 to 0.
89704
89705 2003-04-25  Jim Meyering  <jim@meyering.net>
89706
89707         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89708         of type size_t, not int.
89709
89710 2003-04-25  Bruno Haible  <bruno@clisp.org>
89711
89712         * lib/copy-file.c: Include <stddef.h>, for size_t.
89713
89714 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89715
89716         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89717         code which expansion is under static control.  Patch imported from
89718         Akim Demaille's patch to Bison; see
89719         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89720
89721 2003-04-14  Bruno Haible  <bruno@clisp.org>
89722
89723         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89724
89725 2003-04-11  Jim Meyering  <jim@meyering.net>
89726
89727         Merge changes from Coreutils.
89728
89729         2003-03-22  Jim Meyering  <jim@meyering.net>
89730
89731         * lib/strftime.c (widen): Cast alloca return value to proper type.
89732
89733         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89734
89735         From GNU libc.
89736         * lib/strftime.c (my_strftime): Handle very large width
89737         specifications for numeric values correctly.  Improve checks for
89738         overflow.
89739
89740         2003-01-19  Jim Meyering  <jim@meyering.net>
89741
89742         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89743         definitions.
89744         (nl_get_alt_digit) [! defined my_strftime]: Define.
89745         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89746         _nl_get_alt_digit and _nl_get_walt_digit.
89747
89748         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89749         libc. These changes have no effect outside of _LIBC.
89750
89751 2003-04-10  Bruno Haible  <bruno@clisp.org>
89752
89753         * modules/findprog: New file.
89754         * MODULES.html.sh (func_all_modules): Add it.
89755
89756 2003-04-10  Bruno Haible  <bruno@clisp.org>
89757
89758         * m4/findprog.m4: New file.
89759         * m4/eaccess.m4: New file.
89760
89761 2003-04-10  Bruno Haible  <bruno@clisp.org>
89762
89763         * lib/findprog.h: New file, from GNU gettext.
89764         * lib/findprog.c: New file, from GNU gettext.
89765
89766 2003-04-05  Jim Meyering  <jim@meyering.net>
89767
89768         Merge changes from Coreutils.
89769
89770         * lib/exclude.h (PARAMS): Remove definition and uses.
89771         * lib/exclude.c: Remove uses of `PARAMS'.
89772
89773         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89774         Add test-cases for DOS filenames. Declare program_name.
89775         (main): Set up program_name.  Patch by Rich Dawe.
89776
89777         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89778         error from mntctl.
89779         Use mntctl's return value to drive the entry-processing loop, since
89780         we can't rely on the value of the vmt_length member in the last
89781         entry.  On some systems doing so could result in exhausting
89782         virtual memory.  Based in part on a patch from Mike Jetzer.
89783
89784 2003-04-04  Bruno Haible  <bruno@clisp.org>
89785
89786         * modules/linebreak: New file.
89787         * MODULES.html.sh (func_all_modules): Add it.
89788
89789 2003-04-04  Bruno Haible  <bruno@clisp.org>
89790
89791         * m4/linebreak.m4: New file.
89792
89793 2003-04-04  Bruno Haible  <bruno@clisp.org>
89794
89795         * lib/linebreak.h: New file, from GNU gettext.
89796         * lib/linebreak.c: New file, from GNU gettext with slight
89797         modifications.
89798         * lib/lbrkprop.h: New file, from GNU gettext.
89799
89800 2003-04-03  Bruno Haible  <bruno@clisp.org>
89801
89802         * modules/utf8-ucs4: New file.
89803         * modules/utf16-ucs4: New file.
89804         * modules/ucs4-utf8: New file.
89805         * modules/ucs4-utf16: New file.
89806         * MODULES.html.sh (func_all_modules): Add them.
89807
89808 2003-04-03  Bruno Haible  <bruno@clisp.org>
89809
89810         * m4/utf-ucs4.m4: New file.
89811         * m4/ucs4-utf.m4: New file.
89812
89813 2003-04-03  Bruno Haible  <bruno@clisp.org>
89814
89815         * lib/utf8-ucs4.h: New file, from GNU gettext.
89816         * lib/utf16-ucs4.h: New file, from GNU gettext.
89817         * lib/ucs4-utf8.h: New file, from GNU gettext.
89818         * lib/ucs4-utf16.h: New file, from GNU gettext.
89819
89820 2003-04-02  Bruno Haible  <bruno@clisp.org>
89821
89822         * modules/binary-io: New file.
89823         * MODULES.html.sh (func_all_modules): Add it.
89824
89825 2003-04-02  Bruno Haible  <bruno@clisp.org>
89826
89827         * lib/binary-io.h: New file, from GNU gettext.
89828
89829 2003-04-01  Bruno Haible  <bruno@clisp.org>
89830
89831         * modules/pathname: New file.
89832         * MODULES.html.sh (func_all_modules): Add it.
89833
89834 2003-04-01  Bruno Haible  <bruno@clisp.org>
89835
89836         * lib/pathname.h: New file, from GNU gettext.
89837         * lib/concatpath.c: New file, from GNU gettext.
89838
89839 2003-03-30  Bruno Haible  <bruno@clisp.org>
89840
89841         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89842
89843 2003-03-30  Bruno Haible  <bruno@clisp.org>
89844
89845         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89846         function chown() doesn't exist.
89847
89848 2003-03-28  Bruno Haible  <bruno@clisp.org>
89849
89850         * modules/copy-file: New file.
89851         * MODULES.html.sh (func_all_modules): Add it.
89852
89853 2003-03-28  Bruno Haible  <bruno@clisp.org>
89854
89855         * m4/copy-file.m4: New file.
89856
89857 2003-03-28  Bruno Haible  <bruno@clisp.org>
89858
89859         * lib/copy-file.h: New file, from GNU gettext.
89860         * lib/copy-file.c: New file, from GNU gettext.
89861
89862 2003-03-18  Jim Meyering  <jim@meyering.net>
89863
89864         * lib/quote.c (quote_n): Fix typo in comment.
89865
89866 2003-03-18  Bruno Haible  <bruno@clisp.org>
89867
89868         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89869         checking.
89870         * m4/onceonly_2_57.m4: Likewise.
89871
89872 2003-03-17  Bruno Haible  <bruno@clisp.org>
89873
89874         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89875         (m4_quote): Remove macro.
89876         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89877
89878 2003-03-14  Jim Meyering  <jim@meyering.net>
89879
89880         Merge changes from Coreutils.
89881         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89882         to be const, in order to avoid warnings.
89883         (obstack_room): Likewise.
89884         (obstack_empty_p): Likewise.
89885
89886 2003-03-14  Bruno Haible  <bruno@clisp.org>
89887
89888         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89889         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89890
89891 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89892
89893         Merge changes from Bison.
89894         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89895         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89896         when compiling Bison 1.875's `bitset bset = obstack_alloc
89897         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89898         * lib/hash.c: Include <stdbool.h> unconditionally.
89899
89900 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89901
89902         * m4/onceonly.m4 (m4_quote): New macro.
89903         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89904         Quote AC_FOREACH variable-expansions properly.
89905
89906 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89907
89908         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89909
89910 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89911
89912         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89913         Reported by Bruce Becker; see:
89914         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89915
89916 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89917             Bruno Haible  <bruno@clisp.org>
89918
89919         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89920         Reported by John Hughes, see
89921         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89922
89923 2003-02-20  Bruno Haible  <bruno@clisp.org>
89924
89925         * MODULES.html.sh (func_all_modules): Add poll.
89926
89927 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89928
89929         * modules/poll: New file.
89930
89931 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89932
89933         * lib/poll_.h: New file.
89934         * lib/poll.c: New file.
89935
89936 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89937
89938         * m4/poll.m4: New file.
89939
89940 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89941
89942         * modules/mathl: New file.
89943
89944 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89945
89946         * lib/mathl.h: New file.
89947         * lib/acosl.c: New file.
89948         * lib/asinl.c: New file.
89949         * lib/atanl.c: New file.
89950         * lib/ceill.c: New file.
89951         * lib/cosl.c: New file.
89952         * lib/expl.c: New file.
89953         * lib/floorl.c: New file.
89954         * lib/frexpl.c: New file.
89955         * lib/ldexpl.c: New file.
89956         * lib/logl.c: New file.
89957         * lib/sincosl.c: New file.
89958         * lib/sinl.c: New file.
89959         * lib/sqrtl.c: New file.
89960         * lib/tanl.c: New file.
89961         * lib/trigl.c: New file.
89962         * lib/trigl.h: New file.
89963
89964 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89965
89966         * m4/mathl.m4: New file.
89967
89968 2003-02-18  Bruno Haible  <bruno@clisp.org>
89969
89970         * MODULES.html.sh (func_all_modules): Add mathl.
89971
89972 2003-02-17  Bruno Haible  <bruno@clisp.org>
89973
89974         * modules/mkdtemp: New module.
89975         * MODULES.html.sh (func_all_modules): Add it.
89976
89977 2003-02-17  Bruno Haible  <bruno@clisp.org>
89978
89979         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89980
89981 2003-02-17  Bruno Haible  <bruno@clisp.org>
89982
89983         * lib/mkdtemp.h: New file, from GNU gettext.
89984         * lib/mkdtemp.c: New file, from GNU gettext.
89985
89986 2003-02-02  Jim Meyering  <jim@meyering.net>
89987
89988         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89989         e.g. glibc-2.2.93.
89990
89991 2003-01-31  Bruno Haible  <bruno@clisp.org>
89992
89993         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89994         'rpl_rename'.
89995         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89996         'rpl_strnlen'.
89997         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89998         'rpl_strtod'.
89999         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90000         'rpl_utime'.
90001
90002 2003-01-31  Bruno Haible  <bruno@clisp.org>
90003
90004         * lib/rename.c: #undef rename before defining rpl_rename.
90005         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90006
90007 2003-01-30  Bruno Haible  <bruno@clisp.org>
90008
90009         * modules/vasnprintf, modules/vasprintf: New modules.
90010         * MODULES.html.sh (func_all_modules): Add them.
90011
90012 2003-01-30  Bruno Haible  <bruno@clisp.org>
90013
90014         * m4/signed.m4: New file, from GNU gettext.
90015         * m4/longdouble.m4: New file, from GNU gettext.
90016         * m4/wchar_t.m4: New file, from GNU gettext.
90017         * m4/wint_t.m4: New file, from GNU gettext.
90018         * m4/vasnprintf.m4: New file.
90019         * m4/vasprintf.m4: New file.
90020
90021 2003-01-30  Bruno Haible  <bruno@clisp.org>
90022
90023         * lib/printf-args.h: New file, from GNU gettext.
90024         * lib/printf-args.c: New file, from GNU gettext.
90025         * lib/printf-parse.h: New file, from GNU gettext.
90026         * lib/printf-parse.c: New file, from GNU gettext.
90027         * lib/vasnprintf.h: New file, from GNU gettext.
90028         * lib/vasnprintf.c: New file, from GNU gettext.
90029         * lib/asnprintf.c: New file, from GNU gettext.
90030         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90031         * lib/vasprintf.c: New file, from GNU gettext.
90032         * lib/asprintf.c: New file, from GNU gettext.
90033
90034 2003-01-29  Bruno Haible  <bruno@clisp.org>
90035
90036         * modules/stpncpy: New module.
90037         * MODULES.html.sh (func_all_modules): Add it.
90038
90039 2003-01-29  Bruno Haible  <bruno@clisp.org>
90040
90041         * m4/stpncpy.m4: New file.
90042
90043 2003-01-29  Bruno Haible  <bruno@clisp.org>
90044
90045         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90046         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90047
90048 2003-01-28  Bruno Haible  <bruno@clisp.org>
90049
90050         * modules/c-ctype: New module.
90051         * MODULES.html.sh (func_all_modules): Add it.
90052
90053 2003-01-28  Bruno Haible  <bruno@clisp.org>
90054
90055         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90056         Paul Eggert.
90057         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90058         Paul Eggert.
90059
90060 2003-01-27  Bruno Haible  <bruno@clisp.org>
90061
90062         * modules/xsetenv: New module.
90063         * MODULES.html.sh (func_all_modules): Add it.
90064
90065 2003-01-27  Bruno Haible  <bruno@clisp.org>
90066
90067         * lib/xsetenv.h: New file, from GNU gettext.
90068         * lib/xsetenv.c: New file, from GNU gettext.
90069
90070 2003-01-23  Jim Meyering  <jim@meyering.net>
90071
90072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90073         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90074
90075 2003-01-23  Bruno Haible  <bruno@clisp.org>
90076
90077         * modules/minmax: New module.
90078         * MODULES.html.sh (func_all_modules): Add it.
90079
90080 2003-01-23  Bruno Haible  <bruno@clisp.org>
90081
90082         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90083         Eggert.
90084
90085 2003-01-22  Bruno Haible  <bruno@clisp.org>
90086
90087         * modules/exit: New module.
90088         * MODULES.html.sh (func_all_modules): Add it.
90089
90090 2003-01-22  Bruno Haible  <bruno@clisp.org>
90091
90092         * lib/exit.h: New file, from GNU gettext.
90093
90094 2003-01-19  Bruno Haible  <bruno@clisp.org>
90095
90096         * gnulib-tool: Recognize option --extract-maintainer.
90097         (func_get_maintainer): New function.
90098         * modules/*: Add Maintainer entry.
90099
90100 2003-01-16  Jim Meyering  <jim@meyering.net>
90101
90102         * m4/regex.m4: The `regex' struct is both input and output.
90103         Initialize it before each use.  Patch by Tim Waugh.
90104
90105 2003-01-16  Bruno Haible  <bruno@clisp.org>
90106
90107         * MODULES.html.sh: Add a table of contents. Add the module name as
90108         leftmost column. Add hyperlinks.
90109
90110 2003-01-15  Bruno Haible  <bruno@clisp.org>
90111
90112         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90113
90114 2003-01-15  Bruno Haible  <bruno@clisp.org>
90115
90116         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90117         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90118         suffix.
90119
90120 2003-01-15  Bruno Haible  <bruno@clisp.org>
90121
90122         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90123
90124 2003-01-15  Bruno Haible  <bruno@clisp.org>
90125
90126         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90127         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90128
90129 2003-01-14  Jim Meyering  <jim@meyering.net>
90130
90131         * lib/same.c (same_name): Tweak a comment.
90132
90133 2003-01-14  Bruno Haible  <bruno@clisp.org>
90134
90135         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90136         when a string comparison is sufficient.
90137
90138 2003-01-14  Bruno Haible  <bruno@clisp.org>
90139
90140         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90141         'unsigned int'.
90142
90143 2003-01-14  Bruno Haible  <bruno@clisp.org>
90144
90145         * lib/hash-pjw.c: Add comment about low quality of this function.
90146
90147 2003-01-13  Bruno Haible  <bruno@clisp.org>
90148
90149         * modules/stpcpy: Distribute lib/stpcpy.h.
90150         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90151
90152 2003-01-13  Bruno Haible  <bruno@clisp.org>
90153
90154         * modules/*: Add a description.
90155         * modules/strpbrk: Fix Makefile.am snippet.
90156         * modules/strtoimax: Fix dependencies.
90157         * modules/strtoumax: Likewise.
90158
90159 2003-01-13  Bruno Haible  <bruno@clisp.org>
90160
90161         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90162         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90163         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90164
90165 2003-01-13  Bruno Haible  <bruno@clisp.org>
90166
90167         * gnulib-tool (func_create_testdir): Store config/* files in the main
90168         directory.
90169         * config.rpath: Move to ...
90170         * config/config.rpath: ... here.
90171         * modules/gettext: Contains config/config.rpath, not config.rpath.
90172         * modules/iconv: Likewise.
90173
90174 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90175
90176         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90177         to avoid collisions with libcurses and libreadline.
90178
90179         * m4/getstr.m4: Remove.
90180         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90181
90182 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90183
90184         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90185         to avoid collisions with libcurses and libreadline.
90186
90187         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90188         * lib/getstr.h, getstr.c: Remove.
90189         * lib/getline.c: Include "getline.h", to check interface.
90190         Move body of old getstr.c here: this defines MIN_CHUNK and
90191         declares getdelim2, which is renamed from getstr.
90192         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90193
90194         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90195         All uses changed.
90196         * lib/linebuffer.h: Likewise.
90197         (readline): Remove backward-compatibility macro.
90198
90199 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90200
90201         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90202         to avoid collisions with libcurses and libreadline.
90203         * getstr: Remove.
90204         * MODULES.html.sh: Remove getstr.
90205         * modules/getline: Depend on unlocked-io, not getstr.
90206
90207 2003-01-12  Jim Meyering  <jim@meyering.net>
90208
90209         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90210
90211 2003-01-10  Bruno Haible  <bruno@clisp.org>
90212
90213         * modules/alloca: Change Makefile.am requirements. Simplify Include
90214         requirements. Add lib/alloca_.h to file list.
90215
90216 2003-01-10  Bruno Haible  <bruno@clisp.org>
90217
90218         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90219
90220 2003-01-10  Bruno Haible  <bruno@clisp.org>
90221
90222         * lib/alloca_.h: New file.
90223         * lib/getdate.y: Unconditionally include alloca.h.
90224         * lib/makepath.c: Likewise.
90225         * lib/setenv.c: Likewise.
90226         * lib/userspec.c: Likewise.
90227
90228 2003-01-09  Karl Berry  <karl@gnu.org>
90229
90230         * MODULES.html.sh: include `dirname $0` in PATH, to find
90231         gnulib-tool.
90232
90233 2003-01-09  Bruno Haible  <bruno@clisp.org>
90234
90235         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90236         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90237
90238 2003-01-09  Bruno Haible  <bruno@clisp.org>
90239
90240         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90241
90242 2003-01-09  Bruno Haible  <bruno@clisp.org>
90243
90244         * lib/stdbool.h.in: New file.
90245
90246 2003-01-09  Bruno Haible  <bruno@clisp.org>
90247
90248         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90249         * MODULES.html.sh: Likewise.
90250
90251 2003-01-08  Jim Meyering  <jim@meyering.net>
90252
90253         * lib/full-write.c: Undefine and define-away `const' after inclusion
90254         of errno.h, not before.  Suggestion from Bruno Haible.
90255
90256 2003-01-08  Bruno Haible  <bruno@clisp.org>
90257
90258         * modules/full-read: Depend on full-write.
90259
90260 2003-01-08  Bruno Haible  <bruno@clisp.org>
90261
90262         * lib/safe-read.c: Include specification header first, to ensure its
90263         selfcontainedness.
90264         * lib/full-write.c: Likewise.
90265
90266 2003-01-07  Jim Meyering  <jim@meyering.net>
90267
90268         * lib/full-write.c: Rework so that it may serve to define full_read,
90269         too.
90270         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90271
90272 2003-01-07  Bruno Haible  <bruno@clisp.org>
90273
90274         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90275         <inttypes.h>.
90276         * lib/xstrtol.h: Likewise.
90277         * lib/xstrtoimax.c: Likewise.
90278         * lib/xstrtoumax.c: Likewise.
90279         * lib/human.h: Likewise.
90280
90281         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90282         on systems that have <inttypes.h> but not <stdint.h>.
90283
90284 2003-01-07  Bruno Haible  <bruno@clisp.org>
90285
90286         * MODULES.html.sh: Add copyright notice.
90287         (missed_files): Omit CVS directory entries.
90288         (func_module): Make it work with sed-3.02.
90289         * MODULES.txt: Remove file.
90290
90291 2003-01-06  Jim Meyering  <jim@meyering.net>
90292
90293         * lib/version-etc.c: Update year in translatable copyright string.
90294
90295 2003-01-03  Karl Berry  <karl@gnu.org>
90296
90297         * config/config.{guess,sub}: update from prep.
90298
90299 2003-01-02  Karl Berry  <karl@gnu.org>
90300
90301         * doc/COPYING.DOC: belatedly updated to 1.2.
90302
90303 2003-01-01  Karl Berry  <karl@gnu.org>
90304
90305         * gnulib-tool (func_verify_module): report module name $module in
90306         error message, not $1.
90307         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90308         be created, only if it doesn't exist.
90309         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90310
90311 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90312
90313         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90314
90315 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90316
90317         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90318         memcmp if strcoll doesn't work.
90319
90320 2002-12-31  Bruno Haible  <bruno@clisp.org>
90321
90322         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90323         nonempty.
90324
90325 2002-12-31  Bruno Haible  <bruno@clisp.org>
90326
90327         * lib/memcoll.c (STRCOLL): New macro.
90328         (memcoll): Use it.
90329
90330 2002-12-31  Bruno Haible  <bruno@clisp.org>
90331
90332         * lib/localcharset.h: New file.
90333         * lib/localcharset.c: Include it.
90334         * lib/unicodeio.c: Likewise.
90335
90336 2002-12-31  Bruno Haible  <bruno@clisp.org>
90337
90338         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90339         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90340
90341 2002-12-31  Bruno Haible  <bruno@clisp.org>
90342
90343         * lib/getline.h: Include <stddef.h>, for size_t.
90344
90345         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90346         * lib/unicodeio.c: Don't include <stddef.h>.
90347
90348 2002-12-31  Bruno Haible  <bruno@clisp.org>
90349
90350         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90351         HAVE_TM_ZONE.
90352
90353 2002-12-24  Karl Berry  <karl@gnu.org>
90354
90355         * config/config.guess: update from prep.
90356
90357 2002-12-24  Bruno Haible  <bruno@clisp.org>
90358
90359         General infrasructure.
90360         * m4/README: Rewritten.
90361         * m4/onceonly.m4: New file.
90362         * m4/onceonly_2_57.m4: New file.
90363
90364         Module atexit.
90365         * m4/atexit.m4: New file.
90366
90367         Module strtod.
90368         * m4/strtod.m4: New file.
90369
90370         Module strtol.
90371         * m4/strtol.m4: New file.
90372
90373         Module strtoul.
90374         * m4/strtoul.m4: New file.
90375
90376         Module memchr.
90377         * m4/memchr.m4: New file.
90378
90379         Module memcmp.
90380         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90381         (jm_FUNC_MEMCMP): Invoke it.
90382
90383         Module memcpy.
90384         * m4/memcpy.m4: New file.
90385
90386         Module memmove.
90387         * m4/memmove.m4: New file.
90388
90389         Module memset.
90390         * m4/memset.m4: New file.
90391
90392         Module strcspn.
90393         * m4/strcspn.m4: New file.
90394
90395         Module strpbrk.
90396         * m4/strpbrk.m4: New file.
90397
90398         Module strstr.
90399         * m4/strstr.m4: New file.
90400
90401         Module strerror.
90402         * m4/strerror.m4: New file.
90403
90404         Module mktime.
90405         * m4/mktime.m4: Renamed from jm-mktime.m4.
90406         (gl_PREREQ_MKTIME): New macro.
90407         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90408
90409         Module malloc.
90410         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90411         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90412         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90413
90414         Module realloc.
90415         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90416         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90417         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90418
90419         Module strftime.
90420         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90421         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90422         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90423         gl_TM_GMTOFF.
90424         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90425
90426         Module xalloc.
90427         * m4/xalloc.m4: New file.
90428
90429         Module alloca.
90430         * m4/alloca.m4: New file.
90431
90432         Module putenv.
90433         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90434         (jm_FUNC_PUTENV): Invoke it.
90435
90436         Module setenv.
90437         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90438         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90439         when invoked twice.
90440         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90441         gt_FUNC_SETENV.
90442
90443         Module memrchr.
90444         * m4/memrchr.m4: New file.
90445
90446         Module stpcpy.
90447         * m4/stpcpy.m4: New file.
90448
90449         Module strcase.
90450         * m4/strcase.m4: New file.
90451
90452         Module strdup.
90453         * m4/strdup.m4: New file.
90454
90455         Module strnlen.
90456         * m4/strnlen.m4: New file.
90457
90458         Module strndup.
90459         * m4/strndup.m4: New file.
90460
90461         Module xstrtod.
90462         * m4/xstrtod.m4: New file.
90463
90464         Module xstrtol.
90465         * m4/xstrtol.m4: New file.
90466
90467         Module getdate.
90468         * m4/getdate.m4: New file.
90469
90470         Module unlocked-io.
90471         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90472         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90473         * m4/jm-glibc-io.m4n: Remove file.
90474
90475         Module long-options.
90476         * m4/long-options.m4: New file.
90477
90478         Module md5.
90479         * m4/md5.m4: New file.
90480
90481         Module sha.
90482         * m4/sha.m4: New file.
90483
90484         Module getstr.
90485         * m4/getstr.m4: New file.
90486
90487         Module getline.
90488         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90489         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90490         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90491         simply getline. Infoke gl_PREREQ_GETLINE.
90492
90493         Module obstack.
90494         * m4/obstack.m4: New file.
90495
90496         Module hash.
90497         * m4/hash.m4: New file.
90498
90499         Module readtokens.
90500         * m4/readtokens.m4: New file.
90501
90502         Module strverscmp.
90503         * m4/strverscmp.m4: New file.
90504
90505         Module stdbool.
90506         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90507         OSF/1.
90508
90509         Module strtoll.
90510         * m4/strtoll.m4: New file.
90511
90512         Module strtoull.
90513         * m4/strtoull.m4: New file.
90514
90515         Module strtoimax.
90516         * m4/strtoimax.m4: New file.
90517
90518         Module strtoumax.
90519         * m4/strtoumax.m4: New file.
90520
90521         Module xstrtoimax.
90522         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90523         jm_AC_PREREQ_XSTRTOIMAX.
90524         Moved the strtol prerequisites to strtol.m4.
90525         Moved the strtoll prerequisites to strtoll.m4.
90526         Moved the strtoimax prerequisites to strtoimax.m4.
90527
90528         Module xstrtoumax.
90529         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90530         jm_AC_PREREQ_XSTRTOUMAX.
90531         Moved the strtoul prerequisites to strtoul.m4.
90532         Moved the strtoull prerequisites to strtoull.m4.
90533         Moved the strtoumax prerequisites to strtoumax.m4.
90534
90535         Module chown.
90536         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90537         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90538
90539         Module dup2.
90540         * m4/dup2.m4: New file.
90541
90542         Module ftruncate.
90543         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90544         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90545
90546         Module getgroups.
90547         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90548         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90549
90550         Module gettimeofday.
90551         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90552         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90553         gl_PREREQ_GETTIMEOFDAY.
90554
90555         Module mkdir.
90556         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90557         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90558
90559         Module mkstemp.
90560         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90561         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90562         jm_AC_TYPE_UINTMAX_T.
90563         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90564
90565         Module stat.
90566         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90567         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90568
90569         Module lstat.
90570         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90571         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90572
90573         Module timespec.
90574         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90575         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90576         * m4/st_mtim.m4: Indentation.
90577
90578         Module nanosleep.
90579         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90580         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90581         gl_PREREQ_NANOSLEEP.
90582
90583         Module regex.
90584         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90585         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90586         (gl_REGEX): New macro.
90587
90588         Module rename.
90589         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90590         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90591
90592         Module rmdir.
90593         * m4/rmdir.m4: New file.
90594
90595         Module utime.
90596         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90597         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90598         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90599
90600         Module dirname.
90601         * m4/dirname.m4: New file.
90602
90603         Module getopt.
90604         * m4/getopt.m4: New file.
90605
90606         Module unistd-safer.
90607         * m4/unistd-safer.m4: New file.
90608
90609         Module fnmatch.
90610         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90611         declaration.
90612         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90613         (gl_FUNC_FNMATCH_POSIX): New macro.
90614         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90615         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90616         simply fnmatch.
90617
90618         Module exclude.
90619         * m4/exclude.m4: New file.
90620
90621         Module human.
90622         * m4/human.m4: New file.
90623
90624         Module acl.
90625         * m4/acl.m4: Nop.
90626
90627         Module backupfile.
90628         * m4/backupfile.m4: New file.
90629         * m4/d-ino.m4: Indentation.
90630
90631         Module fsusage.
90632         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90633         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90634         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90635
90636         Module dirfd.
90637         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90638         requirements.
90639
90640         Module euidaccess.
90641         * m4/euidaccess.m4: New file.
90642
90643         Module file-type.
90644         * m4/file-type.m4: New file.
90645
90646         Module fileblocks.
90647         * m4/fileblocks.m4: New file.
90648
90649         Module filemode.
90650         * m4/filemode.m4: New file.
90651
90652         Module isdir.
90653         * m4/isdir.m4: New file.
90654
90655         Module lchown.
90656         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90657         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90658
90659         Module makepath.
90660         * m4/makepath.m4: New file.
90661
90662         Module modechange.
90663         * m4/modechange.m4: New file.
90664
90665         Module mountlist.
90666         * m4/mountlist.m4: New file.
90667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90668         Indentation.
90669
90670         Module path-concat.
90671         * m4/path-concat.m4: New file.
90672
90673         Module pathmax.
90674         * m4/pathmax.m4: New file.
90675
90676         Module same.
90677         * m4/same.m4: New file.
90678
90679         Module save-cwd.
90680         * m4/save-cwd.m4: New file.
90681
90682         Module savedir.
90683         * m4/savedir.m4: New file.
90684
90685         Module xgetcwd.
90686         * m4/xgetcwd.m4: New file.
90687         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90688
90689         Module xreadlink.
90690         * m4/xreadlink.m4: New file.
90691
90692         Module safe-read.
90693         * m4/safe-read.m4: New file.
90694
90695         Module safe-write.
90696         * m4/safe-write.m4: New file.
90697
90698         Module closeout.
90699         * m4/closeout.m4: New file.
90700
90701         Module stdio-safer.
90702         * m4/stdio-safer.m4: New file.
90703
90704         Module getpass.
90705         * m4/getpass.m4: New file.
90706
90707         Module getugroups.
90708         * m4/getugroups.m4: New file.
90709
90710         Module group-member.
90711         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90712         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90713
90714         Module idcache.
90715         * m4/idcache.m4: New file.
90716
90717         Module userspec.
90718         * m4/userspec.m4: New file.
90719
90720         Module gettime.
90721         * m4/clock_time.m4: New file.
90722         * m4/gettime.m4: New file.
90723
90724         Module settime.
90725         * m4/settime.m4: New file.
90726
90727         Module posixtm.
90728         * m4/posixtm.m4: New file.
90729
90730         Module gethostname.
90731         * m4/gethostname.m4: New file.
90732
90733         Module canon-host.
90734         * m4/canon-host.m4: New file.
90735
90736         Module gettext.
90737         * m4/codeset.m4: New file, from gettext-0.11.5.
90738         * m4/gettext.m4: New file, from gettext-0.11.5.
90739         * m4/glibc21.m4: New file, from gettext-0.11.5.
90740         * m4/iconv.m4: New file, from gettext-0.11.5.
90741         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90742         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90743         * m4/inttypes.m4: New file, from gettext-0.11.5.
90744         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90745         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90746         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90747         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90748         * m4/lib-link.m4: New file, from gettext-0.11.5.
90749         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90750         * m4/progtest.m4: New file, from gettext-0.11.5.
90751         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90752         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90753         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90754
90755         Module localcharset.
90756         * m4/localcharset.m4: New file.
90757
90758         Module hard-locale.
90759         * m4/hard-locale.m4: New file.
90760
90761         Module mbswidth.
90762         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90763         onceonly macros.
90764         * m4/mbrtowc.m4: Add comment.
90765
90766         Module memcasecmp.
90767         * m4/memcasecmp.m4: New file.
90768
90769         Module memcoll.
90770         * m4/memcoll.m4: New file.
90771
90772         Module unicodeio.
90773         * m4/unicodeio.m4: New file.
90774
90775         Module rpmatch.
90776         * m4/rpmatch.m4: New file.
90777
90778         Module yesno.
90779         * m4/yesno.m4: New file.
90780
90781         Module exitfail.
90782         * m4/exitfail.m4: New file.
90783
90784         Module c-stack.
90785         * m4/c-stack.m4 (gl_C_STACK): New macro.
90786         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90787
90788         Module error.
90789         * m4/error.m4 (gl_ERROR): New macro.
90790         (jm_PREREQ_ERROR): Use onceonly macros.
90791
90792         Module fatal.
90793         * m4/fatal.m4: New file.
90794
90795         Module getloadavg.
90796         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90797         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90798
90799         Module getpagesize.
90800         * m4/getpagesize.m4: New file.
90801
90802         Module getusershell.
90803         * m4/getusershell.m4: New file.
90804
90805         Module physmem.
90806         * m4/physmem.m4: New file.
90807
90808         Module posixver.
90809         * m4/posixver.m4: New file.
90810
90811         Module quotearg.
90812         * m4/quotearg.m4: New file.
90813
90814         Module quote.
90815         * m4/quote.m4: New file.
90816
90817         Module readutmp.
90818         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90819
90820         Module sig2str.
90821         * m4/sig2str.m4: New file.
90822
90823         Other.
90824         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90825         ulonglong.m4.
90826         * m4/intmax_t.m4: New file.
90827         * m4/d-type.m4: Indentation.
90828         * m4/jm-macros.m4: Update.
90829         * m4/prereq.m4 (jm_PREREQ): Update.
90830         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90831         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90832         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90833         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90834         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90835         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90836         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90837         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90838         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90839         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90840         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90841         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90842         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90843         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90844         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90845         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90846         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90847         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90848         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90849
90850 2002-12-24  Bruno Haible  <bruno@clisp.org>
90851
90852         * MODULES.txt: Update according to m4/ changes.
90853
90854         Module gettext.
90855         * config.rpath: New file, from gettext-0.11.5.
90856
90857         * modules/*: New module descriptions.
90858         * gnulib-tool: New file.
90859         * MODULES.html.sh: New file.
90860
90861 2002-12-21  Karl Berry  <karl@gnu.org>
90862
90863         * doc/fdl.texi: update to version 1.2.
90864
90865 2002-12-19  Karl Berry  <karl@gnu.org>
90866
90867         * config/config.guess: update from prep.
90868
90869 2002-12-18  Bruno Haible  <bruno@clisp.org>
90870
90871         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90872         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90873
90874 2002-12-17  Bruno Haible  <bruno@clisp.org>
90875
90876         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90877         stdlib.h, string.h.
90878
90879 2002-12-17  Bruno Haible  <bruno@clisp.org>
90880
90881         * lib/canon-host.c (strdup): Remove unused declaration.
90882
90883         * lib/fsusage.c: Include full_read.h.
90884         (get_fs_usage): Use full_read instead of safe_read.
90885
90886         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90887
90888 2002-12-12  Karl Berry  <karl@gnu.org>
90889
90890         * config/config.guess: update from prep.
90891
90892 2002-12-11  Bruno Haible  <bruno@clisp.org>
90893
90894         * m4/setenv.m4: New file, from gettext-0.11.5.
90895
90896 2002-12-11  Bruno Haible  <bruno@clisp.org>
90897
90898         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90899         not unsetenv().
90900         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90901         modifications:
90902
90903         2002-12-11  Bruno Haible  <bruno@clisp.org>
90904
90905                 * setenv.c (alloca): Fall back to malloc.
90906                 (freea): New macro.
90907                 (setenv): Use freea() to free memory allocated with alloca().
90908
90909         2002-11-13  Bruno Haible  <bruno@clisp.org>
90910
90911                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90912                 function declarations.
90913                 * unsetenv.c (unsetenv): Likewise.
90914
90915         2002-03-04  Bruno Haible  <bruno@clisp.org>
90916
90917                 Portability to AIX 4.3.3.
90918                 * unsetenv.c: New file, extracted from setenv.c.
90919                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90920
90921         2001-12-20  Bruno Haible  <bruno@clisp.org>
90922
90923                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90924                 use malloc instead. For SunOS 4.
90925
90926         2001-12-11  Bruno Haible  <bruno@clisp.org>
90927
90928                 * setenv.c: Declare alloca.
90929                 (compar_fn_t): New typedef.
90930                 (KNOWN_VALUE, STORE_VALUE): Use it.
90931
90932         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90933         setenv.h.
90934
90935 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90936
90937         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90938         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90939         Choose values that are less likely to collide with system fnmatch
90940         options.
90941         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90942         defined (e.g., a pure POSIX system).
90943         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90944         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90945
90946 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90947
90948         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90949         a pain in practice to deal with generated m4 files.  This change
90950         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90951
90952         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90953         and jm-glibc-io.m4, as they are no longer a special case.
90954         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90955         kludge and the auto-generation stuff.  Check only whether the
90956         functions are declared, not whether they exist, since older hosts
90957         that don't declare the functions can't use the optimization anyway.
90958
90959 2002-12-06  Jim Meyering  <jim@meyering.net>
90960
90961         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90962
90963         Merge in changes from libc's misc/error.c, in preparation
90964         for the merge of gnulib's changes back into libc.
90965
90966         * lib/error.c (_): Define only if not already defined.
90967         Move definition to follow all #include directives.
90968         Include unlocked-io.h only if !_LIBC.
90969         [_LIBC]: Include <libio/libioP.h>.
90970         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90971         (fflush): Tweak definition to use INTUSE.
90972         (putc): Define.
90973
90974 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90975
90976         * lib/alloca.c [defined emacs]: Include "lisp.h".
90977         (xalloc_die) [defined emacs]: New macro.
90978         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90979         [! defined emacs]: Include <xalloc.h>.
90980         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90981         (pointer): Typedef to POINTER_TYPE *.
90982         (malloc): Remove decl; we now always use xmalloc.
90983         (alloca): Use old-style definition, since Emacs needs this.
90984         Check for arithmetic overflow when computing combined size.
90985
90986 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90987
90988         Do not generate unlocked-io.h automatically, since it's easier to
90989         maintain it by hand.
90990
90991         * lib/unlocked-io.h: New file, from GNU diffutils,
90992         but with proper copyright notice and attribution.
90993         * lib/gen-uio: Remove.
90994         * lib/Makefile.am: Add copyright notice.
90995         (libfetish_a_SOURCES): Add unlocked-io.h.
90996         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90997         (DISTCLEANFILES, io_functions): Remove macros.
90998         (EXTRA_DIST): Remove gen_uio.
90999         (unlocked-io.h): Remove rule.
91000
91001 2002-12-04  Jim Meyering  <jim@meyering.net>
91002
91003         Reflect the fact that stat.c and lstat.c are no longer generated.
91004         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91005         (DISTCLEANFILES): Likewise.
91006         (EXTRA_DIST): Likewise.
91007         (all_local): Don't depend on stat.c or lstat.c.
91008         (stat.c, lstat.c): Remove rules.
91009         (EXTRA_DIST): Remove xstat.in.
91010
91011         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91012         * lib/stat.c: New file.  Contents mostly from xstat.in.
91013         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91014         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91015
91016         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91017         too.
91018         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91019
91020 2002-12-03  Jim Meyering  <jim@meyering.net>
91021
91022         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91023         but not semantics, to minimize the differences between these two files.
91024         (safe_read): Change comment to mention SAFE_READ_ERROR.
91025
91026         * lib/safe-read.c (IS_EINTR): Define.
91027         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91028
91029 2002-12-02  Jim Meyering  <jim@meyering.net>
91030
91031         * lib/safe-read.c (EINTR): Define.
91032         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91033         (INT_MAX): Provide fallback.
91034         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91035
91036         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91037
91038 2002-12-02  Bruno Haible  <bruno@clisp.org>
91039
91040         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91041         Define, taken from safe-read.c.
91042         (INT_MAX): Provide fallback.
91043         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91044         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91045
91046         * lib/safe-read.c (EINTR): Remove definition.
91047         (safe_read): Don't use EINTR if it is absent.
91048
91049 2002-12-01  Jim Meyering  <jim@meyering.net>
91050
91051         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91052         zero.
91053         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91054
91055 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91056
91057         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91058         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91059         with `if (! (value < limit)) abort ();', for readability.
91060
91061 2002-11-26  Karl Berry  <karl@gnu.org>
91062
91063         * lib/strdup.c: copy from libc again, with jim's ok.
91064         * lib/.cppi-disable: re-add strdup.c
91065
91066 2002-11-25  Karl Berry  <karl@gnu.org>
91067
91068         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91069         instead of "strtol.c".
91070
91071 2002-11-25  Karl Berry  <karl@gnu.org>
91072
91073         * config/install-sh: update from automake for variable quoting, $0 in
91074         error msgs, etc.
91075
91076         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91077         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91078         entry.
91079
91080 2002-11-25  Jim Meyering  <jim@meyering.net>
91081
91082         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91083
91084 2002-11-24  Karl Berry  <karl@gnu.org>
91085
91086         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91087         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91088
91089 2002-11-24  Jim Meyering  <jim@meyering.net>
91090
91091         Update from coreutils:
91092
91093         * lib/mktime.c: Merge in changes from libc.
91094
91095         Avoid a link-time failure on some Linux systems.
91096         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91097         (otherwise).
91098         (__mon_yday): Declare with the STATIC attribute.
91099         (__mktime_internal): Likewise.
91100         Based on a report from Greg Schafer.
91101
91102 2002-11-23  Jim Meyering  <jim@meyering.net>
91103
91104         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91105         Use `unsigned', not `int', as type of index.
91106
91107         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91108
91109         * lib/fsusage.c: Remove unneeded parentheses around operands of
91110         `defined'.
91111
91112 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91113
91114         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91115         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91116         so that we can be included first.
91117         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91118         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91119         No need to include stddef.h or sys/types.h any more.
91120         Surround local include files with "", not "<>".
91121         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91122         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91123         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91124         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91125         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91126         (ISPRINT): Remove; no longer needed now that we assume C89.
91127
91128         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91129         Preserve errno.
91130
91131         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91132         quotearg_char): Use SIZE_MAX rather than
91133         (size_t) -1 when we are talking about "infinity".
91134
91135         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91136
91137 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91138
91139         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91140         hint that one should use `if (! x) abort ();' rather than `assert
91141         (x);', and anyway it's one less thing to worry about configuring.
91142         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91143         hash_rehash, hash_insert): Use abort rather than assert.
91144
91145 2002-11-22  Bruno Haible  <bruno@clisp.org>
91146
91147         * lib/safe-read.h: Assume C89. Add comments.
91148         (safe_read): Change return type to size_t.
91149         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91150         byte counts > SSIZE_MAX correctly.
91151         * lib/safe-write.h: New file.
91152         * lib/safe-write.c: New file.
91153         * lib/full-read.h: New file.
91154         * lib/full-read.c: New file.
91155         * lib/full-write.h: Assume C89. Add comments.
91156         * lib/full-write.c: Include safe-write.h.
91157         (full_write): Rewritten to use safe_write.
91158         Suggested by Jim Meyering and Paul Eggert.
91159
91160 2002-11-21  Jim Meyering  <jim@meyering.net>
91161
91162         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91163
91164         Merge in changes from the coreutils.
91165
91166         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91167         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91168         <stdint.h>.
91169         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91170         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91171         int.  Work more efficiently if X is the same width as uintmax_t.
91172         Do not compare X to -1, to avoid bogus compiler warning.
91173         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91174         Don't assume that f_frsize and f_bsize are the same type.
91175
91176         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91177         warning on FreeBSD.
91178
91179         * lib/makepath.c (make_path): Restore umask *before* creating the final
91180         component.
91181         (make_path): Minor reformatting.
91182
91183         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91184         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91185         HAVE_MALLOC/HAVE_REALLOC.
91186
91187         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91188         dummy ones.  At least on GNU/Linux systems, `auto' means something
91189         else.
91190         From Michael Stone.
91191
91192 2002-11-21  Bruno Haible  <bruno@clisp.org>
91193
91194         Remove case insensitive option matching.
91195         * lib/argmatch.h (argcasematch): Remove declaration.
91196         (ARGCASEMATCH): Remove macro.
91197         (__xargmatch_internal): Remove case_sensitive argument.
91198         (XARGMATCH): Update.
91199         (XARGCASEMATCH): Remove macro.
91200         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91201         case_sensitive argument.
91202         (argcasematch): Remove function.
91203         (__xargmatch_internal): Remove case_sensitive argument.
91204         (main): Use XARGMATCH instead of XARGCASEMATCH.
91205
91206         * lib/xmalloc.c: Change compile-time error message. Add comment about
91207         required autoconf version.
91208
91209 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91210
91211         Merge argmatch cleanups from Bison.  Assume C89.
91212
91213         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91214         Include stdlib.h, for EXIT_FAILURE.
91215         Always include <string.h>, since we assume C89.
91216         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91217         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91218         Include <stddef.h> instead, since it's all we need for size_t.
91219         (PARAMS): Remove.  All uses removed.
91220         (ARRAY_CARDINALITY): Do not bother to #undef.
91221         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91222         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91223         Remove unnecessary parentheses.
91224         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91225         Insert necessary parentheses.
91226         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91227         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91228
91229 2002-11-19  Bruno Haible  <bruno@clisp.org>
91230
91231         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91232         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91233
91234         * lib/mbswidth.h (PARAMS): Remove macro.
91235         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91236         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91237
91238         * lib/gcd.h (PARAMS): Remove macro.
91239         (gcd): Use ANSI C function declarations.
91240         * lib/gcd.c (gcd): Likewise.
91241
91242 2002-11-15  Bruno Haible  <bruno@clisp.org>
91243
91244         * lib/strcspn.c: Include <stddef.h>.
91245         (strcspn): Use ANSI C function declaration. Change return type to
91246         size_t. Use NULL.
91247         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91248         (strpbrk): Use NULL.
91249         * lib/strpbrk.h (PARAMS): Remove macro.
91250         (strpbrk): Use ANSI C function declaration.
91251         * lib/strstr.c: Don't include <sys/types.h>.
91252         * lib/strstr.h (PARAMS): Remove macro.
91253         (strstr): Use ANSI C function declarations.
91254
91255 2002-11-14  Karl Berry  <karl@gnu.org>
91256
91257         * config/mkinstalldirs: `do' on separate line, instead of
91258         `for var; do'.
91259
91260 2002-11-06  Bruno Haible  <bruno@clisp.org>
91261
91262         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91263         * lib/gcd.c (gcd): Likewise.
91264
91265 2002-11-05  Bruno Haible  <bruno@clisp.org>
91266
91267         * lib/gcd.h: New file, from gettext-0.11.5.
91268         * lib/gcd.c: New file, from gettext-0.11.5.
91269
91270 2002-11-05  Bruno Haible  <bruno@clisp.org>
91271
91272         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91273         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91274         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91275         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91276
91277         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91278         <libintl.h>.
91279         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91280         <libintl.h>.
91281
91282         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91283         * lib/human.c: Include gettext.h instead of <libintl.h>.
91284         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91285         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91286         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91287         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91288         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91289         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91290         (textdomain): Remove definition.
91291         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91292
91293         * lib/long-options.c: Remove include of <libintl.h> and definition of
91294         _.
91295         * lib/same.c: Remove include of <libintl.h> and definition of _.
91296
91297 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91298
91299         * lib/config.charset: A few additions for Solaris.
91300
91301 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91302
91303         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91304         * lib/localcharset.c (locale_charset): Declare as extern "C".
91305
91306 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91307
91308         * lib/config.charset: msdos in uk_UA uses CP1125.
91309
91310 2002-11-04  Bruno Haible  <bruno@clisp.org>
91311
91312         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91313         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91314         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91315         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91316         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91317
91318 2002-11-04  Bruno Haible  <bruno@clisp.org>
91319
91320         * lib/localcharset.c (locale_charset): Don't return an empty string.
91321
91322 2002-11-04  Bruno Haible  <bruno@clisp.org>
91323
91324         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91325         aliases.
91326
91327 2002-11-04  Bruno Haible  <bruno@clisp.org>
91328
91329         * lib/config.charset: Update for newest glibc. Add canonical names
91330         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91331
91332 2002-11-04  Bruno Haible  <bruno@clisp.org>
91333
91334         * lib/config.charset: Add support for NetBSD.
91335
91336 2002-11-04  Bruno Haible  <bruno@clisp.org>
91337
91338         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91339
91340 2002-11-01  Bruno Haible  <bruno@clisp.org>
91341
91342         * configure.in: Add AC_CONFIG_AUX_DIR call.
91343         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91344         test/Makefile.
91345         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91346
91347 2002-09-28  Karl Berry  <karl@gnu.org>
91348
91349         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91350         installed automake until the next release, since changes have been
91351         made.
91352
91353 2002-09-25  Karl Berry  <karl@gnu.org>
91354
91355         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91356         * lib/getopt*: copy from libc/posix.
91357         * lib/gettext.h: copy from gettext.
91358         * lib/.cppi-disable: add strdup.c, gettext.h.
91359
91360 2002-09-25  Karl Berry  <karl@gnu.org>
91361
91362         * config/srclist.txt: enable gettext.h check.
91363         * config/config.{guess,sub}: update from prep.
91364         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91365                 from automake 1.6.3.
91366         See srclist*.
91367
91368 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91369
91370         * regex.c (PATFETCH): Remove the translating fetch.
91371         (PATFETCH_RAW): Rename to PATFETCH.
91372         (set_image_of_range): New fun.
91373         (SET_RANGE_TABLE_WORK_AREA): Use it.
91374         (regex_compile): Don't translate the pattern chars so eagerly.
91375         Only do it when inserting an `exactn' bytecode or when handling
91376         a char-range.
91377         (mutually_exclusive_p): Avoid empty statement.
91378
91379 2002-07-06  Jim Meyering  <meyering@lucent.com>
91380
91381         * m4/README: Don't mention Makefile.am.in.
91382         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91383
91384 2002-07-01  Jim Meyering  <meyering@lucent.com>
91385
91386         * lib/c-stack.c: Include sys/time.h.
91387         From Volker Borchert.
91388
91389 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91390
91391         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91392
91393 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91394
91395         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91396         New macro.  Use it uniformly instead of
91397         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91398         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91399         reported by Vin Shelton.
91400
91401 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91402
91403         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91404         Do not assume SA_SIGINFO behavior.
91405         Bug reported by Jim Meyering on NetBSD 1.5.2.
91406
91407 2002-06-22  Jim Meyering  <meyering@lucent.com>
91408
91409         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91410         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91411
91412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91413         now that configure.ac uses AC_GNU_SOURCE.
91414         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91415         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91416
91417         Update to latest tools.  Suggestions from Paul Eggert.
91418         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91419         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91420         * m4/fnmatch.m4: Likewise.
91421         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91422         to AC_HEADER_STDBOOL
91423
91424 2002-06-22  Jim Meyering  <meyering@lucent.com>
91425
91426         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91427         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91428
91429 2002-06-22  Jim Meyering  <meyering@lucent.com>
91430
91431         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91432
91433         * lib/exitfail.c, exitfail.h: Likewise.
91434         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91435
91436         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91437         of fnmatch.h.
91438         (EXTRA_DIST): Add fnmatch_loop.c.
91439         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91440
91441         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91442         * lib/fnmatch.c: Update from diffutils-2.8.2.
91443         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91444         * lib/fnmatch.h: Remove file.
91445
91446 2002-06-21  Jim Meyering  <meyering@lucent.com>
91447
91448         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91449         * m4/mbrtowc.m4: Likewise.
91450
91451         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91452         * m4/mbswidth.m4: Reflect name change:
91453         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91454         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91455
91456         * m4/lib-link.m4: Update from gettext-0.11.2.
91457         * m4/gettext.m4: Likewise.
91458
91459         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91460         From Alfred M. Szmidt.
91461
91462 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91463
91464         * lib/file-type.h: Report an error if neither S_ISREG nor
91465         S_IFREG is defined, instead of using a test specific to glibc
91466         2.2.  This should be safe, since POSIX requires S_ISREG and
91467         Unix Version 7 had S_IFREG.  We don't need to check for
91468         <sys/types.h> since we don't use any symbols that it defines.
91469
91470 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91471
91472         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91473         $@-t, so that each temporary file name is unique and valid in the first
91474         8 characters, for operation under DOS.
91475
91476 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91477
91478         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91479
91480 2002-06-15  Jim Meyering  <meyering@lucent.com>
91481
91482         Work even with DJGPP 2.03, which lacks support for symlinks.
91483         From Richard Dawe.
91484         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91485         is defined.
91486         * lib/lchown.c (S_ISLNK): Likewise.
91487
91488 2002-06-15  Jim Meyering  <meyering@lucent.com>
91489
91490         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91491         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91492         have been included before this file.
91493
91494 2002-06-14  Jim Meyering  <meyering@lucent.com>
91495
91496         * lib/file-type.h: Use the version from diffutils-2.8.2.
91497         * lib/file-type.c: Likewise.
91498
91499 2002-06-07  Jim Meyering  <meyering@lucent.com>
91500
91501         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91502         They're needed at least for NetBSD 1.5.2.
91503         ($statxfs_includes): Include those same headers.
91504         ($statxfs_includes): Include sys/vfs.h if available.
91505         ($statxfs_includes): Likewise for sys/statvfs.h.
91506         Check for the following members in both structs statfs and statvfs:
91507         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91508
91509 2002-06-01  Jim Meyering  <meyering@lucent.com>
91510
91511         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91512         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91513
91514 2002-05-28  Jim Meyering  <meyering@lucent.com>
91515
91516         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91517         Reported by Volker Borchert.
91518
91519 2002-05-27  Jim Meyering  <meyering@lucent.com>
91520
91521         Fix a problem seen only on nonconforming systems whereby ls.c's
91522         use of localtime, and then of gettimeofday would cause trouble:
91523         the localtime call used to initialize rpl_gettimeofday's save
91524         mechanism would clobber ls's current local time information so
91525         that in any long listing the first file would always be listed
91526         with date 1970-01-01.  Analysis by Volker Borchert.
91527
91528         * lib/gettimeofday.c (localtime): Undefine.
91529         (rpl_localtime): New function.
91530
91531 2002-05-27  Jim Meyering  <meyering@lucent.com>
91532
91533         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91534         localtime.
91535
91536         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91537         use the replacement function; it wouldn't resolve at link time.
91538         Reported by Volker Borchert.
91539
91540 2002-05-22  Jim Meyering  <meyering@lucent.com>
91541
91542         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91543         file-type.h.
91544         * lib/file-type.h: New file.
91545         * lib/file-type.c (file_type): New file/function.  Extracted from
91546         diffutils.
91547
91548 2002-04-30  Jim Meyering  <meyering@lucent.com>
91549
91550         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91551
91552 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91553
91554         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91555
91556 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91557
91558         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91559         Do not check for alloca.h (no longer used) or stdbool.h (was never
91560         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91561
91562 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91563
91564         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91565
91566 2002-04-29  Jim Meyering  <meyering@lucent.com>
91567
91568         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91569         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91570         Use AC_FUNC_STRNLEN here instead.
91571
91572         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91573         With autoconf-2.53a, it's part of AC_PROG_CC.
91574
91575 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91576
91577         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91579
91580 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91581
91582         * lib/sig2str.h, lib/sig2str.c: New files.
91583         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91584
91585 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91586
91587         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91588         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91589         of 127, since 64 is the largest conceivable number for ancient
91590         nonstandard hosts.
91591         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91592
91593 2002-04-28  Jim Meyering  <meyering@lucent.com>
91594
91595         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91596
91597 2002-04-24  Jim Meyering  <meyering@lucent.com>
91598
91599         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91600         (jm_PREREQ): Use it.
91601
91602         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91603         mach/mach.h fcntl.h.
91604         Check for this function: setlocale.
91605
91606 2002-04-24  Jim Meyering  <meyering@lucent.com>
91607
91608         * lib/gettext.h: New file, from Gettext.
91609         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91610         (libfetish_a_SOURCES): Add gettext.h.
91611
91612 2002-04-16  Jim Meyering  <meyering@lucent.com>
91613
91614         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91615         ut_pid, ut_id, ut_exit.
91616
91617 2002-04-16  Jim Meyering  <meyering@lucent.com>
91618
91619         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91620         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91621         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91622
91623 2002-04-12  Jim Meyering  <meyering@lucent.com>
91624
91625         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91626         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91627         existence of the getmntinfo function.  Needed for Darwin 5.3.
91628
91629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91630         This is necessary at least on Darwin 5.3.
91631
91632         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91633         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91634         strnlen.o in the library, and that makes some versions of ranlib
91635         object.
91636
91637 2002-04-12  Jim Meyering  <meyering@lucent.com>
91638
91639         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91640
91641 2002-04-09  Jim Meyering  <meyering@lucent.com>
91642
91643         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91644         to be more precise.  Rather than saying we're checking whether the
91645         function `works', say what we're testing.
91646         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91647         Reported by Bruno Haible.
91648
91649 2002-03-10  Jim Meyering  <meyering@lucent.com>
91650
91651         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91652         Suggestion from Santiago Vila.
91653
91654 2002-03-08  Jim Meyering  <meyering@lucent.com>
91655
91656         * lib/rename.c: Mention that this wrapper is needed also on
91657         mips-dec-ultrix4.4 systems.
91658
91659 2002-03-02  Jim Meyering  <meyering@lucent.com>
91660
91661         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91662         not HAVE_CLOCK_SETTIME.
91663
91664 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91665
91666         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91667         Check for clock_settime.
91668
91669 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91670
91671         * lib/nanosleep.h: Rename to....
91672         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91673
91674         * lib/gettime.c: New file.
91675         * lib/settime.c: New file.
91676         * lib/stime.c: Remove.
91677
91678         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91679         timespec.h.  Remove nanosleep.h.
91680
91681 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91682
91683         * m4/acl.m4: New file.
91684         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91685         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91686
91687 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91688
91689         * lib/acl.c, lib/acl.h: New files.
91690         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91691
91692 2002-02-24  Jim Meyering  <meyering@lucent.com>
91693
91694         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91695         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91696         cause trouble.  Reported by Nelson Beebe.
91697
91698 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91699
91700         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91701         compilers that don't know that xalloc_die never returns.
91702
91703 2002-02-20  Jim Meyering  <meyering@lucent.com>
91704
91705         * lib/getdate.c: Regenerate using bison-1.33.
91706
91707 2002-02-17  Jim Meyering  <meyering@lucent.com>
91708
91709         * config/config.guess (main): Don't use `head -1'; it's no longer
91710         portable. Use `sed 1q' instead.
91711
91712 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91713
91714         * m4/codeset.m4: Upgrade to gettext-0.11.
91715         * m4/gettext.m4: Upgrade to gettext-0.11.
91716         * m4/glibc21.m4: Upgrade to gettext-0.11.
91717         * m4/iconv.m4: Upgrade to gettext-0.11.
91718         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91719         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91720         * m4/lib-ld.m4: New file, from gettext-0.11.
91721         * m4/lib-link.m4: New file, from gettext-0.11.
91722         * m4/lib-prefix.m4: New file, from gettext-0.11.
91723         * m4/progtest.m4: Upgrade to gettext-0.11.
91724
91725 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91726
91727         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91728         (jm_PREREQ): Use it.
91729
91730 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91731
91732         * lib/posixver.c, lib/posixver.h: New files.
91733         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91734
91735 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91736             Bruno Haible  <bruno@clisp.org>
91737
91738         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91739         (fwrite_success_callback): New declaration.
91740         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91741         print_unicode_char. Call failure callback instead of error.
91742         (fwrite_success_callback): New function.
91743         (exit_failure_callback): New function.
91744         (fallback_failure_callback): New function.
91745         (print_unicode_char): Call unicode_to_mb.
91746
91747 2002-01-26  Jim Meyering  <meyering@lucent.com>
91748
91749         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91750         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91751
91752 2002-01-26  Jim Meyering  <meyering@lucent.com>
91753
91754         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91755
91756 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91757
91758         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91759
91760 2002-01-22  Jim Meyering  <meyering@lucent.com>
91761
91762         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91763         Otherwise, some versions of automake would omit the rule that makes
91764         Makefile from Makefile.in.
91765
91766 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91767
91768         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91769         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91770         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91771         (memcoll): Set errno to zero if there is no error.
91772
91773         * lib/quotearg.c (quotearg_buffer_restyled):
91774         Fix bug with quoting buffers containing NUL when backslashing escapes.
91775         This bug was exposed by the other changes in this patch.
91776         (quotearg_n_options): New arg ARGSIZE.
91777         All callers changed.
91778         (quoting_options_from_style): New function.
91779         (quotearg_n_style): Use it.
91780         (quotearg_n_style_mem): New function.
91781
91782         * lib/quotearg.h (quotearg_n_style_mem): New function.
91783
91784 2002-01-19  Jim Meyering  <meyering@lucent.com>
91785
91786         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91787         Remove useless quotes: DF_PROG="df".
91788         * m4/strnlen.m4: New file.
91789
91790 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91791
91792         * lib/backupfile.c (ISDIGIT): Comment fix.
91793         * lib/getdate.y (ISDIGIT): Likewise.
91794         * lib/posixtm.c (ISDIGIT, year): Likewise.
91795         * lib/strverscmp.c (ISDIGIT): Likewise.
91796         * lib/userspec.c (ISDIGIT): Likewise.
91797
91798 2002-01-16  Jim Meyering  <meyering@lucent.com>
91799
91800         * lib/getdate.y: Add three semicolons, each just before a closing
91801         brace. Bison (as of version 1.31) no longer papers over that mistake.
91802
91803 2002-01-05  Jim Meyering  <meyering@lucent.com>
91804
91805         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91806
91807 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91808
91809         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91810         not silently exit merely because the output buffer happens to
91811         have nothing pending.
91812
91813 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91814
91815         See the big note in ../ChangeLog.
91816         * lib/human.c (suffixes): Prefer K to k for 1024.
91817         (generate_suffix_backwards): New function.
91818         (human_readable_inexact): Use it.
91819         * lib/xstrtol.c (__xstrtol): If there is no number but there
91820         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91821         Accept 'K' as well as 'k'.
91822
91823 2001-12-15  Jim Meyering  <meyering@lucent.com>
91824
91825         * lib/regex.h (__restrict_arr): Update from libc.
91826
91827         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91828         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91829         (STREQ): Define.
91830
91831 2001-12-14  Jim Meyering  <meyering@lucent.com>
91832
91833         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91834         Suggestion from Bruno Haible.
91835
91836 2001-12-10  Jim Meyering  <meyering@lucent.com>
91837
91838         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91839         xrealloc, Instead, include "xalloc.h".
91840         (initbuffer): Don't cast xmalloc return value to char*.
91841         (readline): Reword comment.
91842         Don't cast xrealloc return value to char*
91843         Return NULL, not 0.
91844
91845 2001-12-09  Jim Meyering  <meyering@lucent.com>
91846
91847         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91848         about `signed and unsigned type in conditional expression'.
91849         * lib/posixtm.c (posix_time_parse): Likewise.
91850
91851         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91852
91853         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91854         to avoid a pedantic warning.
91855
91856         * lib/getstr.c: Don't include assert.h.
91857         (getstr): Remove warning-evoking assertions.
91858         Return -1 if offset parameter is out of bounds.
91859         Change the type of a local from int to size_t.
91860
91861         * lib/strftime.c (my_strftime_localtime_r): Include this function
91862         definition in the `#if ! HAVE_TM_GMTOFF' block.
91863
91864         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91865         Include xalloc.h instead.
91866
91867 2001-12-02  Jim Meyering  <meyering@lucent.com>
91868
91869         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91870         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91871         included.
91872
91873         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91874         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91875
91876 2001-11-30  Akim Demaille  <akim@epita.fr>
91877
91878         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91879         before being defined.
91880
91881 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91882
91883         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91884         First arg is int, not unsigned.
91885         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91886         (SIZE_MAX, UINT_MAX): New macros.
91887         (quotearg_n_options): Abort if N is negative.
91888         Avoid overflow check on hosts where size_t is 64 bits and int
91889         is 32 bits, as overflow is impossible there.
91890         Fix off-by-one typo that caused unnecessary reallocation.
91891
91892 2001-11-27  Jim Meyering  <meyering@lucent.com>
91893
91894         * lib/tempname.c: Merge with version from libc.
91895         * lib/regex.c: Likewise.
91896
91897         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91898         systems for which STDC_HEADERS is 0, it was not included, resulting in
91899         a warning about an integer-to-pointer conversion problem with getenv.
91900         Reported by Volker Borchert.
91901
91902 2001-11-26  Jim Meyering  <meyering@lucent.com>
91903
91904         * lib/gtod.h: Remove file.
91905         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91906         * lib/gettimeofday.c: Don't include gtod.h.
91907         (GTOD_init): Remove function.
91908         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91909         Suggestion from Volker Borchert.
91910
91911 2001-11-23  Jim Meyering  <meyering@lucent.com>
91912
91913         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91914         it.
91915         * lib/hash.c (struct hash_table): Define it here instead.
91916
91917 2001-11-22  Jim Meyering  <meyering@lucent.com>
91918
91919         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91920
91921 2001-11-20  Jim Meyering  <meyering@lucent.com>
91922
91923         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91924         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91925
91926 2001-11-19  Jim Meyering  <meyering@lucent.com>
91927
91928         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91929         directory.  Use "conftestXXXXXX" as the template.
91930         Suggestion from Paul Eggert.
91931
91932         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91933         immediately, so the test doesn't mistakenly hit the max-open-files
91934         limit.
91935
91936 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91937
91938         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91939         (TEMPORARIES): New macro.
91940         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91941         removes an artificial limitation (e.g. HP-UX 10.20, where
91942         TMP_MAX is 17576).
91943
91944 2001-11-18  Jim Meyering  <meyering@lucent.com>
91945
91946         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91947
91948 2001-11-18  Jim Meyering  <meyering@lucent.com>
91949
91950         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91951         on SunOS 4.
91952
91953         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91954         files will be created before anything else.
91955
91956 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91957
91958         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91959         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91960
91961 2001-11-17  Jim Meyering  <meyering@lucent.com>
91962
91963         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91964         Prompted by a report from Bob Proulx.
91965
91966         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91967         Instead, require UTILS_FUNC_MKSTEMP.
91968
91969 2001-11-17  Jim Meyering  <meyering@lucent.com>
91970
91971         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91972         Now, that's done as part of AC_FUNC_STRTOD.
91973
91974 2001-11-17  Jim Meyering  <meyering@lucent.com>
91975
91976         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91977         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91978         rather than group writable.  Patch by Juan F. Codagnone.
91979
91980         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91981         xrealloc, Instead, include "xalloc.h".
91982
91983         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91984         Remove explicit declarations of xmalloc, xrealloc,
91985         and xstrdup.  Instead, include "xalloc.h".
91986
91987         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91988         unlocked-io.h.
91989         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91990         Likewise.
91991         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91992
91993         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91994         Reported by Padraig Brady.
91995
91996         * lib/mkstemp.c: #undef mkstemp.
91997         Include config.h.
91998         (rpl_mkstemp): Rename from mkstemp.
91999         Protoize.
92000
92001 2001-11-16  Jim Meyering  <meyering@lucent.com>
92002
92003         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92004         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92005         determine the amount of total physical memory, use pstat_getstatic.
92006         HPUX-11 doesn't define _SC_PHYS_PAGES.
92007         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92008         If sysconf couldn't be used to determine the amount of available
92009         physical memory, use both pstat_getstatic and pstat_getdynamic.
92010         Based on a patch from Bob Proulx.
92011
92012 2001-11-10  Jim Meyering  <meyering@lucent.com>
92013
92014         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92015         (jm_PREREQ): Use it.
92016
92017 2001-11-09  Jim Meyering  <meyering@lucent.com>
92018
92019         * m4/jm-macros.m4: Require autoconf-2.52f.
92020         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92021         Use these AC_-prefixed names, not the AM_-prefixed ones.
92022
92023         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92024
92025 2001-11-05  Jim Meyering  <meyering@lucent.com>
92026
92027         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92028
92029 2001-11-04  Jim Meyering  <meyering@lucent.com>
92030
92031         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92032         $DEFS.
92033
92034 2001-11-03  Jim Meyering  <meyering@lucent.com>
92035
92036         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92037         of AC_DEFUN.
92038
92039         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92040         know the name of the variable in the macro definition.
92041
92042 2001-11-03  Jim Meyering  <meyering@lucent.com>
92043
92044         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92045         in argmatch_to_argument call.
92046
92047         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92048         argument.
92049
92050         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92051         e.g., a fault due to an attempt to free a NULL pointer.
92052
92053 2001-11-01  Jim Meyering  <meyering@lucent.com>
92054
92055         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92056         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92057
92058 2001-11-01  Jim Meyering  <meyering@lucent.com>
92059
92060         * lib/dirfd.c, lib/dirfd.h: New files.
92061         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92062
92063         * lib/hash.c (hash_print) [TESTING]: Clean up.
92064
92065 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92066
92067         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92068         to avoid a warning if -Wall.
92069
92070 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92071
92072         * README: New file
92073         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92074         (per RMS's instructions, this is now the canonical source)
92075         * lgpl/, gpl/: New directories.
92076
92077 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92078
92079         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92080
92081 2001-10-21  Jim Meyering  <meyering@lucent.com>
92082
92083         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92084         this code would end up calling gettext even in packages built
92085         with --disable-nls.
92086         * lib/getopt.c (_): Likewise.
92087         * lib/regex.c (_): Likewise.
92088
92089 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92090
92091         * m4/error.m4 (jm_PREREQ_ERROR):
92092         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92093         AC_FUNC_STRERROR_R does that.
92094         Check for strerror declaration.
92095
92096         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92097         are supposed to have them these days.
92098         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92099         Merge changes from latest Autoconf CVS.
92100         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92101         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92102         POSIX decided to standardize on the int flavor of strerror_r.
92103
92104 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92105
92106         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92107         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92108         Use strerror_r that is only a macro, even if it is not a function.
92109         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92110         (private_strerror): Use prototypes, not old-style function definition.
92111         (print_errno_message): New function.
92112         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92113         char*-flavored one.
92114         (error_tail, error, error_at_line): Use it.
92115
92116 2001-10-11  Jim Meyering  <meyering@lucent.com>
92117
92118         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92119         and quote_n (1, ... to avoid clobbering a buffer.
92120
92121 2001-10-05  Jim Meyering  <meyering@lucent.com>
92122
92123         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92124         hash-pjw.h.
92125         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92126         * lib/hash-pjw.h: New file.
92127
92128 2001-09-30  Jim Meyering  <meyering@lucent.com>
92129
92130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92131         `struct fsstat' has the `f_fstypename' member.
92132         Use that to define FS_TYPE, which is now used to make
92133         the getfsstat link test tighter.
92134
92135 2001-09-30  Jim Meyering  <meyering@lucent.com>
92136
92137         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92138         Include <sys/ucred.h>, for Apple Darwin.
92139         Include sys/mount.h and sys/fs_types.h only if available.
92140         (FS_TYPE): Define.
92141         (read_filesystem_list): Use FS_TYPE.
92142
92143 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92144
92145         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92146         a boolean context.
92147
92148 2001-09-29  Jim Meyering  <meyering@lucent.com>
92149
92150         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92151         [one-argument getmntent function]): Include stdio.h before mntent.h.
92152         SunOS 4.1.x needs it for the declaration of `FILE'.
92153         Patch by Volker Borchert.
92154
92155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92156         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92157         sys/fs_types.h, and make the link-test for getfsstat guard #include
92158         directives with appropriate #if HAVE_*_H tests so that we can
92159         detect getfsstat on Apple Darwin1.3.7 systems.
92160         Reported by Nelson Beebe.
92161         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92162
92163 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92164
92165         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92166         #defines strtoimax.  Also treat the other strto* functions
92167         like strtoimax.
92168
92169         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92170         Check for strtoul and strtoumax,
92171         as those declarations are made even in the signed case.
92172         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92173         Likewise, for strtol and strtoimax.
92174
92175 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92176
92177         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92178         #defines strtoimax.  Also treat the other strto* functions
92179         like strtoimax.
92180
92181         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92182         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92183         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92184
92185 2001-09-26  Jim Meyering  <meyering@lucent.com>
92186
92187         Most macros in unlocked-io.h had the wrong number of arguments.
92188         * lib/gen-uio: New script.
92189         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92190         * lib/unlocked-io.hin: Remove file.
92191         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92192         rather than trying to embed it here.
92193         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92194         Reported by Padraig Brady.
92195
92196 2001-09-25  Volker Borchert  <bt@teknon.de>
92197
92198         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92199         `result'.
92200
92201 2001-09-24  Jim Meyering  <meyering@lucent.com>
92202
92203         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92204
92205 2001-09-23  Jim Meyering  <meyering@lucent.com>
92206
92207         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92208         instead of the mere test for existence of mntent.h.  The latter
92209         would get a false-positive on AIX 3.4 systems.
92210         In the outer getmntent if-block, don't die if neither of the getmntent
92211         tests succeeds.  Instead, just fall through and continue with the
92212         remaining tests.
92213
92214 2001-09-23  Jim Meyering  <meyering@lucent.com>
92215
92216         * lib/mountlist.c: Remove useless parentheses in #if directives.
92217         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92218         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92219
92220 2001-09-22  Jim Meyering  <meyering@lucent.com>
92221
92222         * m4/gettext.m4: New file.  From gettext.
92223         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92224         * m4/progtest.m4: Likewise
92225         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92226         * m4/glibc21.m4: Likewise.
92227
92228         * m4/libintl.m4: Remove.  No longer used.
92229
92230 2001-09-22  Jim Meyering  <meyering@lucent.com>
92231
92232         * lib/localcharset.c: Update from latest gettext.
92233         * lib/config.charset: Likewise.
92234
92235 2001-09-20  Jim Meyering  <meyering@lucent.com>
92236
92237         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92238         strtoimax.
92239         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92240         strtoumax.
92241
92242 2001-09-20  Jim Meyering  <meyering@lucent.com>
92243
92244         * lib/xstrtol.c (strtoimax): Guard declaration with
92245         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92246         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92247         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92248         (strtoumax): Likewise, for completeness (it wasn't necessary).
92249
92250 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92251
92252         * lib/strtoimax.c (HAVE_LONG_LONG):
92253         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92254         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92255         to work around bug in IBM C compiler.
92256
92257 2001-09-17  Jim Meyering  <meyering@lucent.com>
92258
92259         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92260         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92261         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92262         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92263         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92264         whenever the right hand side need not be expanded by the shell.
92265
92266 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92267
92268         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92269         library.  It's not correct, as some older glibcs are buggy.
92270         fnmatch wasn't fixed until glibc 2.2.
92271
92272         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92273         special shell magic here.
92274
92275 2001-09-16  Jim Meyering  <meyering@lucent.com>
92276
92277         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92278         * m4/jm-macros.m4: Require it.
92279
92280 2001-09-16  Jim Meyering  <meyering@lucent.com>
92281
92282         * lib/mkdir.c: New file.
92283
92284 2001-09-15  Jim Meyering  <meyering@lucent.com>
92285
92286         * m4/jm-macros.m4: Check for help2man.
92287
92288 2001-09-11  Jim Meyering  <meyering@lucent.com>
92289
92290         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92291         The body, by Paul Eggert, was moved here from configure.in.
92292         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92293
92294 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92295
92296         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92297         (jm_PREREQ): Use it.
92298
92299 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92300
92301         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92302         Use ssize_t, not int, to store result of readlink.
92303         Check for ssize_t overflow as well as size_t overflow,
92304         as POSIX says the result of readlink is implementation-defined
92305         when ssize_t overflows.
92306         Remove unnecessary cast to char*.
92307         Use free+malloc instead of realloc, as the storage doesn't need
92308         to be preserved and it's clearer and can be more efficient that way.
92309         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92310         * lib/xreadlink.h (xreadlink): Update prototype.
92311
92312 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92313
92314         * lib/xgetcwd.c: Revert some of the previous change; intead,
92315         fix the HAVE_GETCWD_NULL code to behave more like the
92316         !HAVE_GETCWD_NULL code used to.
92317
92318         Include "xalloc.h".
92319         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92320         invoke xalloc_die.
92321
92322 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92323
92324         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92325         sys/param.h, as pathmax.h includes them.
92326
92327 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92328
92329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92330         (jm_PREREQ_XGETCWD): New macro.
92331
92332         * m4/getcwd.m4: New file.
92333
92334 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92335
92336         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92337         like the HAVE_GETCWD_NULL code.
92338         Include pathmax.h if not HAVE_GETCWD.
92339         Do not include xalloc.h.
92340         (INITIAL_BUFFER_SIZE): New symbol.
92341         Do not use xmalloc / xrealloc, since the caller is responsible for
92342         handling errors.  Preserve errno around `free' during failure.
92343         Do not overrun buffer when using getwd.
92344
92345 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92346
92347         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92348         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92349         getcwd (NULL, 0).
92350
92351 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92352
92353         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92354         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92355         spotted by Jim Meyering.
92356
92357 2001-09-03  Jim Meyering  <meyering@lucent.com>
92358
92359         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92360         failure.
92361
92362 2001-09-02  Jim Meyering  <meyering@lucent.com>
92363
92364         * lib/error.c: Update from GNU libc.
92365
92366 2001-09-01  Jim Meyering  <meyering@lucent.com>
92367
92368         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92369         Used by df.
92370
92371 2001-09-01  Jim Meyering  <meyering@lucent.com>
92372
92373         * lib/xreadlink.c: New file.
92374         * lib/xreadlink.h: New file.
92375         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92376         xreadlink.h.
92377
92378         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92379         doesn't conflict with sparc Solaris 7's definition in
92380         /usr/include/sys/int_types.h.
92381
92382         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92383         files.
92384         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92385         and strncasecmp as r-values.  Unixware didn't have declarations.
92386
92387 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92388
92389         * lib/xstrtol.h: Add copyright notice.
92390         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92391         LONGINT_INVALID_SUFFIX_CHAR.
92392
92393 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92394
92395         * lib/xstrtol.c (strtoimax): New decl.
92396
92397 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92398
92399         * lib/xgetcwd.c: Don't include pathmax.h.
92400         Include stdlib.h and unistd.h if available.
92401         Include xalloc.h.
92402         (xmalloc, xstrdup, free): Remove decls.
92403         (xgetcwd): Don't assume sizes fit in unsigned.
92404         Check for overflow when computing sizes.
92405         Simplify reallocation code.
92406
92407 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92408
92409         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92410         a directory's st_size can have an arbitrary value, so the old
92411         usage could waste an arbitrary amount of memory.  All uses
92412         changed.
92413         * lib/savedir.h: Update prototype.
92414
92415 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92416
92417         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92418
92419         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92420         old strtoimax.c.
92421
92422         Also, make the following further changes to make this file's
92423         configuration more similar to that of strtol.c:
92424         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92425         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92426         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92427         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92428         changed to signed values.
92429
92430         And make the following changes as well:
92431         Fix copyright notice, as 1999 was missing.
92432         (verify): New macro.
92433         (strtoimax): Check sizes at compile-time, not run-time.
92434         Prefer strtol to strtoll if both work.
92435         (main): Remove; it was not that useful and was a pain to maintain.
92436
92437         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92438
92439 2001-08-31  Jim Meyering  <meyering@lucent.com>
92440
92441         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92442         Use an initial, malloc'd, buffer of length 128 rather than
92443         a statically allocated one of length 1024.
92444
92445 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92446
92447         Simplify code, partly by assuming autoconf 2.52 semantics.
92448
92449         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92450
92451         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92452         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92453         All uses removed.
92454         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92455         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92456         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92457         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92458         jm_AC_HEADER_INTTYPES_H.
92459         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92460
92461         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92462
92463         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92464         Quote first arg of AC_DEFUN.
92465         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92466         since they are needed to parse the include file even if we need
92467         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92468         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92469         but with opposite signedness.
92470
92471 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92472
92473         Merge 'exclude' changes from tar 1.13.22.
92474         This fixes one or two unlikely storage allocation overflow bugs,
92475         but doesn't change user-visible behavior otherwise.
92476
92477 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92478
92479         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92480         (jm_PREREQ_EXCLUDE): New macro.
92481
92482 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92483
92484         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92485         tm to be declared.
92486
92487 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92488
92489         * lib/hash.c: Remove '2001' from copyright notice.
92490
92491 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92492
92493         * lib/full-write.h: New file.
92494         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92495         * lib/full-write.c: Correct credits, as cccp.c no longer
92496         exists and anyway it was so heavily changed from the old cccp
92497         code as to be unrecognizable.  Include full-write.h.
92498         (full_write): Return size_t, with short writes meaning failure.
92499         All callers changed.  This fixes a bug with large buffers
92500         on 64-bit hosts.
92501         * lib/utime.c: Include full-write.h.
92502
92503 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92504
92505         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92506         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92507         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92508         Include if available.
92509         (<xalloc.h>): Include
92510         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92511         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92512         collide with FNM macros.
92513         (struct patopts): New struct.
92514         (struct exclude): Use it, as exclude patterns now come with options.
92515         (new_exclude): Support above changes.
92516         (new_exclude, add_exclude_file):
92517         Initial size must now be a power of two to simplify overflow checking.
92518         (free_exclude, fnmatch_no_wildcards): New function.
92519         (excluded_filename): No longer requires options arg, as the options
92520         are determined by add_exclude.  Now returns bool, not int.
92521         (excluded_filename, add_exclude):
92522         Add support for the fancy new exclusion options.
92523         (add_exclude, add_exclude_file): Now takes int options arg.
92524         Check for arithmetic overflow when computing sizes.
92525         (add_exclude_file): xrealloc might modify errno, so don't
92526         realloc until after errno might be used.
92527
92528         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92529         New macros.
92530         (free_exclude): New decl.
92531         (add_exclude, add_exclude_file): Now takes int options arg.
92532         (excluded_filename): No longer requires options arg, as the options
92533         are determined by add_exclude.  Now returns bool, not int.
92534
92535 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92536
92537         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92538
92539 2001-08-27  Jim Meyering  <meyering@lucent.com>
92540
92541         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92542
92543         * lib/version-etc.c (N_): Remove definition.
92544         Revert most of last change.
92545         Instead, simply don't mark the `Copyright...' string for translation.
92546         Based on advice from Paul Eggert.
92547
92548         * lib/strtoxmax.c: Tweak comment.
92549
92550 2001-08-26  Jim Meyering  <meyering@lucent.com>
92551
92552         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92553
92554         * m4/xstrtoimax.m4: New file.
92555         * m4/xstrtoumax.m4: Add comments explaining why we
92556         AC_REPLACE_FUNCS(strtol).
92557
92558 2001-08-26  Jim Meyering  <meyering@lucent.com>
92559
92560         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92561         of copyright with `%s' so translators don't get an untranslated
92562         message in 2002.
92563         (COPYRIGHT_YEAR): Define.
92564         (version_etc): Use fprintf rather than fputs.
92565         Suggestion from Ulrich Drepper.
92566
92567         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92568
92569         * lib/strtoll.c: New file, from GNU libc.
92570         * lib/xstrtoimax.c: New file.
92571
92572         * lib/xstrtol.h: Add xstrtoimax.
92573         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92574         * lib/strtoimax.c: New file.  Likewise, but first define
92575         STRTOUXMAX_SIGNED.
92576
92577         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92578         ...
92579         * lib/strtoxmax.c: ... then renamed to this.
92580
92581 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92582
92583         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92584         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92585         (jm_AC_TYPE_INTMAX_T): New macro.
92586         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92587
92588         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92589
92590         * m4/longlong.m4: Renamed from ulonglong.m4.
92591         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92592         * m4/uintmax_t.m4: Removed.
92593
92594 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92595
92596         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92597         Port to Solaris 8, where 'sed' requires a space after the 'r'
92598         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92599         Redirect output to $tmp just once.
92600
92601 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92602
92603         * lib/addext.c (<errno.h>): Include.
92604         (errno): Declare if not defined.
92605         (addext): Work correctly when pathconf returns -1 and leaves
92606         errno alone because there is no limit.  Also, work even if
92607         pathconf returns a value greater than SIZE_MAX.
92608
92609 2001-08-12  Jim Meyering  <meyering@lucent.com>
92610
92611         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92612         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92613         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92614         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92615         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92616         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92617         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92618         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92619         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92620         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92621         utime.m4, utimes.m4, xstrtoumax.m4:
92622         Quote the first argument in each use of AC_DEFUN.
92623
92624 2001-08-12  Jim Meyering  <meyering@lucent.com>
92625
92626         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92627         Simply `return getcwd (NULL, 0);'.
92628         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92629         Use 1300 as initial value for length, not PATH_MAX.
92630
92631         * lib/pathmax.h: Clean up cpp syntax.
92632
92633 2001-08-12  Jim Meyering  <meyering@lucent.com>
92634
92635         * lib/gettimeofday.c: New file.
92636         * lib/gtod.h: New file.
92637         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92638
92639 2001-08-05  Jim Meyering  <meyering@lucent.com>
92640
92641         * m4/jm-macros.m4: Require autoconf-2.52.
92642
92643 2001-08-04  Jim Meyering  <meyering@lucent.com>
92644
92645         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92646         stmt, to get in sync with glibc.
92647
92648 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92649
92650         The following changes are from gettext 0.10.39 as maintained by
92651         Bruno Haible.
92652
92653         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92654         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92655         with inverted sense.  All uses changed.
92656
92657         * lib/mbswidth.c: Don't include <limits.h>.
92658         Include <stdlib.h> and <string.h> unconditionally.
92659         (iswcntrl, mbsinit, ISCNTRL): New macros.
92660         (mbsnwidth): Use K&R style function declarations.
92661         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92662         can optimize it when MB_CUR_MAX == 1.
92663         The width of control characters is zero, not 1.
92664
92665 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92666
92667         The following changes are from gettext 0.10.39 as maintained by
92668         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92669
92670         * m4/codeset.m4: Upgrade to serial AM1.
92671         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92672         all uses changed.  Quote first arg of AC_DEFUN.
92673         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92674
92675         * m4/iconv.m4: Upgrade to serial AM2.
92676         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92677         Add --with-libconv-prefix.
92678         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92679         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92680         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92681         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92682         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92683
92684         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92685         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92686         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92687         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92688         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92689         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92690         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92691         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92692         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92693
92694         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92695         string.h any more.
92696
92697         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92698         not the default value.
92699
92700         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92701         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92702         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92703         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92704         Also check for iswcntrl, used for wcwidth fallback.
92705         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92706         to Autoconf 2.13.
92707
92708 2001-08-03  Jim Meyering  <meyering@lucent.com>
92709
92710         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92711         as it was in the original.  Reported by Paul Eggert.
92712
92713 2001-07-16  Jim Meyering  <meyering@lucent.com>
92714
92715         * m4/gettimeofday.m4: New file.
92716         Prompted by a report from Bernhard Baehr.
92717
92718 2001-07-15  Jim Meyering  <meyering@lucent.com>
92719
92720         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92721         stuff. Now it's in ../Makefile.cfg.
92722
92723 2001-07-15  Jim Meyering  <meyering@lucent.com>
92724
92725         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92726         (BUILT_SOURCES): Add unlocked-io.h.
92727         (io_functions): Define.
92728         (unlocked-io.h): New rule.
92729         (DISTCLEANFILES): Add unlocked-io.h.
92730         (all-local): Depend on unlocked-io.h, to ensure it is created.
92731
92732         * lib/unlocked-io.hin: New file
92733
92734         * lib/regex.c: Update from glibc.
92735
92736 2001-07-05  Jim Meyering  <meyering@lucent.com>
92737
92738         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92739         recommendation.
92740         (libfetish_a_SOURCES): Put all .h files here instead.
92741         Remove a thus-exposed (better checks in automake) duplicate and
92742         two unnecessary .h files.
92743
92744 2001-07-04  Jim Meyering  <meyering@lucent.com>
92745
92746         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92747         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92748         distcheck failure.
92749
92750 2001-07-02  Jim Meyering  <meyering@lucent.com>
92751
92752         The following changes were prompted by suggestions from Bruno Haible.
92753
92754         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92755         is now generated.
92756         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92757         definition of EXTRA_DIST.
92758         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92759         ensure that the generated file is created/updated whenever the list
92760         of $(unlocked_functions) is changed.
92761         (jm-glibc-io.m4): New rule.
92762         (unlocked-io.h): New rule -- currently unused.
92763
92764 2001-06-24  Jim Meyering  <meyering@lucent.com>
92765
92766         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92767         unmatched right bracket, rather than kludging it with an extra,
92768         falsely-matching quote in a comment.  Patch by Akim Demaille.
92769
92770 2001-06-11  Jim Meyering  <meyering@lucent.com>
92771
92772         * lib/regex.c: Update from GNU libc.
92773
92774 2001-05-27  Jim Meyering  <meyering@lucent.com>
92775
92776         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92777         Check for ut_type in struct utmp.
92778
92779 2001-05-27  Jim Meyering  <meyering@lucent.com>
92780
92781         * lib/readutmp.h (UT_TYPE): Define.
92782
92783 2001-05-24  Jim Meyering  <meyering@lucent.com>
92784
92785         * lib/argmatch.c: Include "quote.h".
92786         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92787         quote function.  Reported by Göran Uddeborg.
92788
92789 2001-05-22  Jim Meyering  <meyering@lucent.com>
92790
92791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92792         now that we use the package-supplied version unconditionally.
92793         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92794
92795 2001-05-21  Jim Meyering  <meyering@lucent.com>
92796
92797         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92798         shell syntax errors.
92799
92800 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92801
92802         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92803
92804 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92805
92806         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92807         Don't bother to check library strftime, since
92808         we'll be using our own my_strftime function anyway.
92809         Define my_strftime instead of strftime.
92810
92811 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92812
92813         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92814         which is not yet declared.
92815
92816 2001-05-15  Jim Meyering  <meyering@lucent.com>
92817
92818         * m4/regex.m4: Use proper quoting so brackets appear in the test
92819         program.
92820         Reported by, and with help from, Bruno Haible.
92821
92822 2001-05-13  Jim Meyering  <meyering@lucent.com>
92823
92824         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92825         undefined.
92826
92827 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92828
92829         dirname code cleanup.  base_name now behaves more compatibly
92830         with POSIX basename when given file names that have trailing
92831         slashes, and similarly for dir_name.  Add new primitives
92832         base_len and dir_len.  Put the directory-name-related decls
92833         into dirname.h.
92834
92835         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92836         * lib/backupfile.c (base_name): Likewise.
92837         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92838         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92839         * lib/makepath.c (strip_trailing_slashes): Likewise.
92840         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92841         ISSLASH): Likewise.
92842         * lib/rename.c (strip_trailing_slashes): Likewise.
92843         * lib/same.c (base_name): Likewise.
92844         * lib/stripslash.c (ISSLASH): Likewise.
92845
92846         * lib/addext.c: Include <dirname.h> after size_t is defined.
92847         * lib/backupfile.c: Likewise.
92848
92849         * lib/addext.c (addext): Use base_len to trim redundant
92850         trailing slashes instead of doing it ourselves.
92851         But do not trim the last slash if it is not redundant.
92852
92853         * lib/backupfile.c (find_backup_file_name,
92854         max_backup_version): Use base_len instead of rolling it ourselves.
92855         Handle the case of "" and (on DOS) "C:" correctly.
92856
92857         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92858         needed. Include <string.h>, <dirname.h>.
92859         (base_name): Allow file names ending in slashes, other than names
92860         that are all slashes.  In this case, return the basename followed
92861         by the slashes.  This is more general, and can be used in places
92862         where the original base_name purposely had an assertion failure.
92863         (base_len): New function.
92864
92865         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92866         Do not include <assert.h>; no longer needed.
92867         Include xalloc.h.
92868         (memrchr): Remove decl.
92869         (dir_name_r): Remove.
92870         (dir_len): Renamed from dirlen.  All callers changed.
92871         Rewrite in terms of base_name, for simplicity and consistency.
92872         (dir_name): Never return NULL.  All callers changed.
92873         Do not include <stdlib.h> in test program; no longer needed.
92874         return 0; is fine for test program.
92875
92876         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92877         New macros.
92878         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92879
92880         * lib/path-concat.c (path_concat): Use base_len to compute
92881         base length, not strlen; this means we cannot rely on memcpy
92882         to null-terminate.
92883
92884         * lib/same.c (STREQ): Remove.
92885         (same_name): Handle the case where the basename ends in trailing '/'.
92886
92887         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92888         a slash was stripped.  Do not strip the last slash after a
92889         file system prefix.
92890
92891 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92892
92893         * lib/Makefile.am (libfetish_a_SOURCES):
92894         Add strftime.c, since we now compile it on all hosts.
92895
92896         * lib/strftime.c (my_strftime):
92897         Define to nstrftime if emacs, but only if my_strftime is not defined.
92898         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92899         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92900         Add one more extra argument: a nanoseconds value.
92901         All uses changed.
92902         (ns): New macro.
92903         (my_strftime function): Add %N format.
92904         (emacs_strftimeu): Renamed from emacs_strftime,
92905         with extra ut argument.
92906
92907 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92908
92909         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92910
92911 2001-04-21  Jim Meyering  <meyering@lucent.com>
92912
92913         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92914         doesn't interfere.
92915
92916 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92917
92918         * m4/ftruncate.m4: Check for chsize.
92919         Link with ftruncate.o unconditionally if ftruncate is missing.
92920         This was required when cross-compiling to i586-mingw32msvc.
92921
92922 2001-04-08  Jim Meyering  <meyering@lucent.com>
92923
92924         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92925         recomputed; that's necessary when the offset spans a DST transition.
92926         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92927
92928 2001-04-02  Jim Meyering  <meyering@lucent.com>
92929
92930         * lib/regex.h, regex.c: Update from GNU libc.
92931
92932 2001-03-24  Jim Meyering  <meyering@lucent.com>
92933
92934         * m4/jm-macros.m4: Require autoconf-2.49d.
92935
92936 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92937
92938         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92939
92940 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92941
92942         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92943
92944 2001-03-17  Jim Meyering  <meyering@lucent.com>
92945
92946         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92947         now that the version in autoconf is equivalent.
92948         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92949
92950         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92951         Suggestion from Akim Demaille.
92952
92953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92954         (jm_PREREQ_TEMPNAME): New function.
92955
92956 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92957
92958         * lib/tempname.c (uint64_t): Define to uintmax_t if
92959         not defined, and if UINT64_MAX is not defined.
92960         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92961         Reported by John David Anglin.
92962
92963 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92964
92965         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92966         resolve alias if codeset is empty.
92967         * lib/config.charset (BeOS): Use wildcard syntax.
92968
92969 2001-03-13  Jim Meyering  <meyering@lucent.com>
92970
92971         * lib/path-concat.c (path_concat)
92972         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92973         concatenating e.g., `C:' and `foo'.
92974         From Bruno Haible.
92975
92976 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92977
92978         * lib/localcharset.c (locale_charset): Don't use
92979         setlocale(LC_CTYPE,NULL). Don't return NULL.
92980         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92981
92982 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92983
92984         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92985         support for DOS/DJGPP.
92986
92987 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92988
92989         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92990         lacks mkstemp.  Compile our own tempname.c if we compile our own
92991         mkstemp.c, as mkstemp relies on tempname.
92992
92993 2001-03-01  Jim Meyering  <meyering@lucent.com>
92994
92995         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92996         AH_VERBATIM really does output its argument verbatim.
92997
92998 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92999
93000         * lib/Makefile.am (libfetish_a_SOURCES):
93001         Add dup-safer.c, fopen-safer.c.
93002         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93003
93004         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93005         * lib/unistd-safer.h: New files.
93006
93007 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93008
93009         The mkstemp replacement is taken from glibc 2.2.2, with some
93010         portability fixes for use outside glibc, as follows:
93011
93012         * lib/tempname.c (struct_stat64): New macro.
93013         (direxists, __gen_tempname): Use it.
93014         This avoids a portability problem with Solaris 8.
93015
93016         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93017         (<stddef.h>, <stdint.h>, <string.h>):
93018         Include only if STDC_HEADERS || _LIBC.
93019         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93020         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93021         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93022         (__set_errno): Define this macro if <errno.h> doesn't.
93023         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93024         Define these macros if <stdio.h> doesn't.
93025         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93026         Define these macros if <sys/stat.h>
93027         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93028         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93029         __xstat64): Define if not _LIBC.
93030         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93031         (__gen_tempname): Invoke gettimeofday only if
93032         HAVE_GETTIMEOFDAY || _LIBC;
93033         otherwise, fall back on plain "time".
93034         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93035
93036         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93037
93038         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93039
93040 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93041
93042         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93043
93044 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93045
93046         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93047         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93048         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93049         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93050
93051 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93052
93053         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93054         Remove workaround macros for hosts that have mbrtowc but not
93055         mbstate_t, as we now insist on proper declarations for both
93056         before using mbrtowc.
93057
93058 2001-02-17  Jim Meyering  <meyering@lucent.com>
93059
93060         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93061         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93062         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93063         UnixWare 7.1.1.
93064
93065         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93066         rather than AC_CACHE_VAL.
93067
93068 2001-02-17  Jim Meyering  <meyering@lucent.com>
93069
93070         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93071         around included file name.
93072
93073         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93074
93075         * lib/strftime.c: Update from GNU libc (the only changes were to
93076         comments).
93077
93078 2001-02-17  Jim Meyering  <meyering@lucent.com>
93079
93080         * lib/regex.c: Update from libc.
93081
93082 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93083
93084         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93085         clash.
93086
93087 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93088
93089         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93090         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93091         Reported by Mark Hounschell via Paul Eggert.
93092
93093 2001-02-07  Jim Meyering  <meyering@lucent.com>
93094
93095         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93096
93097 2001-02-05  Jim Meyering  <meyering@lucent.com>
93098
93099         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93100         it includes the patch required for `large file' support with at least
93101         HP-UX's 10.20 /bin/cc.
93102
93103 2001-02-03  Jim Meyering  <meyering@lucent.com>
93104
93105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93106         AS_IF, now that it works once again (mysteriously).
93107         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93108
93109 2001-01-30  Jim Meyering  <meyering@lucent.com>
93110
93111         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93112         * m4/chown.m4: Rename conftestchown to conftest.chown.
93113         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93114         s/conftestdir2/conftest.d2/.
93115         * m4/utimes.m4: s/conftestdata/conftest.data/
93116         Inspired by Pavel Roskin's change in autoconf.
93117
93118 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93119
93120         * lib/config.charset: Update for FreeBSD 4.2.
93121
93122 2001-01-27  Jim Meyering  <meyering@lucent.com>
93123
93124         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93125         a use of AS_IF.
93126         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93127
93128 2001-01-26  Jim Meyering  <meyering@lucent.com>
93129
93130         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93131         quotearg.c includes it.
93132
93133 2001-01-26  Jim Meyering  <meyering@lucent.com>
93134
93135         * lib/quotearg.c: Include stddef.h.
93136         * lib/quote.c: Include stddef.h.
93137         Reported by Axel Kittenberger.
93138
93139         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93140         line in double quotes so that it evokes a better diagnostic.
93141         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93142         Reported by Axel Kittenberger.
93143
93144 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93145
93146         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93147         as if it was a `charset'.
93148
93149 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93150
93151         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93152         has const.
93153
93154 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93155
93156         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93157         to avoid a warning.  Add back 'const' to inptr.
93158
93159 2001-01-20  Jim Meyering  <meyering@lucent.com>
93160
93161         Be sure that headers are checked before used in code compiled
93162         for the type checks.
93163         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93164         In place of that, invoke jm_CHECK_ALL_TYPES.
93165         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93166         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93167         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93168         The check for ssize_t was mistakenly run before the test for unistd.h.
93169
93170         The configure-time check for stdbool.h was missing.
93171         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93172         (jm_PREREQ_HASH): New function.
93173
93174 2001-01-17  Jim Meyering  <meyering@lucent.com>
93175
93176         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93177         for autoconf-2.49c.
93178         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93179
93180 2001-01-16  Jim Meyering  <meyering@lucent.com>
93181
93182         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93183         From Bruno Haible.
93184
93185 2001-01-14  Jim Meyering  <meyering@lucent.com>
93186
93187         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93188         foo and bar.  Create conftestdir/ in the script, not in the C code.
93189         Remove directories in the script, not in the C code.
93190         Remove conftestdir{,2} before trying to create the directory.
93191         Make the entire configure script fail if the mkdir fails.
93192
93193 2001-01-14  Jim Meyering  <meyering@lucent.com>
93194
93195         * lib/rename.c: New file.  From Volker Borchert.
93196         Include stdlib.h, string.h or strings.h, and xalloc.h.
93197         Use strip_trailing_slashes rather than open-coding it.
93198
93199 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93200
93201         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93202
93203 2001-01-03  Jim Meyering  <meyering@lucent.com>
93204
93205         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93206         of local `inptr' to avoid warning with some system declarations of
93207         iconv.
93208
93209 2001-01-02  Volker Borchert  <bt@teknon.de>
93210
93211         * m4/rename.m4: New file.
93212         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93213
93214 2001-01-01  Jim Meyering  <meyering@lucent.com>
93215
93216         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93217         even on systems with utmpx.h.  It's necessary for the declaration of
93218         utmp's ut_user member.  Reported by Andreas Jaeger.
93219
93220         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93221         available. They are required for the declarations of getgrgid and
93222         getpwuid resp.
93223         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93224         Reported by Andreas Jaeger.
93225
93226 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93227
93228         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93229         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93230         so `make install' also works in VPATH builds.
93231
93232 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93233
93234         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93235         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93236         can be used in subdirectories.
93237
93238 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93239
93240         * lib/modechange.c: Do not assume that mode_t uses the
93241         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93242         the other-execute bit of FOO even if S_IXOTH != 1.
93243
93244         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93245         WOTH, XOTH, ALLM): New macros.
93246         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93247          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93248         Use them.
93249         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93250         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93251         (mode_compile):
93252         No need to use uintmax_t; unsigned long is long enough.
93253         Don't bother to get suffix since we don't use it.
93254
93255 2000-12-26  Jim Meyering  <meyering@lucent.com>
93256
93257         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93258         better with autoheader.
93259
93260 2000-12-24  Jim Meyering  <meyering@lucent.com>
93261
93262         * lib/hash.c (is_prime): Return explicit boolean values.
93263         (hash_get_first): Return NULL to appease Irix5.6's 89.
93264         Reported by Nelson Beebe.
93265
93266 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93267
93268         * lib/localcharset.c (locale_charset): Add support for Win32.
93269
93270 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93271
93272         * lib/physmem.h, lib/physmem.c: New files.
93273
93274         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93275         (noinst_HEADERS): Add physmem.h.
93276
93277         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93278         't' for compatibility with Solaris 8 sort.
93279
93280 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93281
93282         * lib/config.charset: Add support for BeOS.
93283
93284 2000-12-17  Jim Meyering  <meyering@lucent.com>
93285
93286         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93287         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93288
93289 2000-12-16  Jim Meyering  <meyering@lucent.com>
93290
93291         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93292         N and M) would have treated it like `chown N:N FILE'.
93293
93294         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93295
93296 2000-12-16  Jim Meyering  <meyering@lucent.com>
93297
93298         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93299         SHELLS_FILE to a file name that's useful on djgpp systems.
93300         Include stdlib.h.
93301         (ADDITIONAL_DEFAULT_SHELLS): Define.
93302         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93303         Based mostly on a patch from Prashant TR.
93304
93305 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93306
93307         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93308         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93309         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93310
93311 2000-12-08  Andreas Schwab  <schwab@suse.de>
93312
93313         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93314         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93315
93316 2000-12-07  Jim Meyering  <meyering@lucent.com>
93317
93318         * lib/stripslash.c (ISSLASH): Define.
93319         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93320         `/'.
93321         From Prashant TR.
93322
93323         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93324         (dir_name_r): Declare this function as static.
93325         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93326         manifest itself on a name containing a mix of slashes and
93327         backslashes.
93328         Make this function work with names starting with a DOS-style
93329         drive letter and colon prefix.
93330         (dir_name): Append `.' if necessary.
93331         Based mostly on patches from Prashant TR and Eli Zaretskii.
93332
93333         * lib/dirname.h (dir_name_r): Remove prototype.
93334
93335 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93336
93337         * m4/off_t-format.m4: Remove this file.
93338         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93339
93340 2000-12-06  Jim Meyering  <meyering@lucent.com>
93341
93342         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93343         replacement strtoull, we may well need the replacement strtoul, too.
93344         Check for declarations of strtoul and strtoull.
93345         Check for strtol.  Mainly as a cue to cause automake to include
93346         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93347         Check for limits.h -- strtol.c needs it.
93348
93349 2000-12-05  Jim Meyering  <meyering@lucent.com>
93350
93351         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93352
93353 2000-12-04  Jim Meyering  <meyering@lucent.com>
93354
93355         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93356         Also include memory.h, stdlib.h, unistd.h if appropriate.
93357         Reported by Andreas Jaeger (conflicting declaration of malloc).
93358
93359 2000-12-02  Jim Meyering  <meyering@lucent.com>
93360
93361         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93362         * m4/jm-macros.m4 (jm_MACROS): require it.
93363
93364 2000-12-02  Jim Meyering  <meyering@lucent.com>
93365
93366         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93367
93368 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93369
93370         * lib/memrchr.c: Include <config.h> before any system include file.
93371
93372 2000-11-30  Jim Meyering  <meyering@lucent.com>
93373
93374         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93375
93376 2000-11-30  Jim Meyering  <meyering@lucent.com>
93377
93378         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93379
93380 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93381
93382         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93383
93384 2000-11-26  Jim Meyering  <meyering@lucent.com>
93385
93386         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93387
93388 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93389
93390         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93391         size of (size_t) -1; it's not portable.
93392
93393 2000-11-17  Jim Meyering  <meyering@lucent.com>
93394
93395         * lib/strstr.c: Update from GNU libc.
93396
93397 2000-11-17  Akim Demaille  <akim@epita.fr>
93398
93399         * lib/obstack.h: Formatting changes.
93400         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93401         prevent type checking.
93402         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93403         cast the value to (void *): assigning a `foo *' to a `void *'
93404         variable is valid.
93405         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93406
93407 2000-11-16  Jim Meyering  <meyering@lucent.com>
93408
93409         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93410
93411 2000-11-11  Jim Meyering  <meyering@lucent.com>
93412
93413         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93414
93415 2000-11-10  Jim Meyering  <meyering@lucent.com>
93416
93417         * lib/obstack.h: Update from GNU libc.
93418         * lib/obstack.c: Likewise.
93419
93420 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93421
93422         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93423
93424 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93425
93426         * lib/getusershell.c (setusershell): Use rewind rather than
93427         fseek/fseeko, to avoid configuration hassles with fseeko.
93428         Don't bother opening SHELLS_FILE if shellstream is NULL;
93429         it's not necessary.
93430
93431 2000-11-05  Jim Meyering  <meyering@lucent.com>
93432
93433         * lib/makepath.h (make_dir): Declare.
93434         * lib/makepath.c (make_dir): Remove `static' attribute.
93435         Tweak a comment.
93436
93437 2000-11-04  Jim Meyering  <meyering@lucent.com>
93438
93439         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93440
93441 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93442
93443         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93444         last one in a bucket, advance to the next bucket.
93445
93446 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93447
93448         * lib/fnmatch.c: Do not comment out all the code if we are using
93449         the GNU C library, because in some cases we are replacing buggy
93450         code in the GNU C library itself.
93451
93452 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93453
93454         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93455         (regex_compile): Catch bogus \(\1\).
93456
93457 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93458
93459         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93460         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93461         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93462
93463 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93464
93465         * lib/error.h, getline.h, modechange.h:
93466         Remove "2000" from Copyright line, as the file hasn't been
93467         changed this year other than in the copyright notice.
93468
93469         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93470         was changed this year.
93471
93472 2000-10-29  Jim Meyering  <meyering@lucent.com>
93473
93474         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93475         renaming.
93476         * m4/ls-mntd-fs.m4: Likewise
93477
93478 2000-10-29  Jim Meyering  <meyering@lucent.com>
93479
93480         * lib/xstat.in: Fix grammar in comment.
93481
93482 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93483
93484         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93485         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93486         doesn't define __restrict_arr.
93487
93488 2000-10-28  Jim Meyering  <meyering@lucent.com>
93489
93490         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93491         (jm_PREREQ_MEMCHR): New function.
93492
93493 2000-10-28  Jim Meyering  <meyering@lucent.com>
93494
93495         * lib/memchr.c: Update from libc.
93496         Adjust for portability:
93497         [HAVE_STDLIB_H]: Include stdlib.h.
93498         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93499         Undef __memchr, too.
93500         [!weak_alias]: Define __memchr to memchr.
93501
93502         * lib/regex.c: Update from libc.
93503         * lib/regex.h: Likewise.
93504         * lib/getopt1.c: Likewise.
93505         * lib/memcmp.c: Likewise.
93506
93507         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93508         Avoid using fseek, when possible -- it's broken by design.
93509         Patch by Ulrich Drepper.
93510
93511 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93512
93513         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93514         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93515         Giving in to popular pressure to shut up the compiler with casts.
93516
93517 2000-10-26  Jim Meyering  <meyering@lucent.com>
93518
93519         * lib/strftime.c: Update from libc.
93520
93521 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93522
93523         * regex.c: More `unsigned char' -> `re_char' changes.
93524         Also change several `int' into `re_wchar_t'.
93525         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93526         (PUSH_FAILURE_POINTER): Don't cast any more.
93527         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93528         We want GCC to complain, since this piece of code makes
93529         re_match non-reentrant, which *should* be fixed.
93530         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93531         (EXTEND_BUFFER): Use RETALLOC.
93532         (SET_LIST_BIT): Don't cast.
93533         (re_wchar_t): New type.
93534         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93535         that those two functions will always properly return.
93536         (IMMEDIATE_QUIT_CHECK): Cast to void.
93537         (analyse_first): Use recursion rather than an explicit stack.
93538         (re_compile_fastmap): Can't fail anymore.
93539         (re_search_2): Don't check re_compile_fastmap for failure.
93540         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93541         Now also sets the new value (passed in a new argument).
93542         (re_match_2_internal): Use it.
93543         Also, use a new var `reg' of type size_t when looping through regs
93544         rather than reuse the inappropriate `mcnt'.
93545
93546 2000-10-25  Jim Meyering  <meyering@lucent.com>
93547
93548         * lib/obstack.c: Update from libc.
93549
93550 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93551
93552         * regex.c (regex_compile): Change the way of handling a range from
93553         a char less than 256 to a char not less than 256.
93554
93555 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93556
93557         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93558         NT-Emacs only.
93559         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93560         so that re_search functions only quit when callers expect them to.
93561
93562 2000-10-23  Jim Meyering  <meyering@lucent.com>
93563
93564         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93565         wrong.  That set_locale call must not have any side effects.
93566         From Paul Eggert.
93567
93568 2000-10-22  Jim Meyering  <meyering@lucent.com>
93569
93570         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93571         [CYCLIC]: Remove now-unused definition.
93572
93573         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93574         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93575         Suggestion from Ulrich Drepper.
93576
93577 2000-10-21  Jim Meyering  <meyering@lucent.com>
93578
93579         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93580         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93581         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93582
93583 2000-10-21  Jim Meyering  <meyering@lucent.com>
93584
93585         * lib/dirname.c (memrchr): Declare if necessary.
93586         (dir_name): Remove the restriction that there be no
93587         trailing slashes.  Now, this code skips past them, effectively
93588         ignoring them.
93589         [TEST_DIRNAME] (main): New unit tests.
93590
93591         * lib/memrchr.c: New file from GNU libc.
93592         Undef __memrchr, too.
93593         [!weak_alias]: Define __memrchr to memrchr.
93594         Guard weak_alias use with `#ifdef weak_alias'.
93595
93596 2000-10-21  Jim Meyering  <meyering@lucent.com>
93597
93598         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93599         (dir_name): Use dir_name_r.
93600         * lib/dirname.h (dir_name_r): Declare it.
93601
93602 2000-10-17  Jim Meyering  <meyering@lucent.com>
93603
93604         * lib/quote.h (PARAMS): Define and use.
93605         Reported by Akim Demaille.
93606
93607         * lib/getopt.c: Update from libc.
93608
93609 2000-10-16  Jim Meyering  <meyering@lucent.com>
93610
93611         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93612         setlocale.
93613         From Jan Fedak.
93614
93615 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93616
93617         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93618
93619 2000-09-25  Jim Meyering  <meyering@lucent.com>
93620
93621         * lib/md5.h (rol): Define (from GnuPG).
93622
93623         * lib/sha.c: Give credit (GnuPG) where due.
93624         (M): Use rol rather than open-coding it.
93625         Add a FIXME comment.
93626
93627 2000-09-21  Jim Meyering  <meyering@lucent.com>
93628
93629         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93630         Reported by Michael Stone.
93631
93632 2000-09-20  Jim Meyering  <meyering@lucent.com>
93633
93634         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93635         (noinst_HEADERS): Add sha.h.
93636         Based on code from Scott G. Miller and from GnuPG.
93637
93638 2000-09-18  Jim Meyering  <meyering@lucent.com>
93639
93640         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93641         LIBS. Otherwise, everyone ends up linking with -lelf for some
93642         configurations.
93643         Reported by Mike Stone.
93644
93645 2000-09-15  Jim Meyering  <meyering@lucent.com>
93646
93647         * lib/regex.c: Update from libc.
93648
93649 2000-09-10  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/getopt.c (_getopt_internal): Update from glibc.
93652
93653 2000-09-09  Jim Meyering  <meyering@lucent.com>
93654
93655         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93656         think it should be used as a general replacement for isascii.
93657         * lib/fnmatch.c: Likewise.
93658         * lib/mbswidth.c: Likewise
93659         * lib/regex.c: Likewise.
93660
93661         Don't use atoi.
93662         * lib/userspec.c: Include sys/param.h and limits.h.
93663         Include xstrtol.h.
93664         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93665         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93666         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93667         UID, GID.  Check range.
93668
93669 2000-09-06  Jim Meyering  <meyering@lucent.com>
93670
93671         * lib/getopt.c (_getopt_internal): Update from glibc.
93672
93673 2000-08-30  Jim Meyering  <meyering@lucent.com>
93674
93675         * lib/strftime.c: Merge in changes from GNU libc.
93676
93677 2000-08-26  Jim Meyering  <meyering@lucent.com>
93678
93679         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93680         * m4/fpending.m4: New file.
93681
93682 2000-08-26  Jim Meyering  <meyering@lucent.com>
93683
93684         * lib/closeout.c: Include "__fpending.h".
93685         (close_stdout_status): Return right away if there's nothing to flush.
93686
93687         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93688         * lib/__fpending.c: New file.
93689         * lib/__fpending.h: New file.
93690
93691 2000-08-20  Jim Meyering  <meyering@lucent.com>
93692
93693         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93694         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93695         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93696
93697 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93698
93699         Improve fileutils installation on systems where running
93700         programs (like install) can't be unlinked.
93701         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93702         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93703
93704 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93705
93706         Standardize on "memory exhausted" instead of "Memory exhausted"
93707         or "virtual memory exhausted".
93708         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93709         "virtual memory exhausted".
93710         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93711         our own message.
93712         * lib/userspec.c (parse_user_spec): Likewise.
93713         * lib/bumpalloc.h: comment fix
93714         * lib/same.c, userspec.c: Include xalloc.h.
93715
93716         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93717         not char *const and pointing to a constant array.
93718         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93719         (xrealloc): Comment fix.
93720
93721         * lib/userspec.c (parse_user_spec):
93722         Don't translate a message until just before returning,
93723         to avoid unnecessary translation.
93724
93725 2000-08-07  Jim Meyering  <meyering@lucent.com>
93726
93727         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93728         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93729         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93730         getgroups.c, gethostname.c, getopt.h, group-member.c,
93731         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93732         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93733         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93734         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93735         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93736         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93737         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93738         yesno.c: Back out Copyright date changes for each file with no change
93739         this year.  This eases coordination with other programs using the same
93740         source code modules.  From Paul Eggert.
93741
93742 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93743
93744         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93745         not char, for compatibility with glibc 2.1.3 strftime.c.
93746
93747 2000-08-03  Greg McGary  <greg@mcgary.org>
93748
93749         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93750         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93751         (EXTEND_BUFFER): Use them.
93752
93753 2000-08-01  Jim Meyering  <meyering@lucent.com>
93754
93755         * lib/dirname.c (ISSLASH): Define.
93756         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93757         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93758         both `\' and `/' may be use as path separators.
93759         Based on a patch from Prashant TR.
93760
93761 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93762
93763         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93764         slot vector a constant, since it might get modified.
93765
93766 2000-07-31  Jim Meyering  <meyering@lucent.com>
93767
93768         * lib/xmalloc.c: Use `virtual memory exhausted', not
93769         `Memory exhausted'.
93770         * lib/obstack.c (print_and_abort): Likewise.
93771
93772 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93773
93774         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93775         buffer, so that the caller can always quote one small
93776         component of a "memory exhausted" message in slot 0.
93777         From a suggestion by Jim Meyering.
93778
93779 2000-07-30  Jim Meyering  <meyering@lucent.com>
93780
93781         * lib/makepath.c (make_path): Quote the other instance, too.
93782
93783         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93784         (STATIC_BUF_SIZE): Define.
93785         (quotearg_n_options): Use only statically allocated storage when
93786         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93787         than STATIC_BUF_SIZE.
93788
93789 2000-07-29  Jim Meyering  <meyering@lucent.com>
93790
93791         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93792         * lib/dirname.c (dir_name): Likewise.
93793
93794         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93795         `/'.
93796
93797         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93798         (dir_name): Assert that there are no trailing slashes.
93799
93800 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93801
93802         * lib/mbswidth.h (mbswidth): Add a flags argument.
93803         (mbswidth): New declaration.
93804         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93805         * lib/mbswidth.c (mbswidth): Add a flags argument.
93806         (mbsnwidth): New function.
93807
93808 2000-07-24  Jim Meyering  <meyering@lucent.com>
93809
93810         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93811
93812 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93813
93814         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93815
93816 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93817
93818         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93819         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93820         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93821         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93822         invoke multibyte primitives.
93823
93824 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93825
93826         * lib/quotearg.c:
93827         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93828         so that mbstate_t is always defined.
93829
93830         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93831         be 1 in at least one GCC installation, and this configuration
93832         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93833         performance on hosts that have mbrtowc but have only unibyte
93834         locales, but I assume these hosts are rare.
93835
93836 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93837
93838         * lib/mbswidth.c (_XOPEN_SOURCE):
93839         Don't define; this causes problems on Solaris 7.
93840         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93841
93842 2000-07-23  Jim Meyering  <meyering@lucent.com>
93843
93844         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93845         too: getgrgid, getpwuid, getuid.
93846
93847 2000-07-23  Jim Meyering  <meyering@lucent.com>
93848
93849         * lib/basename.c (base_name): Add an assertion.
93850
93851 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93852
93853         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93854         shadow its mbsinit function.
93855
93856 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93857
93858         * lib/mbswidth.h: New file.
93859         * lib/mbswidth.c: New file.
93860         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93861         (noinst_HEADERS): Add mbswidth.h.
93862
93863 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93864
93865         * lib/config.charset: Add support for FreeBSD. Improve support for
93866         HP-UX and IRIX 6.
93867
93868 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93869
93870         * m4/mbswidth.m4: New file.
93871         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93872
93873 2000-07-15  Jim Meyering  <meyering@lucent.com>
93874
93875         * lib/makepath.c: Include quote.h.
93876         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93877         corresponding argument in a `quote (...)' call.
93878         Give better diagnostics.
93879
93880         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93881         (noinst_HEADERS): Add quote.h.
93882
93883         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93884         from tar's src/misc.c.
93885         * lib/quote.h: New file.  Prototypes for same.
93886
93887 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93888
93889         From a suggestion by Bruno Haible.
93890         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93891         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93892         to decide whether to define the BeOS workaround macro;
93893         this adjusts to the change to AC_MBSTATE_T.
93894
93895 2000-07-14  Jim Meyering  <meyering@lucent.com>
93896
93897         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93898         jm_AC_TYPE_UINTMAX_T.
93899
93900 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93901
93902         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93903
93904         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93905         quotearg_buffer_restyled): Add support for
93906         clocale_quoting_style.  Undo previous change to
93907         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93908         and "{RIGHT QUOTATION MARK}" msgids.
93909
93910 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93911
93912         From a suggestion by Bruno Haible.
93913         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93914         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93915         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93916         and mbstate_t, to a single-part test that simply defines mbstate_t.
93917         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93918         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93919
93920 2000-07-10  Jim Meyering  <meyering@lucent.com>
93921
93922         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93923
93924         * m4/gnu-source.m4: Output to confdefs.h directly.
93925         Suggestion from Akim Demaille.
93926
93927 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93928
93929         The old behavior of quoting `like this' doesn't look good with
93930         newer, ISO-style fonts.  See:
93931         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93932
93933         Instead, quote "like this" by default.  Let the translator
93934         tailor the locale-specific quoting behavior by providing
93935         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93936
93937         * lib/quotearg.c (N_): New macro.
93938         (gettext_default): New function.
93939         (quotearg_buffer_restyled): Use
93940         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93941         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93942
93943 2000-07-09  Jim Meyering  <meyering@lucent.com>
93944
93945         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93946         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93947
93948         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93949         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93950
93951 2000-07-09  Jim Meyering  <meyering@lucent.com>
93952
93953         * lib/Most files: Update copyright dates to include 2000.
93954
93955 2000-07-08  Jim Meyering  <meyering@lucent.com>
93956
93957         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93958         if not defined.
93959         (xgethostname): Remove now-unnecessary #ifdef.
93960         Move declaration of `err' into loop where it's used.
93961
93962 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93963         and Bruno Haible  <haible@clisp.cons.org>
93964
93965         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93966         only if the test for an object-type mbstate_t fails.  This
93967         prevents us from mistakenly reporting that mbstate_t is a
93968         system object type after we "#define mbstate_t int" to work
93969         around its lack.
93970
93971 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93972         and Bruno Haible  <haible@clisp.cons.org>
93973
93974         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93975
93976 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93977
93978         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93979         to strerror_r.
93980         Include <ctype.h> for use of isalpha.
93981
93982 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93983
93984         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93985         by allocating a larger buffer. Test the gethostname return value for
93986         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93987         returns an error and ENAMETOOLONG isn't defined.
93988
93989 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93990
93991         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93992         dimension.
93993
93994 2000-07-04  Jim Meyering  <meyering@lucent.com>
93995
93996         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93997         of the deprecated AC_CHECKING.
93998
93999 2000-07-04  Jim Meyering  <meyering@lucent.com>
94000
94001         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94002         Reported by Bruno Haible.
94003
94004 2000-07-04  Jim Meyering  <meyering@lucent.com>
94005
94006         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94007         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94008         lacks mbrtowc.
94009
94010 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94011
94012         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94013         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94014
94015 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94016         and Bruno Haible  <haible@clisp.cons.org>
94017
94018         * lib/quotearg.c (mbrtowc):
94019         Assign to *pwc, and return 1 only if result is nonzero.
94020         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94021
94022 2000-07-03  Jim Meyering  <meyering@lucent.com>
94023
94024         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94025
94026 2000-07-03  Jim Meyering  <meyering@lucent.com>
94027
94028         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94029         This is necessary to get a definition of e.g., UTMP_FILE on
94030         HP-UX 10.20.
94031         From Bob Proulx.
94032
94033 2000-07-02  Jim Meyering  <meyering@lucent.com>
94034
94035         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94036
94037         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94038         AC_LIBOBJ(function_name).
94039         * m4/chown.m4: Likewise.
94040         * m4/fnmatch.m4: Likewise.
94041         * m4/ftruncate.m4: Likewise.
94042         * m4/getgroups.m4: Likewise.
94043         * m4/getline.m4: Likewise.
94044         * m4/group-member.m4: Likewise.
94045         * m4/jm-macros.m4: Likewise.
94046         * m4/lstat.m4: Likewise.
94047         * m4/malloc.m4: Likewise.
94048         * m4/memcmp.m4: Likewise.
94049         * m4/nanosleep.m4: Likewise.
94050         * m4/putenv.m4: Likewise.
94051         * m4/realloc.m4: Likewise.
94052         * m4/regex.m4: Likewise.
94053         * m4/stat.m4: Likewise.
94054         * m4/strftime.m4: Likewise.
94055
94056 2000-07-02  Jim Meyering  <meyering@lucent.com>
94057
94058         * lib/quotearg.c (mbstate_t): Don't define here.
94059
94060 2000-07-02  Jim Meyering  <meyering@lucent.com>
94061
94062         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94063
94064 2000-07-01  Jim Meyering  <meyering@lucent.com>
94065
94066         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94067
94068 2000-07-01  Jim Meyering  <meyering@lucent.com>
94069
94070         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94071         problem.
94072
94073 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94074
94075         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94076         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94077
94078 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94079
94080         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94081         per change in ../m4/ls-mntd-fs.m4.
94082         (read_filesystem_list): Ignore symbolic links.
94083
94084 2000-06-29  Jim Meyering  <meyering@lucent.com>
94085
94086         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94087         for declaration of strcmp.
94088
94089         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94090
94091         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94092         Avoid warning by casting result to `char *' to remove `const'.
94093
94094 2000-06-28  Jim Meyering  <meyering@lucent.com>
94095
94096         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94097         included by quotearg.c, for which we perform this test.  From
94098         Bruno Haible.
94099
94100 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94101
94102         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94103         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94104         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94105
94106 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94107
94108         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94109
94110 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94111
94112         savedir now sets errno on failure and invokes xmalloc to get memory.
94113         Fix a couple of other minor bugs while we're at it.
94114
94115         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94116         (NAMLEN): Remove macro.
94117         (malloc, realloc): Remove decls.
94118         (stpcpy): Likewise.
94119         ("xalloc.h"): Include.
94120         (NAME_SIZE_DEFAULT): New macro.
94121         (savedir): Use xmalloc / xrealloc to allocate memory.
94122         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94123         Skip "" directory entries.
94124         Use strlen to calculate directory entry length, since the old method
94125         is rarely used these days and isn't worth supporting.
94126         Don't use a pointer after freeing it.
94127         Check for integer overflow when calculating allocation size.
94128         Use memcpy to copy entries, instead of stpcpy.
94129         Set errno properly when returning NULL.
94130         Check for readdir error.
94131
94132 2000-06-26  Jim Meyering  <meyering@lucent.com>
94133
94134         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94135
94136 2000-06-25  Jim Meyering  <meyering@lucent.com>
94137
94138         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94139         Linux header bug when _XOPEN_SOURCE is defined to 500.
94140
94141 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94142
94143         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94144         deficiency.
94145
94146 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94147
94148         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94149         Include xalloc.h.
94150         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94151
94152 2000-06-24  Jim Meyering  <meyering@lucent.com>
94153
94154         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94155         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94156         for which strerror does return char*, but which lacks a conveniently
94157         accessible declaration of the function.  If the compile-test says
94158         strerror_r doesn't work, then resort to a `run'-test that works on
94159         BeOS and segfaults on DEC Unix.
94160
94161 2000-06-24  Jim Meyering  <meyering@lucent.com>
94162
94163         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94164
94165 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94166
94167         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94168         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94169
94170 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94171
94172         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94173         (mbrtowc, mbstate_t): Define substitutes if
94174         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94175         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94176         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94177
94178 2000-06-23  Jim Meyering  <meyering@lucent.com>
94179
94180         * m4/afs.m4: Add missing AC_MSG_RESULT.
94181         Reported by Bruno Haible.
94182
94183         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94184         Suggestion from Bruno Haible.
94185
94186 2000-06-23  Jim Meyering  <meyering@lucent.com>
94187
94188         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94189
94190 2000-06-21  Jim Meyering  <meyering@lucent.com>
94191
94192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94193
94194 2000-06-21  Jim Meyering  <meyering@lucent.com>
94195
94196         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94197         (noinst_HEADERS): Add getstr.h.
94198
94199         * lib/getline.c (getstr): Move into a separate file.
94200         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94201         the following changes: new parameter, delim2; both delim[12]
94202         parameters have type `int', not `char'.  The latter would lose
94203         with 8-bit delimiters.
94204         * lib/getstr.h: New file.
94205
94206 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94207
94208         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94209         than 1024, return a memory chunk of least possible size, instead
94210         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94211         Use free/xmalloc instead of xrealloc to avoid copying for very long
94212         paths.
94213
94214 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94215
94216         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94217         the empty string.
94218
94219 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94220
94221         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94222         address, not strdup.  Include <stdlib.h> and don't declare free().
94223
94224 2000-06-19  Jim Meyering  <meyering@lucent.com>
94225
94226         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94227
94228 2000-06-18  Jim Meyering  <meyering@lucent.com>
94229
94230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94231
94232         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94233         `checking whether...' message to be consistent with that of the
94234         lstat test.
94235
94236 2000-06-18  Jim Meyering  <meyering@lucent.com>
94237
94238         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94239         Besides, these days every porting target provides a mkdir function.
94240
94241         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94242         needed. (this snippet comes from src/system.h).
94243
94244 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94245
94246         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94247
94248 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94249
94250         * lib/human.c (adjust_value): New function.
94251         (human_readable_inexact): Apply rounding style even when
94252         printing approximate values.
94253
94254 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94255
94256         * lib/human.c (human_readable_inexact): Allow an input block
94257         size that is not a multiple of the output block size, and vice versa.
94258         Reported by Piergiorgio Sartor.
94259
94260 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94261
94262         * lib/getdate.y (get_date): Apply relative times after time
94263         zone indicator, not before.  Reported by Todd A. Jacobs.
94264
94265 2000-06-13  Jim Meyering  <meyering@lucent.com>
94266
94267         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94268
94269         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94270
94271 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94272
94273         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94274
94275 2000-06-12  Jim Meyering  <meyering@lucent.com>
94276
94277         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94278         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94279         optional argument.
94280         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94281         the optional argument, `lib'.
94282
94283 2000-06-08  Jim Meyering  <meyering@lucent.com>
94284
94285         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94286
94287 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94288
94289         Rewrite largefile configuration so that we don't need to run
94290         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94291         AC_CANONICAL_HOST in configure.in -- jmm]
94292
94293         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94294         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94295         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94296         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94297         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94298         All uses changed.
94299         Instead of inspecting the output of getconf, try to compile the
94300         test program without and with the macro definition.
94301         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94302         for getconf.  Instead, check for the needed flags by compiling
94303         test programs.
94304
94305 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94306
94307         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94308
94309 2000-06-04  Jim Meyering  <meyering@lucent.com>
94310
94311         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94312         SunOS 4.1.4 for which gid_t is an unsigned type.
94313
94314 2000-06-03  Jim Meyering  <meyering@lucent.com>
94315
94316         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94317         now that autoconf requires that.
94318
94319         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94320         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94321         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94322
94323 2000-06-03  Jim Meyering  <meyering@lucent.com>
94324
94325         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94326
94327 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94328
94329         * m4/glibc21.m4: New file.
94330         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94331
94332 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94333
94334         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94335         newer, don't install charset.alias.
94336         * lib/config.charset: Change the Linux/glibc rules so they become empty
94337         on glibc-2.1 or newer.
94338
94339 2000-06-02  Jim Meyering  <meyering@lucent.com>
94340
94341         * lib/mountlist.c: Back out last change.  Instead, do this...
94342         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94343         me_dummy member using the same `ignore'-testing code.
94344         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94345         fs_type strings.
94346         From Mark D. Roth.
94347
94348 2000-05-29  Jim Meyering  <meyering@lucent.com>
94349
94350         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94351         mounts with the `ignore' attribute.  Based on a patch from
94352         Mark D. Roth.
94353
94354 2000-05-28  Jim Meyering  <meyering@lucent.com>
94355
94356         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94357         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94358         * m4/stat.m4: Likewise.
94359         * m4/lstat.m4: Likewise.
94360         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94361
94362         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94363         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94364
94365 2000-05-26  Jim Meyering  <meyering@lucent.com>
94366
94367         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94368
94369 2000-05-24  Jim Meyering  <meyering@lucent.com>
94370
94371         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94372         autoconf requires that.
94373         * m4/lib-check.m4: Likewise.
94374         * m4/jm-macros.m4: Likewise.
94375         * m4/strftime.m4: Likewise.
94376
94377         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94378         AC_CHECK_DECLS, now that autoconf requires that.
94379
94380 2000-05-22  Jim Meyering  <meyering@lucent.com>
94381
94382         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94383         * m4/lstat.m4: Likewise.
94384
94385 2000-05-22  Jim Meyering  <meyering@lucent.com>
94386
94387         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94388
94389 2000-05-20  Jim Meyering  <meyering@lucent.com>
94390
94391         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94392         (jm_PREREQ): Use it.
94393
94394 2000-05-18  Jim Meyering  <meyering@lucent.com>
94395
94396         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94397         back, too, since it may have been modified by allocate_entry.
94398         (hash_delete): Rewrite to use neither the assignment operator
94399         nor the comma operator in an if-expression.
94400
94401 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94402
94403         * lib/closeout.c:
94404         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94405         Remove; no longer needed.
94406         "quotearg.h": Add include.
94407         (file_name): Do not bother to explicitly initialize to NULL; it's less
94408         efficient on some hosts.
94409         (close_stdout_status): Remove test as to whether stdout was already
94410         closed; it breaks for the case "echo x | sort >&-".
94411         Quote file name colons.
94412         Do not assume that _("write error") lacks format strings.
94413
94414 2000-05-15  Jim Meyering  <meyering@lucent.com>
94415
94416         * lib/version-etc.c (version_etc_copyright): Update the copyright
94417         string used in all --version output.
94418
94419 2000-05-14  Jim Meyering  <meyering@lucent.com>
94420
94421         * lib/closeout.c (close_stdout_set_file_name): New function.
94422         (close_stdout_status): Use new file-scoped global.
94423         Return right away if fstat says the stdout file descriptor is invalid.
94424         * lib/closeout.h (close_stdout_set_file_name): Declare.
94425
94426 2000-05-10  Jim Meyering  <meyering@lucent.com>
94427
94428         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94429         (close_stdout_set_status): New function.
94430         * lib/closeout.h (close_stdout_set_status): Declare.
94431
94432 2000-05-09  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/gettext.m4: Rename this...
94435         * m4/libintl.m4: ...to this.
94436
94437 2000-05-08  Jim Meyering  <meyering@lucent.com>
94438
94439         * lib/long-options.c: Don't include closeout.h.
94440         (parse_long_options): Don't call close_stdout for --version.
94441
94442 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94443
94444         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94445         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94446         2.1.3 bug.  This avoids a clash when files like regex.c define
94447         _GNU_SOURCE.
94448
94449 2000-05-06  Jim Meyering  <meyering@lucent.com>
94450
94451         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94452         (AC_REPLACE_FUNCS): Add strnlen.
94453
94454         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94455         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94456
94457         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94458         AC_SEARCH_LIBS call for nanosleep.
94459         (LIB_NANOSLEEP): Set and AC_SUBST.
94460
94461 2000-05-06  Jim Meyering  <meyering@lucent.com>
94462
94463         * lib/strnlen.c: Undefine __strnlen and strnlen.
94464         [!weak_alias]: Define __strnlen to strnlen.
94465
94466         * lib/atexit.c: New file, from libiberty.
94467
94468 2000-05-06  Jim Meyering  <meyering@lucent.com>
94469
94470         * lib/closeout.c (close_stdout_status): Also check for errors on the
94471         stderr stream.
94472
94473 2000-05-05  Jim Meyering  <meyering@lucent.com>
94474
94475         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94476         AC_SEARCH_LIBS call for clock_gettime.
94477         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94478
94479         * m4/search-libs.m4: Update from autoconf.
94480
94481         su doesn't work on Solaris 2.6.
94482         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94483         <shadow.h>.  Reported by Dragos Harabor.
94484
94485 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94486
94487         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94488         memcpy instead of xmalloc, xrealloc, path_concat.
94489         (locale_charset): Treat empty environment variables as absent.
94490         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94491
94492 2000-05-04  Jim Meyering  <meyering@lucent.com>
94493
94494         * lib/getopt.c: Update from glibc.
94495         * lib/obstack.c: Likewise.
94496         * lib/obstack.h: Likewise.
94497         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94498         file
94499
94500         * lib/regex.h: Likewise.
94501         * lib/strndup.c: Likewise.
94502         * lib/strnlen.c: New file, from glibc.
94503
94504 2000-05-03  Jim Meyering  <meyering@lucent.com>
94505
94506         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94507
94508 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94509
94510         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94511         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94512         compile-time test, rather than inspecting host and OS, to
94513         decide whether to define _LARGEFILE_SOURCE.
94514
94515 2000-05-01  Jim Meyering  <meyering@lucent.com>
94516
94517         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94518
94519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94520         Based on a patch from Bruno Haible.
94521
94522 2000-05-01  Jim Meyering  <meyering@lucent.com>
94523
94524         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94525
94526 2000-04-29  Jim Meyering  <meyering@lucent.com>
94527
94528         * lib/path-concat.c: Declare strdup only if it's not defined.
94529         * lib/canon-host.c: Likewise.
94530
94531 2000-04-28  Jim Meyering  <meyering@lucent.com>
94532
94533         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94534         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94535         is included first, then limits.h is included by locale.h by libintl.h.
94536         From John David Anglin.
94537
94538 2000-04-25  Jim Meyering  <meyering@lucent.com>
94539
94540         * lib/makepath.c (S_IRWXUGO): Define.
94541         (make_path): Always perform explicit chmod if MODE specifies any
94542         of the `special' permission bits.  Prompted by a bug report against
94543         install from Mate Wierdl and Joost van Baal.
94544
94545 2000-04-18  Jim Meyering  <meyering@lucent.com>
94546
94547         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94548         (jm_PREREQ): Use it.
94549
94550 2000-04-18  Jim Meyering  <meyering@lucent.com>
94551
94552         * lib/README: New file.
94553
94554         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94555         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94556
94557 2000-04-17  Jim Meyering  <meyering@lucent.com>
94558
94559         Get it right :-)
94560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94561         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94562         Suggestion from Akim Demaille.
94563
94564 2000-04-17  Jim Meyering  <meyering@lucent.com>
94565
94566         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94567         the definition of it to rpl_strftime also defined-away the system's
94568         declaration.
94569
94570 2000-04-15  Jim Meyering  <meyering@lucent.com>
94571
94572         Use `C' to denote so-called `contiguous' files, the same way
94573         that tar does.
94574         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94575         (ftypelet): Use S_ISCTG.
94576         From Michael Deutschmann.
94577
94578 2000-04-14  Jim Meyering  <meyering@lucent.com>
94579
94580         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94581         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94582         clobbered.
94583
94584 2000-04-14  Jim Meyering  <meyering@lucent.com>
94585
94586         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94587
94588 2000-04-13  Jim Meyering  <meyering@lucent.com>
94589
94590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94591         AH_VERBATIM to insert required #ifndef into config.h.in.
94592         Suggestion from Akim Demaille.
94593
94594 2000-04-12  Jim Meyering  <meyering@lucent.com>
94595
94596         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94597         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94598         Christian Krackowizer.
94599
94600         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94601         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94602         (AC_SYS_LARGEFILE): Require.
94603         (AM_C_PROTOTYPES): Require.
94604
94605 2000-04-08  Jim Meyering  <meyering@lucent.com>
94606
94607         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94608         names don't conflict.  Reported by Eli Zaretskii.
94609
94610 2000-04-07  Jim Meyering  <meyering@lucent.com>
94611
94612         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94613         sys/types.h, to work around system header problems on AIX 3.2.5.
94614         From Bruno Haible.
94615
94616 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94617
94618         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94619         bug.  Deal with the different error behavior of Irix iconv.
94620
94621 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94622
94623         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94624         IRIX if the installer said otherwise.
94625
94626 2000-04-05  Jim Meyering  <meyering@lucent.com>
94627
94628         Portability tweaks required for ultrix4.3.
94629         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94630         (jm_CHECK_DECLS): Add getutent to the list of functions.
94631         (_jm_DECL_HEADERS): Add utmpx.h.
94632         From John David Anglin.
94633
94634         * m4/strftime.m4: Back out the 2000-04-02 change.
94635         Instead of that change, simply undefine putenv in the test program.
94636
94637 2000-04-05  Jim Meyering  <meyering@lucent.com>
94638
94639         Portability tweaks required for ultrix4.3.
94640         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94641         getutent.
94642         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94643         * lib/canon-host.c: Declare strdup.
94644         * lib/path-concat.c: Likewise.
94645         From John David Anglin.
94646
94647 2000-04-04  Jim Meyering  <meyering@lucent.com>
94648
94649         Be more DOS 8.3-friendly.
94650         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94651         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94652         * lib/Makefile.am: Reflect renaming.
94653         Reported by Eli Zaretskii.
94654
94655         Use a temporary file name that won't clash with `charset.alias'
94656         in the DOS 8.3 name space.
94657         * lib/Makefile.am (charset_tmp): Define.
94658         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94659         (uninstall-local): Likewise.
94660         Reported by Eli Zaretskii.
94661
94662 2000-04-03  Jim Meyering  <meyering@lucent.com>
94663
94664         * m4/gettext.m4: Fix typo in comment.
94665
94666         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94667         textutils/configure.in).  Suggestion from Paul Eggert.
94668         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94669
94670 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94671
94672         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94673         variable in the shell rather than using putenv, which isn't
94674         portable.  This avoids the configure-time inter-test dependency
94675         on the potentially-renamed putenv function.
94676
94677 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94678
94679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94680         before checking struct stat.st_blksize, so that
94681         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94682
94683 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94684
94685         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94686         since strftime.c uses HAVE_STRFTIME to decide whether to use
94687         the underlying strftime.
94688
94689 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94690
94691         * lib/time/strftime.c (my_strftime): Make sure we call the system
94692         strftime, not ourselves, when invoking the underlying strftime.
94693
94694 2000-03-24  Jim Meyering  <meyering@lucent.com>
94695
94696         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94697         (charset_alias): Define.
94698         (install-exec-local): Factor out common code.
94699         (uninstall-local): Split lines longer than 80.
94700         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94701         (SUFFIXES): Define.
94702         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94703         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94704
94705 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94706
94707         * lib/config.charset: Output a line containing "Packages using this
94708         file".
94709         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94710         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94711         ref-del.sed): New rules.
94712
94713 2000-03-17  Jim Meyering  <meyering@lucent.com>
94714
94715         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94716         Otherwise, include <strings.h>
94717
94718 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94719
94720         * lib/unicodeio.c (utf8_wctomb): New function.
94721         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94722         format instead of in UCS-4 with platform dependent endianness.
94723
94724 2000-03-10  Jim Meyering  <meyering@lucent.com>
94725
94726         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94727         From Marco Franzen.
94728
94729 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94730
94731         * lib/savedir.c (savedir): Work even if directory size is
94732         negative; this can happen with some screwy NFS configurations.
94733
94734 2000-03-06  Jim Meyering  <meyering@lucent.com>
94735
94736         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94737         if it's NULL (because we ran out of memory).  From Bruno Haible.
94738
94739 2000-03-05  Jim Meyering  <meyering@lucent.com>
94740
94741         * lib/localcharset.c ("path-concat.h"): Include.
94742         (get_charset_aliases): Use path_concat instead of ANSI string
94743         concatenation.
94744
94745         * lib/unicodeio.h (PARAMS): Define.
94746         Use it to guard prototype.
94747
94748 2000-03-04  Jim Meyering  <meyering@lucent.com>
94749
94750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94751         for lib/localcharset.c.
94752
94753 2000-03-04  Jim Meyering  <meyering@lucent.com>
94754
94755         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94756         installing into it.
94757         (uninstall-local): Uncomment this rule so `make distcheck' works
94758         once again.
94759
94760         * lib/unicodeio.c (<errno.h>): Include it.
94761         (errno): Declare if not defined.
94762
94763         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94764
94765         * lib/config.charset: New version, incorporating remarks from a linux
94766         i18n mailing list.  From Bruno Haible.
94767
94768 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94769
94770         * m4/codeset.m4: New file.
94771         * m4/iconv.m4: New file.
94772         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94773
94774 2000-03-03  Jim Meyering  <meyering@lucent.com>
94775
94776         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94777
94778 2000-03-02  Jim Meyering  <meyering@lucent.com>
94779
94780         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94781         the messages come out on separate lines.
94782
94783         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94784         rather than jm_CHECK_DECLARATIONS.
94785         * m4/decl.m4: Remove now-unused file.
94786
94787         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94788         geteuid.
94789
94790 2000-03-02  Jim Meyering  <meyering@lucent.com>
94791
94792         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94793
94794 2000-03-01  Jim Meyering  <meyering@lucent.com>
94795
94796         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94797         * lib/unicodeio.c: Likewise.
94798
94799 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94800
94801         * lib/config.charset: New file.
94802         * lib/localcharset.c: New file.
94803         * lib/unicodeio.h, lib/unicodeio.c: New files.
94804         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94805         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94806         (noinst_HEADERS): Add unicodeio.h.
94807         (all-local, install-exec-local, charset.alias): New targets.
94808
94809 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94810
94811         * lib/quotearg.c (ALERT_CHAR): New macro.
94812         (quotearg_buffer_restyled): Use it.
94813
94814 2000-02-27  Jim Meyering  <meyering@lucent.com>
94815
94816         * m4/check-decl.m4: Add getenv to the list.
94817
94818 2000-02-27  Jim Meyering  <meyering@lucent.com>
94819
94820         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94821         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94822
94823         * lib/backupfile.c: Guard inclusion of stdlib.h with
94824         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94825         Declare malloc if needed.
94826
94827         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94828         `#ifndef HAVE_DECL..'
94829         now that autoconf always defines the HAVE_DECL_ symbols.
94830         * lib/human.c: Likewise.
94831         * lib/same.c: Likewise.
94832         * lib/strtoumax.c: Likewise.
94833
94834         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94835         declaration check was not run.
94836         * lib/hash.c: Likewise.
94837         * lib/human.c: Likewise.
94838         * lib/same.c: Likewise.
94839         * lib/strtoumax.c: Likewise.
94840
94841         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94842         `.', then first look up the entire `.'-containing string as a login
94843         name.
94844
94845 2000-02-23  Jim Meyering  <meyering@lucent.com>
94846
94847         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94848         in place of my hack.
94849
94850 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94851
94852         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94853         (textint): New typedef.
94854         (parser_control): Member year changed from int to textint.
94855         All uses changed.
94856         (YYSTYPE): Removed; replaced by %union with int and textint members.
94857         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94858         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94859         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94860         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94861         (date, number, to_year): Use width of number in digits, not its value,
94862         to determine whether it's a 2-digit year, or a 2-digit time.
94863         (yylex): Store number of digits of numeric tokens.
94864         Reported by John Kendall.
94865
94866         (parser_control): Changed from struct parser_control to typedef (for
94867         consistency).  All uses changed.
94868
94869         (tID): Removed; not used.
94870         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94871
94872 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94873
94874         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94875         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94876
94877 2000-02-12  Jim Meyering  <meyering@lucent.com>
94878
94879         * lib/userspec.c (ISDIGIT): Define it.
94880         (isdigit): Remove definition.
94881         (is_number): Use ISDIGIT, not isdigit.
94882         <libintl.h>: Include.
94883         (_ and N_): Define.
94884         (parse_user_spec): Mark translatable strings.
94885
94886 2000-02-10  Jim Meyering  <meyering@lucent.com>
94887
94888         With these changes, nanosleep.[ch] are finally enough like the other
94889         lib/* replacement files to compile on a few more losing systems.
94890
94891         * lib/nanosleep.h: Don't include config.h.
94892         Remove prototype from declaration of nanosleep.
94893         (PARAMS): Remove now-unneeded definition.
94894         * lib/nanosleep.c: #undef nanosleep.
94895         (rpl_nanosleep): Rename from nanosleep.
94896
94897 2000-02-10  Jim Meyering  <meyering@lucent.com>
94898
94899         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94900         gnu_nanosleep to rpl_nanosleep.
94901
94902 2000-02-09  Jim Meyering  <meyering@lucent.com>
94903
94904         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94905         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94906
94907 2000-02-08  Akim Demaille  <akim@epita.fr>
94908
94909         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94910         `[' and `]' and remove uses of `changequote'.
94911         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94912         (AC_SYS_LARGEFILE): Likewise.
94913         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94914         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94915         of changequote.
94916         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94917         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94918         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94919         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94920
94921 2000-02-05  Jim Meyering  <meyering@lucent.com>
94922
94923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94924         Remove explicit use of AC_HEADER_TIME.  It is required by
94925         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94926         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94927         in autoconf whereby the expansion of the latter ended up preceding
94928         the expansion of its prerequisite, AC_HEADER_TIME.
94929         Reported by Volker Borchert.
94930
94931 2000-02-03  Jim Meyering  <meyering@lucent.com>
94932
94933         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94934
94935 2000-02-03  Jim Meyering  <meyering@lucent.com>
94936
94937         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94938         rather than with `#if HAVE_UTMPNAME'.
94939
94940 2000-02-02  Jim Meyering  <meyering@lucent.com>
94941
94942         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94943         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94944         Reported by Eli Zaretskii.
94945
94946 2000-02-01  Jim Meyering  <meyering@lucent.com>
94947
94948         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94949
94950 2000-01-31  Jim Meyering  <meyering@lucent.com>
94951
94952         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94953         functions.  Add the time.h and sys/time.h headers along with the
94954         AC_REQUIRE'ment of AC_HEADER_TIME.
94955
94956 2000-01-31  Jim Meyering  <meyering@lucent.com>
94957
94958         * lib/nanosleep.h (nanosleep): Guard declaration with
94959         `#if ! HAVE_DECL_NANOSLEEP'.
94960         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94961         the declaration in that vendor's sys/timers.h.
94962         Reported by Christian Krackowizer.
94963
94964         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94965         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94966         (ISPRINT): Likewise.
94967         Reported by Tom Tromey.
94968
94969 2000-01-30  Jim Meyering  <meyering@lucent.com>
94970
94971         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94972
94973         * m4/prereq.m4 (utmp_includes): Define.
94974         Check for ut_user and ut_name members in both struct utmpx
94975         and struct utmp.
94976
94977 2000-01-30  Jim Meyering  <meyering@lucent.com>
94978
94979         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94980         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94981         header files where only utmpx.ut_user is declared.
94982
94983         * lib/readutmp.h (UT_USER): Define.
94984
94985 2000-01-29  Jim Meyering  <meyering@lucent.com>
94986
94987         * m4/lib-check.m4: New file containing library-related checks from
94988         fileutils and sh-utils (textutils had none).
94989
94990 2000-01-28  Jim Meyering  <meyering@lucent.com>
94991
94992         * m4/perl.m4: Change format of warning message to look more like that
94993         from the missing script.  Suggestion from François Pinard.
94994
94995 2000-01-25  Jim Meyering  <meyering@lucent.com>
94996
94997         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94998         well as time.h in the compile check.
94999         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95000         Fix typo in cross-compiling case: s/yes/no/.
95001
95002 2000-01-23  Jim Meyering  <meyering@lucent.com>
95003
95004         * m4/jm-macros.m4: Move df-related tests here from
95005         fileutils/configure.in
95006
95007         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95008         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95009
95010         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95011         s/space/ac_fsusage_space/.
95012         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95013
95014         * m4/ftruncate.m4: New file (derived from part of
95015         fileutils/configure.in).
95016         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95017         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95018
95019         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95020         AC_SUBST these here, rather than just in sh-util/configure.in, so
95021         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95022         all the same.
95023         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95024         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95025         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95026         (AC_SUBST(POW_LIBM)): Likewise.
95027         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95028
95029 2000-01-23  Jim Meyering  <meyering@lucent.com>
95030
95031         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95032         obstack.c.
95033
95034 2000-01-22  Jim Meyering  <meyering@lucent.com>
95035
95036         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95037
95038         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95039
95040         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95041         configure.in
95042         (AC_CHECK_HEADERS): Likewise for sh-utils.
95043         (AC_CHECK_HEADERS): Likewise for textutils.
95044         Merge the three lists of headers.
95045
95046         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95047         from fileutils' configure.in.
95048
95049         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95050         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95051         check-decl.m4.
95052
95053         * m4/check-decl.m4: Use #if rather than #ifdef.
95054         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95055         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95056         (_jm_DECL_HEADERS): Define new function.
95057         (jm_CHECK_DECLARATIONS): Require it.
95058
95059 2000-01-22  Jim Meyering  <meyering@lucent.com>
95060
95061         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95062         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95063         Required for some AIX systems.  Reported by Christian Krackowizer.
95064         [TESTING] (main): New function.
95065
95066         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95067         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95068         letters.
95069
95070         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95071         iswprint.
95072
95073         * lib/strverscmp.c (ISDIGIT): Define.
95074         (strverscmp): Use ISDIGIT, not isdigit.
95075
95076 2000-01-19  Jim Meyering  <meyering@lucent.com>
95077
95078         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95079         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95080         defines `struct timespec' in <sys/time.h>
95081
95082         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95083         Thanks to Akim for explaining.
95084
95085 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95086
95087         * lib/nanosleep.c (nanosleep):
95088         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95089         POSIX.1 doesn't require SA_INTERRUPT and some systems
95090         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95091         it's been part of POSIX.1 since day 1 (in 1988).
95092
95093 2000-01-17  Jim Meyering  <meyering@lucent.com>
95094
95095         * lib/interlock: Remove unused file.  Reported by François Pinard.
95096
95097 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95098
95099         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95100         alert, backslash, formfeed, and vertical tab unnecessarily in
95101         shell quoting style.
95102
95103 2000-01-16  Jim Meyering  <meyering@lucent.com>
95104
95105         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95106         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95107         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95108         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95109
95110 2000-01-16  Jim Meyering  <meyering@lucent.com>
95111
95112         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95113         because the latter didn't work.
95114
95115 2000-01-15  Jim Meyering  <meyering@lucent.com>
95116
95117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95118         (AC_REPLACE_FUNCS): Add memcpy and memset.
95119         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95120         Add strpbrk.
95121         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95122
95123 2000-01-12  Jim Meyering  <meyering@lucent.com>
95124
95125         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95126         (jm_PREREQ): Use it.
95127         (jm_PREREQ_READUTMP): New macro.
95128         (jm_PREREQ): Use it.
95129
95130 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95131
95132         Quote multibyte characters correctly.
95133         * m4/c-bs-a.m4: New file.
95134         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95135         (jm_PREREQ): Use it.
95136
95137 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95138
95139         * m4/uintmax_t.m4: Port to autoconf 2.13.
95140
95141 2000-01-08  Jim Meyering  <meyering@ascend.com>
95142
95143         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95144         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95145
95146 2000-01-04  Jim Meyering  <meyering@ascend.com>
95147
95148         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95149         jm_STRUCT_DIRENT_D_TYPE.
95150         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95151         jm_STRUCT_DIRENT_D_INO.
95152         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95153         jm_STRUCT_UTIMBUF.
95154         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95155         renamings.
95156         * m4/utime.m4: Likewise.
95157
95158         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95159         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95160
95161 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95162
95163         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95164         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95165
95166 2000-01-02  Jim Meyering  <meyering@ascend.com>
95167
95168         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95169         remember if this is necessary.
95170
95171 1999-12-26  Jim Meyering  <meyering@ascend.com>
95172
95173         * m4/jm-macros.m4: Use it here.
95174         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95175
95176 1999-12-23  Jim Meyering  <meyering@ascend.com>
95177
95178         * m4/jm-macros.m4: Check for clock_gettime (moved from
95179         fileutils/configure.in)
95180         Check for gettimeofday.
95181
95182 1999-12-20  Jim Meyering  <meyering@ascend.com>
95183
95184         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95185         autoconf-2.14a-1999-12-20.
95186
95187 1999-12-19  Jim Meyering  <meyering@ascend.com>
95188
95189         * m4/lstat-slash.m4: New file.
95190         * m4/jm-macros.m4: Use the new macro:
95191         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95192
95193 1999-12-07  Jim Meyering  <meyering@ascend.com>
95194
95195         * m4/perl.m4: Require that File::Compare be available, too.
95196         Too many systems seem to lack it.
95197
95198         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95199         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95200
95201 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95202
95203         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95204         problem with the QNX 4.25 shell, which doesn't propagate exit
95205         status of failed commands inside shell assignments.
95206
95207 1999-11-17  Jim Meyering  <meyering@ascend.com>
95208
95209         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95210
95211 1999-11-07  Jim Meyering  <meyering@ascend.com>
95212
95213         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95214
95215 1999-11-06  Jim Meyering  <meyering@ascend.com>
95216
95217         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95218         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95219
95220 1999-11-05  Jim Meyering  <meyering@ascend.com>
95221
95222         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95223         configure.in of textutils, fileutils, and sh-utils into this one
95224         (shared between those packages) file.
95225         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95226         AC_STRUCT_ST_BLKSIZE.
95227
95228 1999-11-03  Jim Meyering  <meyering@ascend.com>
95229
95230         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95231         of AC_CHECK_TYPE checks includes unistd.h.
95232         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95233         Suggestion from Akim Demaille.
95234
95235 1999-10-30  Jim Meyering  <meyering@ascend.com>
95236
95237         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95238         m4-quoted string.
95239         * m4/ls-mntd-fs.m4: Likewise.
95240         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95241         * m4/jm-winsz1.m4: Likewise.
95242
95243         * m4/const.m4: Remove file, since the fix made it into the experimental
95244         version of autoconf.
95245         * m4/mktime.m4: Likewise.
95246
95247         * m4/check-type.m4: Remove file, now that the latest version of
95248         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95249
95250         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95251         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95252         AC_CHECK_TYPE.
95253
95254 1999-10-04  Jim Meyering  <meyering@ascend.com>
95255
95256         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95257
95258 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95259
95260         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95261         2.95.1 bug with HP-UX 10.20.
95262
95263 1999-09-17  Jim Meyering  <meyering@ascend.com>
95264
95265         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95266         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95267         due to missing strdup (against sh-utils-2.0).
95268
95269 1999-08-29  Jim Meyering  <meyering@ascend.com>
95270
95271         * m4/jm-macros.m4: Require jm_BISON.
95272         * m4/bison.m4: New file.
95273
95274 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95275
95276         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95277         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95278
95279 1999-08-05  Jim Meyering  <meyering@ascend.com>
95280
95281         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95282         to avoid conflicts with `conftest' on 8+3 filesystems.
95283         Suggestion from Eli Zaretskii.
95284
95285 1999-08-04  Jim Meyering  <meyering@ascend.com>
95286
95287         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95288         fileutils and sh-utils (textutils's getline test was inadequate).
95289         (AM_FUNC_GETLINE): Run this test.
95290         (AC_CHECK_FUNCS): Check for getdelim.
95291         Reported by Bob Proulx.
95292
95293 1999-08-02  Jim Meyering  <meyering@ascend.com>
95294
95295         * m4/jm-macros.m4: Add a comment.
95296
95297 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95298
95299         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95300         <inttypes.h> defines strtoumax as a macro (and not as a
95301         function).
95302
95303 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95304
95305         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95306         that we can shift, multiply and divide unsigned long long
95307         values; Ultrix cc can't do it.
95308
95309 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95310
95311         * m4/mktime.m4: New file, which is a preview of what should appear
95312         in the next public autoconf release.
95313
95314 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95315
95316         * m4/lfs.m4: Remove this file.
95317         * m4/largefile.m4: New file.  It contains the old contents of
95318         lfs.m4, except that all names with prefix AC_LFS have been
95319         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95320         compatible with future autoconf versions.  Also, some minor m4
95321         quoting problems have been fixed.
95322
95323 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95324
95325         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95326         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95327         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95328         and simplify the shell code.
95329
95330 1999-08-01  Jim Meyering  <meyering@ascend.com>
95331
95332         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95333         m4.
95334
95335 1999-07-20  Jim Meyering  <meyering@ascend.com>
95336
95337         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95338
95339 1999-07-15  Jim Meyering  <meyering@ascend.com>
95340
95341         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95342
95343 1999-05-22  Jim Meyering  <meyering@ascend.com>
95344
95345         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95346
95347 1999-05-20  Jim Meyering  <meyering@ascend.com>
95348
95349         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95350         Add a colon after each `then' in case $4 is empty.
95351
95352 1999-05-16  Jim Meyering  <meyering@ascend.com>
95353
95354         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95355
95356 1999-05-10  Jim Meyering  <meyering@ascend.com>
95357
95358         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95359
95360         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95361         AC_FUNC_MKTIME.
95362
95363 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95364
95365         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95366
95367 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95368
95369         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95370         not CPPFLAGS, so that linking works correctly in IRIX.
95371
95372 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95373
95374         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95375
95376 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95377
95378         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95379         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95380         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95381         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95382         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95383
95384         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95385
95386 1999-04-20  Jim Meyering  <meyering@ascend.com>
95387
95388         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95389         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95390         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95391
95392 1999-04-18  Jim Meyering  <meyering@ascend.com>
95393
95394         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95395         * m4/jm-macros.m4: Use it.
95396
95397 1999-04-06  Jim Meyering  <meyering@ascend.com>
95398
95399         * m4/strftime.m4: Remove test for %f.
95400
95401 1999-03-29  Jim Meyering  <meyering@ascend.com>
95402
95403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95404         superset of the AC_TYPE_* checks in the textutils, fileutils,
95405         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95406         AC_TYPE_PID_T.
95407
95408 1999-03-28  Jim Meyering  <meyering@ascend.com>
95409
95410         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95411         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95412         replaced e.g., in the *.sh files of the sh-utils.
95413
95414 1999-03-20  Jim Meyering  <meyering@ascend.com>
95415
95416         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95417         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95418         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95419
95420 1999-03-19  Jim Meyering  <meyering@ascend.com>
95421
95422         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95423
95424 1999-03-12  Jim Meyering  <meyering@ascend.com>
95425
95426         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95427
95428 1999-03-07  Jim Meyering  <meyering@ascend.com>
95429
95430         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95431         declared.
95432
95433 1999-02-17  Jim Meyering  <meyering@ascend.com>
95434
95435         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95436         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95437
95438 1999-02-07  Jim Meyering  <meyering@ascend.com>
95439
95440         * m4/group-member.m4: New file -- extracted from sh-utils'
95441         configure.in.
95442
95443         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95444         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95445
95446 1999-02-06  Jim Meyering  <meyering@ascend.com>
95447
95448         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95449         * m4/fnmatch.m4: Likewise.
95450         * m4/getgroups.m4: Likewise.
95451         * m4/lstat.m4: Likewise.
95452         * m4/malloc.m4: Likewise.
95453         * m4/putenv.m4: Likewise.
95454         * m4/realloc.m4: Likewise.
95455         * m4/regex.m4: Likewise.
95456         * m4/stat.m4: Likewise.
95457         * m4/strftime.m4: Likewise.
95458         Suggestion from Alain Magloire.
95459
95460         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95461         * m4/fnmatch.m4: Likewise.
95462         * m4/getgroups.m4: Likewise.
95463         * m4/getline.m4: Likewise.
95464         * m4/lstat.m4: Likewise.
95465         * m4/malloc.m4: Likewise.
95466         * m4/memcmp.m4: Likewise.
95467         * m4/putenv.m4: Likewise.
95468         * m4/realloc.m4: Likewise.
95469         * m4/regex.m4: Likewise.
95470         * m4/stat.m4: Likewise.
95471         * m4/strftime.m4: Likewise.
95472         Suggestion from Alain Magloire.
95473
95474         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95475         an argument.
95476
95477         * m4/regex.m4: Add a run-time Test for proper operation of
95478         re_compile_pattern.
95479
95480 1999-01-31  Jim Meyering  <meyering@ascend.com>
95481
95482         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95483
95484 1999-01-30  Jim Meyering  <meyering@ascend.com>
95485
95486         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95487
95488         * m4/jm-mktime.m4: Make this a wrapper around the official
95489         AM_FUNC_MKTIME rather than my private copy, now that the official one
95490         is up to date.
95491         * m4/mktime.m4: Remove file.
95492
95493         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95494         * m4/uptime.m4: Likewise.
95495         * m4/uintmax_t.m4: Likewise.
95496
95497 1999-01-28  Jim Meyering  <meyering@ascend.com>
95498
95499         * m4/jm-macros.m4: Use jm_AFS.
95500         * m4/afs.m4: New file (from fileutils' configure.in).
95501
95502         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95503         * m4/chown.m4: Likewise.
95504         * m4/d-ino.m4: Likewise.
95505         * m4/d-type.m4: Likewise.
95506         * m4/fnmatch.m4: Likewise.
95507         * m4/getgroups.m4: Likewise.
95508         * m4/gettext.m4: Likewise.
95509         * m4/jm-mktime.m4: Likewise.
95510         * m4/jm-winsz2.m4: Likewise.
95511         * m4/lcmessage.m4: Likewise.
95512         * m4/ls-mntd-fs.m4: Likewise.
95513         * m4/malloc.m4: Likewise.
95514         * m4/memcmp.m4: Likewise.
95515         * m4/putenv.m4: Likewise.
95516         * m4/realloc.m4: Likewise.
95517         * m4/st_mtim.m4: Likewise.
95518         * m4/strftime.m4: Likewise.
95519
95520 1999-01-16  Jim Meyering  <meyering@ascend.com>
95521
95522         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95523         (ARGMATCH_DIE_DECL): Define.
95524
95525 1999-01-12  Jim Meyering  <meyering@ascend.com>
95526
95527         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95528         Reported by Lars Hecking.
95529
95530 1999-01-10  Jim Meyering  <meyering@ascend.com>
95531
95532         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95533         gross kludge.
95534         * m4/inttypes_h.m4: Likewise.
95535         * m4/lstat.m4: Likewise.
95536         * m4/malloc.m4: Likewise.
95537         * m4/readdir.m4: Likewise.
95538         * m4/realloc.m4: Likewise.
95539         * m4/st_dm_mode.m4: Likewise.
95540         * m4/stat.m4: Likewise.
95541         * m4/utimbuf.m4: Likewise.
95542         * m4/utimes.m4: Likewise.
95543
95544         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95545         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95546         comments in config.h.in are meaningful.
95547
95548         * m4/jm-macros.m4: Require autoconf-2.13 here.
95549
95550         * m4/regex.m4: By default, don't use the included regex.c on systems
95551         with glibc 2.  Suggestion from Uli Drepper.
95552
95553 1999-01-02  Jim Meyering  <meyering@ascend.com>
95554
95555         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95556
95557 1998-12-18  Jim Meyering  <meyering@ascend.com>
95558
95559         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95560         Based on a suggestion from Lars Hecking.
95561
95562 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95563
95564         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95565
95566 1998-11-16  Jim Meyering  <meyering@ascend.com>
95567
95568         * m4/lfs.m4: Double-quote the `uname...` expression.
95569
95570 1998-11-14  Jim Meyering  <meyering@ascend.com>
95571
95572         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95573         * m4/stat.m4: Likewise.
95574
95575 1998-11-03  Jim Meyering  <meyering@ascend.com>
95576
95577         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95578         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95579
95580 1998-10-18  Jim Meyering  <meyering@ascend.com>
95581
95582         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95583
95584 1998-10-17  Jim Meyering  <meyering@ascend.com>
95585
95586         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95587         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95588         calls for those previously hard-coded headers.  Instead, take a new
95589         parameter.
95590         (jm_CHECK_DECLARATIONS): Reflect interface change.
95591         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95592         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95593
95594         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95595
95596 1998-10-14  Jim Meyering  <meyering@ascend.com>
95597
95598         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95599         instead of "TZ=America/Vancouver".  From Paul Eggert.
95600
95601 1998-10-11  Jim Meyering  <meyering@ascend.com>
95602
95603         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95604         This adds a test for a recently added compatibility fix for mktime.c.
95605         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95606
95607 1998-09-27  Jim Meyering  <meyering@ascend.com>
95608
95609         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95610
95611         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95612         ../configure.in, including a change from Gordon Matzigkeit to allow
95613         cross-compiling for the Hurd.
95614
95615         * m4/glibc.m4: New file/macro to test for the GNU C Library
95616         versions 1 and 2.  From Gordon Matzigkeit.
95617         Indent.
95618
95619 1998-09-21  Jim Meyering  <meyering@ascend.com>
95620
95621         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95622
95623 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95624
95625         Port nanosecond-resolution times to UnixWare 2.1.2 and
95626         pedantic Solaris 2.6.
95627
95628         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95629         AC_STRUCT_ST_MTIM.
95630         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95631         Generate name of ns member, instead of just 1 or undef.
95632         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95633
95634 1998-08-15  Jim Meyering  <meyering@ascend.com>
95635
95636         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95637         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95638         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95639         instead of jm_TYPE_SSIZE_T.
95640
95641 1998-08-12  Jim Meyering  <meyering@ascend.com>
95642
95643         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95644
95645 1998-08-02  Jim Meyering  <meyering@ascend.com>
95646
95647         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95648         in acconfig.h manually.
95649
95650 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95651
95652         * m4/st_mtim.m4: New file.
95653
95654 1998-07-28  Jim Meyering  <meyering@ascend.com>
95655
95656         * m4/utimes.m4: Undef stat.
95657
95658 1998-07-25  Jim Meyering  <meyering@ascend.com>
95659
95660         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95661         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95662
95663 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95664
95665         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95666         uid and gid actually remain unchanged.
95667
95668 1998-07-07  Jim Meyering  <meyering@ascend.com>
95669
95670         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95671
95672 1998-07-04  Jim Meyering  <meyering@ascend.com>
95673
95674         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95675         to prove that this macro can be used in packages without regex.c.
95676
95677 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95678
95679         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95680         is to be used.
95681
95682 1998-07-03  Jim Meyering  <meyering@ascend.com>
95683
95684         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95685
95686         * m4/gettext.m4: New file -- from gettext-0.10.35.
95687         * m4/lcmessage.m4: Likewise.
95688         * m4/progtest.m4: Likewise.
95689
95690         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95691         * m4/jm-macros.m4: Require the new macro.
95692
95693 1998-06-29  Jim Meyering  <meyering@ascend.com>
95694
95695         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95696         for the definition of NGROUPS (used in a system header included
95697         by sys/mount.h).
95698
95699 1998-06-28  Jim Meyering  <meyering@ascend.com>
95700
95701         * m4/ls-mntd-fs.m4: New file.
95702         * m4/fstypename.m4: New file.
95703
95704         * m4/jm-macros.m4: Require the new macro.
95705         * m4/jm-glibc-io.m4: New file.
95706
95707 1998-05-19  Jim Meyering  <meyering@ascend.com>
95708
95709         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95710         * m4/lchown.m4: New file.
95711
95712         * m4/Makefile.am.in: New file.
95713         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95714
95715 1998-05-14  Jim Meyering  <meyering@ascend.com>
95716
95717         * m4/Makefile.am (EXTRA_DIST): Add them.
95718         * m4/jm-macros.m4: New file.
95719         * m4/utimbuf.m4: New file.
95720
95721 1998-05-12  Jim Meyering  <meyering@ascend.com>
95722
95723         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95724
95725 1998-05-11  Jim Meyering  <meyering@ascend.com>
95726
95727         * m4/isc-posix.m4: New file.
95728
95729 1998-05-10  Jim Meyering  <meyering@ascend.com>
95730
95731         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95732
95733 1998-05-09  Jim Meyering  <meyering@ascend.com>
95734
95735         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95736         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95737         with automake.
95738
95739         * m4/ssize_t.m4: New file.
95740         * m4/mktime.m4: Remove file -- the new automake has this now.
95741
95742 1998-04-26  Jim Meyering  <meyering@ascend.com>
95743
95744         * m4/assert.m4: New file.
95745         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95746
95747 1998-04-05  Jim Meyering  <meyering@ascend.com>
95748
95749         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95750         (jm_PREREQ): Use it here.
95751
95752 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95753
95754         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95755         in acconfig.h.
95756
95757 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95758
95759         * m4/prereq.m4: New file.
95760         * m4/error.m4: New file.
95761         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95762
95763 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95764
95765         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95766         cache-check for the same variable -- that defeated the purpose of
95767         the test; the test program was never run.  This was a problem only
95768         on systems with losing getline functions -- HP-UX 10.20 is one.
95769         Reported by Bjorn Helgaas.
95770
95771 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95772
95773         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95774
95775 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95776
95777         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95778
95779         * m4/const.m4: New file.  Use an initializer in this declaration
95780         typedef int charset[2]; const charset x;
95781         Reported by Bob Glickstein.
95782
95783 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95784
95785         * m4/chown.m4: Fix reversed types on -1 args to chown.
95786         From Kaveh Ghazi.
95787
95788 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95789
95790         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95791         Add lseek and memchr.
95792
95793         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95794         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95795         have a 20-character limit on names.
95796
95797 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95798
95799         * m4/inttypes_h.m4: New file.
95800         * m4/uintmax_t.m4: New file.
95801         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95802
95803
95804         -----
95805
95806         Local Variables:
95807         coding: utf-8
95808         End:
95809
95810         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95811
95812         Copying and distribution of this file, with or without
95813         modification, are permitted provided the copyright notice
95814         and this notice are preserved.